@rocicorp/zero 0.12.2025012601 → 0.12.2025012800

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 (452) hide show
  1. package/out/advanced.js +2 -2
  2. package/out/{chunk-F5QR3K72.js → chunk-424PT5DM.js} +1 -1
  3. package/out/{chunk-JZD6FXRT.js → chunk-MJYDJPXG.js} +37 -43
  4. package/out/{chunk-JZD6FXRT.js.map → chunk-MJYDJPXG.js.map} +3 -3
  5. package/out/{chunk-I5GSZARI.js → chunk-QAAJZ32T.js} +1 -1
  6. package/out/{chunk-I5GSZARI.js.map → chunk-QAAJZ32T.js.map} +1 -1
  7. package/out/datadog/src/mod.d.ts +1 -1
  8. package/out/react.js +1 -1
  9. package/out/react.js.map +1 -1
  10. package/out/replicache/src/btree/diff.d.ts +2 -2
  11. package/out/replicache/src/btree/node.d.ts +8 -8
  12. package/out/replicache/src/btree/read.d.ts +6 -6
  13. package/out/replicache/src/btree/write.d.ts +7 -7
  14. package/out/replicache/src/call-default-fetch.d.ts +1 -1
  15. package/out/replicache/src/config.d.ts +1 -1
  16. package/out/replicache/src/connection-loop-delegates.d.ts +2 -2
  17. package/out/replicache/src/connection-loop.d.ts +1 -1
  18. package/out/replicache/src/cookies.d.ts +2 -2
  19. package/out/replicache/src/dag/chunk.d.ts +1 -1
  20. package/out/replicache/src/dag/gc.d.ts +2 -2
  21. package/out/replicache/src/dag/key.d.ts +2 -2
  22. package/out/replicache/src/dag/lazy-store.d.ts +5 -5
  23. package/out/replicache/src/dag/store-impl.d.ts +5 -5
  24. package/out/replicache/src/dag/store.d.ts +3 -3
  25. package/out/replicache/src/dag/visitor.d.ts +3 -3
  26. package/out/replicache/src/db/commit.d.ts +8 -8
  27. package/out/replicache/src/db/index.d.ts +7 -7
  28. package/out/replicache/src/db/read.d.ts +8 -8
  29. package/out/replicache/src/db/rebase.d.ts +7 -7
  30. package/out/replicache/src/db/scan.d.ts +1 -1
  31. package/out/replicache/src/db/write.d.ts +14 -14
  32. package/out/replicache/src/filter-async-iterable.d.ts +1 -1
  33. package/out/replicache/src/format-version.d.ts +2 -2
  34. package/out/replicache/src/frozen-json.d.ts +2 -2
  35. package/out/replicache/src/get-default-puller.d.ts +1 -1
  36. package/out/replicache/src/get-default-pusher.d.ts +1 -1
  37. package/out/replicache/src/hash.d.ts +1 -1
  38. package/out/replicache/src/impl.d.ts +3 -3
  39. package/out/replicache/src/index-defs.d.ts +1 -1
  40. package/out/replicache/src/kv/idb-store-with-mem-fallback.d.ts +1 -1
  41. package/out/replicache/src/kv/idb-store.d.ts +1 -1
  42. package/out/replicache/src/kv/idb-store.d.ts.map +1 -1
  43. package/out/replicache/src/kv/mem-store.d.ts +1 -1
  44. package/out/replicache/src/kv/read-impl.d.ts +2 -2
  45. package/out/replicache/src/kv/store.d.ts +1 -1
  46. package/out/replicache/src/kv/write-impl-base.d.ts +3 -3
  47. package/out/replicache/src/kv/write-impl.d.ts +3 -3
  48. package/out/replicache/src/merge-async-iterables.d.ts +1 -1
  49. package/out/replicache/src/mod.d.ts +36 -36
  50. package/out/replicache/src/mutation-recovery.d.ts +8 -8
  51. package/out/replicache/src/new-client-channel.d.ts +1 -1
  52. package/out/replicache/src/on-persist-channel.d.ts +1 -1
  53. package/out/replicache/src/patch-operation.d.ts +1 -1
  54. package/out/replicache/src/pending-mutations.d.ts +3 -3
  55. package/out/replicache/src/persist/client-gc.d.ts +3 -3
  56. package/out/replicache/src/persist/client-group-gc.d.ts +2 -2
  57. package/out/replicache/src/persist/client-groups.d.ts +5 -5
  58. package/out/replicache/src/persist/clients.d.ts +9 -9
  59. package/out/replicache/src/persist/collect-idb-databases.d.ts +3 -3
  60. package/out/replicache/src/persist/gather-mem-only-visitor.d.ts +4 -4
  61. package/out/replicache/src/persist/gather-not-cached-visitor.d.ts +5 -5
  62. package/out/replicache/src/persist/heartbeat.d.ts +3 -3
  63. package/out/replicache/src/persist/idb-databases-store.d.ts +1 -1
  64. package/out/replicache/src/persist/persist.d.ts +6 -6
  65. package/out/replicache/src/persist/refresh.d.ts +7 -7
  66. package/out/replicache/src/process-scheduler.d.ts +1 -1
  67. package/out/replicache/src/puller.d.ts +6 -6
  68. package/out/replicache/src/pusher.d.ts +3 -3
  69. package/out/replicache/src/replicache-impl.d.ts +12 -12
  70. package/out/replicache/src/replicache-options.d.ts +5 -5
  71. package/out/replicache/src/replicache.d.ts +10 -10
  72. package/out/replicache/src/scan-iterator.d.ts +6 -6
  73. package/out/replicache/src/scan-options.d.ts +2 -2
  74. package/out/replicache/src/subscriptions.d.ts +7 -7
  75. package/out/replicache/src/subscriptions.d.ts.map +1 -1
  76. package/out/replicache/src/sync/diff.d.ts +6 -6
  77. package/out/replicache/src/sync/ids.d.ts +1 -1
  78. package/out/replicache/src/sync/patch.d.ts +2 -2
  79. package/out/replicache/src/sync/pull.d.ts +11 -11
  80. package/out/replicache/src/sync/push.d.ts +4 -4
  81. package/out/replicache/src/sync/request-id.d.ts +1 -1
  82. package/out/replicache/src/transactions.d.ts +9 -9
  83. package/out/replicache/src/types.d.ts +5 -5
  84. package/out/shared/src/btree-set.js +1 -1
  85. package/out/shared/src/deep-clone.d.ts +1 -1
  86. package/out/shared/src/iterables.js +1 -1
  87. package/out/shared/src/json-schema.d.ts +1 -1
  88. package/out/shared/src/json-schema.js +3 -3
  89. package/out/shared/src/json.js +3 -3
  90. package/out/shared/src/options.d.ts +1 -1
  91. package/out/shared/src/options.js +3 -3
  92. package/out/shared/src/queue.js +1 -1
  93. package/out/shared/src/random-values.d.ts +1 -1
  94. package/out/shared/src/random-values.d.ts.map +1 -1
  95. package/out/shared/src/sleep.js +1 -1
  96. package/out/solid.js +3 -3
  97. package/out/solid.js.map +1 -1
  98. package/out/zero/src/advanced.d.ts +1 -1
  99. package/out/zero/src/build-schema.d.ts +1 -1
  100. package/out/zero/src/build-schema.js +1 -1
  101. package/out/zero/src/change-protocol.d.ts +1 -1
  102. package/out/zero/src/change-protocol.js +1 -1
  103. package/out/zero/src/cli.d.ts +1 -1
  104. package/out/zero/src/cli.js +1 -1
  105. package/out/zero/src/react.d.ts +1 -1
  106. package/out/zero/src/server/change-streamer.d.ts +1 -1
  107. package/out/zero/src/server/change-streamer.js +1 -1
  108. package/out/zero/src/server/main.d.ts +1 -1
  109. package/out/zero/src/server/main.js +1 -1
  110. package/out/zero/src/server/multi/main.d.ts +1 -1
  111. package/out/zero/src/server/multi/main.js +1 -1
  112. package/out/zero/src/server/replicator.d.ts +1 -1
  113. package/out/zero/src/server/replicator.js +1 -1
  114. package/out/zero/src/server/syncer.d.ts +1 -1
  115. package/out/zero/src/server/syncer.js +1 -1
  116. package/out/zero/src/solid.d.ts +1 -1
  117. package/out/zero/src/zero-cache-dev.js +3 -3
  118. package/out/zero/src/zero.d.ts +1 -1
  119. package/out/zero-advanced/src/mod.d.ts +8 -8
  120. package/out/zero-advanced/src/mod.d.ts.map +1 -1
  121. package/out/zero-cache/src/auth/jwt.d.ts +1 -1
  122. package/out/zero-cache/src/auth/load-schema.d.ts +3 -3
  123. package/out/zero-cache/src/auth/load-schema.d.ts.map +1 -1
  124. package/out/zero-cache/src/auth/load-schema.js +3 -3
  125. package/out/zero-cache/src/auth/load-schema.js.map +1 -1
  126. package/out/zero-cache/src/auth/read-authorizer.d.ts +2 -2
  127. package/out/zero-cache/src/auth/read-authorizer.d.ts.map +1 -1
  128. package/out/zero-cache/src/auth/read-authorizer.js +3 -3
  129. package/out/zero-cache/src/auth/read-authorizer.js.map +1 -1
  130. package/out/zero-cache/src/auth/write-authorizer.d.ts +5 -5
  131. package/out/zero-cache/src/auth/write-authorizer.js +14 -14
  132. package/out/zero-cache/src/config/zero-config.d.ts +2 -2
  133. package/out/zero-cache/src/config/zero-config.js +6 -6
  134. package/out/zero-cache/src/db/create.d.ts +1 -1
  135. package/out/zero-cache/src/db/create.js +1 -1
  136. package/out/zero-cache/src/db/lite-tables.d.ts +2 -2
  137. package/out/zero-cache/src/db/lite-tables.js +5 -5
  138. package/out/zero-cache/src/db/migration-lite.d.ts +2 -2
  139. package/out/zero-cache/src/db/migration-lite.js +4 -4
  140. package/out/zero-cache/src/db/migration.d.ts +2 -2
  141. package/out/zero-cache/src/db/migration.js +3 -3
  142. package/out/zero-cache/src/db/pg-to-lite.d.ts +2 -2
  143. package/out/zero-cache/src/db/pg-to-lite.js +5 -5
  144. package/out/zero-cache/src/db/short-lived-client.d.ts +1 -1
  145. package/out/zero-cache/src/db/short-lived-client.js +1 -1
  146. package/out/zero-cache/src/db/specs.d.ts +4 -4
  147. package/out/zero-cache/src/db/specs.js +3 -3
  148. package/out/zero-cache/src/db/statements.d.ts +2 -2
  149. package/out/zero-cache/src/db/statements.js +2 -2
  150. package/out/zero-cache/src/db/transaction-pool.d.ts +4 -4
  151. package/out/zero-cache/src/db/transaction-pool.js +3 -3
  152. package/out/zero-cache/src/server/change-streamer.d.ts +1 -1
  153. package/out/zero-cache/src/server/change-streamer.js +13 -13
  154. package/out/zero-cache/src/server/logging.d.ts +1 -1
  155. package/out/zero-cache/src/server/logging.js +2 -2
  156. package/out/zero-cache/src/server/main.d.ts +1 -1
  157. package/out/zero-cache/src/server/main.js +13 -13
  158. package/out/zero-cache/src/server/multi/config.d.ts +2 -2
  159. package/out/zero-cache/src/server/multi/config.js +3 -3
  160. package/out/zero-cache/src/server/multi/main.d.ts +1 -1
  161. package/out/zero-cache/src/server/multi/main.js +8 -8
  162. package/out/zero-cache/src/server/multi/runtime.js +1 -1
  163. package/out/zero-cache/src/server/multi/tenant-dispatcher.d.ts +2 -2
  164. package/out/zero-cache/src/server/multi/tenant-dispatcher.js +2 -2
  165. package/out/zero-cache/src/server/replicator.d.ts +1 -1
  166. package/out/zero-cache/src/server/replicator.js +10 -10
  167. package/out/zero-cache/src/server/syncer.d.ts +1 -1
  168. package/out/zero-cache/src/server/syncer.js +21 -21
  169. package/out/zero-cache/src/services/change-source/pg/change-source.d.ts +8 -8
  170. package/out/zero-cache/src/services/change-source/pg/change-source.js +24 -24
  171. package/out/zero-cache/src/services/change-source/pg/initial-sync.d.ts +2 -2
  172. package/out/zero-cache/src/services/change-source/pg/initial-sync.js +15 -15
  173. package/out/zero-cache/src/services/change-source/pg/lsn.d.ts +2 -2
  174. package/out/zero-cache/src/services/change-source/pg/lsn.js +2 -2
  175. package/out/zero-cache/src/services/change-source/pg/schema/ddl.d.ts +1 -1
  176. package/out/zero-cache/src/services/change-source/pg/schema/ddl.js +3 -3
  177. package/out/zero-cache/src/services/change-source/pg/schema/init.d.ts +2 -2
  178. package/out/zero-cache/src/services/change-source/pg/schema/init.js +3 -3
  179. package/out/zero-cache/src/services/change-source/pg/schema/published.d.ts +1 -1
  180. package/out/zero-cache/src/services/change-source/pg/schema/published.js +3 -3
  181. package/out/zero-cache/src/services/change-source/pg/schema/shard.d.ts +4 -4
  182. package/out/zero-cache/src/services/change-source/pg/schema/shard.js +7 -7
  183. package/out/zero-cache/src/services/change-source/pg/schema/validation.d.ts +1 -1
  184. package/out/zero-cache/src/services/change-source/pg/schema/validation.js +4 -4
  185. package/out/zero-cache/src/services/change-source/pg/sync-schema.d.ts +2 -2
  186. package/out/zero-cache/src/services/change-source/pg/sync-schema.js +3 -3
  187. package/out/zero-cache/src/services/change-source/protocol/current/control.d.ts +1 -1
  188. package/out/zero-cache/src/services/change-source/protocol/current/control.js +1 -1
  189. package/out/zero-cache/src/services/change-source/protocol/current/data.d.ts +14 -14
  190. package/out/zero-cache/src/services/change-source/protocol/current/data.js +3 -3
  191. package/out/zero-cache/src/services/change-source/protocol/current/downstream.d.ts +16 -16
  192. package/out/zero-cache/src/services/change-source/protocol/current/downstream.js +4 -4
  193. package/out/zero-cache/src/services/change-source/protocol/current/mod.d.ts +6 -6
  194. package/out/zero-cache/src/services/change-source/protocol/current/mod.js +6 -6
  195. package/out/zero-cache/src/services/change-source/protocol/current/status.d.ts +1 -1
  196. package/out/zero-cache/src/services/change-source/protocol/current/status.js +1 -1
  197. package/out/zero-cache/src/services/change-source/protocol/current/upstream.d.ts +1 -1
  198. package/out/zero-cache/src/services/change-source/protocol/current/upstream.js +2 -2
  199. package/out/zero-cache/src/services/change-source/protocol/mod.d.ts +1 -1
  200. package/out/zero-cache/src/services/change-source/protocol/mod.js +1 -1
  201. package/out/zero-cache/src/services/change-streamer/change-streamer-http.d.ts +4 -4
  202. package/out/zero-cache/src/services/change-streamer/change-streamer-http.js +7 -7
  203. package/out/zero-cache/src/services/change-streamer/change-streamer-service.d.ts +6 -6
  204. package/out/zero-cache/src/services/change-streamer/change-streamer-service.js +13 -13
  205. package/out/zero-cache/src/services/change-streamer/change-streamer.d.ts +10 -10
  206. package/out/zero-cache/src/services/change-streamer/change-streamer.js +3 -3
  207. package/out/zero-cache/src/services/change-streamer/forwarder.d.ts +2 -2
  208. package/out/zero-cache/src/services/change-streamer/forwarder.js +2 -2
  209. package/out/zero-cache/src/services/change-streamer/schema/init.d.ts +1 -1
  210. package/out/zero-cache/src/services/change-streamer/schema/init.js +2 -2
  211. package/out/zero-cache/src/services/change-streamer/schema/tables.d.ts +3 -3
  212. package/out/zero-cache/src/services/change-streamer/schema/tables.js +2 -2
  213. package/out/zero-cache/src/services/change-streamer/storer.d.ts +6 -6
  214. package/out/zero-cache/src/services/change-streamer/storer.js +9 -9
  215. package/out/zero-cache/src/services/change-streamer/subscriber.d.ts +5 -5
  216. package/out/zero-cache/src/services/change-streamer/subscriber.js +5 -5
  217. package/out/zero-cache/src/services/dispatcher/connect-params.d.ts +1 -1
  218. package/out/zero-cache/src/services/dispatcher/connect-params.js +3 -3
  219. package/out/zero-cache/src/services/dispatcher/sync-dispatcher.d.ts +2 -2
  220. package/out/zero-cache/src/services/dispatcher/sync-dispatcher.js +4 -4
  221. package/out/zero-cache/src/services/dispatcher/websocket-handoff.d.ts +2 -2
  222. package/out/zero-cache/src/services/dispatcher/websocket-handoff.js +3 -3
  223. package/out/zero-cache/src/services/http-service.d.ts +1 -1
  224. package/out/zero-cache/src/services/http-service.js +2 -2
  225. package/out/zero-cache/src/services/life-cycle.d.ts +2 -2
  226. package/out/zero-cache/src/services/life-cycle.js +2 -2
  227. package/out/zero-cache/src/services/limiter/sliding-window-limiter.js +1 -1
  228. package/out/zero-cache/src/services/litestream/commands.d.ts +1 -1
  229. package/out/zero-cache/src/services/litestream/commands.js +2 -2
  230. package/out/zero-cache/src/services/mutagen/mutagen.d.ts +8 -8
  231. package/out/zero-cache/src/services/mutagen/mutagen.d.ts.map +1 -1
  232. package/out/zero-cache/src/services/mutagen/mutagen.js +14 -14
  233. package/out/zero-cache/src/services/replicator/change-processor.d.ts +23 -0
  234. package/out/zero-cache/src/services/replicator/change-processor.d.ts.map +1 -0
  235. package/out/zero-cache/src/services/replicator/change-processor.js +415 -0
  236. package/out/zero-cache/src/services/replicator/change-processor.js.map +1 -0
  237. package/out/zero-cache/src/services/replicator/incremental-sync.d.ts +5 -27
  238. package/out/zero-cache/src/services/replicator/incremental-sync.d.ts.map +1 -1
  239. package/out/zero-cache/src/services/replicator/incremental-sync.js +9 -421
  240. package/out/zero-cache/src/services/replicator/incremental-sync.js.map +1 -1
  241. package/out/zero-cache/src/services/replicator/notifier.d.ts +2 -2
  242. package/out/zero-cache/src/services/replicator/notifier.js +1 -1
  243. package/out/zero-cache/src/services/replicator/replicator.d.ts +5 -5
  244. package/out/zero-cache/src/services/replicator/replicator.js +3 -3
  245. package/out/zero-cache/src/services/replicator/schema/change-log.d.ts +6 -6
  246. package/out/zero-cache/src/services/replicator/schema/change-log.js +4 -4
  247. package/out/zero-cache/src/services/replicator/schema/replication-state.d.ts +3 -3
  248. package/out/zero-cache/src/services/replicator/schema/replication-state.js +3 -3
  249. package/out/zero-cache/src/services/runner.d.ts +1 -1
  250. package/out/zero-cache/src/services/running-state.d.ts +1 -1
  251. package/out/zero-cache/src/services/running-state.js +2 -2
  252. package/out/zero-cache/src/services/view-syncer/client-handler.d.ts +7 -7
  253. package/out/zero-cache/src/services/view-syncer/client-handler.js +9 -9
  254. package/out/zero-cache/src/services/view-syncer/cvr-store.d.ts +6 -6
  255. package/out/zero-cache/src/services/view-syncer/cvr-store.js +17 -17
  256. package/out/zero-cache/src/services/view-syncer/cvr.d.ts +6 -6
  257. package/out/zero-cache/src/services/view-syncer/cvr.js +8 -8
  258. package/out/zero-cache/src/services/view-syncer/database-storage.d.ts +2 -2
  259. package/out/zero-cache/src/services/view-syncer/database-storage.js +1 -1
  260. package/out/zero-cache/src/services/view-syncer/drain-coordinator.js +1 -1
  261. package/out/zero-cache/src/services/view-syncer/key-columns.d.ts +2 -2
  262. package/out/zero-cache/src/services/view-syncer/key-columns.js +3 -3
  263. package/out/zero-cache/src/services/view-syncer/pipeline-driver.d.ts +6 -6
  264. package/out/zero-cache/src/services/view-syncer/pipeline-driver.js +8 -8
  265. package/out/zero-cache/src/services/view-syncer/schema/cvr.d.ts +2 -2
  266. package/out/zero-cache/src/services/view-syncer/schema/cvr.js +4 -4
  267. package/out/zero-cache/src/services/view-syncer/schema/init.d.ts +1 -1
  268. package/out/zero-cache/src/services/view-syncer/schema/init.js +2 -2
  269. package/out/zero-cache/src/services/view-syncer/schema/types.d.ts +12 -12
  270. package/out/zero-cache/src/services/view-syncer/schema/types.js +4 -4
  271. package/out/zero-cache/src/services/view-syncer/snapshotter.d.ts +5 -5
  272. package/out/zero-cache/src/services/view-syncer/snapshotter.js +12 -12
  273. package/out/zero-cache/src/services/view-syncer/view-syncer.d.ts +9 -9
  274. package/out/zero-cache/src/services/view-syncer/view-syncer.js +20 -20
  275. package/out/zero-cache/src/types/bigint-json.d.ts +1 -1
  276. package/out/zero-cache/src/types/bigint-json.js +1 -1
  277. package/out/zero-cache/src/types/error-for-client.d.ts +1 -1
  278. package/out/zero-cache/src/types/lexi-version.js +2 -2
  279. package/out/zero-cache/src/types/lite.d.ts +4 -4
  280. package/out/zero-cache/src/types/lite.js +2 -2
  281. package/out/zero-cache/src/types/pg.d.ts +3 -3
  282. package/out/zero-cache/src/types/pg.js +2 -2
  283. package/out/zero-cache/src/types/row-key.d.ts +1 -1
  284. package/out/zero-cache/src/types/row-key.js +3 -3
  285. package/out/zero-cache/src/types/schema-versions.d.ts +1 -1
  286. package/out/zero-cache/src/types/schema-versions.js +2 -2
  287. package/out/zero-cache/src/types/streams.d.ts +2 -2
  288. package/out/zero-cache/src/types/streams.js +4 -4
  289. package/out/zero-cache/src/types/subscription.d.ts +1 -1
  290. package/out/zero-cache/src/types/timeout.js +1 -1
  291. package/out/zero-cache/src/workers/connection.d.ts +5 -5
  292. package/out/zero-cache/src/workers/connection.js +9 -9
  293. package/out/zero-cache/src/workers/replicator.d.ts +5 -5
  294. package/out/zero-cache/src/workers/replicator.js +4 -4
  295. package/out/zero-cache/src/workers/syncer.d.ts +8 -8
  296. package/out/zero-cache/src/workers/syncer.js +10 -10
  297. package/out/zero-client/src/client/context.d.ts +6 -6
  298. package/out/zero-client/src/client/crud.d.ts +6 -6
  299. package/out/zero-client/src/client/crud.d.ts.map +1 -1
  300. package/out/zero-client/src/client/keys.d.ts +2 -2
  301. package/out/zero-client/src/client/log-options.d.ts +2 -2
  302. package/out/zero-client/src/client/log-options.d.ts.map +1 -1
  303. package/out/zero-client/src/client/metrics.d.ts +2 -2
  304. package/out/zero-client/src/client/options.d.ts +3 -3
  305. package/out/zero-client/src/client/query-manager.d.ts +6 -6
  306. package/out/zero-client/src/client/reload-error-handler.d.ts +1 -1
  307. package/out/zero-client/src/client/replicache-types.d.ts +1 -1
  308. package/out/zero-client/src/client/server-error.d.ts +2 -2
  309. package/out/zero-client/src/client/server-option.d.ts +1 -1
  310. package/out/zero-client/src/client/zero-poke-handler.d.ts +4 -4
  311. package/out/zero-client/src/client/zero-poke-handler.d.ts.map +1 -1
  312. package/out/zero-client/src/client/zero.d.ts +12 -12
  313. package/out/zero-client/src/mod.d.ts +17 -17
  314. package/out/zero-client/src/mod.d.ts.map +1 -1
  315. package/out/zero-client/src/util/socket.d.ts +1 -1
  316. package/out/zero-protocol/src/ast-hash.d.ts +1 -1
  317. package/out/zero-protocol/src/ast-hash.js +2 -2
  318. package/out/zero-protocol/src/ast.d.ts +2 -2
  319. package/out/zero-protocol/src/ast.js +5 -5
  320. package/out/zero-protocol/src/change-desired-queries.d.ts +3 -3
  321. package/out/zero-protocol/src/change-desired-queries.js +2 -2
  322. package/out/zero-protocol/src/clients-patch.d.ts +1 -1
  323. package/out/zero-protocol/src/clients-patch.js +1 -1
  324. package/out/zero-protocol/src/connect.d.ts +3 -3
  325. package/out/zero-protocol/src/connect.js +2 -2
  326. package/out/zero-protocol/src/data.d.ts +3 -3
  327. package/out/zero-protocol/src/data.js +2 -2
  328. package/out/zero-protocol/src/delete-clients.d.ts +1 -1
  329. package/out/zero-protocol/src/delete-clients.js +1 -1
  330. package/out/zero-protocol/src/down.d.ts +6 -6
  331. package/out/zero-protocol/src/down.js +7 -7
  332. package/out/zero-protocol/src/error.d.ts +1 -1
  333. package/out/zero-protocol/src/error.js +2 -2
  334. package/out/zero-protocol/src/mod.d.ts +14 -14
  335. package/out/zero-protocol/src/mod.js +14 -14
  336. package/out/zero-protocol/src/ping.d.ts +1 -1
  337. package/out/zero-protocol/src/ping.js +1 -1
  338. package/out/zero-protocol/src/poke.d.ts +9 -9
  339. package/out/zero-protocol/src/poke.js +5 -5
  340. package/out/zero-protocol/src/pong.d.ts +1 -1
  341. package/out/zero-protocol/src/pong.js +1 -1
  342. package/out/zero-protocol/src/primary-key.d.ts +1 -1
  343. package/out/zero-protocol/src/primary-key.js +1 -1
  344. package/out/zero-protocol/src/protocol-version.js +1 -1
  345. package/out/zero-protocol/src/pull.d.ts +1 -1
  346. package/out/zero-protocol/src/pull.js +2 -2
  347. package/out/zero-protocol/src/push.d.ts +26 -26
  348. package/out/zero-protocol/src/push.js +5 -5
  349. package/out/zero-protocol/src/queries-patch.d.ts +4 -4
  350. package/out/zero-protocol/src/queries-patch.js +2 -2
  351. package/out/zero-protocol/src/row-patch.d.ts +5 -5
  352. package/out/zero-protocol/src/row-patch.js +4 -4
  353. package/out/zero-protocol/src/up.d.ts +7 -7
  354. package/out/zero-protocol/src/up.js +7 -7
  355. package/out/zero-protocol/src/up.js.map +1 -1
  356. package/out/zero-protocol/src/version.d.ts +1 -1
  357. package/out/zero-protocol/src/version.js +1 -1
  358. package/out/zero-protocol/src/warm.d.ts +1 -1
  359. package/out/zero-protocol/src/warm.js +1 -1
  360. package/out/zero-react/src/mod.d.ts +8 -8
  361. package/out/zero-react/src/use-query.d.ts +4 -4
  362. package/out/zero-react/src/use-zero.d.ts +2 -2
  363. package/out/zero-schema/src/build-schema-options.d.ts +1 -1
  364. package/out/zero-schema/src/build-schema-options.js +1 -1
  365. package/out/zero-schema/src/build-schema.js +5 -5
  366. package/out/zero-schema/src/build-schema.js.map +1 -1
  367. package/out/zero-schema/src/builder/relationship-builder.d.ts +2 -2
  368. package/out/zero-schema/src/builder/schema-builder.d.ts +3 -3
  369. package/out/zero-schema/src/builder/schema-builder.js +1 -1
  370. package/out/zero-schema/src/builder/table-builder.d.ts +3 -3
  371. package/out/zero-schema/src/compiled-permissions.d.ts +18 -18
  372. package/out/zero-schema/src/compiled-permissions.js +2 -2
  373. package/out/zero-schema/src/mod.d.ts +4 -4
  374. package/out/zero-schema/src/mod.d.ts.map +1 -1
  375. package/out/zero-schema/src/permissions.d.ts +5 -5
  376. package/out/zero-schema/src/schema-config.d.ts +4 -4
  377. package/out/zero-schema/src/schema-config.d.ts.map +1 -1
  378. package/out/zero-schema/src/schema-config.js +4 -4
  379. package/out/zero-schema/src/schema-config.js.map +1 -1
  380. package/out/zero-schema/src/table-schema.d.ts +1 -1
  381. package/out/zero-solid/src/create-zero.d.ts +2 -2
  382. package/out/zero-solid/src/create-zero.d.ts.map +1 -1
  383. package/out/zero-solid/src/mod.d.ts +2 -2
  384. package/out/zero-solid/src/solid-view.d.ts +3 -3
  385. package/out/zero-solid/src/use-query.d.ts +3 -3
  386. package/out/zero-solid/src/use-query.d.ts.map +1 -1
  387. package/out/zero.js +3 -3
  388. package/out/zql/src/builder/builder.d.ts +7 -7
  389. package/out/zql/src/builder/builder.js +10 -10
  390. package/out/zql/src/builder/filter.d.ts +2 -2
  391. package/out/zql/src/builder/filter.js +2 -2
  392. package/out/zql/src/builder/like.d.ts +1 -1
  393. package/out/zql/src/builder/like.js +1 -1
  394. package/out/zql/src/ivm/array-view.d.ts +4 -4
  395. package/out/zql/src/ivm/array-view.js +2 -2
  396. package/out/zql/src/ivm/change.d.ts +2 -2
  397. package/out/zql/src/ivm/constraint.d.ts +2 -2
  398. package/out/zql/src/ivm/constraint.js +3 -3
  399. package/out/zql/src/ivm/data.d.ts +3 -3
  400. package/out/zql/src/ivm/data.js +1 -1
  401. package/out/zql/src/ivm/exists.d.ts +6 -6
  402. package/out/zql/src/ivm/exists.js +7 -7
  403. package/out/zql/src/ivm/fan-in.d.ts +6 -6
  404. package/out/zql/src/ivm/fan-in.js +4 -4
  405. package/out/zql/src/ivm/fan-out.d.ts +5 -5
  406. package/out/zql/src/ivm/filter-push.d.ts +3 -3
  407. package/out/zql/src/ivm/filter-push.d.ts.map +1 -1
  408. package/out/zql/src/ivm/filter-push.js +2 -2
  409. package/out/zql/src/ivm/filter-push.js.map +1 -1
  410. package/out/zql/src/ivm/filter.d.ts +5 -5
  411. package/out/zql/src/ivm/filter.js +2 -2
  412. package/out/zql/src/ivm/join.d.ts +7 -7
  413. package/out/zql/src/ivm/join.js +4 -4
  414. package/out/zql/src/ivm/maybe-split-and-push-edit-change.d.ts +3 -3
  415. package/out/zql/src/ivm/memory-source.d.ts +11 -11
  416. package/out/zql/src/ivm/memory-source.js +9 -9
  417. package/out/zql/src/ivm/memory-storage.d.ts +3 -3
  418. package/out/zql/src/ivm/operator.d.ts +7 -7
  419. package/out/zql/src/ivm/operator.js +1 -1
  420. package/out/zql/src/ivm/schema.d.ts +4 -4
  421. package/out/zql/src/ivm/skip.d.ts +6 -6
  422. package/out/zql/src/ivm/skip.js +2 -2
  423. package/out/zql/src/ivm/source.d.ts +3 -3
  424. package/out/zql/src/ivm/take.d.ts +6 -6
  425. package/out/zql/src/ivm/take.js +8 -8
  426. package/out/zql/src/ivm/view-apply-change.d.ts +3 -3
  427. package/out/zql/src/ivm/view-apply-change.js +2 -2
  428. package/out/zql/src/ivm/view.d.ts +4 -4
  429. package/out/zql/src/query/auth-query.d.ts +7 -7
  430. package/out/zql/src/query/auth-query.js +2 -2
  431. package/out/zql/src/query/dnf.d.ts +1 -1
  432. package/out/zql/src/query/dnf.js +2 -2
  433. package/out/zql/src/query/expression.d.ts +3 -4
  434. package/out/zql/src/query/expression.d.ts.map +1 -1
  435. package/out/zql/src/query/expression.js +2 -2
  436. package/out/zql/src/query/query-impl.d.ts +8 -8
  437. package/out/zql/src/query/query-impl.d.ts.map +1 -1
  438. package/out/zql/src/query/query-impl.js +7 -7
  439. package/out/zql/src/query/query-impl.js.map +1 -1
  440. package/out/zql/src/query/query-internal.d.ts +4 -4
  441. package/out/zql/src/query/query.d.ts +7 -10
  442. package/out/zql/src/query/query.d.ts.map +1 -1
  443. package/out/zql/src/query/typed-view.d.ts +1 -1
  444. package/out/zqlite/src/db.js +2 -2
  445. package/out/zqlite/src/internal/statement-cache.d.ts +1 -1
  446. package/out/zqlite/src/internal/statement-cache.d.ts.map +1 -1
  447. package/out/zqlite/src/internal/statement-cache.js +1 -1
  448. package/out/zqlite/src/internal/statement-cache.js.map +1 -1
  449. package/out/zqlite/src/table-source.d.ts +6 -6
  450. package/out/zqlite/src/table-source.js +11 -11
  451. package/package.json +4 -4
  452. /package/out/{chunk-F5QR3K72.js.map → chunk-424PT5DM.js.map} +0 -0
@@ -1,6 +1,6 @@
1
- import type { ReadonlyJSONValue } from '../../../shared/src/json.js';
2
- import { type FrozenJSONValue } from '../frozen-json.js';
3
- import type { Read } from './store.js';
1
+ import type { ReadonlyJSONValue } from '../../../shared/src/json.ts';
2
+ import { type FrozenJSONValue } from '../frozen-json.ts';
3
+ import type { Read } from './store.ts';
4
4
  export declare const deleteSentinel: unique symbol;
5
5
  type DeleteSentinel = typeof deleteSentinel;
6
6
  export declare class WriteImplBase {
@@ -1,6 +1,6 @@
1
- import type { FrozenJSONValue } from '../frozen-json.js';
2
- import type { Write } from './store.js';
3
- import { WriteImplBase } from './write-impl-base.js';
1
+ import type { FrozenJSONValue } from '../frozen-json.ts';
2
+ import type { Write } from './store.ts';
3
+ import { WriteImplBase } from './write-impl-base.ts';
4
4
  export declare class WriteImpl extends WriteImplBase implements Write {
5
5
  #private;
6
6
  constructor(map: Map<string, FrozenJSONValue>, release: () => void);
@@ -1,4 +1,4 @@
1
- import { type IterableUnion } from './iterable-union.js';
1
+ import { type IterableUnion } from './iterable-union.ts';
2
2
  /**
3
3
  * Merges an iterable on to another iterable.
4
4
  *
@@ -1,39 +1,39 @@
1
1
  export { consoleLogSink } from '@rocicorp/logger';
2
2
  export type { LogLevel, LogSink } from '@rocicorp/logger';
3
- export type { JSONObject, JSONValue, ReadonlyJSONObject, ReadonlyJSONValue, } from '../../shared/src/json.js';
4
- export type { MaybePromise } from '../../shared/src/types.js';
5
- export type { Diff as ExperimentalDiff, DiffOperation as ExperimentalDiffOperation, DiffOperationAdd as ExperimentalDiffOperationAdd, DiffOperationChange as ExperimentalDiffOperationChange, DiffOperationDel as ExperimentalDiffOperationDel, IndexDiff as ExperimentalIndexDiff, NoIndexDiff as ExperimentalNoIndexDiff, } from './btree/node.js';
6
- export type { Cookie } from './cookies.js';
7
- export type { IndexKey } from './db/index.js';
8
- export type { ClientStateNotFoundResponse, VersionNotSupportedResponse, } from './error-responses.js';
9
- export { filterAsyncIterable } from './filter-async-iterable.js';
10
- export { getDefaultPuller } from './get-default-puller.js';
11
- export { getDefaultPusher } from './get-default-pusher.js';
12
- export type { HTTPRequestInfo } from './http-request-info.js';
13
- export type { IndexDefinition, IndexDefinitions } from './index-defs.js';
14
- export type { IterableUnion } from './iterable-union.js';
15
- export { IDBNotFoundError } from './kv/idb-store.js';
16
- export type { CreateStore as CreateKVStore, DropStore as DropKVStore, Read as KVRead, Store as KVStore, StoreProvider as KVStoreProvider, Write as KVWrite, } from './kv/store.js';
17
- export { mergeAsyncIterables } from './merge-async-iterables.js';
18
- export type { PatchOperation } from './patch-operation.js';
19
- export type { PendingMutation } from './pending-mutations.js';
20
- export { deleteAllReplicacheData, dropAllDatabases, dropDatabase, type DropDatabaseOptions, } from './persist/collect-idb-databases.js';
21
- export type { Puller, PullerResult, PullResponse } from './puller.js';
22
- export type { Pusher, PusherResult, PushError, PushResponse } from './pusher.js';
23
- export type { ReplicacheOptions } from './replicache-options.js';
24
- export { makeIDBName, Replicache } from './replicache.js';
25
- export { makeScanResult } from './scan-iterator.js';
26
- export type { AsyncIterableIteratorToArray, GetIndexScanIterator, GetScanIterator, ScanResult, } from './scan-iterator.js';
27
- export { isScanIndexOptions } from './scan-options.js';
28
- export type { KeyTypeForScanOptions, ScanIndexOptions, ScanNoIndexOptions, ScanOptionIndexedStartKey, ScanOptions, } from './scan-options.js';
29
- export type { WatchCallbackForOptions as ExperimentalWatchCallbackForOptions, WatchIndexCallback as ExperimentalWatchIndexCallback, WatchIndexOptions as ExperimentalWatchIndexOptions, WatchNoIndexCallback as ExperimentalWatchNoIndexCallback, WatchNoIndexOptions as ExperimentalWatchNoIndexOptions, WatchOptions as ExperimentalWatchOptions, SubscribeOptions, } from './subscriptions.js';
30
- export type { ClientGroupID, ClientID } from './sync/ids.js';
31
- export { PullError } from './sync/pull-error.js';
32
- export type { PullRequest } from './sync/pull.js';
33
- export type { Mutation, PushRequest } from './sync/push.js';
34
- export { TEST_LICENSE_KEY } from './test-license-key.js';
35
- export { TransactionClosedError } from './transaction-closed-error.js';
36
- export type { CreateIndexDefinition, DeepReadonly, DeepReadonlyObject, ReadTransaction, TransactionEnvironment, TransactionLocation, TransactionReason, WriteTransaction, } from './transactions.js';
37
- export type { MakeMutator, MakeMutators, MutatorDefs, MutatorReturn, Poke, RequestOptions, UpdateNeededReason, } from './types.js';
38
- export { version } from './version.js';
3
+ export type { JSONObject, JSONValue, ReadonlyJSONObject, ReadonlyJSONValue, } from '../../shared/src/json.ts';
4
+ export type { MaybePromise } from '../../shared/src/types.ts';
5
+ export type { Diff as ExperimentalDiff, DiffOperation as ExperimentalDiffOperation, DiffOperationAdd as ExperimentalDiffOperationAdd, DiffOperationChange as ExperimentalDiffOperationChange, DiffOperationDel as ExperimentalDiffOperationDel, IndexDiff as ExperimentalIndexDiff, NoIndexDiff as ExperimentalNoIndexDiff, } from './btree/node.ts';
6
+ export type { Cookie } from './cookies.ts';
7
+ export type { IndexKey } from './db/index.ts';
8
+ export type { ClientStateNotFoundResponse, VersionNotSupportedResponse, } from './error-responses.ts';
9
+ export { filterAsyncIterable } from './filter-async-iterable.ts';
10
+ export { getDefaultPuller } from './get-default-puller.ts';
11
+ export { getDefaultPusher } from './get-default-pusher.ts';
12
+ export type { HTTPRequestInfo } from './http-request-info.ts';
13
+ export type { IndexDefinition, IndexDefinitions } from './index-defs.ts';
14
+ export type { IterableUnion } from './iterable-union.ts';
15
+ export { IDBNotFoundError } from './kv/idb-store.ts';
16
+ export type { CreateStore as CreateKVStore, DropStore as DropKVStore, Read as KVRead, Store as KVStore, StoreProvider as KVStoreProvider, Write as KVWrite, } from './kv/store.ts';
17
+ export { mergeAsyncIterables } from './merge-async-iterables.ts';
18
+ export type { PatchOperation } from './patch-operation.ts';
19
+ export type { PendingMutation } from './pending-mutations.ts';
20
+ export { deleteAllReplicacheData, dropAllDatabases, dropDatabase, type DropDatabaseOptions, } from './persist/collect-idb-databases.ts';
21
+ export type { Puller, PullerResult, PullResponse } from './puller.ts';
22
+ export type { Pusher, PusherResult, PushError, PushResponse } from './pusher.ts';
23
+ export type { ReplicacheOptions } from './replicache-options.ts';
24
+ export { makeIDBName, Replicache } from './replicache.ts';
25
+ export { makeScanResult } from './scan-iterator.ts';
26
+ export type { AsyncIterableIteratorToArray, GetIndexScanIterator, GetScanIterator, ScanResult, } from './scan-iterator.ts';
27
+ export { isScanIndexOptions } from './scan-options.ts';
28
+ export type { KeyTypeForScanOptions, ScanIndexOptions, ScanNoIndexOptions, ScanOptionIndexedStartKey, ScanOptions, } from './scan-options.ts';
29
+ export type { WatchCallbackForOptions as ExperimentalWatchCallbackForOptions, WatchIndexCallback as ExperimentalWatchIndexCallback, WatchIndexOptions as ExperimentalWatchIndexOptions, WatchNoIndexCallback as ExperimentalWatchNoIndexCallback, WatchNoIndexOptions as ExperimentalWatchNoIndexOptions, WatchOptions as ExperimentalWatchOptions, SubscribeOptions, } from './subscriptions.ts';
30
+ export type { ClientGroupID, ClientID } from './sync/ids.ts';
31
+ export { PullError } from './sync/pull-error.ts';
32
+ export type { PullRequest } from './sync/pull.ts';
33
+ export type { Mutation, PushRequest } from './sync/push.ts';
34
+ export { TEST_LICENSE_KEY } from './test-license-key.ts';
35
+ export { TransactionClosedError } from './transaction-closed-error.ts';
36
+ export type { CreateIndexDefinition, DeepReadonly, DeepReadonlyObject, ReadTransaction, TransactionEnvironment, TransactionLocation, TransactionReason, WriteTransaction, } from './transactions.ts';
37
+ export type { MakeMutator, MakeMutators, MutatorDefs, MutatorReturn, Poke, RequestOptions, UpdateNeededReason, } from './types.ts';
38
+ export { version } from './version.ts';
39
39
  //# sourceMappingURL=mod.d.ts.map
@@ -1,12 +1,12 @@
1
1
  import type { LogContext } from '@rocicorp/logger';
2
- import type { MaybePromise } from '../../shared/src/types.js';
3
- import type { Store } from './dag/store.js';
4
- import type { HTTPRequestInfo } from './http-request-info.js';
5
- import type { CreateStore } from './kv/store.js';
6
- import type { IDBDatabasesStore, IndexedDBDatabase } from './persist/idb-databases-store.js';
7
- import type { Puller } from './puller.js';
8
- import type { Pusher } from './pusher.js';
9
- import type { ClientGroupID, ClientID } from './sync/ids.js';
2
+ import type { MaybePromise } from '../../shared/src/types.ts';
3
+ import type { Store } from './dag/store.ts';
4
+ import type { HTTPRequestInfo } from './http-request-info.ts';
5
+ import type { CreateStore } from './kv/store.ts';
6
+ import type { IDBDatabasesStore, IndexedDBDatabase } from './persist/idb-databases-store.ts';
7
+ import type { Puller } from './puller.ts';
8
+ import type { Pusher } from './pusher.ts';
9
+ import type { ClientGroupID, ClientID } from './sync/ids.ts';
10
10
  interface ReplicacheDelegate {
11
11
  clientID: ClientID;
12
12
  closed: boolean;
@@ -1,4 +1,4 @@
1
- import type { Store } from './dag/store.js';
1
+ import type { Store } from './dag/store.ts';
2
2
  declare function makeChannelNameV0(replicacheName: string): string;
3
3
  declare function makeChannelNameV1(replicacheName: string): string;
4
4
  export { makeChannelNameV0 as makeChannelNameV0ForTesting, makeChannelNameV1 as makeChannelNameV1ForTesting, };
@@ -1,4 +1,4 @@
1
- import type { ClientGroupID, ClientID } from './sync/ids.js';
1
+ import type { ClientGroupID, ClientID } from './sync/ids.ts';
2
2
  export type PersistInfo = {
3
3
  clientGroupID: ClientGroupID;
4
4
  clientID: ClientID;
@@ -1,4 +1,4 @@
1
- import { type ReadonlyJSONObject, type ReadonlyJSONValue } from '../../shared/src/json.js';
1
+ import { type ReadonlyJSONObject, type ReadonlyJSONValue } from '../../shared/src/json.ts';
2
2
  export type PatchOperationInternal = {
3
3
  readonly op: 'put';
4
4
  readonly key: string;
@@ -1,6 +1,6 @@
1
- import type { ReadonlyJSONValue } from '../../shared/src/json.js';
2
- import { type Read } from './dag/store.js';
3
- import type { ClientID } from './sync/ids.js';
1
+ import type { ReadonlyJSONValue } from '../../shared/src/json.ts';
2
+ import { type Read } from './dag/store.ts';
3
+ import type { ClientID } from './sync/ids.ts';
4
4
  export type PendingMutation = {
5
5
  readonly name: string;
6
6
  readonly id: number;
@@ -1,7 +1,7 @@
1
1
  import type { LogContext } from '@rocicorp/logger';
2
- import type { Store } from '../dag/store.js';
3
- import type { ClientID } from '../sync/ids.js';
4
- import { type ClientMap } from './clients.js';
2
+ import type { Store } from '../dag/store.ts';
3
+ import type { ClientID } from '../sync/ids.ts';
4
+ import { type ClientMap } from './clients.ts';
5
5
  /**
6
6
  * The maximum time a client can be inactive before it is garbage collected.
7
7
  * This means that this is the maximum time a tab can be in the background
@@ -1,6 +1,6 @@
1
1
  import type { LogContext } from '@rocicorp/logger';
2
- import type { Store } from '../dag/store.js';
3
- import { type ClientGroupMap } from './client-groups.js';
2
+ import type { Store } from '../dag/store.ts';
3
+ import { type ClientGroupMap } from './client-groups.ts';
4
4
  export declare function getLatestGCUpdate(): Promise<ClientGroupMap> | undefined;
5
5
  export declare function initClientGroupGC(dagStore: Store, lc: LogContext, signal: AbortSignal): void;
6
6
  /**
@@ -1,7 +1,7 @@
1
- import * as valita from '../../../shared/src/valita.js';
2
- import type { Read, Write } from '../dag/store.js';
3
- import { type Hash } from '../hash.js';
4
- import type { ClientGroupID } from '../sync/ids.js';
1
+ import * as valita from '../../../shared/src/valita.ts';
2
+ import type { Read, Write } from '../dag/store.ts';
3
+ import { type Hash } from '../hash.ts';
4
+ import type { ClientGroupID } from '../sync/ids.ts';
5
5
  export type ClientGroupMap = ReadonlyMap<ClientGroupID, ClientGroup>;
6
6
  declare const clientGroupSchema: valita.ObjectType<Readonly<{
7
7
  /**
@@ -16,7 +16,7 @@ declare const clientGroupSchema: valita.ObjectType<Readonly<{
16
16
  /**
17
17
  * Index definitions common to all clients assigned to this client group.
18
18
  */
19
- indexes: valita.Type<Readonly<Record<string, import("../index-defs.js").IndexDefinition>>>;
19
+ indexes: valita.Type<Readonly<Record<string, import("../index-defs.ts").IndexDefinition>>>;
20
20
  /**
21
21
  * The highest mutation ID of every client assigned to this client group.
22
22
  * Should only be updated by clients assigned to this client group. Read by
@@ -1,13 +1,13 @@
1
1
  import type { LogContext } from '@rocicorp/logger';
2
- import type { Enum } from '../../../shared/src/enum.js';
3
- import * as valita from '../../../shared/src/valita.js';
4
- import type { Read, Store, Write } from '../dag/store.js';
5
- import { Commit, type SnapshotMetaDD31 } from '../db/commit.js';
6
- import * as FormatVersion from '../format-version-enum.js';
7
- import { type Hash } from '../hash.js';
8
- import { type IndexDefinitions } from '../index-defs.js';
9
- import { type ClientGroupID, type ClientID } from '../sync/ids.js';
10
- import { type ClientGroup } from './client-groups.js';
2
+ import type { Enum } from '../../../shared/src/enum.ts';
3
+ import * as valita from '../../../shared/src/valita.ts';
4
+ import type { Read, Store, Write } from '../dag/store.ts';
5
+ import { Commit, type SnapshotMetaDD31 } from '../db/commit.ts';
6
+ import * as FormatVersion from '../format-version-enum.ts';
7
+ import { type Hash } from '../hash.ts';
8
+ import { type IndexDefinitions } from '../index-defs.ts';
9
+ import { type ClientGroupID, type ClientID } from '../sync/ids.ts';
10
+ import { type ClientGroup } from './client-groups.ts';
11
11
  type FormatVersion = Enum<typeof FormatVersion>;
12
12
  export type ClientMap = ReadonlyMap<ClientID, ClientV4 | ClientV5 | ClientV6>;
13
13
  export type ClientMapDD31 = ReadonlyMap<ClientID, ClientV5 | ClientV6>;
@@ -1,7 +1,7 @@
1
1
  import type { LogContext, LogLevel, LogSink } from '@rocicorp/logger';
2
- import type { Store } from '../dag/store.js';
3
- import type { DropStore, StoreProvider } from '../kv/store.js';
4
- import { IDBDatabasesStore } from './idb-databases-store.js';
2
+ import type { Store } from '../dag/store.ts';
3
+ import type { DropStore, StoreProvider } from '../kv/store.ts';
4
+ import { IDBDatabasesStore } from './idb-databases-store.ts';
5
5
  /**
6
6
  * How frequently to try to collect
7
7
  */
@@ -1,7 +1,7 @@
1
- import type { Chunk } from '../dag/chunk.js';
2
- import type { LazyRead } from '../dag/lazy-store.js';
3
- import { Visitor } from '../dag/visitor.js';
4
- import type { Hash } from '../hash.js';
1
+ import type { Chunk } from '../dag/chunk.ts';
2
+ import type { LazyRead } from '../dag/lazy-store.ts';
3
+ import { Visitor } from '../dag/visitor.ts';
4
+ import type { Hash } from '../hash.ts';
5
5
  export declare class GatherMemoryOnlyVisitor extends Visitor {
6
6
  #private;
7
7
  constructor(dagRead: LazyRead);
@@ -1,8 +1,8 @@
1
- import type { Chunk } from '../dag/chunk.js';
2
- import type { LazyStore } from '../dag/lazy-store.js';
3
- import type { Read } from '../dag/store.js';
4
- import { Visitor } from '../dag/visitor.js';
5
- import type { Hash } from '../hash.js';
1
+ import type { Chunk } from '../dag/chunk.ts';
2
+ import type { LazyStore } from '../dag/lazy-store.ts';
3
+ import type { Read } from '../dag/store.ts';
4
+ import { Visitor } from '../dag/visitor.ts';
5
+ import type { Hash } from '../hash.ts';
6
6
  export type ChunkWithSize = {
7
7
  chunk: Chunk;
8
8
  size: number;
@@ -1,7 +1,7 @@
1
1
  import type { LogContext } from '@rocicorp/logger';
2
- import type { Store } from '../dag/store.js';
3
- import type { ClientID } from '../sync/ids.js';
4
- import { type ClientMap } from './clients.js';
2
+ import type { Store } from '../dag/store.ts';
3
+ import type { ClientID } from '../sync/ids.ts';
4
+ import { type ClientMap } from './clients.ts';
5
5
  export declare const HEARTBEAT_INTERVAL: number;
6
6
  export declare let latestHeartbeatUpdate: Promise<ClientMap> | undefined;
7
7
  export declare function startHeartbeats(clientID: ClientID, dagStore: Store, onClientStateNotFound: () => void, heartbeatIntervalMs: number, lc: LogContext, signal: AbortSignal): void;
@@ -1,4 +1,4 @@
1
- import type { CreateStore } from '../kv/store.js';
1
+ import type { CreateStore } from '../kv/store.ts';
2
2
  export type IndexedDBName = string;
3
3
  export type IndexedDBDatabase = {
4
4
  readonly name: IndexedDBName;
@@ -1,10 +1,10 @@
1
1
  import type { LogContext } from '@rocicorp/logger';
2
- import type { Enum } from '../../../shared/src/enum.js';
3
- import type { LazyStore } from '../dag/lazy-store.js';
4
- import type { Store } from '../dag/store.js';
5
- import * as FormatVersion from '../format-version-enum.js';
6
- import type { ClientID } from '../sync/ids.js';
7
- import type { MutatorDefs } from '../types.js';
2
+ import type { Enum } from '../../../shared/src/enum.ts';
3
+ import type { LazyStore } from '../dag/lazy-store.ts';
4
+ import type { Store } from '../dag/store.ts';
5
+ import * as FormatVersion from '../format-version-enum.ts';
6
+ import type { ClientID } from '../sync/ids.ts';
7
+ import type { MutatorDefs } from '../types.ts';
8
8
  type FormatVersion = Enum<typeof FormatVersion>;
9
9
  /**
10
10
  * Persists the client's memdag state to the client's perdag client group.
@@ -1,11 +1,11 @@
1
1
  import type { LogContext } from '@rocicorp/logger';
2
- import type { Enum } from '../../../shared/src/enum.js';
3
- import type { LazyStore } from '../dag/lazy-store.js';
4
- import type { Store } from '../dag/store.js';
5
- import * as FormatVersion from '../format-version-enum.js';
6
- import { type DiffComputationConfig, DiffsMap } from '../sync/diff.js';
7
- import type { ClientID } from '../sync/ids.js';
8
- import type { MutatorDefs } from '../types.js';
2
+ import type { Enum } from '../../../shared/src/enum.ts';
3
+ import type { LazyStore } from '../dag/lazy-store.ts';
4
+ import type { Store } from '../dag/store.ts';
5
+ import * as FormatVersion from '../format-version-enum.ts';
6
+ import { type DiffComputationConfig, DiffsMap } from '../sync/diff.ts';
7
+ import type { ClientID } from '../sync/ids.ts';
8
+ import type { MutatorDefs } from '../types.ts';
9
9
  type FormatVersion = Enum<typeof FormatVersion>;
10
10
  /**
11
11
  * This returns the diff between the state of the btree before and after
@@ -1,4 +1,4 @@
1
- import { requestIdle as defaultRequestIdle } from './request-idle.js';
1
+ import { requestIdle as defaultRequestIdle } from './request-idle.ts';
2
2
  export declare class ProcessScheduler {
3
3
  #private;
4
4
  /**
@@ -1,9 +1,9 @@
1
- import type { Cookie } from './cookies.js';
2
- import type { ClientStateNotFoundResponse, VersionNotSupportedResponse } from './error-responses.js';
3
- import type { HTTPRequestInfo } from './http-request-info.js';
4
- import type { PatchOperation, PatchOperationInternal } from './patch-operation.js';
5
- import type { ClientID } from './sync/ids.js';
6
- import type { PullRequest } from './sync/pull.js';
1
+ import type { Cookie } from './cookies.ts';
2
+ import type { ClientStateNotFoundResponse, VersionNotSupportedResponse } from './error-responses.ts';
3
+ import type { HTTPRequestInfo } from './http-request-info.ts';
4
+ import type { PatchOperation, PatchOperationInternal } from './patch-operation.ts';
5
+ import type { ClientID } from './sync/ids.ts';
6
+ import type { PullRequest } from './sync/pull.ts';
7
7
  export type PullerResultV1 = {
8
8
  response?: PullResponseV1 | undefined;
9
9
  httpRequestInfo: HTTPRequestInfo;
@@ -1,6 +1,6 @@
1
- import { type ClientStateNotFoundResponse, type VersionNotSupportedResponse } from './error-responses.js';
2
- import { type HTTPRequestInfo } from './http-request-info.js';
3
- import type { PushRequest } from './sync/push.js';
1
+ import { type ClientStateNotFoundResponse, type VersionNotSupportedResponse } from './error-responses.ts';
2
+ import { type HTTPRequestInfo } from './http-request-info.ts';
3
+ import type { PushRequest } from './sync/push.ts';
4
4
  export type PusherResult = {
5
5
  response?: PushResponse | undefined;
6
6
  httpRequestInfo: HTTPRequestInfo;
@@ -1,16 +1,16 @@
1
1
  import { LogContext } from '@rocicorp/logger';
2
- import type { MaybePromise } from '../../shared/src/types.js';
3
- import { type Cookie } from './cookies.js';
4
- import { LazyStore } from './dag/lazy-store.js';
5
- import { type Store } from './dag/store.js';
6
- import { type Hash } from './hash.js';
7
- import { type PendingMutation } from './pending-mutations.js';
8
- import type { Puller } from './puller.js';
9
- import { type Pusher } from './pusher.js';
10
- import type { ReplicacheOptions } from './replicache-options.js';
11
- import { type SubscribeOptions, type SubscriptionsManager, type WatchCallbackForOptions, type WatchNoIndexCallback, type WatchOptions } from './subscriptions.js';
12
- import type { ReadTransaction } from './transactions.js';
13
- import type { BeginPullResult, MakeMutators, MutatorDefs, PokeInternal, QueryInternal, RequestOptions, UpdateNeededReason } from './types.js';
2
+ import type { MaybePromise } from '../../shared/src/types.ts';
3
+ import { type Cookie } from './cookies.ts';
4
+ import { LazyStore } from './dag/lazy-store.ts';
5
+ import { type Store } from './dag/store.ts';
6
+ import { type Hash } from './hash.ts';
7
+ import { type PendingMutation } from './pending-mutations.ts';
8
+ import type { Puller } from './puller.ts';
9
+ import { type Pusher } from './pusher.ts';
10
+ import type { ReplicacheOptions } from './replicache-options.ts';
11
+ import { type SubscribeOptions, type SubscriptionsManager, type WatchCallbackForOptions, type WatchNoIndexCallback, type WatchOptions } from './subscriptions.ts';
12
+ import type { ReadTransaction } from './transactions.ts';
13
+ import type { BeginPullResult, MakeMutators, MutatorDefs, PokeInternal, QueryInternal, RequestOptions, UpdateNeededReason } from './types.ts';
14
14
  /** @deprecated Not used any more */
15
15
  export interface MakeSubscriptionsManager {
16
16
  (queryInternal: QueryInternal, lc: LogContext): SubscriptionsManager;
@@ -1,9 +1,9 @@
1
1
  import type { LogLevel, LogSink } from '@rocicorp/logger';
2
- import type { IndexDefinitions } from './index-defs.js';
3
- import type { StoreProvider } from './kv/store.js';
4
- import type { Puller } from './puller.js';
5
- import type { Pusher } from './pusher.js';
6
- import type { MutatorDefs, RequestOptions } from './types.js';
2
+ import type { IndexDefinitions } from './index-defs.ts';
3
+ import type { StoreProvider } from './kv/store.ts';
4
+ import type { Puller } from './puller.ts';
5
+ import type { Pusher } from './pusher.ts';
6
+ import type { MutatorDefs, RequestOptions } from './types.ts';
7
7
  /**
8
8
  * The options passed to {@link Replicache}.
9
9
  */
@@ -1,14 +1,14 @@
1
1
  import type { LogContext } from '@rocicorp/logger';
2
- import type { MaybePromise } from '../../shared/src/types.js';
3
- import type { StoreProvider } from './kv/store.js';
4
- import type { PendingMutation } from './pending-mutations.js';
5
- import type { Puller } from './puller.js';
6
- import type { Pusher } from './pusher.js';
7
- import { ReplicacheImpl } from './replicache-impl.js';
8
- import type { ReplicacheOptions } from './replicache-options.js';
9
- import type { SubscribeOptions, WatchCallbackForOptions, WatchNoIndexCallback, WatchOptions } from './subscriptions.js';
10
- import type { ReadTransaction } from './transactions.js';
11
- import type { MakeMutators, MutatorDefs, Poke, RequestOptions, UpdateNeededReason } from './types.js';
2
+ import type { MaybePromise } from '../../shared/src/types.ts';
3
+ import type { StoreProvider } from './kv/store.ts';
4
+ import type { PendingMutation } from './pending-mutations.ts';
5
+ import type { Puller } from './puller.ts';
6
+ import type { Pusher } from './pusher.ts';
7
+ import { ReplicacheImpl } from './replicache-impl.ts';
8
+ import type { ReplicacheOptions } from './replicache-options.ts';
9
+ import type { SubscribeOptions, WatchCallbackForOptions, WatchNoIndexCallback, WatchOptions } from './subscriptions.ts';
10
+ import type { ReadTransaction } from './transactions.ts';
11
+ import type { MakeMutators, MutatorDefs, Poke, RequestOptions, UpdateNeededReason } from './types.ts';
12
12
  type MakeImpl = <MD extends MutatorDefs>(options: ReplicacheOptions<MD>) => ReplicacheImpl<MD>;
13
13
  export declare function setMakeImplForTest(testMakeImpl: MakeImpl): void;
14
14
  export declare function restoreMakeImplForTest(): void;
@@ -1,9 +1,9 @@
1
- import type { ReadonlyJSONValue } from '../../shared/src/json.js';
2
- import { type IndexKey } from './db/index.js';
3
- import type { IterableUnion } from './iterable-union.js';
4
- import { type KeyTypeForScanOptions, type ScanIndexOptions, type ScanOptions } from './scan-options.js';
5
- import { type Closed } from './transaction-closed-error.js';
6
- import { type EntryForOptions } from './transactions.js';
1
+ import type { ReadonlyJSONValue } from '../../shared/src/json.ts';
2
+ import { type IndexKey } from './db/index.ts';
3
+ import type { IterableUnion } from './iterable-union.ts';
4
+ import { type KeyTypeForScanOptions, type ScanIndexOptions, type ScanOptions } from './scan-options.ts';
5
+ import { type Closed } from './transaction-closed-error.ts';
6
+ import { type EntryForOptions } from './transactions.ts';
7
7
  type ScanKey = string | IndexKey;
8
8
  /**
9
9
  * This class is used for the results of {@link ReadTransaction.scan | scan}. It
@@ -1,5 +1,5 @@
1
- import type { IndexKey } from './db/index.js';
2
- import type { ScanOptions as DbScanOptions } from './db/scan.js';
1
+ import type { IndexKey } from './db/index.ts';
2
+ import type { ScanOptions as DbScanOptions } from './db/scan.ts';
3
3
  /**
4
4
  * Options for {@link ReadTransaction.scan | scan}
5
5
  */
@@ -1,11 +1,11 @@
1
1
  import type { LogContext } from '@rocicorp/logger';
2
- import type { Enum } from '../../shared/src/enum.js';
3
- import type { Diff, IndexDiff, NoIndexDiff } from './btree/node.js';
4
- import type { ScanOptions } from './db/scan.js';
5
- import * as InvokeKind from './invoke-kind-enum.js';
6
- import type { DiffComputationConfig, DiffsMap } from './sync/diff.js';
7
- import { type ReadTransaction } from './transactions.js';
8
- import type { QueryInternal } from './types.js';
2
+ import type { Enum } from '../../shared/src/enum.ts';
3
+ import type { Diff, IndexDiff, NoIndexDiff } from './btree/node.ts';
4
+ import type { ScanOptions } from './db/scan.ts';
5
+ import * as InvokeKind from './invoke-kind-enum.ts';
6
+ import type { DiffComputationConfig, DiffsMap } from './sync/diff.ts';
7
+ import { type ReadTransaction } from './transactions.ts';
8
+ import type { QueryInternal } from './types.ts';
9
9
  type InvokeKind = Enum<typeof InvokeKind>;
10
10
  export interface Subscription<R> {
11
11
  hasIndexSubscription(indexName: string): boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"subscriptions.d.ts","sourceRoot":"","sources":["../../../../replicache/src/subscriptions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,kBAAkB,CAAC;AAGjD,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,0BAA0B,CAAC;AAGnD,OAAO,KAAK,EACV,IAAI,EAEJ,SAAS,EAGT,WAAW,EACZ,MAAM,iBAAiB,CAAC;AAGzB,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,UAAU,MAAM,uBAAuB,CAAC;AACpD,OAAO,KAAK,EAAC,qBAAqB,EAAE,QAAQ,EAAC,MAAM,gBAAgB,CAAC;AACpE,OAAO,EACL,KAAK,eAAe,EAErB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,YAAY,CAAC;AAE9C,KAAK,UAAU,GAAG,IAAI,CAAC,OAAO,UAAU,CAAC,CAAC;AAE1C,MAAM,WAAW,YAAY,CAAC,CAAC;IAC7B,oBAAoB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC;IAEjD,MAAM,CACJ,EAAE,EAAE,eAAe,EACnB,IAAI,EAAE,UAAU,EAChB,KAAK,EAAE,QAAQ,GAAG,SAAS,GAC1B,OAAO,CAAC,CAAC,CAAC,CAAC;IAEd,OAAO,CAAC,KAAK,EAAE,QAAQ,GAAG,OAAO,CAAC;IAElC,UAAU,CACR,IA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from '../btree/node.js';
3
- import type { Read } from '../dag/store.js';
4
- import { Commit, type Meta } from '../db/commit.js';
5
- import * as FormatVersion from '../format-version-enum.js';
6
- import type { Hash } from '../hash.js';
1
+ import type { Enum } from '../../../shared/src/enum.ts';
2
+ import type { InternalDiff } from '../btree/node.ts';
3
+ import type { Read } from '../dag/store.ts';
4
+ import { Commit, type Meta } from '../db/commit.ts';
5
+ import * as FormatVersion from '../format-version-enum.ts';
6
+ import type { Hash } from '../hash.ts';
7
7
  type FormatVersion = Enum<typeof FormatVersion>;
8
8
  /**
9
9
  * Interface allowing different diff functions to skip costly diff computations.
@@ -1,4 +1,4 @@
1
- import * as valita from '../../../shared/src/valita.js';
1
+ import * as valita from '../../../shared/src/valita.ts';
2
2
  /**
3
3
  * The ID describing a group of clients. All clients in the same group share a
4
4
  * persistent storage (IDB).
@@ -1,5 +1,5 @@
1
1
  import type { LogContext } from '@rocicorp/logger';
2
- import type { Write } from '../db/write.js';
3
- import type { PatchOperationInternal } from '../patch-operation.js';
2
+ import type { Write } from '../db/write.ts';
3
+ import type { PatchOperationInternal } from '../patch-operation.ts';
4
4
  export declare function apply(lc: LogContext, dbWrite: Write, patch: readonly PatchOperationInternal[]): Promise<void>;
5
5
  //# sourceMappingURL=patch.d.ts.map
@@ -1,15 +1,15 @@
1
1
  import type { LogContext } from '@rocicorp/logger';
2
- import { type Cookie } from '../cookies.js';
3
- import type { Store } from '../dag/store.js';
4
- import { Commit, type LocalMeta } from '../db/commit.js';
5
- import * as FormatVersion from '../format-version-enum.js';
6
- import { type FrozenJSONValue } from '../frozen-json.js';
7
- import { type Hash } from '../hash.js';
8
- import type { HTTPRequestInfo } from '../http-request-info.js';
9
- import type { Puller, PullResponseOKV1Internal, PullResponseV1 } from '../puller.js';
10
- import { type DiffComputationConfig, DiffsMap } from './diff.js';
11
- import * as HandlePullResponseResultType from './handle-pull-response-result-type-enum.js';
12
- import type { ClientGroupID, ClientID } from './ids.js';
2
+ import { type Cookie } from '../cookies.ts';
3
+ import type { Store } from '../dag/store.ts';
4
+ import { Commit, type LocalMeta } from '../db/commit.ts';
5
+ import * as FormatVersion from '../format-version-enum.ts';
6
+ import { type FrozenJSONValue } from '../frozen-json.ts';
7
+ import { type Hash } from '../hash.ts';
8
+ import type { HTTPRequestInfo } from '../http-request-info.ts';
9
+ import type { Puller, PullResponseOKV1Internal, PullResponseV1 } from '../puller.ts';
10
+ import { type DiffComputationConfig, DiffsMap } from './diff.ts';
11
+ import * as HandlePullResponseResultType from './handle-pull-response-result-type-enum.ts';
12
+ import type { ClientGroupID, ClientID } from './ids.ts';
13
13
  type FormatVersion = (typeof FormatVersion)[keyof typeof FormatVersion];
14
14
  export declare const PULL_VERSION_SDD = 0;
15
15
  export declare const PULL_VERSION_DD31 = 1;
@@ -1,8 +1,8 @@
1
1
  import type { LogContext } from '@rocicorp/logger';
2
- import type { ReadonlyJSONValue } from '../../../shared/src/json.js';
3
- import type { Store } from '../dag/store.js';
4
- import { type Pusher, type PusherResult } from '../pusher.js';
5
- import { type ClientGroupID, type ClientID } from './ids.js';
2
+ import type { ReadonlyJSONValue } from '../../../shared/src/json.ts';
3
+ import type { Store } from '../dag/store.ts';
4
+ import { type Pusher, type PusherResult } from '../pusher.ts';
5
+ import { type ClientGroupID, type ClientID } from './ids.ts';
6
6
  export declare const PUSH_VERSION_SDD = 0;
7
7
  export declare const PUSH_VERSION_DD31 = 1;
8
8
  /**
@@ -1,4 +1,4 @@
1
- import type { ClientID } from './ids.js';
1
+ import type { ClientID } from './ids.ts';
2
2
  /**
3
3
  * Returns a new requestID of the form <client ID>-<session ID>-<request
4
4
  * count>. The request count enables one to find the request following or