@dabble/patches 0.2.16 → 0.2.17

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.
@@ -1,5 +1,5 @@
1
+ import type { PatchesStore, TrackedDoc } from '../client/types.js';
1
2
  import type { Change, PatchesSnapshot } from '../types.js';
2
- import type { PatchesStore, TrackedDoc } from './PatchesStore.js';
3
3
  /**
4
4
  * A trivial in‑memory implementation of OfflineStore (soon PatchesStore).
5
5
  * All data lives in JS objects – nothing survives a page reload.
@@ -1,5 +1,5 @@
1
+ import type { PatchesStore, TrackedDoc } from '../client/types.js';
1
2
  import type { Change, PatchesSnapshot } from '../types.js';
2
- import type { PatchesStore, TrackedDoc } from './PatchesStore.js';
3
3
  /**
4
4
  * Creates a new IndexedDB database with stores:
5
5
  * - snapshots<{ docId: string; rev: number; state: any }> (primary key: docId)
@@ -1,7 +1,7 @@
1
1
  import { type Unsubscriber } from '../event-signal.js';
2
- import type { PatchesStore } from '../persist/PatchesStore.js';
3
2
  import type { Change } from '../types.js';
4
3
  import { PatchesDoc, type PatchesDocOptions } from './PatchesDoc.js';
4
+ import type { PatchesStore } from './types.js';
5
5
  export interface PatchesOptions {
6
6
  /** Persistence layer instance (e.g., new IndexedDBStore('my-db') or new InMemoryStore()). */
7
7
  store: PatchesStore;
@@ -1,3 +1,6 @@
1
+ export * from './IndexedDBStore.js';
2
+ export * from './InMemoryStore.js';
1
3
  export * from './Patches.js';
2
4
  export * from './PatchesDoc.js';
3
5
  export * from './PatchesHistoryClient.js';
6
+ export type * from './types.js';
@@ -1,3 +1,5 @@
1
+ export * from './IndexedDBStore.js';
2
+ export * from './InMemoryStore.js';
1
3
  export * from './Patches.js';
2
4
  export * from './PatchesDoc.js';
3
5
  export * from './PatchesHistoryClient.js';
package/dist/index.d.ts CHANGED
@@ -1,8 +1,6 @@
1
1
  export { Delta } from '@dabble/delta';
2
- export * from './client/Patches.js';
3
- export * from './client/PatchesDoc.js';
2
+ export * from './client/index.js';
4
3
  export * from './event-signal.js';
5
4
  export * from './json-patch/JSONPatch.js';
6
5
  export type { ApplyJSONPatchOptions } from './json-patch/types.js';
7
- export type * from './persist/PatchesStore.js';
8
6
  export type * from './types.js';
package/dist/index.js CHANGED
@@ -1,5 +1,4 @@
1
1
  export { Delta } from '@dabble/delta';
2
- export * from './client/Patches.js';
3
- export * from './client/PatchesDoc.js';
2
+ export * from './client/index.js';
4
3
  export * from './event-signal.js';
5
4
  export * from './json-patch/JSONPatch.js';
@@ -1,8 +1,8 @@
1
- export * from './AbstractTransport.js';
2
1
  export * from './PatchesSync.js';
3
2
  export * from './protocol/JSONRPCClient.js';
4
- export type * from './protocol/types';
5
- export type * from './types';
3
+ export * from './protocol/JSONRPCServer.js';
4
+ export type * from './protocol/types.js';
5
+ export type * from './types.js';
6
6
  export * from './webrtc/WebRTCAwareness.js';
7
7
  export * from './webrtc/WebRTCTransport.js';
8
8
  export * from './websocket/PatchesWebSocket.js';
package/dist/net/index.js CHANGED
@@ -1,6 +1,6 @@
1
- export * from './AbstractTransport.js';
2
1
  export * from './PatchesSync.js';
3
2
  export * from './protocol/JSONRPCClient.js';
3
+ export * from './protocol/JSONRPCServer.js';
4
4
  export * from './webrtc/WebRTCAwareness.js';
5
5
  export * from './webrtc/WebRTCTransport.js';
6
6
  export * from './websocket/PatchesWebSocket.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dabble/patches",
3
- "version": "0.2.16",
3
+ "version": "0.2.17",
4
4
  "description": "Immutable JSON Patch implementation based on RFC 6902 supporting operational transformation and last-writer-wins",
5
5
  "author": "Jacob Wright <jacwright@gmail.com>",
6
6
  "bugs": {
@@ -25,10 +25,6 @@
25
25
  "./net": {
26
26
  "import": "./dist/net/index.js",
27
27
  "types": "./dist/net/index.d.ts"
28
- },
29
- "./persist": {
30
- "import": "./dist/persist/index.js",
31
- "types": "./dist/persist/index.d.ts"
32
28
  }
33
29
  },
34
30
  "files": [
@@ -1,3 +0,0 @@
1
- export * from './IndexedDBStore.js';
2
- export * from './InMemoryStore.js';
3
- export * from './PatchesStore.js';
@@ -1,3 +0,0 @@
1
- export * from './IndexedDBStore.js';
2
- export * from './InMemoryStore.js';
3
- export * from './PatchesStore.js';
File without changes
File without changes