Skip to content

@empirica/core@1.10.0

Compare
Choose a tag to compare
@github-actions github-actions released this 31 Mar 02:18
· 8 commits to main since this release
5467a49

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.

    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.