@@ -7,34 +7,48 @@ highlighted features.
77
88# v6.2
99
10- ## with-schema exports
10+ This release contains various packaging improvements and exposes some internal
11+ HLC functions that are useful for people building their own persisters or
12+ synchronizers.
1113
12- This release changes the ` package.json ` exports slightly so that imports of both
13- ` /with-schema ` and non-schema'd versions of the modules resolve to the same
14- JavaScript file. This reduces bundle size for apps that use both schema and
15- non-schema imports.
14+ ## HLC functions
15+
16+ The common module (and hence tinybase module) now export the getHlcFunction
17+ function. This returns set of seven functions that can be used to create and
18+ manipulate HLC (Hybrid Logical Clock) timestamps.
19+
20+ ``` js
21+ const [getNextHlc , seenHlc , encodeHlc ] = getHlcFunctions ();
22+ ```
23+
24+ If needed, you can use these in your own systems to ensure the timestamps are
25+ compatible with the ones generated in TinyBase MergeableStore objects.
1626
1727## New ` omni ` module
1828
19- The new ` omni ` module is an explicit superset of everything in the TinyBase
20- ecosystem. It includes all the features and functionality of the existing
21- modules, including every persister, every UI component, and every synchronizer.
22- This is useful for applications that want to use multiple facets of the overall
23- TinyBase ecosystem and also benefit from the shared code they use internally.
29+ There is a new ` omni ` module that is an explicit superset of everything in the
30+ TinyBase ecosystem. It exports the features and functionality of every
31+ ` tinybase/* ` module, including every persister, every synchronizer, and every UI
32+ component. This is useful for applications that want to use multiple facets of
33+ the overall TinyBase ecosystem and also benefit from the fact they share a lot
34+ of code internally.
35+
36+ ``` js yolo
37+ import {createStore , createSqliteBunPersister } from ' tinybase/omni' ;
38+ ```
2439
2540However, it should go without saying that you should only use the ` omni ` module
2641if you have a good tree-shaking bundler that can remove all the persisters,
27- synchronizers, and so on, that you do NOT use.
42+ synchronizers, and so on, that you do _ not _ use.
2843
29- ## HLC functions
44+ ## with-schema exports
3045
31- The common module (and hence tinybase module) now export the getHlcFunction
32- function. This returns set of seven functions that can be used to create and
33- manipulate HLC (Hybrid Logical Clock) timestamps. If needed, you can use these
34- in your own systems to ensure the timestamps are compatible with the ones
35- generated in TinyBase MergeableStore objects.
46+ This release changes the ` package.json ` exports slightly so that imports of both
47+ ` /with-schema ` and non-schema'd versions of the modules resolve to the same
48+ JavaScript file. This reduces bundle size for apps that use both schema and
49+ non-schema imports.
3650
37- ## Move of the GetNow type
51+ ## Moving the GetNow type
3852
3953The rarely-used GetNow type has been moved from the mergeable-store module into
4054the common module.
@@ -49,8 +63,7 @@ the common module.
4963- [ Destructured object
5064 arguments] ( #destructured-object-arguments-for-sorted-row-ids ) for sorted Row
5165 Id methods and hooks.
52- - [ A new startAutoPersisting
53- method] ( #new-startautopersisting-method ) .
66+ - [ A new startAutoPersisting method] ( #new-startautopersisting-method ) .
5467
5568And more!
5669
0 commit comments