From 231b43a3a452698672688e0f4b779f21f13d8ed1 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sun, 31 Mar 2024 01:12:41 +0000 Subject: [PATCH] Version Packages --- .changeset/add-ephemeral-attributes.md | 18 ----------------- .changeset/game-ended-ready.md | 9 --------- lib/@empirica/core/CHANGELOG.md | 27 ++++++++++++++++++++++++++ lib/@empirica/core/package.json | 2 +- 4 files changed, 28 insertions(+), 28 deletions(-) delete mode 100644 .changeset/add-ephemeral-attributes.md delete mode 100644 .changeset/game-ended-ready.md diff --git a/.changeset/add-ephemeral-attributes.md b/.changeset/add-ephemeral-attributes.md deleted file mode 100644 index 67b3dc98..00000000 --- a/.changeset/add-ephemeral-attributes.md +++ /dev/null @@ -1,18 +0,0 @@ ---- -"@empirica/core": minor ---- - -Add ephemeral attribute support. - -This allows you to define attributes that are not persisted to the database, but -are available to the client and server while the server is still running. These -attributes will sync with all players as normal attributes. This is useful for -data that that would be unreasonable to persist to the database due to size or -volatility, but is still useful to share between clients and the server. - -For example, you could use this to sync the mouse movements of the players. - -```js -player.set("mouse", { x: 123, y: 456 }, { ephemeral: true }); -player.get("mouse"); // { x: 123, y: 456 } -``` diff --git a/.changeset/game-ended-ready.md b/.changeset/game-ended-ready.md deleted file mode 100644 index e54282a4..00000000 --- a/.changeset/game-ended-ready.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -"@empirica/core": patch ---- - -Ensure game and players are ready in exit steps. - -The presence of the game and players were not checked in the exit steps, as they -are during the game. This could lead to the game or players not being available -in the exit steps callback (to select the steps) or the exit steps themselves. diff --git a/lib/@empirica/core/CHANGELOG.md b/lib/@empirica/core/CHANGELOG.md index 943ffe68..bdc56b6f 100644 --- a/lib/@empirica/core/CHANGELOG.md +++ b/lib/@empirica/core/CHANGELOG.md @@ -1,5 +1,32 @@ # @empirica/core +## 1.10.0 + +### Minor Changes + +- d5c6969: Add ephemeral attribute support. + + This allows you to define attributes that are not persisted to the database, but + are available to the client and server while the server is still running. These + attributes will sync with all players as normal attributes. This is useful for + data that that would be unreasonable to persist to the database due to size or + volatility, but is still useful to share between clients and the server. + + For example, you could use this to sync the mouse movements of the players. + + ```js + player.set("mouse", { x: 123, y: 456 }, { ephemeral: true }); + player.get("mouse"); // { x: 123, y: 456 } + ``` + +### Patch Changes + +- b84c396: Ensure game and players are ready in exit steps. + + The presence of the game and players were not checked in the exit steps, as they + are during the game. This could lead to the game or players not being available + in the exit steps callback (to select the steps) or the exit steps themselves. + ## 1.9.9 ### Patch Changes diff --git a/lib/@empirica/core/package.json b/lib/@empirica/core/package.json index a1525888..0f86cd0c 100644 --- a/lib/@empirica/core/package.json +++ b/lib/@empirica/core/package.json @@ -1,6 +1,6 @@ { "name": "@empirica/core", - "version": "1.9.9", + "version": "1.10.0", "description": "Empirica Core", "author": "Nicolas Paton ", "license": "Apache-2.0",