Skip to content

Releases: empiricaly/empirica

@empirica/core@1.9.3

21 Jan 07:59
0721d5b
Compare
Choose a tag to compare

Patch Changes

  • fba5e09: empirica serve now respects the version in the bundle.

@empirica/core@1.9.2

09 Jan 04:03
1503d53
Compare
Choose a tag to compare

Patch Changes

  • 6974fe8: Upgrade node build to 20.10.0.

@empirica/core@1.9.1

07 Jan 08:10
9afaca9
Compare
Choose a tag to compare

Patch Changes

  • fe46f00: Export vector attributes to CSV as arrays.

@empirica/core@1.9.0

01 Jan 08:11
6dc8adb
Compare
Choose a tag to compare

Minor Changes

  • cd48506: empirica export could fail with a "Premature close" error (#474). This seems
    to be originating from a bug in the node-fetch package, which is used to
    polyfill fetch in Node.js. This upgrades Node.js to v20+, which includes
    native fetch support. We still have the cross-fetch polyfill for projects
    that have not updated to Node.js v20+ yet. Export uses a vendored project which
    has been updated to use the latest Node.js version, so it does not require the
    entire experiment to be updated for it to use Node.js v20+.

    See the following issues on node-fetch for more details:
    node-fetch/node-fetch#1767
    node-fetch/node-fetch#1576

Patch Changes

  • b32b95a: Scoped objects should never be missing under EmpiricaContext. Some have reported
    player.stage or player.round being undefined, for example. This fix also
    more thoroughly checks that all expected objects (not only scoped objects) are
    always present.

@empirica/core@1.8.12

26 Dec 07:14
656d19b
Compare
Choose a tag to compare

Patch Changes

  • c20ca73: Fix setting attributes with the same mutated object as the current one.

    For example, before this patch, the value would not be saved, since we are
    reusing the same object, which we've only mutated in place:

    const value = player.get("myobject");
    value["mykey"] = "myvalue";
    player.set("myobject", value);
  • d1816ad: Ensure usePlayers never returns undefined (expect in unmanaged games).

@empirica/core@1.8.11

20 Dec 10:26
fce31f9
Compare
Choose a tag to compare

Patch Changes

  • a5ecdbd: Avoid re-setting a key to the same value from the client side. For example:

    scope.set("key", "value");
    scope.set("key", "value"); // no-op

    This is not only for sets in the same tick as shown here, but also across ticks.

  • a5ecdbd: Improve various concurrency issues.

  • a5ecdbd: When has no steps, only set the doneKey once.

@empirica/core@1.8.10

10 Dec 08:41
ea74918
Compare
Choose a tag to compare

Patch Changes

  • 98d72e9: Handle errors in step state transition requests.

@empirica/core@1.8.9

06 Dec 01:17
254e004
Compare
Choose a tag to compare

Patch Changes

  • 282e6e6: Upgrade tajriba.js to v1.5.2.

@empirica/core@1.8.8

03 Dec 08:21
c2176a6
Compare
Choose a tag to compare

Patch Changes

  • 44c9486: Upgrade tajriba.js to version 1.5.0.

@empirica/core@1.8.7

03 Dec 08:12
8f8f8a6
Compare
Choose a tag to compare

Patch Changes

  • 3fe3191: Fix export version resolution logic.