Skip to content

Releases: tinyplex/tinybase

v5.3.6

Choose a tag to compare

@jamesgpearce jamesgpearce released this 27 Oct 14:07

This release updates dependencies and fixes #192

v5.4.0-beta.1

v5.4.0-beta.1 Pre-release
Pre-release

Choose a tag to compare

@jamesgpearce jamesgpearce released this 26 Oct 21:00

This release includes the new synchronizer-ws-server-simple module that contains a simple server implementation called WsServerSimple. Without the complications of listeners, persistence, or statistics, this is more suitable to be used as a reference implementation for other server environments.

v5.3.5

Choose a tag to compare

@jamesgpearce jamesgpearce released this 21 Oct 13:12

This release updates dependencies.

v5.3.4

Choose a tag to compare

@jamesgpearce jamesgpearce released this 16 Oct 14:29

This release addresses #186

v5.3.3

Choose a tag to compare

@jamesgpearce jamesgpearce released this 15 Oct 05:10

This release updates dependencies and makes some internal changes to the PowerSync persister to tackle #187

v5.3.2

Choose a tag to compare

@jamesgpearce jamesgpearce released this 04 Oct 05:09

This release updates dependencies and annotates some pure functions to improve transpilation.

v5.3.1

Choose a tag to compare

@jamesgpearce jamesgpearce released this 23 Sep 18:41

This release updates dependencies.

v5.3.0

Choose a tag to compare

@jamesgpearce jamesgpearce released this 13 Sep 17:12

This release is focussed on a few API improvements and quality-of-life changes. These include:

React SSR support

Thanks to contributor Muhammad Muhajir (@muhajirdev) for ensuring that TinyBase runs in server-side rendering environments!

In the persisters module...

All Persister objects now expose information about whether they are loading or saving. To access this Status, use:

  • The getStatus method, which will return 0 when it is idle, 1 when it is loading, and 2 when it is saving.
  • The addStatusListener method, which lets you add a StatusListener function and which is called whenever the status changes.

These make it possible to track background load and save activities, so that, for example, you can show a status-bar spinner of asynchronous persistence activity.

In the synchronizers module...

Synchronizers are a sub-class of Persister, so all Synchronizer objects now also have:

  • The getStatus method, which will return 0 when it is idle, 1 when it is 'loading' (ie inbound syncing), and 2 when it is 'saving' (ie outbound syncing).
  • The addStatusListener method, which lets you add a StatusListener function and which is called whenever the status changes.

In the ui-react module...

There are corresponding hooks so that you can build these status changes into a React UI easily:

And correspondingly for Synchronizers:

In addition, this module also now includes hooks for injecting objects into the Provider context scope imperatively, much like the existing useProvideStore hook:

All of these new methods have extensive documentation, each with examples to show how to use them.

Please provide feedback on this new release on GitHub!

v5.2.3

Choose a tag to compare

@jamesgpearce jamesgpearce released this 06 Sep 17:42

This release addresses a rendering bug in the ui-react-inspector when there were multiple tables in a Store

v5.2.2

Choose a tag to compare

@jamesgpearce jamesgpearce released this 04 Sep 23:12

This fixes a small global React context problem.