Skip to content

Commit

Permalink
Version Packages (#538)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
github-actions[bot] and github-actions[bot] committed Mar 31, 2024
1 parent c6930be commit 5467a49
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 33 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.

5 changes: 0 additions & 5 deletions .changeset/player-reset-admin.md

This file was deleted.

29 changes: 29 additions & 0 deletions lib/@empirica/core/CHANGELOG.md
@@ -1,5 +1,34 @@
# @empirica/core

## 1.10.0

### Minor Changes

- 2d4e245: 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

- 2d4e245: 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.

- 2d4e245: Make player reset in admin UI work again.

## 1.9.9

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion 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 <nicolas.paton@gmail.com>",
"license": "Apache-2.0",
Expand Down

0 comments on commit 5467a49

Please sign in to comment.