Skip to content

@empirica/core@1.9.0

Compare
Choose a tag to compare
@github-actions github-actions released this 01 Jan 08:11
· 53 commits to main since this release
6dc8adb

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.