@cosmicdrift/kumiko-types 0.282.0 → 0.284.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/package.json +1 -1
- package/src/handlers.ts +6 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cosmicdrift/kumiko-types",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.284.0",
|
|
4
4
|
"description": "Framework-Type-Definitions für Kumiko — FeatureDefinition, BootCheck-Types und die reinen Engine-Types. Erlaubt Downstream-Konsumenten, gegen die Type-Contracts zu bauen, ohne das ganze Framework-Package zu importieren. Enthaelt keine identitaets-sensitiven Runtime-Werte mehr (Error-Klassen leben seit #1629 in kumiko-framework, Brand-Symbole nutzen Symbol.for) und ist deshalb eine plain dependency, keine peerDependency.",
|
|
5
5
|
"license": "BUSL-1.1",
|
|
6
6
|
"author": "Marc Frost <marc@cosmicdriftgamestudio.com>",
|
package/src/handlers.ts
CHANGED
|
@@ -984,6 +984,12 @@ export type AggregateStreamHandle = {
|
|
|
984
984
|
// expectedVersion from the handle automatically. Multiple calls in a
|
|
985
985
|
// row bump the handle's internal version and the events-table in order.
|
|
986
986
|
readonly appendOne: (args: { readonly type: string; readonly payload: unknown }) => Promise<void>;
|
|
987
|
+
// Idempotency check against `events` (fetch-time snapshot only — an
|
|
988
|
+
// appendOne in the same handler isn't reflected). Guards a handler that
|
|
989
|
+
// may run twice against the same stream without risking a false
|
|
990
|
+
// "already succeeded" read that appendIfAbsent-style helpers would give
|
|
991
|
+
// on a genuine optimistic-concurrency conflict.
|
|
992
|
+
readonly hasEvent: (type: string) => boolean;
|
|
987
993
|
};
|
|
988
994
|
|
|
989
995
|
// --- Event Upcasters (schema migration) ---
|