@opetope/core 0.1.0 → 0.1.1
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 +7 -0
- package/dist/model-context.d.ts +3 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @opetope/core
|
|
2
2
|
|
|
3
|
+
## 0.1.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 0de624b: Expose `backpressure: latest()` through `ModelContext.event` typings, matching the existing runtime behavior and
|
|
8
|
+
feature event API.
|
|
9
|
+
|
|
3
10
|
## 0.1.0
|
|
4
11
|
|
|
5
12
|
Initial release. See the package README for the supported API and usage.
|
package/dist/model-context.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { AdapterMethodKey, AdapterMethodSignature, UniqueExposeKeys } from './adapter-method.js';
|
|
2
2
|
import type { Call } from './call-target.js';
|
|
3
3
|
import type { Readable } from './readable.js';
|
|
4
|
-
import type { Resource, ResourceRequestKey, ResourceRetention, ResourceRetry, StreamBackpressure } from './resource.js';
|
|
4
|
+
import type { LatestBackpressure, Resource, ResourceRequestKey, ResourceRetention, ResourceRetry, StreamBackpressure } from './resource.js';
|
|
5
5
|
import type { Awaitable } from './type-helpers.js';
|
|
6
6
|
declare const modelLaneBrand: unique symbol;
|
|
7
7
|
declare const ownedStateBrand: unique symbol;
|
|
@@ -69,6 +69,8 @@ type ModelEventSubscribeContext<Source, Payload> = {
|
|
|
69
69
|
readonly timers: ModelTimers;
|
|
70
70
|
};
|
|
71
71
|
type ModelEventOptions<Source, Payload> = {
|
|
72
|
+
/** `latest()` replaces the one payload waiting behind the active run (D247). */
|
|
73
|
+
readonly backpressure?: LatestBackpressure;
|
|
72
74
|
readonly run: (context: {
|
|
73
75
|
readonly payload: Payload;
|
|
74
76
|
readonly signal: AbortSignal;
|