diff --git a/.changeset/add-ephemeral-attributes.md b/.changeset/add-ephemeral-attributes.md new file mode 100644 index 00000000..67b3dc98 --- /dev/null +++ b/.changeset/add-ephemeral-attributes.md @@ -0,0 +1,18 @@ +--- +"@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 new file mode 100644 index 00000000..e54282a4 --- /dev/null +++ b/.changeset/game-ended-ready.md @@ -0,0 +1,9 @@ +--- +"@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/.changeset/player-reset-admin.md b/.changeset/player-reset-admin.md new file mode 100644 index 00000000..42090d73 --- /dev/null +++ b/.changeset/player-reset-admin.md @@ -0,0 +1,5 @@ +--- +"@empirica/core": patch +--- + +Make player reset in admin UI work again. diff --git a/lib/@empirica/core/CHANGELOG.md b/lib/@empirica/core/CHANGELOG.md index e7c91a71..943ffe68 100644 --- a/lib/@empirica/core/CHANGELOG.md +++ b/lib/@empirica/core/CHANGELOG.md @@ -1,34 +1,5 @@ # @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. - -- db69a0f: Make player reset in admin UI work again. - ## 1.9.9 ### Patch Changes diff --git a/lib/@empirica/core/package.json b/lib/@empirica/core/package.json index 0f86cd0c..a1525888 100644 --- a/lib/@empirica/core/package.json +++ b/lib/@empirica/core/package.json @@ -1,6 +1,6 @@ { "name": "@empirica/core", - "version": "1.10.0", + "version": "1.9.9", "description": "Empirica Core", "author": "Nicolas Paton ", "license": "Apache-2.0",