@procedures/client 0.48.1 → 0.49.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/CHANGELOG.md +27 -0
- package/dist/.tsbuildinfo +1 -1
- package/dist/adapters/http/server/body.d.ts.map +1 -1
- package/dist/adapters/http/server/body.js +13 -2
- package/dist/adapters/http/server/body.js.map +1 -1
- package/dist/adapters/websocket/client/transport.d.ts +6 -0
- package/dist/adapters/websocket/client/transport.d.ts.map +1 -1
- package/dist/adapters/websocket/client/transport.js +53 -6
- package/dist/adapters/websocket/client/transport.js.map +1 -1
- package/dist/adapters/websocket/client/types.d.ts +2 -0
- package/dist/adapters/websocket/client/types.d.ts.map +1 -1
- package/dist/adapters/websocket/server/transport.d.ts.map +1 -1
- package/dist/adapters/websocket/server/transport.js +2 -1
- package/dist/adapters/websocket/server/transport.js.map +1 -1
- package/dist/adapters/websocket/server/types.d.ts +2 -0
- package/dist/adapters/websocket/server/types.d.ts.map +1 -1
- package/dist/procedures/collection/admission.d.ts.map +1 -1
- package/dist/procedures/collection/admission.js +3 -2
- package/dist/procedures/collection/admission.js.map +1 -1
- package/dist/procedures/collection/changes.d.ts +16 -0
- package/dist/procedures/collection/changes.d.ts.map +1 -1
- package/dist/procedures/collection/changes.js +81 -9
- package/dist/procedures/collection/changes.js.map +1 -1
- package/dist/procedures/collection/procedures.d.ts.map +1 -1
- package/dist/procedures/collection/procedures.js +8 -3
- package/dist/procedures/collection/procedures.js.map +1 -1
- package/dist/procedures/collection/storage.d.ts +10 -0
- package/dist/procedures/collection/storage.d.ts.map +1 -1
- package/package.json +4 -4
- package/src/adapters/http/server/body.ts +11 -2
- package/src/adapters/websocket/client/transport.ts +52 -7
- package/src/adapters/websocket/client/types.ts +3 -0
- package/src/adapters/websocket/server/transport.ts +2 -1
- package/src/adapters/websocket/server/types.ts +3 -0
- package/src/procedures/collection/admission.ts +3 -2
- package/src/procedures/collection/changes.ts +87 -9
- package/src/procedures/collection/procedures.ts +7 -2
- package/src/procedures/collection/storage.ts +10 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,32 @@
|
|
|
1
1
|
# @procedures/client
|
|
2
2
|
|
|
3
|
+
## 0.49.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- a1aedc5: The release train: the ranges of @mark1russell7/collections change to a version outside the old range.
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- bf0aa79: A write over the size limit of the remote no longer stops the offline queue of `HybridStorage` (CLI-108).
|
|
12
|
+
|
|
13
|
+
- A batch that the remote refuses, or that is too large, goes again as one write for each id. Only the bad write leaves the queue, and its siblings reach the remote.
|
|
14
|
+
- A write of one id that is too large leaves the queue at once, and the writes behind it go on. The hook `onDropped` gets its id and value with the new reason `too-large`.
|
|
15
|
+
- The new option `isTooLarge` tells which error is too large. The default is the code `PAYLOAD_TOO_LARGE`.
|
|
16
|
+
- The `hello` of the WebSocket server tells its limit `maxPayload`. The client refuses a larger call alone with `PAYLOAD_TOO_LARGE`, and the other calls of the connection go on. Before, the server closed the connection, and each pending call failed.
|
|
17
|
+
- The HTTP server reads and drops up to 64 MiB of a body over the limit. So the client gets the answer 413, not a reset of the connection.
|
|
18
|
+
|
|
19
|
+
Breaking change: the type `DroppedWrite["reason"]` has the new member `"too-large"`. To migrate, add a case for `"too-large"` to each `switch` over the reason. A refused batch no longer drops its good siblings.
|
|
20
|
+
|
|
21
|
+
## 0.48.2
|
|
22
|
+
|
|
23
|
+
### Patch Changes
|
|
24
|
+
|
|
25
|
+
- 08beec5: A write that a write in flight holds back reaches its subscribers with no later write. `StorageChanges` has a new optional field `held`. The docs state that a result gives each write at least one time. They name the two cases of a second time. A read of the log with no change does not move the `since` of the next event, so the events keep their chain.
|
|
26
|
+
- 48b7127: The writes of a collection that end while a change read runs share the next read. A write still resolves after its event is on the bus. Before this change, each write under sustained load had its own read, so the replies fell to one for each read.
|
|
27
|
+
|
|
28
|
+
This change does not close the fault of a store under overload with a subscriber (CLI-102). On one run at 100 writers, the replies were 38.2 percent of a copy with no subscriber, and the pass line is 70 percent. So the change read must leave the queue of the writes.
|
|
29
|
+
|
|
3
30
|
## 0.48.1
|
|
4
31
|
|
|
5
32
|
### Patch Changes
|