@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.
- package/dist/{persist → client}/InMemoryStore.d.ts +1 -1
- package/dist/{persist → client}/IndexedDBStore.d.ts +1 -1
- package/dist/client/Patches.d.ts +1 -1
- package/dist/client/index.d.ts +3 -0
- package/dist/client/index.js +2 -0
- package/dist/index.d.ts +1 -3
- package/dist/index.js +1 -2
- package/dist/net/index.d.ts +3 -3
- package/dist/net/index.js +1 -1
- package/package.json +1 -5
- package/dist/persist/index.d.ts +0 -3
- package/dist/persist/index.js +0 -3
- /package/dist/{persist → client}/InMemoryStore.js +0 -0
- /package/dist/{persist → client}/IndexedDBStore.js +0 -0
- /package/dist/{persist/PatchesStore.d.ts → client/types.d.ts} +0 -0
- /package/dist/{persist/PatchesStore.js → client/types.js} +0 -0
|
@@ -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)
|
package/dist/client/Patches.d.ts
CHANGED
|
@@ -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;
|
package/dist/client/index.d.ts
CHANGED
package/dist/client/index.js
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
export { Delta } from '@dabble/delta';
|
|
2
|
-
export * from './client/
|
|
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
package/dist/net/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export * from './AbstractTransport.js';
|
|
2
1
|
export * from './PatchesSync.js';
|
|
3
2
|
export * from './protocol/JSONRPCClient.js';
|
|
4
|
-
export
|
|
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.
|
|
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": [
|
package/dist/persist/index.d.ts
DELETED
package/dist/persist/index.js
DELETED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|