Skip to content

Commit

Permalink
Revert "Version Packages (#535)" (#537)
Browse files Browse the repository at this point in the history
This reverts commit 0f9233a.
  • Loading branch information
npaton authored Mar 31, 2024
1 parent 0f9233a commit 2d4e245
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 30 deletions.
18 changes: 18 additions & 0 deletions .changeset/add-ephemeral-attributes.md
Original file line number Diff line number Diff line change
@@ -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 }
```
9 changes: 9 additions & 0 deletions .changeset/game-ended-ready.md
Original file line number Diff line number Diff line change
@@ -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.
5 changes: 5 additions & 0 deletions .changeset/player-reset-admin.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@empirica/core": patch
---

Make player reset in admin UI work again.
29 changes: 0 additions & 29 deletions lib/@empirica/core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
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.10.0",
"version": "1.9.9",
"description": "Empirica Core",
"author": "Nicolas Paton <nicolas.paton@gmail.com>",
"license": "Apache-2.0",
Expand Down

0 comments on commit 2d4e245

Please sign in to comment.