@foretag/tanstack-db-surrealdb 0.1.3 → 0.1.4

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/dist/index.d.mts CHANGED
@@ -26,6 +26,6 @@ type SurrealCollectionConfig<T extends SurrealObject<object>> = {
26
26
 
27
27
  declare function surrealCollectionOptions<T extends SyncedRow, S extends Record<string, Container> = {
28
28
  [k: string]: never;
29
- }>({ id, useLoro, onError, db, ...config }: SurrealCollectionConfig<T>): CollectionConfig<T, Id, never, UtilsRecord>;
29
+ }>({ id, useLoro, onError, db, ...config }: SurrealCollectionConfig<T>): CollectionConfig<T, string | number, never, UtilsRecord>;
30
30
 
31
31
  export { surrealCollectionOptions };
package/dist/index.d.ts CHANGED
@@ -26,6 +26,6 @@ type SurrealCollectionConfig<T extends SurrealObject<object>> = {
26
26
 
27
27
  declare function surrealCollectionOptions<T extends SyncedRow, S extends Record<string, Container> = {
28
28
  [k: string]: never;
29
- }>({ id, useLoro, onError, db, ...config }: SurrealCollectionConfig<T>): CollectionConfig<T, Id, never, UtilsRecord>;
29
+ }>({ id, useLoro, onError, db, ...config }: SurrealCollectionConfig<T>): CollectionConfig<T, string | number, never, UtilsRecord>;
30
30
 
31
31
  export { surrealCollectionOptions };
package/dist/index.js CHANGED
@@ -292,7 +292,7 @@ function surrealCollectionOptions({
292
292
  if (offLive) offLive();
293
293
  };
294
294
  };
295
- const now = () => Date.now();
295
+ const now = () => /* @__PURE__ */ new Date();
296
296
  const onInsert = async (p) => {
297
297
  const resultRows = [];
298
298
  for (const m of p.transaction.mutations) {
package/dist/index.mjs CHANGED
@@ -274,7 +274,7 @@ function surrealCollectionOptions({
274
274
  if (offLive) offLive();
275
275
  };
276
276
  };
277
- const now = () => Date.now();
277
+ const now = () => /* @__PURE__ */ new Date();
278
278
  const onInsert = async (p) => {
279
279
  const resultRows = [];
280
280
  for (const m of p.transaction.mutations) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@foretag/tanstack-db-surrealdb",
3
3
  "description": "Add Offline / Local First Caching & Syncing to your SurrealDB app with TanstackDB and Loro (CRDTs)",
4
- "version": "0.1.3",
4
+ "version": "0.1.4",
5
5
  "files": [
6
6
  "dist"
7
7
  ],