@rocicorp/zero 0.9.2024121900 → 0.9.2024122100

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.
Files changed (77) hide show
  1. package/out/{chunk-3L5FRWGX.js → chunk-DERTBT62.js} +243 -252
  2. package/out/chunk-DERTBT62.js.map +7 -0
  3. package/out/replicache/src/mod.d.ts +1 -0
  4. package/out/replicache/src/mod.d.ts.map +1 -1
  5. package/out/shared/src/hash.d.ts +4 -0
  6. package/out/shared/src/hash.d.ts.map +1 -0
  7. package/out/shared/src/hash.js +16 -0
  8. package/out/shared/src/hash.js.map +1 -0
  9. package/out/solid.js +1 -1
  10. package/out/zero/src/zero-cache-dev.js +1 -1
  11. package/out/zero/src/zero-cache-dev.js.map +1 -1
  12. package/out/zero-cache/src/db/migration.d.ts.map +1 -1
  13. package/out/zero-cache/src/db/migration.js +0 -1
  14. package/out/zero-cache/src/db/migration.js.map +1 -1
  15. package/out/zero-cache/src/server/life-cycle.d.ts +1 -0
  16. package/out/zero-cache/src/server/life-cycle.d.ts.map +1 -1
  17. package/out/zero-cache/src/server/life-cycle.js +15 -7
  18. package/out/zero-cache/src/server/life-cycle.js.map +1 -1
  19. package/out/zero-cache/src/server/main.d.ts.map +1 -1
  20. package/out/zero-cache/src/server/main.js +1 -0
  21. package/out/zero-cache/src/server/main.js.map +1 -1
  22. package/out/zero-cache/src/server/multi/main.d.ts.map +1 -1
  23. package/out/zero-cache/src/server/multi/main.js +1 -0
  24. package/out/zero-cache/src/server/multi/main.js.map +1 -1
  25. package/out/zero-cache/src/services/change-streamer/change-streamer-http.js +1 -0
  26. package/out/zero-cache/src/services/change-streamer/change-streamer-http.js.map +1 -1
  27. package/out/zero-cache/src/services/change-streamer/change-streamer-service.d.ts.map +1 -1
  28. package/out/zero-cache/src/services/change-streamer/change-streamer-service.js +34 -2
  29. package/out/zero-cache/src/services/change-streamer/change-streamer-service.js.map +1 -1
  30. package/out/zero-cache/src/services/change-streamer/change-streamer.d.ts +7 -0
  31. package/out/zero-cache/src/services/change-streamer/change-streamer.d.ts.map +1 -1
  32. package/out/zero-cache/src/services/change-streamer/change-streamer.js.map +1 -1
  33. package/out/zero-cache/src/services/change-streamer/pg/change-source.js +1 -1
  34. package/out/zero-cache/src/services/change-streamer/pg/change-source.js.map +1 -1
  35. package/out/zero-cache/src/services/change-streamer/pg/schema/init.d.ts.map +1 -1
  36. package/out/zero-cache/src/services/change-streamer/pg/schema/init.js +11 -2
  37. package/out/zero-cache/src/services/change-streamer/pg/schema/init.js.map +1 -1
  38. package/out/zero-cache/src/services/dispatcher/sync-dispatcher.js +1 -1
  39. package/out/zero-cache/src/services/dispatcher/sync-dispatcher.js.map +1 -1
  40. package/out/zero-cache/src/services/replicator/incremental-sync.d.ts +2 -2
  41. package/out/zero-cache/src/services/replicator/incremental-sync.d.ts.map +1 -1
  42. package/out/zero-cache/src/services/replicator/incremental-sync.js +5 -2
  43. package/out/zero-cache/src/services/replicator/incremental-sync.js.map +1 -1
  44. package/out/zero-cache/src/services/replicator/replicator.js +1 -1
  45. package/out/zero-cache/src/services/replicator/replicator.js.map +1 -1
  46. package/out/zero-cache/src/services/running-state.d.ts.map +1 -1
  47. package/out/zero-cache/src/services/running-state.js +2 -6
  48. package/out/zero-cache/src/services/running-state.js.map +1 -1
  49. package/out/zero-cache/src/services/view-syncer/cvr-store.d.ts.map +1 -1
  50. package/out/zero-cache/src/services/view-syncer/cvr-store.js +5 -1
  51. package/out/zero-cache/src/services/view-syncer/cvr-store.js.map +1 -1
  52. package/out/zero-cache/src/services/view-syncer/view-syncer.d.ts.map +1 -1
  53. package/out/zero-cache/src/services/view-syncer/view-syncer.js +5 -2
  54. package/out/zero-cache/src/services/view-syncer/view-syncer.js.map +1 -1
  55. package/out/zero-cache/src/types/row-key.js +2 -2
  56. package/out/zero-cache/src/types/row-key.js.map +1 -1
  57. package/out/zero-client/src/mod.d.ts +1 -1
  58. package/out/zero-client/src/mod.d.ts.map +1 -1
  59. package/out/zero-protocol/src/ast-hash.js +1 -1
  60. package/out/zero-protocol/src/ast-hash.js.map +1 -1
  61. package/out/zero-protocol/src/protocol-version.d.ts +1 -1
  62. package/out/zero-protocol/src/protocol-version.js +1 -1
  63. package/out/zero.js +1 -1
  64. package/package.json +3 -3
  65. package/out/chunk-3L5FRWGX.js.map +0 -7
  66. package/out/shared/src/h64-with-reverse.d.ts +0 -6
  67. package/out/shared/src/h64-with-reverse.d.ts.map +0 -1
  68. package/out/shared/src/h64-with-reverse.js +0 -13
  69. package/out/shared/src/h64-with-reverse.js.map +0 -1
  70. package/out/shared/src/reverse-string.d.ts +0 -2
  71. package/out/shared/src/reverse-string.d.ts.map +0 -1
  72. package/out/shared/src/reverse-string.js +0 -8
  73. package/out/shared/src/reverse-string.js.map +0 -1
  74. package/out/shared/src/xxhash.d.ts +0 -3
  75. package/out/shared/src/xxhash.d.ts.map +0 -1
  76. package/out/shared/src/xxhash.js +0 -4
  77. package/out/shared/src/xxhash.js.map +0 -1
@@ -1,6 +0,0 @@
1
- /**
2
- * xxhash only computes 64-bit values. Run it on the forward and reverse string
3
- * to get better collision resistance.
4
- */
5
- export declare function h64WithReverse(str: string): string;
6
- //# sourceMappingURL=h64-with-reverse.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"h64-with-reverse.d.ts","sourceRoot":"","sources":["../../../../shared/src/h64-with-reverse.ts"],"names":[],"mappings":"AAGA;;;GAGG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAKlD"}
@@ -1,13 +0,0 @@
1
- import { reverseString } from './reverse-string.js';
2
- import { h64 } from './xxhash.js';
3
- /**
4
- * xxhash only computes 64-bit values. Run it on the forward and reverse string
5
- * to get better collision resistance.
6
- */
7
- export function h64WithReverse(str) {
8
- const forward = h64(str);
9
- const backward = h64(reverseString(str));
10
- const full = (forward << 64n) + backward;
11
- return full.toString(36);
12
- }
13
- //# sourceMappingURL=h64-with-reverse.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"h64-with-reverse.js","sourceRoot":"","sources":["../../../../shared/src/h64-with-reverse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,aAAa,EAAC,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAC,GAAG,EAAC,MAAM,aAAa,CAAC;AAEhC;;;GAGG;AACH,MAAM,UAAU,cAAc,CAAC,GAAW;IACxC,MAAM,OAAO,GAAG,GAAG,CAAC,GAAG,CAAC,CAAC;IACzB,MAAM,QAAQ,GAAG,GAAG,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,CAAC;IACzC,MAAM,IAAI,GAAG,CAAC,OAAO,IAAI,GAAG,CAAC,GAAG,QAAQ,CAAC;IACzC,OAAO,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;AAC3B,CAAC"}
@@ -1,2 +0,0 @@
1
- export declare function reverseString(str: string): string;
2
- //# sourceMappingURL=reverse-string.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"reverse-string.d.ts","sourceRoot":"","sources":["../../../../shared/src/reverse-string.ts"],"names":[],"mappings":"AAAA,wBAAgB,aAAa,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAMjD"}
@@ -1,8 +0,0 @@
1
- export function reverseString(str) {
2
- let reversed = '';
3
- for (let i = str.length - 1; i >= 0; i--) {
4
- reversed += str[i];
5
- }
6
- return reversed;
7
- }
8
- //# sourceMappingURL=reverse-string.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"reverse-string.js","sourceRoot":"","sources":["../../../../shared/src/reverse-string.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,aAAa,CAAC,GAAW;IACvC,IAAI,QAAQ,GAAG,EAAE,CAAC;IAClB,KAAK,IAAI,CAAC,GAAG,GAAG,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;QACzC,QAAQ,IAAI,GAAG,CAAC,CAAC,CAAC,CAAC;IACrB,CAAC;IACD,OAAO,QAAQ,CAAC;AAClB,CAAC"}
@@ -1,3 +0,0 @@
1
- declare const create64: (seed?: bigint) => import("xxhash-wasm").XXHash<bigint>, h32: (input: string, seed?: number) => number, h64: (input: string, seed?: bigint) => bigint;
2
- export { create64, h32, h64 };
3
- //# sourceMappingURL=xxhash.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"xxhash.d.ts","sourceRoot":"","sources":["../../../../shared/src/xxhash.ts"],"names":[],"mappings":"AAEA,QAAA,MAAO,QAAQ,2DAAE,GAAG,4CAAE,GAAG,0CAAkB,CAAC;AAE5C,OAAO,EAAC,QAAQ,EAAE,GAAG,EAAE,GAAG,EAAC,CAAC"}
@@ -1,4 +0,0 @@
1
- import xxhash from 'xxhash-wasm';
2
- const { create64, h32, h64 } = await xxhash();
3
- export { create64, h32, h64 };
4
- //# sourceMappingURL=xxhash.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"xxhash.js","sourceRoot":"","sources":["../../../../shared/src/xxhash.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,aAAa,CAAC;AAEjC,MAAM,EAAC,QAAQ,EAAE,GAAG,EAAE,GAAG,EAAC,GAAG,MAAM,MAAM,EAAE,CAAC;AAE5C,OAAO,EAAC,QAAQ,EAAE,GAAG,EAAE,GAAG,EAAC,CAAC"}