Releases: tinyplex/tinybase
Release list
v1.3.2
Works around react/metro#670 so that TinyBase can be used in React Native. See #17 (comment) for details.
v1.3.1
Updates most NPM dependencies and fixes some broken links in the guides.
v1.3.0
Adds support for explicit transaction start and finish methods, as well as listeners for transactions finishing. This allows stores to couple their transactions together, which we need for the query engine.
v1.2.3
v1.2.2
Only create default values for mapEnsure when needed. Saves memory, time, and bundle size!
v1.2.1
Updated build-time dependencies, including TypeScript 4.6
v1.2.0
v1.2.0 adds a way to revert transactions if they have not met certain conditions.
When using the transaction method, you can provide an optional doRollback callback which should return true if you want to revert the whole transaction at its conclusion.
The callback is provided with two objects, changedCells and invalidCells which list all the net changes and invalid attempts at changes that were made during the transaction. You will most likely use the contents of those objects to decide whether the transaction should be rolled back.
v1.1.0
This release allows you to listen to invalid data being added to a Store, allowing you to gracefully handle errors, rather than them failing silently.
There is a new listener type InvalidCellListener and a method addInvalidCellListener in the Store interface.
These allow you to keep track of failed attempts to update the Store with invalid Cell data. These listeners can also be mutators, allowing you to address any failed writes programmatically.
For more information, please see the addInvalidCellListener documentation. In particular, this explains how this listener behaves for a Store with a Schema.
v1.0.5
Adds iterators to all modules for consistency:
- Metrics.forEachMetric
- Indexes.forEachIndex
- Indexes.forEachSlice
- Relationships.forEachRelationship
- Checkpoints.forEachCheckpoint
v1.0.4
Gives Metrics, Indexes, Relationships, and Checkpoints the same sort of hasX methods as Stores
Also adds hasTables method to let you check if a Store is empty.
See fe84502