tinybase 6.4.2 → 6.5.1
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/@types/omni/index.d.ts +1 -0
- package/@types/omni/with-schemas/index.d.ts +1 -0
- package/@types/persisters/index.d.ts +1 -0
- package/@types/persisters/persister-react-native-mmkv/index.d.ts +118 -0
- package/@types/persisters/persister-react-native-mmkv/with-schemas/index.d.ts +132 -0
- package/@types/persisters/with-schemas/index.d.ts +1 -0
- package/common/index.js +1 -1
- package/common/with-schemas/index.js +1 -1
- package/index.js +1 -1
- package/mergeable-store/index.js +1 -1
- package/mergeable-store/with-schemas/index.js +1 -1
- package/min/index.js +1 -1
- package/min/index.js.gz +0 -0
- package/min/mergeable-store/index.js +1 -1
- package/min/mergeable-store/index.js.gz +0 -0
- package/min/mergeable-store/with-schemas/index.js +1 -1
- package/min/mergeable-store/with-schemas/index.js.gz +0 -0
- package/min/omni/index.js +1 -1
- package/min/omni/index.js.gz +0 -0
- package/min/omni/with-schemas/index.js +1 -1
- package/min/omni/with-schemas/index.js.gz +0 -0
- package/min/persisters/persister-react-native-mmkv/index.js +1 -0
- package/min/persisters/persister-react-native-mmkv/index.js.gz +0 -0
- package/min/persisters/persister-react-native-mmkv/with-schemas/index.js +1 -0
- package/min/persisters/persister-react-native-mmkv/with-schemas/index.js.gz +0 -0
- package/min/synchronizers/synchronizer-ws-server/index.js +1 -1
- package/min/synchronizers/synchronizer-ws-server/index.js.gz +0 -0
- package/min/synchronizers/synchronizer-ws-server/with-schemas/index.js +1 -1
- package/min/synchronizers/synchronizer-ws-server/with-schemas/index.js.gz +0 -0
- package/min/with-schemas/index.js +1 -1
- package/min/with-schemas/index.js.gz +0 -0
- package/omni/index.js +48 -4
- package/omni/with-schemas/index.js +48 -4
- package/package.json +44 -4
- package/persisters/persister-react-native-mmkv/index.js +459 -0
- package/persisters/persister-react-native-mmkv/with-schemas/index.js +459 -0
- package/readme.md +1 -1
- package/releases.md +16 -1
- package/synchronizers/index.js +1 -1
- package/synchronizers/synchronizer-broadcast-channel/index.js +1 -1
- package/synchronizers/synchronizer-broadcast-channel/with-schemas/index.js +1 -1
- package/synchronizers/synchronizer-local/index.js +1 -1
- package/synchronizers/synchronizer-local/with-schemas/index.js +1 -1
- package/synchronizers/synchronizer-ws-client/index.js +1 -1
- package/synchronizers/synchronizer-ws-client/with-schemas/index.js +1 -1
- package/synchronizers/synchronizer-ws-server/index.js +1 -1
- package/synchronizers/synchronizer-ws-server/with-schemas/index.js +1 -1
- package/synchronizers/synchronizer-ws-server-durable-object/index.js +1 -1
- package/synchronizers/synchronizer-ws-server-durable-object/with-schemas/index.js +1 -1
- package/synchronizers/with-schemas/index.js +1 -1
- package/with-schemas/index.js +1 -1
|
@@ -253,7 +253,7 @@ const getUniqueId = (length = 16) =>
|
|
|
253
253
|
arrayReduce(
|
|
254
254
|
getRandomValues(new Uint8Array(length)),
|
|
255
255
|
(uniqueId, number) => uniqueId + encode(number),
|
|
256
|
-
|
|
256
|
+
EMPTY_STRING,
|
|
257
257
|
);
|
|
258
258
|
|
|
259
259
|
const stampNew = (value, hlc) => (hlc ? [value, hlc] : [value]);
|
|
@@ -149,7 +149,7 @@ const getUniqueId = (length = 16) =>
|
|
|
149
149
|
arrayReduce(
|
|
150
150
|
getRandomValues(new Uint8Array(length)),
|
|
151
151
|
(uniqueId, number) => uniqueId + encode(number),
|
|
152
|
-
|
|
152
|
+
EMPTY_STRING,
|
|
153
153
|
);
|
|
154
154
|
|
|
155
155
|
const stampNew = (value, hlc) => (hlc ? [value, hlc] : [value]);
|
|
@@ -149,7 +149,7 @@ const getUniqueId = (length = 16) =>
|
|
|
149
149
|
arrayReduce(
|
|
150
150
|
getRandomValues(new Uint8Array(length)),
|
|
151
151
|
(uniqueId, number) => uniqueId + encode(number),
|
|
152
|
-
|
|
152
|
+
EMPTY_STRING,
|
|
153
153
|
);
|
|
154
154
|
|
|
155
155
|
const stampNew = (value, hlc) => (hlc ? [value, hlc] : [value]);
|
|
@@ -118,7 +118,7 @@ const getUniqueId = (length = 16) =>
|
|
|
118
118
|
arrayReduce(
|
|
119
119
|
getRandomValues(new Uint8Array(length)),
|
|
120
120
|
(uniqueId, number) => uniqueId + encode(number),
|
|
121
|
-
|
|
121
|
+
EMPTY_STRING,
|
|
122
122
|
);
|
|
123
123
|
|
|
124
124
|
const stampNew = (value, hlc) => (hlc ? [value, hlc] : [value]);
|
package/with-schemas/index.js
CHANGED