@livequery/rpc 2.0.75 → 2.0.78

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 -2
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -117,7 +117,7 @@ type RpcMessage = {
117
117
  method: string[]
118
118
  args: any[]
119
119
  }
120
- cancel?: boolean
120
+ cancel?: { id: number }
121
121
  response?: Partial<{
122
122
  data: any
123
123
  error: string
@@ -262,7 +262,7 @@ Notes:
262
262
  If a client unsubscribes from an in-flight call, `ServiceLinker` sends:
263
263
 
264
264
  ```ts
265
- { id, cancel: true }
265
+ { id: 0, cancel: { id } }
266
266
  ```
267
267
 
268
268
  `WorkerManager` listens for that id and stops streaming output for matching Observable calls.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@livequery/rpc",
3
- "version": "2.0.75",
3
+ "version": "2.0.78",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",