@dabble/patches 0.2.16 → 0.2.18
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/README.md +2 -4
- 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 +7 -3
- package/dist/net/index.js +5 -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.d.ts +0 -0
- /package/dist/{persist → client}/InMemoryStore.js +0 -0
- /package/dist/{persist → client}/IndexedDBStore.d.ts +0 -0
- /package/dist/{persist → client}/IndexedDBStore.js +0 -0
- /package/dist/{persist → client}/PatchesStore.d.ts +0 -0
- /package/dist/{persist → client}/PatchesStore.js +0 -0
package/README.md
CHANGED
|
@@ -92,8 +92,7 @@ Let's set up a basic client and server. (These examples are simplified – real-
|
|
|
92
92
|
Here's how to get rolling with Patches on the client:
|
|
93
93
|
|
|
94
94
|
```typescript
|
|
95
|
-
import { Patches } from '@dabble/patches';
|
|
96
|
-
import { InMemoryStore } from '@dabble/patches/persist';
|
|
95
|
+
import { Patches, InMemoryStore } from '@dabble/patches';
|
|
97
96
|
import { PatchesSync } from '@dabble/patches/net';
|
|
98
97
|
|
|
99
98
|
interface MyDoc {
|
|
@@ -294,8 +293,7 @@ Check the [Awareness documentation](./docs/awareness.md) for how to build collab
|
|
|
294
293
|
### Simple Client Setup
|
|
295
294
|
|
|
296
295
|
```typescript
|
|
297
|
-
import { Patches } from '@dabble/patches';
|
|
298
|
-
import { InMemoryStore } from '@dabble/patches/persist';
|
|
296
|
+
import { Patches, InMemoryStore } from '@dabble/patches';
|
|
299
297
|
|
|
300
298
|
interface MyDoc {
|
|
301
299
|
text: string;
|
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 './PatchesStore.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,9 +1,13 @@
|
|
|
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
|
+
export * from './websocket/AuthorizationProvider.js';
|
|
9
|
+
export * from './websocket/onlineState.js';
|
|
8
10
|
export * from './websocket/PatchesWebSocket.js';
|
|
11
|
+
export * from './websocket/SignalingService.js';
|
|
12
|
+
export * from './websocket/WebSocketServer.js';
|
|
9
13
|
export * from './websocket/WebSocketTransport.js';
|
package/dist/net/index.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
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
|
+
export * from './websocket/AuthorizationProvider.js';
|
|
7
|
+
export * from './websocket/onlineState.js';
|
|
6
8
|
export * from './websocket/PatchesWebSocket.js';
|
|
9
|
+
export * from './websocket/SignalingService.js';
|
|
10
|
+
export * from './websocket/WebSocketServer.js';
|
|
7
11
|
export * from './websocket/WebSocketTransport.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dabble/patches",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.18",
|
|
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
|
|
File without changes
|
|
File without changes
|