Skip to content

Commit

Permalink
Version Packages
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Mar 31, 2024
1 parent b84c396 commit 231b43a
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 28 deletions.
18 changes: 0 additions & 18 deletions .changeset/add-ephemeral-attributes.md

This file was deleted.

9 changes: 0 additions & 9 deletions .changeset/game-ended-ready.md

This file was deleted.

27 changes: 27 additions & 0 deletions lib/@empirica/core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/@empirica/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@empirica/core",
"version": "1.9.9",
"version": "1.10.0",
"description": "Empirica Core",
"author": "Nicolas Paton <nicolas.paton@gmail.com>",
"license": "Apache-2.0",
Expand Down

0 comments on commit 231b43a

Please sign in to comment.