From 6dc8adb7cd2a11647a8913fffcafaf33afe6d0a2 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 1 Jan 2024 16:10:42 +0800 Subject: [PATCH] Version Packages (#479) Co-authored-by: github-actions[bot] --- .changeset/export-premature-close.md | 15 --------------- .changeset/scoped-object-missing.md | 8 -------- lib/@empirica/core/CHANGELOG.md | 23 +++++++++++++++++++++++ lib/@empirica/core/package.json | 2 +- 4 files changed, 24 insertions(+), 24 deletions(-) delete mode 100644 .changeset/export-premature-close.md delete mode 100644 .changeset/scoped-object-missing.md diff --git a/.changeset/export-premature-close.md b/.changeset/export-premature-close.md deleted file mode 100644 index 654e16d5..00000000 --- a/.changeset/export-premature-close.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -"@empirica/core": minor ---- - -`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: -https://github.com/node-fetch/node-fetch/issues/1767 -https://github.com/node-fetch/node-fetch/issues/1576 diff --git a/.changeset/scoped-object-missing.md b/.changeset/scoped-object-missing.md deleted file mode 100644 index 1475234e..00000000 --- a/.changeset/scoped-object-missing.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -"@empirica/core": patch ---- - -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. diff --git a/lib/@empirica/core/CHANGELOG.md b/lib/@empirica/core/CHANGELOG.md index a7ec4101..40422093 100644 --- a/lib/@empirica/core/CHANGELOG.md +++ b/lib/@empirica/core/CHANGELOG.md @@ -1,5 +1,28 @@ # @empirica/core +## 1.9.0 + +### 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: + https://github.com/node-fetch/node-fetch/issues/1767 + https://github.com/node-fetch/node-fetch/issues/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. + ## 1.8.12 ### Patch Changes diff --git a/lib/@empirica/core/package.json b/lib/@empirica/core/package.json index 22b33118..ed12a73d 100644 --- a/lib/@empirica/core/package.json +++ b/lib/@empirica/core/package.json @@ -1,6 +1,6 @@ { "name": "@empirica/core", - "version": "1.8.12", + "version": "1.9.0", "description": "Empirica Core", "author": "Nicolas Paton ", "license": "Apache-2.0",