From 656d19b814aff06cc1a21f20b6daece1e5ffe6d9 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 26 Dec 2023 15:13:46 +0800 Subject: [PATCH] Version Packages (#471) Co-authored-by: github-actions[bot] --- .changeset/attribute-equality.md | 14 -------------- .changeset/userplayers-nil.md | 5 ----- lib/@empirica/core/CHANGELOG.md | 17 +++++++++++++++++ lib/@empirica/core/package.json | 2 +- 4 files changed, 18 insertions(+), 20 deletions(-) delete mode 100644 .changeset/attribute-equality.md delete mode 100644 .changeset/userplayers-nil.md diff --git a/.changeset/attribute-equality.md b/.changeset/attribute-equality.md deleted file mode 100644 index 574cdc38..00000000 --- a/.changeset/attribute-equality.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -"@empirica/core": patch ---- - -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: - -```js -const value = player.get("myobject"); -value["mykey"] = "myvalue"; -player.set("myobject", value); -``` diff --git a/.changeset/userplayers-nil.md b/.changeset/userplayers-nil.md deleted file mode 100644 index d25f512b..00000000 --- a/.changeset/userplayers-nil.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@empirica/core": patch ---- - -Ensure `usePlayers` never returns undefined (expect in unmanaged games). diff --git a/lib/@empirica/core/CHANGELOG.md b/lib/@empirica/core/CHANGELOG.md index ef77a79b..a7ec4101 100644 --- a/lib/@empirica/core/CHANGELOG.md +++ b/lib/@empirica/core/CHANGELOG.md @@ -1,5 +1,22 @@ # @empirica/core +## 1.8.12 + +### 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: + + ```js + const value = player.get("myobject"); + value["mykey"] = "myvalue"; + player.set("myobject", value); + ``` + +- d1816ad: Ensure `usePlayers` never returns undefined (expect in unmanaged games). + ## 1.8.11 ### Patch Changes diff --git a/lib/@empirica/core/package.json b/lib/@empirica/core/package.json index 39b246ec..7b741dfb 100644 --- a/lib/@empirica/core/package.json +++ b/lib/@empirica/core/package.json @@ -1,6 +1,6 @@ { "name": "@empirica/core", - "version": "1.8.11", + "version": "1.8.12", "description": "Empirica Core", "author": "Nicolas Paton ", "license": "Apache-2.0",