@actdim/msgmesh 1.3.3 → 1.3.4
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 +8 -10
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -51,11 +51,7 @@ Once the project loads, run the tests to see the message bus in action:
|
|
|
51
51
|
pnpm run test
|
|
52
52
|
```
|
|
53
53
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
See [`provide()` -> `Cancellation Handling`](#cancellation-handling) and [`request()` -> `Cancellation`](#cancellation).
|
|
57
|
-
|
|
58
|
-
## Installation
|
|
54
|
+
## Installation
|
|
59
55
|
|
|
60
56
|
```bash
|
|
61
57
|
npm install @actdim/msgmesh
|
|
@@ -799,11 +795,13 @@ console.log(response.headers.correlationId); // Preserved correlation ID
|
|
|
799
795
|
|
|
800
796
|
4. **Cancellation**: Cancel in-flight requests with `AbortSignal` (see below).
|
|
801
797
|
|
|
802
|
-
#### Cancellation
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
798
|
+
#### Cancellation
|
|
799
|
+
|
|
800
|
+
Request cancellation is cooperative: when `request()` is aborted, the provider callback receives a cancel message (`headers.status === 'canceled'`) so it can stop in-flight work and clean up resources.
|
|
801
|
+
|
|
802
|
+
Cancel an in-flight request by passing an `AbortSignal` via `options.abortSignal`. When aborted, the bus sends a cancel message to the provider and rejects the returned Promise with an `OperationCanceledError`.
|
|
803
|
+
|
|
804
|
+
See [`provide()` -> `Cancellation Handling`](#cancellation-handling) for provider-side handling details.
|
|
807
805
|
|
|
808
806
|
```typescript
|
|
809
807
|
const abortController = new AbortController();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@actdim/msgmesh",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.4",
|
|
4
4
|
"description": "A type-safe, modular message mesh for scalable async communication in TypeScript",
|
|
5
5
|
"author": "Pavel Borodaev",
|
|
6
6
|
"license": "Proprietary",
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
"typecheck": "tsc -p tsconfig.json --noEmit"
|
|
70
70
|
},
|
|
71
71
|
"peerDependencies": {
|
|
72
|
-
"@actdim/utico": "^1.1.
|
|
72
|
+
"@actdim/utico": "^1.1.5",
|
|
73
73
|
"rxjs": "^7.8.2",
|
|
74
74
|
"uuid": "^13.0.0"
|
|
75
75
|
},
|