@scenarist/core 0.5.1 → 0.5.3

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.
@@ -9,11 +9,14 @@ import type { SequenceTracker, SequencePosition } from "../ports/driven/sequence
9
9
  * implementation instead.
10
10
  */
11
11
  export declare class InMemorySequenceTracker implements SequenceTracker {
12
- private readonly positions;
12
+ private readonly positionsByTestId;
13
13
  constructor();
14
14
  /**
15
- * Generate key for tracking sequence position.
16
- * Format: `${testId}:${scenarioId}:${mockIndex}`
15
+ * Generate key for tracking a mock's sequence position within one test ID.
16
+ * Format: `${scenarioId}:${mockIndex}`
17
+ *
18
+ * Test IDs are a separate map level, never a key prefix, so resetting one
19
+ * test ID cannot touch another whose ID starts with the same characters.
17
20
  */
18
21
  private getKey;
19
22
  getPosition(testId: string, scenarioId: string, mockIndex: number): SequencePosition;
@@ -1 +1 @@
1
- {"version":3,"file":"in-memory-sequence-tracker.d.ts","sourceRoot":"","sources":["../../src/adapters/in-memory-sequence-tracker.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,eAAe,EACf,gBAAgB,EACjB,MAAM,qCAAqC,CAAC;AAE7C;;;;;;;;GAQG;AACH,qBAAa,uBAAwB,YAAW,eAAe;IAC7D,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAgC;;IAM1D;;;OAGG;IACH,OAAO,CAAC,MAAM;IAQd,WAAW,CACT,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,MAAM,EAClB,SAAS,EAAE,MAAM,GAChB,gBAAgB;IAYnB,OAAO,CACL,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,MAAM,EAClB,SAAS,EAAE,MAAM,EACjB,cAAc,EAAE,MAAM,EACtB,UAAU,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,GACpC,IAAI;IA0CP,KAAK,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI;CAM5B;AAED;;;GAGG;AACH,eAAO,MAAM,6BAA6B,QAAO,eAEhD,CAAC"}
1
+ {"version":3,"file":"in-memory-sequence-tracker.d.ts","sourceRoot":"","sources":["../../src/adapters/in-memory-sequence-tracker.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,eAAe,EACf,gBAAgB,EACjB,MAAM,qCAAqC,CAAC;AAE7C;;;;;;;;GAQG;AACH,qBAAa,uBAAwB,YAAW,eAAe;IAC7D,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAGhC;;IAMF;;;;;;OAMG;IACH,OAAO,CAAC,MAAM;IAId,WAAW,CACT,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,MAAM,EAClB,SAAS,EAAE,MAAM,GAChB,gBAAgB;IAanB,OAAO,CACL,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,MAAM,EAClB,SAAS,EAAE,MAAM,EACjB,cAAc,EAAE,MAAM,EACtB,UAAU,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,GACpC,IAAI;IA6CP,KAAK,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI;CAG5B;AAED;;;GAGG;AACH,eAAO,MAAM,6BAA6B,QAAO,eAEhD,CAAC"}
@@ -8,20 +8,24 @@
8
8
  * implementation instead.
9
9
  */
10
10
  export class InMemorySequenceTracker {
11
- positions;
11
+ positionsByTestId;
12
12
  constructor() {
13
- this.positions = new Map();
13
+ this.positionsByTestId = new Map();
14
14
  }
15
15
  /**
16
- * Generate key for tracking sequence position.
17
- * Format: `${testId}:${scenarioId}:${mockIndex}`
16
+ * Generate key for tracking a mock's sequence position within one test ID.
17
+ * Format: `${scenarioId}:${mockIndex}`
18
+ *
19
+ * Test IDs are a separate map level, never a key prefix, so resetting one
20
+ * test ID cannot touch another whose ID starts with the same characters.
18
21
  */
19
- getKey(testId, scenarioId, mockIndex) {
20
- return `${testId}:${scenarioId}:${mockIndex}`;
22
+ getKey(scenarioId, mockIndex) {
23
+ return `${scenarioId}:${mockIndex}`;
21
24
  }
22
25
  getPosition(testId, scenarioId, mockIndex) {
23
- const key = this.getKey(testId, scenarioId, mockIndex);
24
- const existing = this.positions.get(key);
26
+ const existing = this.positionsByTestId
27
+ .get(testId)
28
+ ?.get(this.getKey(scenarioId, mockIndex));
25
29
  // If no position exists yet, start at 0
26
30
  if (!existing) {
27
31
  return { position: 0, exhausted: false };
@@ -29,29 +33,31 @@ export class InMemorySequenceTracker {
29
33
  return existing;
30
34
  }
31
35
  advance(testId, scenarioId, mockIndex, totalResponses, repeatMode) {
32
- const key = this.getKey(testId, scenarioId, mockIndex);
36
+ const key = this.getKey(scenarioId, mockIndex);
33
37
  const current = this.getPosition(testId, scenarioId, mockIndex);
38
+ const positions = this.positionsByTestId.get(testId) ?? new Map();
39
+ this.positionsByTestId.set(testId, positions);
34
40
  const nextPosition = current.position + 1;
35
41
  // Handle different repeat modes
36
42
  if (nextPosition >= totalResponses) {
37
43
  switch (repeatMode) {
38
44
  case "last":
39
45
  // Stay at last position (don't increment beyond last)
40
- this.positions.set(key, {
46
+ positions.set(key, {
41
47
  position: totalResponses - 1,
42
48
  exhausted: false,
43
49
  });
44
50
  break;
45
51
  case "cycle":
46
52
  // Wrap back to first position
47
- this.positions.set(key, {
53
+ positions.set(key, {
48
54
  position: 0,
49
55
  exhausted: false,
50
56
  });
51
57
  break;
52
58
  case "none":
53
59
  // Mark as exhausted
54
- this.positions.set(key, {
60
+ positions.set(key, {
55
61
  position: totalResponses,
56
62
  exhausted: true,
57
63
  });
@@ -60,17 +66,14 @@ export class InMemorySequenceTracker {
60
66
  }
61
67
  else {
62
68
  // Normal advancement (not at end yet)
63
- this.positions.set(key, {
69
+ positions.set(key, {
64
70
  position: nextPosition,
65
71
  exhausted: false,
66
72
  });
67
73
  }
68
74
  }
69
75
  reset(testId) {
70
- const prefix = `${testId}:`;
71
- Array.from(this.positions.keys())
72
- .filter((key) => key.startsWith(prefix))
73
- .forEach((key) => this.positions.delete(key));
76
+ this.positionsByTestId.delete(testId);
74
77
  }
75
78
  }
76
79
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"response-selector.d.ts","sourceRoot":"","sources":["../../src/domain/response-selector.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EACV,gBAAgB,EAChB,eAAe,EACf,YAAY,EACZ,MAAM,EACP,MAAM,mBAAmB,CAAC;AA2C3B,KAAK,6BAA6B,GAAG;IACnC,eAAe,CAAC,EAAE,eAAe,CAAC;IAClC,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAsEF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,sBAAsB,GACjC,UAAS,6BAAkC,KAC1C,gBAwSF,CAAC"}
1
+ {"version":3,"file":"response-selector.d.ts","sourceRoot":"","sources":["../../src/domain/response-selector.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EACV,gBAAgB,EAChB,eAAe,EACf,YAAY,EACZ,MAAM,EACP,MAAM,mBAAmB,CAAC;AA4D3B,KAAK,6BAA6B,GAAG;IACnC,eAAe,CAAC,EAAE,eAAe,CAAC;IAClC,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAsEF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,sBAAsB,GACjC,UAAS,6BAAkC,KAC1C,gBA2SF,CAAC"}
@@ -12,6 +12,10 @@ const SPECIFICITY_RANGES = {
12
12
  SEQUENCE_FALLBACK: 1,
13
13
  SIMPLE_FALLBACK: 0,
14
14
  };
15
+ const toLoggedIdentity = ({ scenarioId, mockIndex, }) => ({
16
+ mockScenarioId: scenarioId,
17
+ mockIndex,
18
+ });
15
19
  const createSequenceExhaustedError = ({ testId, scenarioId, context, }) => new ScenaristError(`Sequence exhausted for ${context.method} ${context.url}. All responses have been consumed and repeat mode is 'none'.`, {
16
20
  code: ErrorCodes.SEQUENCE_EXHAUSTED,
17
21
  context: {
@@ -60,28 +64,28 @@ const createNoResponseTypeError = ({ testId, scenarioId, mockIndex, }) => new Sc
60
64
  */
61
65
  export const createResponseSelector = (options = {}) => {
62
66
  const { sequenceTracker, stateManager, logger = noOpLogger } = options;
63
- const isExhaustedSequence = ({ testId, scenarioId, mockIndex, mock, }) => {
64
- if (!mock.sequence || !sequenceTracker) {
67
+ const isExhaustedSequence = ({ testId, mockWithParams, }) => {
68
+ if (!mockWithParams.mock.sequence || !sequenceTracker) {
65
69
  return false;
66
70
  }
67
- return sequenceTracker.getPosition(testId, scenarioId, mockIndex).exhausted;
71
+ return sequenceTracker.getPosition(testId, mockWithParams.scenarioId, mockWithParams.mockIndex).exhausted;
68
72
  };
69
- const scoreCriteriaMatch = ({ context, criteria, mockIndex, logContext, }) => {
73
+ const scoreCriteriaMatch = ({ context, criteria, mockIdentity, logContext, }) => {
70
74
  const matched = matchesCriteria({
71
75
  context,
72
76
  criteria,
73
77
  testId: logContext.testId,
74
78
  stateManager,
75
79
  });
76
- logger.debug(LogCategories.MATCHING, LogEvents.MOCK_MATCH_EVALUATED, logContext, { mockIndex, matched, hasCriteria: true });
80
+ logger.debug(LogCategories.MATCHING, LogEvents.MOCK_MATCH_EVALUATED, logContext, { ...mockIdentity, matched, hasCriteria: true });
77
81
  if (!matched) {
78
82
  return null;
79
83
  }
80
84
  return (SPECIFICITY_RANGES.MATCH_CRITERIA_BASE + calculateSpecificity(criteria));
81
85
  };
82
- const scoreFallback = ({ mock, mockIndex, logContext, }) => {
86
+ const scoreFallback = ({ mock, mockIdentity, logContext, }) => {
83
87
  logger.debug(LogCategories.MATCHING, LogEvents.MOCK_MATCH_EVALUATED, logContext, {
84
- mockIndex,
88
+ ...mockIdentity,
85
89
  matched: true,
86
90
  hasCriteria: false,
87
91
  hasSequence: !!mock.sequence,
@@ -94,32 +98,33 @@ export const createResponseSelector = (options = {}) => {
94
98
  };
95
99
  const findBestMatch = ({ testId, scenarioId, context, mocks, }) => {
96
100
  const logContext = { testId, scenarioId };
97
- return mocks.reduce((acc, mockWithParams, mockIndex) => {
98
- const mock = mockWithParams.mock;
99
- if (isExhaustedSequence({ testId, scenarioId, mockIndex, mock })) {
101
+ return mocks.reduce((acc, mockWithParams) => {
102
+ const { mock } = mockWithParams;
103
+ const mockIdentity = toLoggedIdentity(mockWithParams);
104
+ if (isExhaustedSequence({ testId, mockWithParams })) {
100
105
  return { ...acc, skippedExhaustedSequences: true };
101
106
  }
102
107
  if (mock.match) {
103
108
  const specificity = scoreCriteriaMatch({
104
109
  context,
105
110
  criteria: mock.match,
106
- mockIndex,
111
+ mockIdentity,
107
112
  logContext,
108
113
  });
109
114
  if (specificity !== null &&
110
115
  (!acc.bestMatch || specificity > acc.bestMatch.specificity)) {
111
116
  return {
112
117
  ...acc,
113
- bestMatch: { mockWithParams, mockIndex, specificity },
118
+ bestMatch: { mockWithParams, specificity },
114
119
  };
115
120
  }
116
121
  return acc;
117
122
  }
118
- const specificity = scoreFallback({ mock, mockIndex, logContext });
123
+ const specificity = scoreFallback({ mock, mockIdentity, logContext });
119
124
  if (!acc.bestMatch || specificity >= acc.bestMatch.specificity) {
120
125
  return {
121
126
  ...acc,
122
- bestMatch: { mockWithParams, mockIndex, specificity },
127
+ bestMatch: { mockWithParams, specificity },
123
128
  };
124
129
  }
125
130
  return acc;
@@ -148,17 +153,16 @@ export const createResponseSelector = (options = {}) => {
148
153
  };
149
154
  const processMatchedMock = ({ testId, scenarioId, context, match, }) => {
150
155
  const logContext = { testId, scenarioId };
151
- const { mockWithParams, mockIndex, specificity } = match;
152
- const mock = mockWithParams.mock;
156
+ const { mockWithParams, specificity } = match;
157
+ const { mock } = mockWithParams;
153
158
  logger.info(LogCategories.MATCHING, LogEvents.MOCK_SELECTED, logContext, {
154
- mockIndex,
159
+ ...toLoggedIdentity(mockWithParams),
155
160
  specificity,
156
161
  });
157
162
  const responseResult = selectResponseFromMock({
158
163
  testId,
159
164
  scenarioId,
160
- mockIndex,
161
- mock,
165
+ mockWithParams,
162
166
  sequenceTracker,
163
167
  stateManager,
164
168
  logger,
@@ -166,7 +170,11 @@ export const createResponseSelector = (options = {}) => {
166
170
  if (!responseResult) {
167
171
  return {
168
172
  success: false,
169
- error: createNoResponseTypeError({ testId, scenarioId, mockIndex }),
173
+ error: createNoResponseTypeError({
174
+ testId,
175
+ scenarioId: mockWithParams.scenarioId,
176
+ mockIndex: mockWithParams.mockIndex,
177
+ }),
170
178
  };
171
179
  }
172
180
  if (mock.captureState && stateManager) {
@@ -245,16 +253,16 @@ const resolveEffectiveAfterResponse = (mockAfterResponse, matchedCondition) => {
245
253
  * Select a response from a mock (single response, sequence, or stateResponse).
246
254
  *
247
255
  * @param testId - Test ID for sequence/state tracking
248
- * @param scenarioId - Scenario ID for sequence tracking
249
- * @param mockIndex - Index of the mock in the mocks array
250
- * @param mock - The mock definition
256
+ * @param scenarioId - Active scenario ID for log context
257
+ * @param mockWithParams - The mock and the scenario position that keys its sequence
251
258
  * @param sequenceTracker - Optional sequence tracker for Phase 2
252
259
  * @param stateManager - Optional state manager for stateResponse
253
260
  * @param logger - Logger for debugging
254
261
  * @returns MockResponseResult or null if mock has no response type
255
262
  */
256
- const selectResponseFromMock = ({ testId, scenarioId, mockIndex, mock, sequenceTracker, stateManager, logger, }) => {
263
+ const selectResponseFromMock = ({ testId, scenarioId, mockWithParams, sequenceTracker, stateManager, logger, }) => {
257
264
  const logContext = { testId, scenarioId };
265
+ const { mock } = mockWithParams;
258
266
  if (mock.sequence) {
259
267
  if (!sequenceTracker) {
260
268
  const firstResponse = mock.sequence.responses[0];
@@ -262,11 +270,11 @@ const selectResponseFromMock = ({ testId, scenarioId, mockIndex, mock, sequenceT
262
270
  ? { response: firstResponse, matchedCondition: null }
263
271
  : null;
264
272
  }
265
- const { position } = sequenceTracker.getPosition(testId, scenarioId, mockIndex);
273
+ const { position } = sequenceTracker.getPosition(testId, mockWithParams.scenarioId, mockWithParams.mockIndex);
266
274
  // eslint-disable-next-line security/detect-object-injection -- Position bounded by sequence tracker
267
275
  const response = mock.sequence.responses[position];
268
276
  const repeatMode = mock.sequence.repeat || "last";
269
- sequenceTracker.advance(testId, scenarioId, mockIndex, mock.sequence.responses.length, repeatMode);
277
+ sequenceTracker.advance(testId, mockWithParams.scenarioId, mockWithParams.mockIndex, mock.sequence.responses.length, repeatMode);
270
278
  return { response, matchedCondition: null };
271
279
  }
272
280
  if (mock.stateResponse) {
@@ -26,9 +26,12 @@ export interface ResponseSelector {
26
26
  * Select a response from candidate mocks based on request content.
27
27
  *
28
28
  * @param testId - Test ID for sequence/state tracking
29
- * @param scenarioId - Scenario ID for sequence/state tracking
29
+ * @param scenarioId - Active scenario ID, used as log context
30
30
  * @param context - Request context (method, url, body, headers, query)
31
- * @param mocks - Candidate mocks with extracted params (already filtered by URL/method)
31
+ * @param mocks - Candidate mocks with extracted params (already filtered by URL/method).
32
+ * Each candidate must carry the scenario that defines it and its index in
33
+ * that scenario's unfiltered mocks array; sequence positions are keyed by
34
+ * that identity, not by the candidate's place in this list.
32
35
  * @returns ScenaristResult with selected ScenaristResponse or error if no match found
33
36
  */
34
37
  selectResponse(testId: string, scenarioId: string, context: HttpRequestContext, mocks: ReadonlyArray<ScenaristMockWithParams>): ScenaristResult<ScenaristResponse, ScenaristError>;
@@ -1 +1 @@
1
- {"version":3,"file":"response-selector.d.ts","sourceRoot":"","sources":["../../../src/ports/driven/response-selector.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,uBAAuB,EACvB,iBAAiB,EACjB,kBAAkB,EAClB,eAAe,EAChB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAEvD;;;GAGG;AACH,qBAAa,sBAAuB,SAAQ,KAAK;gBACnC,OAAO,EAAE,MAAM;CAI5B;AAED;;;;;;;;;;;;;GAaG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;;;;;;;OAQG;IACH,cAAc,CACZ,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,kBAAkB,EAC3B,KAAK,EAAE,aAAa,CAAC,uBAAuB,CAAC,GAC5C,eAAe,CAAC,iBAAiB,EAAE,cAAc,CAAC,CAAC;CACvD"}
1
+ {"version":3,"file":"response-selector.d.ts","sourceRoot":"","sources":["../../../src/ports/driven/response-selector.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,uBAAuB,EACvB,iBAAiB,EACjB,kBAAkB,EAClB,eAAe,EAChB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAEvD;;;GAGG;AACH,qBAAa,sBAAuB,SAAQ,KAAK;gBACnC,OAAO,EAAE,MAAM;CAI5B;AAED;;;;;;;;;;;;;GAaG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;;;;;;;;;;OAWG;IACH,cAAc,CACZ,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,kBAAkB,EAC3B,KAAK,EAAE,aAAa,CAAC,uBAAuB,CAAC,GAC5C,eAAe,CAAC,iBAAiB,EAAE,cAAc,CAAC,CAAC;CACvD"}
@@ -21,8 +21,13 @@ export type HttpRequestContext = {
21
21
  readonly params?: Readonly<Record<string, string | ReadonlyArray<string>>>;
22
22
  };
23
23
  /**
24
- * Mock paired with its extracted URL path parameters.
25
- * Used to pass both the mock definition and its params through the pipeline.
24
+ * Mock paired with its extracted URL path parameters and its position in the
25
+ * scenario that defines it.
26
+ * Used to pass the mock definition, its params and its identity through the pipeline.
27
+ *
28
+ * `scenarioId` and `mockIndex` locate the mock in its own scenario's `mocks`
29
+ * array. Sequence positions are keyed by that identity, so it must not depend
30
+ * on which other mocks are candidates for a request.
26
31
  *
27
32
  * When URL matching succeeds, params are extracted from the URL pattern.
28
33
  * After ResponseSelector chooses a mock, those params are added to HttpRequestContext
@@ -32,12 +37,14 @@ export type HttpRequestContext = {
32
37
  * ```typescript
33
38
  * // Mock with pattern: '/users/:id'
34
39
  * // Request URL: '/users/123'
35
- * // Result: { mock: {...}, params: { id: '123' } }
40
+ * // Result: { mock: {...}, params: { id: '123' }, scenarioId: 'default', mockIndex: 2 }
36
41
  * ```
37
42
  */
38
43
  export type ScenaristMockWithParams = {
39
44
  readonly mock: import("../schemas/index.js").ScenaristMock;
40
45
  readonly params?: Readonly<Record<string, string | ReadonlyArray<string>>>;
46
+ readonly scenarioId: string;
47
+ readonly mockIndex: number;
41
48
  };
42
49
  /**
43
50
  * State capture configuration for stateful mocks (Phase 3).
@@ -1 +1 @@
1
- {"version":3,"file":"scenario.d.ts","sourceRoot":"","sources":["../../src/types/scenario.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAEzE;;;;GAIG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B,QAAQ,CAAC,MAAM,EAAE,UAAU,CAAC;IAC5B,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,IAAI,CAAC,EAAE,OAAO,CAAC;IACxB,QAAQ,CAAC,OAAO,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IACnD,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IACjD;;;;;;;OAOG;IACH,QAAQ,CAAC,MAAM,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,aAAa,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;CAC5E,CAAC;AAEF;;;;;;;;;;;;;;GAcG;AACH,MAAM,MAAM,uBAAuB,GAAG;IACpC,QAAQ,CAAC,IAAI,EAAE,OAAO,qBAAqB,EAAE,aAAa,CAAC;IAC3D,QAAQ,CAAC,MAAM,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,aAAa,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;CAC5E,CAAC;AAE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name": "@scenarist/core",
3
- "version": "0.5.1",
3
+ "version": "0.5.3",
4
4
  "description": "Internal: Hexagonal architecture core for scenario-based testing with MSW",
5
5
  "author": "Paul Hammond (citypaul) <paul@packsoftware.co.uk>",
6
6
  "license": "MIT",
@@ -47,17 +47,17 @@
47
47
  ],
48
48
  "dependencies": {
49
49
  "redos-detector": "^6.1.4",
50
- "zod": "^4.6.5"
50
+ "zod": "^4.6.7"
51
51
  },
52
52
  "devDependencies": {
53
53
  "@scenarist/eslint-config": "0.0.0",
54
54
  "@scenarist/typescript-config": "0.0.0",
55
- "@vitest/coverage-v8": "^5.0.1",
56
- "@vitest/ui": "^5.0.1",
55
+ "@vitest/coverage-v8": "^5.1.1",
56
+ "@vitest/ui": "^5.1.1",
57
57
  "eslint": "^9.39.5",
58
- "fast-check": "^4.10.1",
58
+ "fast-check": "^4.11.0",
59
59
  "typescript": "^6.0.3",
60
- "vitest": "^5.0.1"
60
+ "vitest": "^5.1.1"
61
61
  },
62
62
  "scripts": {
63
63
  "build": "tsc",