@ahoo-wang/wow-view-store 10.0.0-beta.1 → 10.0.0-beta.3
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/datasetWordings.d.ts +9 -0
- package/dist/generated/view-store/contract.d.ts +2 -0
- package/dist/generated/view-store/dataset_wording/aggregate.d.ts +4 -0
- package/dist/generated/view-store/dataset_wording/queryClient.d.ts +4 -4
- package/dist/generated/view-store/view/aggregate.d.ts +4 -0
- package/dist/generated/view-store/view/queryClient.d.ts +4 -4
- package/dist/generated/view-store/view_preferences/aggregate.d.ts +4 -0
- package/dist/generated/view-store/view_preferences/queryClient.d.ts +4 -4
- package/dist/index.es.js +224 -201
- package/dist/index.es.js.map +1 -1
- package/dist/viewWrites.d.ts +58 -0
- package/dist/wowViewStore.d.ts +6 -28
- package/package.json +10 -10
package/dist/wowViewStore.d.ts
CHANGED
|
@@ -83,6 +83,8 @@ export declare class WowViewStore implements ViewStore {
|
|
|
83
83
|
private readonly systemVersions;
|
|
84
84
|
/** See `WowViewStoreOptions.pageSize`. */
|
|
85
85
|
private readonly pageSize;
|
|
86
|
+
/** Every instance write, sent and read back; see `ViewWrites`. */
|
|
87
|
+
private readonly writes;
|
|
86
88
|
constructor(options: WowViewStoreOptions);
|
|
87
89
|
/**
|
|
88
90
|
* The definition's views a page at a time, in the port's order: the
|
|
@@ -116,9 +118,10 @@ export declare class WowViewStore implements ViewStore {
|
|
|
116
118
|
* from the same owner whether or not the view has moved, so a retry is
|
|
117
119
|
* answered as its first attempt's duplicate even after the move.
|
|
118
120
|
*
|
|
119
|
-
* Asked for the audience the view already has, the service
|
|
120
|
-
* command as
|
|
121
|
-
* as it is, revision unmoved, once the revision
|
|
121
|
+
* Asked for the audience the view already has, the service answers the
|
|
122
|
+
* command as one on a view out of that owner's reach, not found; the store
|
|
123
|
+
* then answers the view as it is, revision unmoved, once the revision
|
|
124
|
+
* matches.
|
|
122
125
|
*
|
|
123
126
|
* A shared view a shared dashboard shows stays shared: the service
|
|
124
127
|
* refuses the claim and names the boards, and the refusal carries them by
|
|
@@ -140,31 +143,6 @@ export declare class WowViewStore implements ViewStore {
|
|
|
140
143
|
* is answered as the first attempt's duplicate, at its version.
|
|
141
144
|
*/
|
|
142
145
|
setPreferences(definitionId: string, preferences: ViewPreferences, context: WriteOptions): Promise<ViewPreferences>;
|
|
143
|
-
/**
|
|
144
|
-
* One instance write: to the place the view is at, then the answer read
|
|
145
|
-
* back. A view remembered at a place it has since left (another tab shared
|
|
146
|
-
* it) is looked up again and the write sent once more from where it is.
|
|
147
|
-
* A move refused because the view already has the audience it asks for
|
|
148
|
-
* changes nothing: the view is answered as it is, once its revision
|
|
149
|
-
* matches.
|
|
150
|
-
*/
|
|
151
|
-
private write;
|
|
152
|
-
/**
|
|
153
|
-
* A landed write's answer: the view read back at the version it left
|
|
154
|
-
* (`GET …/{id}/state?version=`). A system view's revision is its content
|
|
155
|
-
* hash, so it is read by id as it is now.
|
|
156
|
-
*
|
|
157
|
-
* A move is two commits: the view's own (its audience), then the saga's
|
|
158
|
-
* (its owner). Waited for, the result's version is the second; a
|
|
159
|
-
* duplicate answers the first, so the move is read one version later,
|
|
160
|
-
* where the owner it names must be the one it moved to. Anything else
|
|
161
|
-
* (another writer between the two) answers the view as it is now.
|
|
162
|
-
*/
|
|
163
|
-
private landed;
|
|
164
|
-
/** A move to where the view already is: the view as it is, at `revision`. */
|
|
165
|
-
private unchanged;
|
|
166
|
-
/** A stale write's refusal, carrying the view as it is now. */
|
|
167
|
-
private conflict;
|
|
168
146
|
/**
|
|
169
147
|
* View `id` as it is now and where it is, in one read: the service answers
|
|
170
148
|
* the caller's own view of that id, else a shared one, else a system view.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ahoo-wang/wow-view-store",
|
|
3
|
-
"version": "10.0.0-beta.
|
|
3
|
+
"version": "10.0.0-beta.3",
|
|
4
4
|
"description": "The Wow view store as the view engine's ViewStore: saved views and preferences of @ahoo-wang/wow-view-engine on a Wow server (https://github.com/Ahoo-Wang/Wow).",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"wow",
|
|
@@ -43,26 +43,26 @@
|
|
|
43
43
|
"sideEffects": false,
|
|
44
44
|
"peerDependencies": {
|
|
45
45
|
"@ahoo-wang/fetcher": "^5.1.5 || ^6.0.0",
|
|
46
|
-
"@ahoo-wang/wow-
|
|
47
|
-
"@ahoo-wang/wow-
|
|
46
|
+
"@ahoo-wang/wow-client": "~10.0.0-beta.3",
|
|
47
|
+
"@ahoo-wang/wow-view-engine": "~10.0.0-beta.3"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@ahoo-wang/fetcher": "^6.0.1",
|
|
51
51
|
"@ahoo-wang/fetcher-eventstream": "^6.0.1",
|
|
52
52
|
"@eslint/js": "^10.0.1",
|
|
53
|
-
"@microsoft/api-extractor": "^7.
|
|
54
|
-
"@types/node": "^26.6.
|
|
53
|
+
"@microsoft/api-extractor": "^7.60.1",
|
|
54
|
+
"@types/node": "^26.6.6",
|
|
55
55
|
"@vitest/coverage-v8": "4.1.12",
|
|
56
|
-
"eslint": "^10.
|
|
56
|
+
"eslint": "^10.14.0",
|
|
57
57
|
"globals": "^17.13.0",
|
|
58
58
|
"typescript": "~6.0.3",
|
|
59
|
-
"typescript-eslint": "^8.72.
|
|
59
|
+
"typescript-eslint": "^8.72.1",
|
|
60
60
|
"unplugin-dts": "1.1.2",
|
|
61
61
|
"vite": "8.3.5",
|
|
62
62
|
"vitest": "^4.1.12",
|
|
63
|
-
"@ahoo-wang/wow-
|
|
64
|
-
"@ahoo-wang/wow-
|
|
65
|
-
"@ahoo-wang/wow-
|
|
63
|
+
"@ahoo-wang/wow-client": "~10.0.0-beta.3",
|
|
64
|
+
"@ahoo-wang/wow-generator": "~10.0.0-beta.3",
|
|
65
|
+
"@ahoo-wang/wow-view-engine": "~10.0.0-beta.3"
|
|
66
66
|
},
|
|
67
67
|
"scripts": {
|
|
68
68
|
"build": "vite build && pnpm test:package",
|