@docstack/client 0.1.8 → 0.2.0
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 +350 -122
- package/lib/core/index.d.ts +3 -1
- package/lib/core/stack.d.ts +147 -0
- package/lib/core/sync/index.d.ts +17 -2
- package/lib/core/transaction-engine/errors.d.ts +57 -0
- package/lib/core/transaction-engine/handle.d.ts +165 -0
- package/lib/core/transaction-engine/index.d.ts +82 -0
- package/lib/core/transaction-engine/overlay.d.ts +66 -0
- package/lib/core/transaction-engine/stage.d.ts +50 -0
- package/lib/core/transaction-engine/sweep.d.ts +26 -0
- package/lib/index.d.ts +12 -2
- package/lib/index.js +4083 -267
- package/lib/index.umd.js +4094 -269
- package/lib/utils/index.d.ts +4 -2
- package/package.json +2 -1
package/lib/utils/index.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import { Document } from "@docstack/shared";
|
|
1
|
+
import { AttributeModel, Document } from "@docstack/shared";
|
|
2
2
|
import Class from "../core/class.js";
|
|
3
3
|
import * as jsondiff from 'jsondiffpatch';
|
|
4
|
-
export declare const applySchemaDelta: (doc: Document, schemaDelta: jsondiff.AddedDelta | jsondiff.ModifiedDelta | jsondiff.DeletedDelta | jsondiff.ObjectDelta | jsondiff.ArrayDelta | jsondiff.MovedDelta | jsondiff.TextDiffDelta, classObj: Class
|
|
4
|
+
export declare const applySchemaDelta: (doc: Document, schemaDelta: jsondiff.AddedDelta | jsondiff.ModifiedDelta | jsondiff.DeletedDelta | jsondiff.ObjectDelta | jsondiff.ArrayDelta | jsondiff.MovedDelta | jsondiff.TextDiffDelta, classObj: Class, newSchema?: {
|
|
5
|
+
[name: string]: AttributeModel;
|
|
6
|
+
}) => Promise<Document>;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@docstack/client",
|
|
3
3
|
"description": "One does not simply stack documents.",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.2.0",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "lib/index.js",
|
|
7
7
|
"types": "lib/index.d.ts",
|
|
@@ -46,6 +46,7 @@
|
|
|
46
46
|
"dependencies": {
|
|
47
47
|
"@docstack/shared": "^0.1.0",
|
|
48
48
|
"jsondiffpatch": "^0.7.3",
|
|
49
|
+
"pouchdb-selector-core": "^9.0.0",
|
|
49
50
|
"semver": "^7.7.3",
|
|
50
51
|
"zod": "^4.1.5"
|
|
51
52
|
},
|