@open-artifact/live-store 0.13.0 → 0.14.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-artifact/live-store",
3
- "version": "0.13.0",
3
+ "version": "0.14.1",
4
4
  "description": "The live document engine every document-store type shares: keeps a value in step with the db capability (debounced, coalesced merge-patch writes, retries and backoff, a saved copy on the device), plus the JSON merge-patch helpers and the store's document hash.",
5
5
  "type": "module",
6
6
  "exports": {
package/src/cache.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { LiveCache } from './engine.ts';
1
+ import type { LiveCache } from './engine.js';
2
2
  /** The largest saved copy kept (UTF-16 characters); a larger one is dropped rather than kept stale. */
3
3
  export declare const SAVED_COPY_MAX_CHARS = 4000000;
4
4
  /**
package/src/engine.d.ts CHANGED
@@ -33,7 +33,7 @@
33
33
  * {@link LiveStore.subscribe} fit React's `useSyncExternalStore` or a Zustand
34
34
  * store.
35
35
  */
36
- import { type SyncDocument, type SyncErrorCode, type SyncTimers, type SyncTransport, type SyncWrite } from './transport.ts';
36
+ import { type SyncDocument, type SyncErrorCode, type SyncTimers, type SyncTransport, type SyncWrite } from './transport.js';
37
37
  /** Quiet time after the last edit of a document before it is written. */
38
38
  export declare const LIVE_EDIT_DEBOUNCE_MS = 350;
39
39
  /** Longest a document waits after its first unsent edit. */
package/src/index.d.ts CHANGED
@@ -3,8 +3,8 @@
3
3
  * document-store types (Whiteboard, Data). Pure TypeScript; the store is
4
4
  * any {@link SyncTransport} (the runtime's `db` capability satisfies it).
5
5
  */
6
- export * from './json.ts';
7
- export * from './transport.ts';
8
- export * from './doc-hash.ts';
9
- export * from './engine.ts';
10
- export * from './cache.ts';
6
+ export * from './json.js';
7
+ export * from './transport.js';
8
+ export * from './doc-hash.js';
9
+ export * from './engine.js';
10
+ export * from './cache.js';