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",