@greendrake/vue-api 0.7.0 → 0.9.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.
Files changed (2) hide show
  1. package/README.md +2 -0
  2. package/package.json +5 -5
package/README.md CHANGED
@@ -188,6 +188,8 @@ The mechanism — relevance, `apply` versus `resync`, the reconnect re-read, coa
188
188
  - Its failure neither interrupts nor vanishes. A `NotFoundError` is dropped (the entity went away while the socket was down; the next navigation says so), a `NetworkError` is dropped (the socket went again mid-read, and the binding's own reconnect rule re-reads when it returns), and anything else goes to the `errorSink` configured through `configureApiUX` — reported, never toasted.
189
189
  - It must read past a response cache the missed pushes would have invalidated: invalidate the entries the read would hit, then read, so the stale entry is repaired rather than stepped around.
190
190
 
191
+ A state stream needs none of this. `@greendrake/rpc`'s `liveDocument` keeps the document in a reactive target, and the server greets a reconnect with the document afresh, so there is no re-read to run and no failure of one to classify.
192
+
191
193
  `backgroundCall` also serves any loader told whether anybody asked for its load — a table re-reading after a push, say, which is where a panel's re-read actually calls the API:
192
194
 
193
195
  ```ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@greendrake/vue-api",
3
- "version": "0.7.0",
3
+ "version": "0.9.0",
4
4
  "description": "Vue binding of @greendrake/rpc: loading-state wiring, response cache, error-UX pipeline, silent calls, live bindings to server push",
5
5
  "license": "MIT",
6
6
  "author": "Eugene Greendrake <eugene@greendrake.nz>",
@@ -36,10 +36,10 @@
36
36
  },
37
37
  "prettier": "@greendrake/dev-config/prettier",
38
38
  "dependencies": {
39
- "@greendrake/rpc": "0.7.0",
40
- "@greendrake/ui": "0.7.0",
41
- "@greendrake/util": "0.7.0",
42
- "@greendrake/vue-kit": "0.7.0"
39
+ "@greendrake/rpc": "^0.9.0",
40
+ "@greendrake/ui": "^0.8.0",
41
+ "@greendrake/util": "^0.8.0",
42
+ "@greendrake/vue-kit": "^0.8.0"
43
43
  },
44
44
  "peerDependencies": {
45
45
  "pinia": "^3.0.4",