Skip to content

Releases: tinyplex/tinybase

v3.0.6

Choose a tag to compare

@jamesgpearce jamesgpearce released this 16 Apr 01:31

Fixes a minor type declaration issue, some documentation issues, and updates dev-time dependencies.

v3.0.5

Choose a tag to compare

@jamesgpearce jamesgpearce released this 09 Apr 02:56

This release moves type definitions into a common ./lib/types folder that is shared by all of the flavors and targets of the TinyBase build & transpilation.

There should be no change to functionality or documentation. However, since duplicated .d.ts files have now been removed, the installed package is now 75% smaller.

v3.0.4

Choose a tag to compare

@jamesgpearce jamesgpearce released this 06 Apr 20:02

This improves import and type definitions for React Native in particular, but also for other flavors and targets. It addresses the frustrations of #59 and #28.

There is also a new Importing TinyBase guide to explain the options.

The main changes are in b182895 - please report any import problems this might have inadvertently introduced!

v3.0.3

Choose a tag to compare

@jamesgpearce jamesgpearce released this 23 Feb 17:09

Small React optimization and devDependency updates.

v3.0.2

Choose a tag to compare

@jamesgpearce jamesgpearce released this 16 Feb 18:52

Includes CJS modules in the NPM distribution, which can be used like so:

import {createStore} from 'tinybase/cjs';

An es6 variant is also provided. Individual modules can be imported by name if required.

Huge thanks to @uwemneku and @WonderPanda for proposing and verifying in #48!

v3.0.1

Choose a tag to compare

@jamesgpearce jamesgpearce released this 03 Feb 02:03

Fixes missing type in code-generated API

v3.0.0

Choose a tag to compare

@jamesgpearce jamesgpearce released this 29 Jan 17:46

This major new release adds key/value store functionality to TinyBase. Alongside existing tabular data, it allows you to get, set, and listen to, individual Value items, each with a unique Id.

const store = createStore().setValues({employees: 3, open: true});
console.log(store.getValues());
// -> {employees: 3, open: true}

const listenerId = store.addValueListener(
  null,
  (store, valueId, newValue, oldValue) => {
    console.log(`Value '${valueId}' changed from ${oldValue} to ${newValue}`);
  },
);

store.setValue('employees', 4);
// -> "Value 'employees' changed from 3 to 4"

store.delListener(listenerId).delValues();

Guides and documentation have been fully updated, and certain demos - such as the Todo App v2 (indexes) demo, and the Countries demo - have been updated to use this new functionality.

If you use the optional ui-react module with TinyBase, v3.0 now uses and expects React v18.

In terms of core API changes in v3.0, there are some minor breaking changes, but the majority of the alterations are additions. See the release notes for full details.

And please enjoy!

v3.0.0-beta.1

v3.0.0-beta.1 Pre-release
Pre-release

Choose a tag to compare

@jamesgpearce jamesgpearce released this 22 Jan 21:35

For those who don't need tables, but just a reactive flat map, this experimental release adds a new keyed value API to the Store interface: setValue, getValue, addValueListener, etc.

It's not fully documented in the guides and demos but the API documentation and full test coverage is complete.

https://beta.tinybase.org/api/store/interfaces/store/store/

v3.0.0-beta.0

v3.0.0-beta.0 Pre-release
Pre-release

Choose a tag to compare

@jamesgpearce jamesgpearce released this 27 Dec 20:26

This upgrades TinyBase to use React v18 for development and example demos.

v2.2.6

Choose a tag to compare

@jamesgpearce jamesgpearce released this 14 Dec 01:57

Upgrades esbuild devDependency with required jest array type support