@dovetail-ts/warp-drive 0.0.0-stage → 1.0.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/CHANGELOG.md +30 -0
- package/LICENSE +21 -0
- package/README.md +4 -2
- package/dist/index.d.ts +33 -0
- package/dist/index.js +76 -0
- package/dist/index.js.map +1 -0
- package/package.json +56 -3
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# @dovetail-ts/warp-drive
|
|
2
|
+
|
|
3
|
+
## 1.0.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 21b3dbf: Publish through OIDC trusted publishing only, with the Ember Workbench release kit. Each version from this release on has npm provenance.
|
|
8
|
+
- Updated dependencies [21b3dbf]
|
|
9
|
+
- @dovetail-ts/core@1.0.1
|
|
10
|
+
- @dovetail-ts/protocol@1.0.1
|
|
11
|
+
|
|
12
|
+
## 1.0.0
|
|
13
|
+
|
|
14
|
+
### Major Changes
|
|
15
|
+
|
|
16
|
+
- 480744b: First release of Dovetail: real-time and offline sync for Ember.
|
|
17
|
+
|
|
18
|
+
- `@dovetail-ts/core`: the connection life cycle, live store subscriptions, the optimistic ledger with rebase and rollback, the offline write queue in IndexedDB with a leader tab and dead letters, `DocSession` and `PresenceRoom`.
|
|
19
|
+
- `@dovetail-ts/warp-drive`: the store feed into WarpDrive.
|
|
20
|
+
- `@dovetail-ts/crdt`, `crdt-yjs`, `crdt-loro` and `crdt-automerge`: one `DocEngine` interface with three engines.
|
|
21
|
+
- `@dovetail-ts/tiptap`: co-editing in Tiptap 3 with carets, per-user undo, versions and comment threads.
|
|
22
|
+
- `@dovetail-ts/ember`, `notifications` and `inspector`: presence and status components, the inbox, toasts and activity feeds, and a dev panel.
|
|
23
|
+
- `@dovetail-ts/server`, the transports (`transport-ws`, `transport-sse`, `transport-cable`) and `conformance`: a Node server and one wire protocol that the Rails gems also pass.
|
|
24
|
+
- Adapters for Hocuspocus, Liveblocks, PartyKit and Supabase, and integrations for Switchyard, Millwork, Benchdog and Lattice. The Neon adapter is not in 1.0: it waits for a stable Neon Realtime client (1.1).
|
|
25
|
+
|
|
26
|
+
### Patch Changes
|
|
27
|
+
|
|
28
|
+
- Updated dependencies [480744b]
|
|
29
|
+
- @dovetail-ts/core@1.0.0
|
|
30
|
+
- @dovetail-ts/protocol@1.0.0
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Joe Gaudet
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @dovetail-ts/warp-drive
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
The store feed for WarpDrive: upsert of JSON:API documents, rebase and rollback.
|
|
4
|
+
|
|
5
|
+
Part of [Dovetail](https://joegaudet.com/dovetail/). Not released yet.
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { StoreSink } from '@dovetail-ts/core';
|
|
2
|
+
import type { JsonApiDocument, ResourceIdentifier } from '@dovetail-ts/protocol';
|
|
3
|
+
import type { CollectionResourceDocument, EmptyResourceDocument, SingleResourceDocument } from '@warp-drive/core/types/spec/json-api-raw';
|
|
4
|
+
/**
|
|
5
|
+
* The parts of a WarpDrive `Store` that the sink uses. A `Store` of `@warp-drive/core` has
|
|
6
|
+
* them. `K` is the cache key type of the store.
|
|
7
|
+
*/
|
|
8
|
+
export interface FeedStore<K = unknown> {
|
|
9
|
+
push(document: SingleResourceDocument): unknown;
|
|
10
|
+
push(document: CollectionResourceDocument): unknown;
|
|
11
|
+
push(document: EmptyResourceDocument): unknown;
|
|
12
|
+
peekRecord(type: string, id: string): unknown;
|
|
13
|
+
unloadRecord(record: unknown): void;
|
|
14
|
+
readonly cacheKeyManager?: {
|
|
15
|
+
peekResourceKey(ref: ResourceIdentifier): K | undefined;
|
|
16
|
+
};
|
|
17
|
+
readonly cache?: {
|
|
18
|
+
peek(key: K): unknown;
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Changes each document before the push. This is the hook for Millwork codecs (plan M8), for
|
|
23
|
+
* example to decode the attributes of a record type.
|
|
24
|
+
*/
|
|
25
|
+
export type DocumentCodec = (document: JsonApiDocument) => JsonApiDocument;
|
|
26
|
+
export interface StoreSinkOptions {
|
|
27
|
+
codec?: DocumentCodec;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* A store sink on a WarpDrive store: an upsert is `store.push`, and a delete unloads the
|
|
31
|
+
* record. `peek` reads the cached resource, so a rollback can put back a loaded record.
|
|
32
|
+
*/
|
|
33
|
+
export declare function storeSink<K>(store: FeedStore<K>, options?: StoreSinkOptions): StoreSink;
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
// src/index.ts
|
|
2
|
+
function isResource(value) {
|
|
3
|
+
if (typeof value !== "object" || value === null) return false;
|
|
4
|
+
const { type, id } = value;
|
|
5
|
+
return typeof type === "string" && typeof id === "string";
|
|
6
|
+
}
|
|
7
|
+
function toLinks(links) {
|
|
8
|
+
if (!links) return void 0;
|
|
9
|
+
const result = {};
|
|
10
|
+
for (const name of ["related", "self"]) {
|
|
11
|
+
const link = links[name];
|
|
12
|
+
if (typeof link === "string") result[name] = link;
|
|
13
|
+
else if (typeof link === "object" && link !== null && !Array.isArray(link)) {
|
|
14
|
+
const { href, meta } = link;
|
|
15
|
+
if (typeof href !== "string") continue;
|
|
16
|
+
result[name] = typeof meta === "object" && meta !== null && !Array.isArray(meta) ? { href, meta } : { href };
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
return result;
|
|
20
|
+
}
|
|
21
|
+
function toRelationship(relationship) {
|
|
22
|
+
const links = toLinks(relationship.links);
|
|
23
|
+
const extra = {
|
|
24
|
+
...relationship.meta ? { meta: relationship.meta } : {},
|
|
25
|
+
...links ? { links } : {}
|
|
26
|
+
};
|
|
27
|
+
return Array.isArray(relationship.data) ? { ...extra, data: relationship.data } : { ...extra, data: relationship.data };
|
|
28
|
+
}
|
|
29
|
+
function toResource(resource) {
|
|
30
|
+
const links = toLinks(resource.links);
|
|
31
|
+
return {
|
|
32
|
+
type: resource.type,
|
|
33
|
+
id: resource.id,
|
|
34
|
+
...resource.attributes ? { attributes: resource.attributes } : {},
|
|
35
|
+
...resource.meta ? { meta: resource.meta } : {},
|
|
36
|
+
...links ? { links } : {},
|
|
37
|
+
...resource.relationships ? {
|
|
38
|
+
relationships: Object.fromEntries(
|
|
39
|
+
Object.entries(resource.relationships).map(([name, r]) => [name, toRelationship(r)])
|
|
40
|
+
)
|
|
41
|
+
} : {}
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
function push(store, document) {
|
|
45
|
+
const extra = {
|
|
46
|
+
...document.included ? { included: document.included.map(toResource) } : {},
|
|
47
|
+
...document.meta ? { meta: document.meta } : {}
|
|
48
|
+
};
|
|
49
|
+
const data = document.data;
|
|
50
|
+
if (data === null) store.push({ ...extra, data: null });
|
|
51
|
+
else if (Array.isArray(data)) store.push({ ...extra, data: data.map(toResource) });
|
|
52
|
+
else store.push({ ...extra, data: toResource(data) });
|
|
53
|
+
}
|
|
54
|
+
function storeSink(store, options = {}) {
|
|
55
|
+
const codec = options.codec;
|
|
56
|
+
return {
|
|
57
|
+
apply(op) {
|
|
58
|
+
if (op.op === "upsert") {
|
|
59
|
+
push(store, codec ? codec(op.document) : op.document);
|
|
60
|
+
return;
|
|
61
|
+
}
|
|
62
|
+
const record = store.peekRecord(op.ref.type, op.ref.id);
|
|
63
|
+
if (record !== null && record !== void 0) store.unloadRecord(record);
|
|
64
|
+
},
|
|
65
|
+
peek(ref) {
|
|
66
|
+
const key = store.cacheKeyManager?.peekResourceKey(ref);
|
|
67
|
+
if (key === void 0) return void 0;
|
|
68
|
+
const resource = store.cache?.peek(key);
|
|
69
|
+
return isResource(resource) ? resource : void 0;
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export { storeSink };
|
|
75
|
+
//# sourceMappingURL=index.js.map
|
|
76
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";AA4CA,SAAS,WAAW,KAAA,EAAmC;AACrD,EAAA,IAAI,OAAO,KAAA,KAAU,QAAA,IAAY,KAAA,KAAU,MAAM,OAAO,KAAA;AACxD,EAAA,MAAM,EAAE,IAAA,EAAM,EAAA,EAAG,GAAI,KAAA;AACrB,EAAA,OAAO,OAAO,IAAA,KAAS,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,IAAA,EAAM,IAAA,CAAK,GAAA,CAAI,UAAU,GAAG,CAAA;AAAA,OAC5E,KAAA,CAAM,KAAK,EAAE,GAAG,OAAO,IAAA,EAAM,UAAA,CAAW,IAAI,CAAA,EAAG,CAAA;AACtD;AAMO,SAAS,SAAA,CAAa,KAAA,EAAqB,OAAA,GAA4B,EAAC,EAAc;AAC3F,EAAA,MAAM,QAAQ,OAAA,CAAQ,KAAA;AACtB,EAAA,OAAO;AAAA,IACL,MAAM,EAAA,EAAI;AACR,MAAA,IAAI,EAAA,CAAG,OAAO,QAAA,EAAU;AACtB,QAAA,IAAA,CAAK,OAAO,KAAA,GAAQ,KAAA,CAAM,GAAG,QAAQ,CAAA,GAAI,GAAG,QAAQ,CAAA;AACpD,QAAA;AAAA,MACF;AACA,MAAA,MAAM,MAAA,GAAS,MAAM,UAAA,CAAW,EAAA,CAAG,IAAI,IAAA,EAAM,EAAA,CAAG,IAAI,EAAE,CAAA;AACtD,MAAA,IAAI,WAAW,IAAA,IAAQ,MAAA,KAAW,MAAA,EAAW,KAAA,CAAM,aAAa,MAAM,CAAA;AAAA,IACxE,CAAA;AAAA,IACA,KAAK,GAAA,EAAK;AACR,MAAA,MAAM,GAAA,GAAM,KAAA,CAAM,eAAA,EAAiB,eAAA,CAAgB,GAAG,CAAA;AACtD,MAAA,IAAI,GAAA,KAAQ,QAAW,OAAO,MAAA;AAC9B,MAAA,MAAM,QAAA,GAAW,KAAA,CAAM,KAAA,EAAO,IAAA,CAAK,GAAG,CAAA;AACtC,MAAA,OAAO,UAAA,CAAW,QAAQ,CAAA,GAAI,QAAA,GAAW,MAAA;AAAA,IAC3C;AAAA,GACF;AACF","file":"index.js","sourcesContent":["// The store feed for WarpDrive (ADR 0004): the ledger of `@dovetail-ts/core` puts server ops\n// and local changes in a WarpDrive store through this sink.\nimport type { StoreSink } from '@dovetail-ts/core'\nimport type {\n JsonApiDocument,\n JsonObject,\n Relationship,\n Resource,\n ResourceIdentifier,\n} from '@dovetail-ts/protocol'\nimport type {\n CollectionResourceDocument,\n EmptyResourceDocument,\n ExistingResourceIdentifierObject,\n ExistingResourceObject,\n InnerRelationshipDocument,\n Links,\n SingleResourceDocument,\n} from '@warp-drive/core/types/spec/json-api-raw'\n\n/**\n * The parts of a WarpDrive `Store` that the sink uses. A `Store` of `@warp-drive/core` has\n * them. `K` is the cache key type of the store.\n */\nexport interface FeedStore<K = unknown> {\n push(document: SingleResourceDocument): unknown\n push(document: CollectionResourceDocument): unknown\n push(document: EmptyResourceDocument): unknown\n peekRecord(type: string, id: string): unknown\n unloadRecord(record: unknown): void\n readonly cacheKeyManager?: { peekResourceKey(ref: ResourceIdentifier): K | undefined }\n readonly cache?: { peek(key: K): unknown }\n}\n\n/**\n * Changes each document before the push. This is the hook for Millwork codecs (plan M8), for\n * example to decode the attributes of a record type.\n */\nexport type DocumentCodec = (document: JsonApiDocument) => JsonApiDocument\n\nexport interface StoreSinkOptions {\n codec?: DocumentCodec\n}\n\nfunction isResource(value: unknown): value is Resource {\n if (typeof value !== 'object' || value === null) return false\n const { type, id } = value as { type?: unknown; id?: unknown }\n return typeof type === 'string' && typeof id === 'string'\n}\n\n/** The `related` and `self` links, in the form that WarpDrive takes. Other links are dropped. */\nfunction toLinks(links: JsonObject | undefined): Links | undefined {\n if (!links) return undefined\n const result: Links = {}\n for (const name of ['related', 'self'] as const) {\n const link = links[name]\n if (typeof link === 'string') result[name] = link\n else if (typeof link === 'object' && link !== null && !Array.isArray(link)) {\n const { href, meta } = link\n if (typeof href !== 'string') continue\n result[name] =\n typeof meta === 'object' && meta !== null && !Array.isArray(meta)\n ? { href, meta }\n : { href }\n }\n }\n return result\n}\n\nfunction toRelationship(\n relationship: Relationship,\n): InnerRelationshipDocument<ExistingResourceIdentifierObject> {\n const links = toLinks(relationship.links)\n const extra = {\n ...(relationship.meta ? { meta: relationship.meta } : {}),\n ...(links ? { links } : {}),\n }\n return Array.isArray(relationship.data)\n ? { ...extra, data: relationship.data }\n : { ...extra, data: relationship.data }\n}\n\nfunction toResource(resource: Resource): ExistingResourceObject {\n const links = toLinks(resource.links)\n return {\n type: resource.type,\n id: resource.id,\n ...(resource.attributes ? { attributes: resource.attributes } : {}),\n ...(resource.meta ? { meta: resource.meta } : {}),\n ...(links ? { links } : {}),\n ...(resource.relationships\n ? {\n relationships: Object.fromEntries(\n Object.entries(resource.relationships).map(([name, r]) => [name, toRelationship(r)]),\n ),\n }\n : {}),\n }\n}\n\n/** Pushes a protocol document with the `store.push` overload that fits its data. */\nfunction push<K>(store: FeedStore<K>, document: JsonApiDocument): void {\n const extra = {\n ...(document.included ? { included: document.included.map(toResource) } : {}),\n ...(document.meta ? { meta: document.meta } : {}),\n }\n const data = document.data\n if (data === null) store.push({ ...extra, data: null })\n else if (Array.isArray(data)) store.push({ ...extra, data: data.map(toResource) })\n else store.push({ ...extra, data: toResource(data) })\n}\n\n/**\n * A store sink on a WarpDrive store: an upsert is `store.push`, and a delete unloads the\n * record. `peek` reads the cached resource, so a rollback can put back a loaded record.\n */\nexport function storeSink<K>(store: FeedStore<K>, options: StoreSinkOptions = {}): StoreSink {\n const codec = options.codec\n return {\n apply(op) {\n if (op.op === 'upsert') {\n push(store, codec ? codec(op.document) : op.document)\n return\n }\n const record = store.peekRecord(op.ref.type, op.ref.id)\n if (record !== null && record !== undefined) store.unloadRecord(record)\n },\n peek(ref) {\n const key = store.cacheKeyManager?.peekResourceKey(ref)\n if (key === undefined) return undefined\n const resource = store.cache?.peek(key)\n return isResource(resource) ? resource : undefined\n },\n }\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,59 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dovetail-ts/warp-drive",
|
|
3
|
-
"version": "
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"version": "1.0.1",
|
|
4
|
+
"description": "The store feed for WarpDrive: upsert of JSON:API documents, rebase and rollback.",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"author": "Joe Gaudet <joe@joegaudet.com>",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "git+https://github.com/joegaudet/dovetail.git",
|
|
10
|
+
"directory": "packages/warp-drive"
|
|
11
|
+
},
|
|
12
|
+
"homepage": "https://joegaudet.com/dovetail/",
|
|
13
|
+
"bugs": "https://github.com/joegaudet/dovetail/issues",
|
|
14
|
+
"keywords": [
|
|
15
|
+
"realtime",
|
|
16
|
+
"offline",
|
|
17
|
+
"sync",
|
|
18
|
+
"crdt"
|
|
19
|
+
],
|
|
20
|
+
"type": "module",
|
|
21
|
+
"types": "./dist/index.d.ts",
|
|
22
|
+
"exports": {
|
|
23
|
+
".": {
|
|
24
|
+
"types": "./dist/index.d.ts",
|
|
25
|
+
"default": "./dist/index.js"
|
|
26
|
+
},
|
|
27
|
+
"./package.json": "./package.json"
|
|
28
|
+
},
|
|
29
|
+
"files": [
|
|
30
|
+
"dist",
|
|
31
|
+
"CHANGELOG.md",
|
|
32
|
+
"README.md",
|
|
33
|
+
"LICENSE"
|
|
34
|
+
],
|
|
35
|
+
"sideEffects": false,
|
|
36
|
+
"dependencies": {
|
|
37
|
+
"@dovetail-ts/core": "1.0.1",
|
|
38
|
+
"@dovetail-ts/protocol": "1.0.1",
|
|
39
|
+
"@millwork-ts/core": "^1.0.0",
|
|
40
|
+
"@millwork-ts/warp-drive": "^1.0.0"
|
|
41
|
+
},
|
|
42
|
+
"peerDependencies": {
|
|
43
|
+
"@warp-drive/core": "^5.8.0"
|
|
44
|
+
},
|
|
45
|
+
"devDependencies": {
|
|
46
|
+
"@warp-drive/core": "^5.9.1",
|
|
47
|
+
"@warp-drive/json-api": "^5.9.1",
|
|
48
|
+
"tsup": "^8.5.1"
|
|
49
|
+
},
|
|
50
|
+
"publishConfig": {
|
|
51
|
+
"access": "public"
|
|
52
|
+
},
|
|
53
|
+
"engines": {
|
|
54
|
+
"node": ">=22.12.0"
|
|
55
|
+
},
|
|
56
|
+
"scripts": {
|
|
57
|
+
"build": "tsc --build --force && tsup"
|
|
58
|
+
}
|
|
6
59
|
}
|