tinybase 0.9.1 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/checkpoints.d.ts +38 -20
- package/lib/checkpoints.js +1 -1
- package/lib/checkpoints.js.gz +0 -0
- package/lib/common.d.ts +56 -0
- package/lib/common.js +1 -0
- package/lib/common.js.gz +0 -0
- package/lib/debug/checkpoints.d.ts +38 -20
- package/lib/debug/checkpoints.js +1 -1
- package/lib/debug/common.d.ts +56 -0
- package/lib/debug/common.js +3 -0
- package/lib/debug/indexes.d.ts +39 -76
- package/lib/debug/indexes.js +18 -10
- package/lib/debug/metrics.d.ts +49 -20
- package/lib/debug/metrics.js +1 -1
- package/lib/debug/persisters.d.ts +207 -17
- package/lib/debug/persisters.js +1 -1
- package/lib/debug/relationships.d.ts +48 -23
- package/lib/debug/relationships.js +1 -1
- package/lib/debug/store.d.ts +184 -102
- package/lib/debug/store.js +1 -1
- package/lib/debug/tinybase.d.ts +1 -2
- package/lib/debug/tinybase.js +18 -1029
- package/lib/debug/{react.d.ts → ui-react.d.ts} +270 -162
- package/lib/debug/{react.js → ui-react.js} +28 -19
- package/lib/indexes.d.ts +39 -76
- package/lib/indexes.js +1 -1
- package/lib/indexes.js.gz +0 -0
- package/lib/metrics.d.ts +49 -20
- package/lib/metrics.js +1 -1
- package/lib/metrics.js.gz +0 -0
- package/lib/persisters.d.ts +207 -17
- package/lib/persisters.js +1 -1
- package/lib/persisters.js.gz +0 -0
- package/lib/relationships.d.ts +48 -23
- package/lib/relationships.js +1 -1
- package/lib/relationships.js.gz +0 -0
- package/lib/store.d.ts +184 -102
- package/lib/store.js +1 -1
- package/lib/store.js.gz +0 -0
- package/lib/tinybase.d.ts +1 -2
- package/lib/tinybase.js +1 -1
- package/lib/tinybase.js.gz +0 -0
- package/lib/{react.d.ts → ui-react.d.ts} +270 -162
- package/lib/ui-react.js +1 -0
- package/lib/ui-react.js.gz +0 -0
- package/lib/umd/checkpoints.js +1 -1
- package/lib/umd/checkpoints.js.gz +0 -0
- package/lib/umd/common.js +1 -0
- package/lib/umd/common.js.gz +0 -0
- package/lib/umd/indexes.js +1 -1
- package/lib/umd/indexes.js.gz +0 -0
- package/lib/umd/metrics.js +1 -1
- package/lib/umd/metrics.js.gz +0 -0
- package/lib/umd/persisters.js +1 -1
- package/lib/umd/persisters.js.gz +0 -0
- package/lib/umd/relationships.js +1 -1
- package/lib/umd/relationships.js.gz +0 -0
- package/lib/umd/store.js +1 -1
- package/lib/umd/store.js.gz +0 -0
- package/lib/umd/tinybase.js +1 -1
- package/lib/umd/tinybase.js.gz +0 -0
- package/lib/umd/ui-react.js +1 -0
- package/lib/umd/ui-react.js.gz +0 -0
- package/package.json +28 -16
- package/readme.md +13 -13
- package/lib/react.js +0 -1
- package/lib/react.js.gz +0 -0
- package/lib/umd/react.js +0 -1
- package/lib/umd/react.js.gz +0 -0
package/lib/debug/store.js
CHANGED
|
@@ -124,7 +124,7 @@ const getListenerFunctions = (getThing) => {
|
|
|
124
124
|
const listenerPool = [];
|
|
125
125
|
const allListeners = mapNew();
|
|
126
126
|
const addListener = (listener, deepSet, idOrNulls = []) => {
|
|
127
|
-
thing
|
|
127
|
+
thing ??= getThing();
|
|
128
128
|
const id = listenerPool.pop() ?? '' + nextId++;
|
|
129
129
|
mapSet(allListeners, id, [listener, deepSet, idOrNulls]);
|
|
130
130
|
addDeepSet(deepSet, id, idOrNulls);
|
package/lib/debug/tinybase.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This everything.
|
|
2
|
+
* This is everything.
|
|
3
3
|
*
|
|
4
4
|
* @packageDocumentation
|
|
5
5
|
*/
|
|
@@ -9,6 +9,5 @@ export * from './common';
|
|
|
9
9
|
export * from './indexes';
|
|
10
10
|
export * from './metrics';
|
|
11
11
|
export * from './persisters';
|
|
12
|
-
export * from './react';
|
|
13
12
|
export * from './relationships';
|
|
14
13
|
export * from './store';
|