@rotorsoft/act 1.34.4 → 1.35.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/README.md +2 -2
- package/dist/.tsbuildinfo +1 -1
- package/dist/@types/act.d.ts +8 -6
- package/dist/@types/act.d.ts.map +1 -1
- package/dist/@types/builders/act-builder.d.ts.map +1 -1
- package/dist/@types/builders/state-builder.d.ts +1 -1
- package/dist/@types/internal/correlate-cycle.d.ts +4 -2
- package/dist/@types/internal/correlate-cycle.d.ts.map +1 -1
- package/dist/@types/internal/event-sourcing.d.ts +1 -6
- package/dist/@types/internal/event-sourcing.d.ts.map +1 -1
- package/dist/@types/internal/projection-fold.d.ts +1 -1
- package/dist/@types/internal/projection-fold.d.ts.map +1 -1
- package/dist/@types/internal/tracing.d.ts.map +1 -1
- package/dist/@types/types/act.d.ts +5 -21
- package/dist/@types/types/act.d.ts.map +1 -1
- package/dist/@types/types/action.d.ts +34 -16
- package/dist/@types/types/action.d.ts.map +1 -1
- package/dist/@types/types/builders.d.ts +26 -30
- package/dist/@types/types/builders.d.ts.map +1 -1
- package/dist/@types/types/errors.d.ts +56 -29
- package/dist/@types/types/errors.d.ts.map +1 -1
- package/dist/{chunk-GBAMBUDN.cjs → chunk-BNTVE7RQ.cjs} +13 -13
- package/dist/{chunk-GBAMBUDN.cjs.map → chunk-BNTVE7RQ.cjs.map} +1 -1
- package/dist/{chunk-BKCNU6FF.js → chunk-DH2HW5XJ.js} +13 -4
- package/dist/chunk-DH2HW5XJ.js.map +1 -0
- package/dist/{chunk-RF5MV72K.cjs → chunk-L66OOP2F.cjs} +14 -5
- package/dist/chunk-L66OOP2F.cjs.map +1 -0
- package/dist/{chunk-IEM2NS6J.js → chunk-MHPUVTMX.js} +2 -2
- package/dist/index.cjs +230 -229
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +73 -72
- package/dist/index.js.map +1 -1
- package/dist/test/index.cjs +4 -4
- package/dist/test/index.js +2 -2
- package/dist/types/index.cjs +4 -2
- package/dist/types/index.cjs.map +1 -1
- package/dist/types/index.js +3 -1
- package/package.json +1 -1
- package/dist/chunk-BKCNU6FF.js.map +0 -1
- package/dist/chunk-RF5MV72K.cjs.map +0 -1
- /package/dist/{chunk-IEM2NS6J.js.map → chunk-MHPUVTMX.js.map} +0 -0
|
@@ -6,11 +6,14 @@ import type { Actor, DeferWhen, Message, Schema, Schemas, Snapshot, Target } fro
|
|
|
6
6
|
* Application error type constants and error classes for the Act Framework.
|
|
7
7
|
*
|
|
8
8
|
* - `ERR_VALIDATION`: Schema validation error
|
|
9
|
-
* - `
|
|
9
|
+
* - `ERR_PRECONDITION`: A precondition refused the action
|
|
10
|
+
* - `ERR_INVARIANT`: A deprecated `.given` rule refused the action
|
|
10
11
|
* - `ERR_CONCURRENCY`: Optimistic concurrency validation error on commits
|
|
11
12
|
*/
|
|
12
13
|
export declare const Errors: {
|
|
13
14
|
readonly ValidationError: "ERR_VALIDATION";
|
|
15
|
+
readonly PreconditionError: "ERR_PRECONDITION";
|
|
16
|
+
/** @deprecated `.given` rules are preconditions; use `PreconditionError`. Removed in 2.0. */
|
|
14
17
|
readonly InvariantError: "ERR_INVARIANT";
|
|
15
18
|
readonly ConcurrencyError: "ERR_CONCURRENCY";
|
|
16
19
|
readonly StreamClosedError: "ERR_STREAM_CLOSED";
|
|
@@ -55,14 +58,53 @@ export declare class ValidationError extends Error {
|
|
|
55
58
|
constructor(target: string, payload: any, details: any);
|
|
56
59
|
}
|
|
57
60
|
/**
|
|
58
|
-
* Thrown when a
|
|
59
|
-
*
|
|
61
|
+
* Thrown when a rule declared with the deprecated `.given([...])` refuses
|
|
62
|
+
* an action, with the message `"<action> failed invariant: <description>"`.
|
|
60
63
|
*
|
|
61
|
-
*
|
|
62
|
-
*
|
|
63
|
-
*
|
|
64
|
-
*
|
|
65
|
-
*
|
|
64
|
+
* Those rules were always preconditions, not invariants: what must hold
|
|
65
|
+
* after every action lives in the state's schema. {@link PreconditionError}
|
|
66
|
+
* extends this class, so `instanceof InvariantError` still catches every
|
|
67
|
+
* refused action.
|
|
68
|
+
*
|
|
69
|
+
* @deprecated Declare the rule with `.requires([...])` and catch
|
|
70
|
+
* {@link PreconditionError}. Removed in 2.0.
|
|
71
|
+
*
|
|
72
|
+
* @template TState - State schema type
|
|
73
|
+
* @template TEvents - Event schemas type
|
|
74
|
+
* @template TActions - Action schemas type
|
|
75
|
+
* @template TKey - Action name
|
|
76
|
+
* @template TActor - Actor type extending base Actor
|
|
77
|
+
*/
|
|
78
|
+
export declare class InvariantError<TState extends Schema, TEvents extends Schemas, TActions extends Schemas, TKey extends keyof TActions, TActor extends Actor = Actor> extends Error {
|
|
79
|
+
/** The action that was attempted */
|
|
80
|
+
readonly action: TKey;
|
|
81
|
+
/** The action payload that was provided */
|
|
82
|
+
readonly payload: Readonly<TActions[TKey]>;
|
|
83
|
+
/** The target stream and actor context */
|
|
84
|
+
readonly target: Target<TActor>;
|
|
85
|
+
/** The current state snapshot when the rule was checked */
|
|
86
|
+
readonly snapshot: Snapshot<TState, TEvents>;
|
|
87
|
+
/** Human-readable description of the rule that refused the action */
|
|
88
|
+
readonly description: string;
|
|
89
|
+
/**
|
|
90
|
+
* @param rule - Which layer refused the action: a `.given([...])` rule
|
|
91
|
+
* (the default) or a precondition from `.requires([...])`. It names the
|
|
92
|
+
* layer in the message.
|
|
93
|
+
*/
|
|
94
|
+
constructor(action: TKey, payload: Readonly<TActions[TKey]>, target: Target<TActor>, snapshot: Snapshot<TState, TEvents>, description: string, rule?: "invariant" | "precondition");
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* Thrown when a precondition from `.requires([...])` refuses an action,
|
|
98
|
+
* with the message `"<action> failed precondition: <description>"`.
|
|
99
|
+
*
|
|
100
|
+
* Preconditions are what the caller must meet for the action to run now.
|
|
101
|
+
* They're checked after loading the current state and before the handler
|
|
102
|
+
* emits anything, so nothing is stored. Invariants (what must hold after
|
|
103
|
+
* every action) live in the state's schema instead; a broken one throws
|
|
104
|
+
* {@link ValidationError}.
|
|
105
|
+
*
|
|
106
|
+
* It extends the deprecated {@link InvariantError} until 2.0, so code that
|
|
107
|
+
* catches `InvariantError` keeps catching every refused action.
|
|
66
108
|
*
|
|
67
109
|
* @template TState - State schema type
|
|
68
110
|
* @template TEvents - Event schemas type
|
|
@@ -70,9 +112,9 @@ export declare class ValidationError extends Error {
|
|
|
70
112
|
* @template TKey - Action name
|
|
71
113
|
* @template TActor - Actor type extending base Actor
|
|
72
114
|
*
|
|
73
|
-
* @example Catching
|
|
115
|
+
* @example Catching a refused action
|
|
74
116
|
* ```typescript
|
|
75
|
-
* import {
|
|
117
|
+
* import { PreconditionError } from "@rotorsoft/act";
|
|
76
118
|
*
|
|
77
119
|
* try {
|
|
78
120
|
* await app.do("withdraw",
|
|
@@ -80,7 +122,7 @@ export declare class ValidationError extends Error {
|
|
|
80
122
|
* { amount: 1000 }
|
|
81
123
|
* );
|
|
82
124
|
* } catch (error) {
|
|
83
|
-
* if (error instanceof
|
|
125
|
+
* if (error instanceof PreconditionError) {
|
|
84
126
|
* console.error("Action:", error.action);
|
|
85
127
|
* console.error("Reason:", error.description);
|
|
86
128
|
* console.error("Current state:", error.snapshot.state);
|
|
@@ -89,25 +131,10 @@ export declare class ValidationError extends Error {
|
|
|
89
131
|
* }
|
|
90
132
|
* ```
|
|
91
133
|
*
|
|
92
|
-
* @see {@link
|
|
134
|
+
* @see {@link Precondition} for declaring them
|
|
93
135
|
*/
|
|
94
|
-
export declare class
|
|
95
|
-
|
|
96
|
-
readonly action: TKey;
|
|
97
|
-
/** The action payload that was provided */
|
|
98
|
-
readonly payload: Readonly<TActions[TKey]>;
|
|
99
|
-
/** The target stream and actor context */
|
|
100
|
-
readonly target: Target<TActor>;
|
|
101
|
-
/** The current state snapshot when the rule was checked */
|
|
102
|
-
readonly snapshot: Snapshot<TState, TEvents>;
|
|
103
|
-
/** Human-readable description of the rule that refused the action */
|
|
104
|
-
readonly description: string;
|
|
105
|
-
/**
|
|
106
|
-
* @param rule - Which layer refused the action: an invariant from
|
|
107
|
-
* `.given([...])` (the default) or a precondition from
|
|
108
|
-
* `.requires([...])`. It names the layer in the message.
|
|
109
|
-
*/
|
|
110
|
-
constructor(action: TKey, payload: Readonly<TActions[TKey]>, target: Target<TActor>, snapshot: Snapshot<TState, TEvents>, description: string, rule?: "invariant" | "precondition");
|
|
136
|
+
export declare class PreconditionError<TState extends Schema, TEvents extends Schemas, TActions extends Schemas, TKey extends keyof TActions, TActor extends Actor = Actor> extends InvariantError<TState, TEvents, TActions, TKey, TActor> {
|
|
137
|
+
constructor(action: TKey, payload: Readonly<TActions[TKey]>, target: Target<TActor>, snapshot: Snapshot<TState, TEvents>, description: string);
|
|
111
138
|
}
|
|
112
139
|
/**
|
|
113
140
|
* Thrown when optimistic concurrency control detects a conflict.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../src/types/errors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,KAAK,EACL,SAAS,EACT,OAAO,EACP,MAAM,EACN,OAAO,EACP,QAAQ,EACR,MAAM,EACP,MAAM,aAAa,CAAC;AAErB
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../src/types/errors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,KAAK,EACL,SAAS,EACT,OAAO,EACP,MAAM,EACN,OAAO,EACP,QAAQ,EACR,MAAM,EACP,MAAM,aAAa,CAAC;AAErB;;;;;;;;;;GAUG;AACH,eAAO,MAAM,MAAM;aACjB,eAAe,EAAE,gBAAgB;aACjC,iBAAiB,EAAE,kBAAkB;IACrC,6FAA6F;aAC7F,cAAc,EAAE,eAAe;aAC/B,gBAAgB,EAAE,iBAAiB;aACnC,iBAAiB,EAAE,mBAAmB;aACtC,iBAAiB,EAAE,mBAAmB;aACtC,UAAU,EAAE,WAAW;CACf,CAAC;AAEX;;;;;;;;;;;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6E;IAC7E,SAAgB,SAAS,EAAE,MAAM,CAAC;IAElC,YAAY,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE;QAAE,KAAK,CAAC,EAAE,OAAO,CAAA;KAAE,EAI3D;CACF;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,qBAAa,iBAAkB,SAAQ,KAAK;IAC1C,8EAA8E;IAC9E,SAAyB,KAAK,CAAC,EAAE,OAAO,CAAC;IAEzC,YAAY,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE;QAAE,KAAK,CAAC,EAAE,OAAO,CAAA;KAAE,EAIzD;CACF;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,qBAAa,WAAY,SAAQ,KAAK;IACpC;;;OAGG;IACH,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAC;IAEzB,YAAY,IAAI,EAAE,SAAS,EAI1B;CACF"}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkL66OOP2Fcjs = require('./chunk-L66OOP2F.cjs');
|
|
10
10
|
|
|
11
11
|
// src/adapters/console-logger.ts
|
|
12
12
|
var LEVEL_VALUES = {
|
|
@@ -350,9 +350,9 @@ var validate = (target, payload, schema) => {
|
|
|
350
350
|
return schema ? schema.parse(payload) : payload;
|
|
351
351
|
} catch (error) {
|
|
352
352
|
if (error instanceof _zod.ZodError) {
|
|
353
|
-
throw new (0,
|
|
353
|
+
throw new (0, _chunkL66OOP2Fcjs.ValidationError)(target, payload, _zod.prettifyError.call(void 0, error));
|
|
354
354
|
}
|
|
355
|
-
throw new (0,
|
|
355
|
+
throw new (0, _chunkL66OOP2Fcjs.ValidationError)(target, payload, error);
|
|
356
356
|
}
|
|
357
357
|
};
|
|
358
358
|
var extend = (source, schema, target) => {
|
|
@@ -385,7 +385,7 @@ var InMemoryStream = (_class2 = class {
|
|
|
385
385
|
__init8() {this._deferred_at = void 0}
|
|
386
386
|
// Work mark; `undefined` = never correlated, so `claim` skips it.
|
|
387
387
|
__init9() {this._correlated_at = void 0}
|
|
388
|
-
constructor(stream, source, priority = 0, lane =
|
|
388
|
+
constructor(stream, source, priority = 0, lane = _chunkL66OOP2Fcjs.DEFAULT_LANE) {;_class2.prototype.__init2.call(this);_class2.prototype.__init3.call(this);_class2.prototype.__init4.call(this);_class2.prototype.__init5.call(this);_class2.prototype.__init6.call(this);_class2.prototype.__init7.call(this);_class2.prototype.__init8.call(this);_class2.prototype.__init9.call(this);
|
|
389
389
|
this.stream = stream;
|
|
390
390
|
this.source = source;
|
|
391
391
|
this._priority = priority;
|
|
@@ -582,7 +582,7 @@ var InMemoryStore = (_class3 = class {constructor() { _class3.prototype.__init10
|
|
|
582
582
|
if (query.names && !query.names.includes(e.name)) return false;
|
|
583
583
|
if (query.correlation && _optionalChain([e, 'access', _8 => _8.meta, 'optionalAccess', _9 => _9.correlation]) !== query.correlation)
|
|
584
584
|
return false;
|
|
585
|
-
if (e.name ===
|
|
585
|
+
if (e.name === _chunkL66OOP2Fcjs.SNAP_EVENT && !query.with_snaps) return false;
|
|
586
586
|
if (query.created_after && e.created <= query.created_after) return false;
|
|
587
587
|
if (query.created_before && e.created >= query.created_before)
|
|
588
588
|
return false;
|
|
@@ -595,7 +595,7 @@ var InMemoryStore = (_class3 = class {constructor() { _class3.prototype.__init10
|
|
|
595
595
|
return -1;
|
|
596
596
|
for (let j = this._events.length - 1; j >= 0; j--) {
|
|
597
597
|
const e = this._events[j];
|
|
598
|
-
if (e.stream === query.stream && e.name ===
|
|
598
|
+
if (e.stream === query.stream && e.name === _chunkL66OOP2Fcjs.SNAP_EVENT) return j;
|
|
599
599
|
}
|
|
600
600
|
return -1;
|
|
601
601
|
}
|
|
@@ -622,7 +622,7 @@ var InMemoryStore = (_class3 = class {constructor() { _class3.prototype.__init10
|
|
|
622
622
|
await sleep();
|
|
623
623
|
const current_version = _nullishCoalesce(this._stream_versions.get(stream), () => ( -1));
|
|
624
624
|
if (typeof expectedVersion === "number" && current_version !== expectedVersion) {
|
|
625
|
-
throw new (0,
|
|
625
|
+
throw new (0, _chunkL66OOP2Fcjs.ConcurrencyError)(
|
|
626
626
|
stream,
|
|
627
627
|
current_version,
|
|
628
628
|
msgs,
|
|
@@ -713,7 +713,7 @@ var InMemoryStore = (_class3 = class {constructor() { _class3.prototype.__init10
|
|
|
713
713
|
stream,
|
|
714
714
|
source,
|
|
715
715
|
priority = 0,
|
|
716
|
-
lane =
|
|
716
|
+
lane = _chunkL66OOP2Fcjs.DEFAULT_LANE,
|
|
717
717
|
correlated_at: correlated_at2
|
|
718
718
|
} of streams) {
|
|
719
719
|
const existing = this._streams.get(stream);
|
|
@@ -897,7 +897,7 @@ var InMemoryStore = (_class3 = class {constructor() { _class3.prototype.__init10
|
|
|
897
897
|
for (const { stream, before, max_id } of windowed) {
|
|
898
898
|
let boundary;
|
|
899
899
|
for (const e of this._events) {
|
|
900
|
-
if (e.stream === stream && e.name ===
|
|
900
|
+
if (e.stream === stream && e.name === _chunkL66OOP2Fcjs.SNAP_EVENT && e.created < before && (max_id === void 0 || e.id <= max_id) && (!boundary || e.id > boundary.id))
|
|
901
901
|
boundary = e;
|
|
902
902
|
}
|
|
903
903
|
if (!boundary) continue;
|
|
@@ -926,7 +926,7 @@ var InMemoryStore = (_class3 = class {constructor() { _class3.prototype.__init10
|
|
|
926
926
|
stream,
|
|
927
927
|
version: 0,
|
|
928
928
|
created: /* @__PURE__ */ new Date(),
|
|
929
|
-
name: snapshot !== void 0 ?
|
|
929
|
+
name: snapshot !== void 0 ? _chunkL66OOP2Fcjs.SNAP_EVENT : _chunkL66OOP2Fcjs.TOMBSTONE_EVENT,
|
|
930
930
|
data: _nullishCoalesce(snapshot, () => ( {})),
|
|
931
931
|
meta: _nullishCoalesce(meta, () => ( { correlation: "", causation: {} }))
|
|
932
932
|
};
|
|
@@ -1131,8 +1131,8 @@ var get_package = () => {
|
|
|
1131
1131
|
};
|
|
1132
1132
|
var pkg_load_error;
|
|
1133
1133
|
var BaseSchema = PackageSchema.extend({
|
|
1134
|
-
env: _zod.z.enum(
|
|
1135
|
-
logLevel: _zod.z.enum(
|
|
1134
|
+
env: _zod.z.enum(_chunkL66OOP2Fcjs.Environments),
|
|
1135
|
+
logLevel: _zod.z.enum(_chunkL66OOP2Fcjs.LogLevels),
|
|
1136
1136
|
logSingleLine: _zod.z.boolean(),
|
|
1137
1137
|
sleepMs: _zod.z.number().int().min(0).max(5e3)
|
|
1138
1138
|
});
|
|
@@ -1206,4 +1206,4 @@ function resolveAutocloseConfig2(options) {
|
|
|
1206
1206
|
|
|
1207
1207
|
|
|
1208
1208
|
exports.ConsoleLogger = ConsoleLogger; exports.LruMap = LruMap; exports.InMemoryCache = InMemoryCache; exports.DEFAULT_BACKOFF = DEFAULT_BACKOFF; exports.DEFAULT_MAX_RETRIES = DEFAULT_MAX_RETRIES; exports.DEFAULT_BLOCK_ON_ERROR = DEFAULT_BLOCK_ON_ERROR; exports.resolveReactionConfig = resolveReactionConfig; exports.resolveActionConfig = resolveActionConfig; exports.resolveLaneConfig = resolveLaneConfig; exports.DEFAULT_STREAM_LIMIT = DEFAULT_STREAM_LIMIT; exports.DEFAULT_EVENT_LIMIT = DEFAULT_EVENT_LIMIT; exports.DEFAULT_LEASE_MILLIS = DEFAULT_LEASE_MILLIS; exports.resolveDrainConfig = resolveDrainConfig; exports.resolveSettleConfig = resolveSettleConfig; exports.MAX_SHUTDOWN_GRACE_MS = MAX_SHUTDOWN_GRACE_MS; exports.resolveShutdownConfig = resolveShutdownConfig; exports.resolveActConfig = resolveActConfig; exports.resolveAutocloseConfig = resolveAutocloseConfig; exports.resolveCircuitBreakerConfig = resolveCircuitBreakerConfig; exports.resolveFoldConfig = resolveFoldConfig; exports.PackageSchema = PackageSchema; exports.config = config; exports.resolveAutocloseConfig2 = resolveAutocloseConfig2; exports.validate = validate; exports.extend = extend; exports.sleep = sleep; exports.is_literal_source = is_literal_source; exports.dateReviver = dateReviver; exports.InMemoryStore = InMemoryStore; exports.register_weak_disposer = register_weak_disposer; exports.make_run_scoped = make_run_scoped; exports.current_autoclose_window = current_autoclose_window; exports.current_reacting = current_reacting; exports.make_reaction_scope = make_reaction_scope; exports.port = port; exports.log = log; exports.store = store2; exports.cache = cache2; exports.default_scope = default_scope; exports.disposeAndExit = disposeAndExit; exports.dispose = dispose;
|
|
1209
|
-
//# sourceMappingURL=chunk-
|
|
1209
|
+
//# sourceMappingURL=chunk-BNTVE7RQ.cjs.map
|