Releases: tinyplex/tinybase
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
v1.0.3
Add type definition locations for submodules
v1.0.2
[bad npm release]
v1.0.1
Add .d.ts type to package so it can be found with module-level import