Skip to content

Releases: tinyplex/tinybase

v1.2.2

08 Mar 06:24

Choose a tag to compare

Only create default values for mapEnsure when needed. Saves memory, time, and bundle size!

v1.2.1

08 Mar 05:28

Choose a tag to compare

Updated build-time dependencies, including TypeScript 4.6

v1.2.0

15 Feb 06:22

Choose a tag to compare

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

06 Feb 18:14

Choose a tag to compare

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

21 Jan 07:08

Choose a tag to compare

Adds iterators to all modules for consistency:

  • Metrics.forEachMetric
  • Indexes.forEachIndex
  • Indexes.forEachSlice
  • Relationships.forEachRelationship
  • Checkpoints.forEachCheckpoint

v1.0.4

19 Jan 07:11

Choose a tag to compare

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

v1.0.3

17 Jan 07:50

Choose a tag to compare

Add type definition locations for submodules

v1.0.2

17 Jan 07:49

Choose a tag to compare

[bad npm release]

v1.0.1

17 Jan 02:17

Choose a tag to compare

Add .d.ts type to package so it can be found with module-level import

v1.0.0

14 Jan 18:58

Choose a tag to compare

And we're live! 🎉