@systemfsoftware/stryker-ignorer-effect-schema-declarations 0.2.0 → 0.3.2

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 CHANGED
@@ -1,5 +1,33 @@
1
1
  # @systemfsoftware/stryker-ignorer-effect-schema-declarations
2
2
 
3
+ ## 0.3.2
4
+
5
+ The workspace dogfoods @systemfsoftware/stryker-js 23.0.0 and the TypeScript checker 10.0.0, and every package resolves one @systemfsoftware/effect-cell-types (12.1.4). The TypeScript checker and the vitest runner bundle 12.1.4 in place of 12.0.0, and stryker-js and the checker bundle @jsr/std__jsonc 1.0.3 in place of 1.0.2. Every package that takes @systemfsoftware/effect-cell-types from the catalog publishes the range ^12.1.4 in place of ^12.0.0.
6
+
7
+ ## 0.3.1
8
+
9
+ Build and lint with effect 4.1.0 and @effect/tsgo 0.63.0; the published code is unchanged.
10
+
11
+ ## 0.3.0
12
+
13
+ A schema that annotates a `recursionBudget` beside a behaviour key such as `toEquivalence` no longer fails the dry run with `Budget_RequiresTransform`.
14
+
15
+ - The object holding a `recursionBudget` in the first argument of `annotate` or `annotations` is now ignored whatever its other keys are. The other keys' values are still mutated.
16
+ - The `recursion-budget` reason calls `recursionBudget` metadata that only the recursion-budget transform, its runtime and the schema recursion laws read. The `recursion-budget-holder` reason and `RECURSION_BUDGET_HOLDER_IGNORED` drop "beside documentation only".
17
+ - New `KEEP_ADVICE` maps every reason code to the next action that keeps its mutants tested: `KEEP_RECURSION_BUDGET_MUTANT` (remove the `recursionBudget` annotation) for the two budget codes, `KEEP_IGNORED_MUTANT` for the rest. A `recursionBudget` annotation on a recursive schema is no longer mutated, so a run over a project using `@systemfsoftware/effect-schema-recursion-budget` no longer fails its dry run with `Budget_RequiresTransform`. Both the annotate object holding the budget and the budget value are reported as `Ignored`.
18
+
19
+ Every reason the ignorer reports now starts with a stable code, as `effect-schema-declarations/<code>: <why>`. `REASON_CODES` maps each code to what it means, and `KEEP_IGNORED_MUTANT` says how to keep a mutant the ignorer removes.
20
+
21
+ Breaking: the exported reason constants (`BRAND_NAME_IGNORED`, `TYPE_ID_IGNORED`, and the rest) now hold the coded text. Code that compares against the old text must use the constants or match on the code.
22
+
23
+ ## 0.2.1
24
+
25
+ Effect moves to `4.0.0-rc.117`, together with the `@effect/*` packages these libraries use. Projects that install `effect` next to them need the same release.
26
+
27
+ - The TypeScript checker and test-runner workers now bundle their own runtime, so the only modules they load from your project are the TypeScript compiler and your test framework.
28
+ - The test-runner plugin supports the framework's fifth major release.
29
+ - The ignorer interface re-exports the `oxc-parser` 0.150 AST, in which `FormalParameterRest.decorators` is `Array<Decorator>`. Enable the `@effect/language-service` tsgo plugin in every source package's `tsconfig.app.json` and `tsconfig.test.json`, and bump `@effect/tsgo` to `^0.50.0`. This turns on Effect-aware diagnostics during `effect-tsgo` type checking; it changes no runtime behaviour or public API.
30
+
3
31
  ## 0.2.0
4
32
 
5
33
  ### Minor Changes
package/README.md CHANGED
@@ -30,7 +30,7 @@ export default defineConfig({
30
30
  })
31
31
  ```
32
32
 
33
- Mutants recognized by the ignorer are reported with status `Ignored`, carrying the exact reason why skipping is safe.
33
+ Mutants recognized by the ignorer are reported with status `Ignored`. Their `statusReason` is `ignorer: effect-schema-declarations/<code>: <meaning>`: the engine's `ignorer` rule id, then a stable code from `REASON_CODES`, which maps each code to what it means. Renaming or removing a code is a breaking change. `KEEP_ADVICE` maps each code to the next action that keeps its mutants tested: for every code but the two `recursion-budget` ones, remove the package from `ignorers`.
34
34
 
35
35
  ## What It Ignores
36
36
 
@@ -49,11 +49,14 @@ Mutants recognized by the ignorer are reported with status `Ignored`, carrying t
49
49
  | Generation-only declaration callbacks | `S.declare(pred, { toCodecArbitrary: () => arbitrary })` |
50
50
  | Arbitrary link transformations | `S.link<T>()(S.Null, { decode: …, encode: … })` outside a production `toCodec*` slot |
51
51
  | Type identity constants | `const TypeId = '…/StageError' as const` |
52
+ | `recursionBudget` annotation values | `S.suspend(() => …).annotate({ recursionBudget: { maxDepth: 6 } })` |
52
53
 
53
54
  ## What Stays Graded
54
55
 
55
56
  Everything a mutant can still change at run time stays live: filter predicates and bounds, patterns, literal vocabularies, struct field sets, codec decode/encode transformations, and any object or string a schema uses to decide acceptance. The ignorer only removes mutants whose position cannot change a decoded value, a routing decision, or an encoded value.
56
57
 
58
+ `recursionBudget` is the one exception, and it is not an equivalence claim. Its value is test and generation metadata: only the [`@systemfsoftware/effect-schema-recursion-budget`](https://www.npmjs.com/package/@systemfsoftware/effect-schema-recursion-budget) build transform, that package's runtime, and the recursion laws of `@systemfsoftware/effect-schema-law` read it. The ignorer drops the mutants inside a `recursionBudget` value in the first argument of `annotate` or `annotations`. It also drops the mutants of the object holding that value, whatever the object's other keys are, because the transform only reads the budget from an annotate object written as a literal: a mutated object fails the dry run with `Budget_RequiresTransform`. The other keys' own values stay graded, so a behaviour key such as `toEquivalence` is still mutated inside its value. A `recursionBudget` key anywhere else stays mutated. Removing the ignorer does not keep these mutants: the transform reads the annotate object as written, so the dry run fails with `Budget_RequiresTransform`.
59
+
57
60
  ## License
58
61
 
59
62
  [Apache-2.0](../../LICENSE)
package/dist/index.d.ts CHANGED
@@ -1,35 +1,45 @@
1
- import { Ignorer } from '@systemfsoftware/stryker-ignorer-interface';
2
-
3
- export declare const ANNOTATION_OBJECT_IGNORED: 'annotations object holding only documentation is a declaration, not behaviour';
4
-
5
- export declare const ANNOTATION_TEXT_IGNORED: 'annotation documentation value is declaration data, not behaviour';
6
-
7
- export declare const BRAND_NAME_IGNORED: 'Schema.brand name is identity-only data, not behaviour';
8
-
9
- export declare const CHECK_ANNOTATION_OBJECT_IGNORED: 'filter/check annotation object holds documentation and generation hints, not behaviour';
10
-
11
- export declare const CHECK_ANNOTATION_TEXT_IGNORED: 'filter/check annotation value is documentation data, not behaviour';
12
-
13
- export declare const CLASS_ID_IGNORED: 'Schema.Class identifier is a declaration name, not behaviour';
14
-
15
- export declare const DECODING_DEFAULT_IGNORED: 'withDecodingDefault/withConstructorDefault default is config, not behaviour';
16
-
17
- export declare const GENERATION_ANNOTATION_IGNORED: 'arbitrary-generation annotation never runs in production, not behaviour';
18
-
19
- export declare const LINK_TRANSFORMATION_IGNORED: 'S.link() transformation feeds arbitrary generation only, not production codecs';
20
-
21
- export declare const OPTIONAL_DEFAULT_IGNORED: 'optionalWith default value is config, not behaviour';
22
-
23
- export declare const strykerIgnorers: readonly Ignorer[];
24
-
25
- export declare const SYMBOL_DESCRIPTION_IGNORED: 'Symbol.for() brand description is identity-only data, not behaviour';
26
-
27
- export declare const TAGGED_FIELDS_IGNORED: 'TaggedClass/TaggedError field schema is a declaration, not behaviour';
28
-
29
- export declare const TAGGED_STRUCT_TAG_IGNORED: 'TaggedStruct _tag is a declaration discriminant, not behaviour';
30
-
31
- export declare const TAGGED_TAG_IGNORED: 'TaggedClass/TaggedError _tag is a declaration discriminant, not behaviour';
32
-
33
- export declare const TYPE_ID_IGNORED: 'a TypeId constant is a declaration identity, not behaviour';
34
-
35
- export { }
1
+ import { Ignorer } from "@systemfsoftware/stryker-ignorer-interface";
2
+ //#region src/effect-schema-declarations.d.ts
3
+ export declare const REASON_CODES: {
4
+ readonly 'symbol-description': 'Symbol.for() brand description is identity-only data, not behaviour';
5
+ readonly 'tagged-tag': 'TaggedClass/TaggedError _tag is a declaration discriminant, not behaviour';
6
+ readonly 'tagged-struct-tag': 'TaggedStruct _tag is a declaration discriminant, not behaviour';
7
+ readonly 'tagged-fields': 'TaggedClass/TaggedError field schema is a declaration, not behaviour';
8
+ readonly 'class-id': 'Schema.Class identifier is a declaration name, not behaviour';
9
+ readonly 'brand-name': 'Schema.brand name is identity-only data, not behaviour';
10
+ readonly 'optional-default': 'optionalWith default value is config, not behaviour';
11
+ readonly 'decoding-default': 'withDecodingDefault/withConstructorDefault default is config, not behaviour';
12
+ readonly 'annotation-object': 'annotations object holding only documentation is a declaration, not behaviour';
13
+ readonly 'annotation-text': 'annotation documentation value is declaration data, not behaviour';
14
+ readonly 'check-annotation-object': 'filter/check annotation object holds documentation and generation hints, not behaviour';
15
+ readonly 'check-annotation-text': 'filter/check annotation value is documentation data, not behaviour';
16
+ readonly 'generation-annotation': 'arbitrary-generation annotation never runs in production, not behaviour';
17
+ readonly 'link-transformation': 'S.link() transformation feeds arbitrary generation only, not production codecs';
18
+ readonly 'type-id': 'a TypeId constant is a declaration identity, not behaviour';
19
+ readonly 'recursion-budget-holder': 'annotate object holding a recursionBudget must stay a literal object for the recursion-budget transform to read it';
20
+ readonly 'recursion-budget': 'recursionBudget is test/generation-only metadata: only the recursion-budget transform, its runtime and the schema recursion laws read it';
21
+ };
22
+ type ReasonCode = keyof typeof REASON_CODES;
23
+ export declare const KEEP_IGNORED_MUTANT: "To keep these mutants, remove '@systemfsoftware/stryker-ignorer-effect-schema-declarations' from `ignorers`.";
24
+ export declare const KEEP_RECURSION_BUDGET_MUTANT: 'These mutants cannot be kept while the recursion-budget transform runs: it reads the annotate object as written, so removing this ignorer fails the dry run with `Budget_RequiresTransform`. To have them tested, remove the `recursionBudget` annotation.';
25
+ export declare const KEEP_ADVICE: Record<ReasonCode, string>;
26
+ export declare const SYMBOL_DESCRIPTION_IGNORED: "effect-schema-declarations/symbol-description: Symbol.for() brand description is identity-only data, not behaviour";
27
+ export declare const TAGGED_TAG_IGNORED: "effect-schema-declarations/tagged-tag: TaggedClass/TaggedError _tag is a declaration discriminant, not behaviour";
28
+ export declare const TAGGED_STRUCT_TAG_IGNORED: "effect-schema-declarations/tagged-struct-tag: TaggedStruct _tag is a declaration discriminant, not behaviour";
29
+ export declare const TAGGED_FIELDS_IGNORED: "effect-schema-declarations/tagged-fields: TaggedClass/TaggedError field schema is a declaration, not behaviour";
30
+ export declare const CLASS_ID_IGNORED: "effect-schema-declarations/class-id: Schema.Class identifier is a declaration name, not behaviour";
31
+ export declare const BRAND_NAME_IGNORED: "effect-schema-declarations/brand-name: Schema.brand name is identity-only data, not behaviour";
32
+ export declare const OPTIONAL_DEFAULT_IGNORED: "effect-schema-declarations/optional-default: optionalWith default value is config, not behaviour";
33
+ export declare const DECODING_DEFAULT_IGNORED: "effect-schema-declarations/decoding-default: withDecodingDefault/withConstructorDefault default is config, not behaviour";
34
+ export declare const ANNOTATION_OBJECT_IGNORED: "effect-schema-declarations/annotation-object: annotations object holding only documentation is a declaration, not behaviour";
35
+ export declare const ANNOTATION_TEXT_IGNORED: "effect-schema-declarations/annotation-text: annotation documentation value is declaration data, not behaviour";
36
+ export declare const CHECK_ANNOTATION_OBJECT_IGNORED: "effect-schema-declarations/check-annotation-object: filter/check annotation object holds documentation and generation hints, not behaviour";
37
+ export declare const CHECK_ANNOTATION_TEXT_IGNORED: "effect-schema-declarations/check-annotation-text: filter/check annotation value is documentation data, not behaviour";
38
+ export declare const GENERATION_ANNOTATION_IGNORED: "effect-schema-declarations/generation-annotation: arbitrary-generation annotation never runs in production, not behaviour";
39
+ export declare const LINK_TRANSFORMATION_IGNORED: "effect-schema-declarations/link-transformation: S.link() transformation feeds arbitrary generation only, not production codecs";
40
+ export declare const TYPE_ID_IGNORED: "effect-schema-declarations/type-id: a TypeId constant is a declaration identity, not behaviour";
41
+ export declare const RECURSION_BUDGET_HOLDER_IGNORED: "effect-schema-declarations/recursion-budget-holder: annotate object holding a recursionBudget must stay a literal object for the recursion-budget transform to read it";
42
+ export declare const RECURSION_BUDGET_IGNORED: "effect-schema-declarations/recursion-budget: recursionBudget is test/generation-only metadata: only the recursion-budget transform, its runtime and the schema recursion laws read it";
43
+ export declare const strykerIgnorers: readonly Ignorer[];
44
+ //#endregion
45
+ export type { ReasonCode };
package/dist/index.mjs CHANGED
@@ -1,20 +1,63 @@
1
1
  import { defineIgnorer } from "@systemfsoftware/stryker-ignorer-kit";
2
2
  //#region src/effect-schema-declarations.ts
3
- const SYMBOL_DESCRIPTION_IGNORED = "Symbol.for() brand description is identity-only data, not behaviour";
4
- const TAGGED_TAG_IGNORED = "TaggedClass/TaggedError _tag is a declaration discriminant, not behaviour";
5
- const TAGGED_STRUCT_TAG_IGNORED = "TaggedStruct _tag is a declaration discriminant, not behaviour";
6
- const TAGGED_FIELDS_IGNORED = "TaggedClass/TaggedError field schema is a declaration, not behaviour";
7
- const CLASS_ID_IGNORED = "Schema.Class identifier is a declaration name, not behaviour";
8
- const BRAND_NAME_IGNORED = "Schema.brand name is identity-only data, not behaviour";
9
- const OPTIONAL_DEFAULT_IGNORED = "optionalWith default value is config, not behaviour";
10
- const DECODING_DEFAULT_IGNORED = "withDecodingDefault/withConstructorDefault default is config, not behaviour";
11
- const ANNOTATION_OBJECT_IGNORED = "annotations object holding only documentation is a declaration, not behaviour";
12
- const ANNOTATION_TEXT_IGNORED = "annotation documentation value is declaration data, not behaviour";
13
- const CHECK_ANNOTATION_OBJECT_IGNORED = "filter/check annotation object holds documentation and generation hints, not behaviour";
14
- const CHECK_ANNOTATION_TEXT_IGNORED = "filter/check annotation value is documentation data, not behaviour";
15
- const GENERATION_ANNOTATION_IGNORED = "arbitrary-generation annotation never runs in production, not behaviour";
16
- const LINK_TRANSFORMATION_IGNORED = "S.link() transformation feeds arbitrary generation only, not production codecs";
17
- const TYPE_ID_IGNORED = "a TypeId constant is a declaration identity, not behaviour";
3
+ const REASON_CODES = {
4
+ "symbol-description": "Symbol.for() brand description is identity-only data, not behaviour",
5
+ "tagged-tag": "TaggedClass/TaggedError _tag is a declaration discriminant, not behaviour",
6
+ "tagged-struct-tag": "TaggedStruct _tag is a declaration discriminant, not behaviour",
7
+ "tagged-fields": "TaggedClass/TaggedError field schema is a declaration, not behaviour",
8
+ "class-id": "Schema.Class identifier is a declaration name, not behaviour",
9
+ "brand-name": "Schema.brand name is identity-only data, not behaviour",
10
+ "optional-default": "optionalWith default value is config, not behaviour",
11
+ "decoding-default": "withDecodingDefault/withConstructorDefault default is config, not behaviour",
12
+ "annotation-object": "annotations object holding only documentation is a declaration, not behaviour",
13
+ "annotation-text": "annotation documentation value is declaration data, not behaviour",
14
+ "check-annotation-object": "filter/check annotation object holds documentation and generation hints, not behaviour",
15
+ "check-annotation-text": "filter/check annotation value is documentation data, not behaviour",
16
+ "generation-annotation": "arbitrary-generation annotation never runs in production, not behaviour",
17
+ "link-transformation": "S.link() transformation feeds arbitrary generation only, not production codecs",
18
+ "type-id": "a TypeId constant is a declaration identity, not behaviour",
19
+ "recursion-budget-holder": "annotate object holding a recursionBudget must stay a literal object for the recursion-budget transform to read it",
20
+ "recursion-budget": "recursionBudget is test/generation-only metadata: only the recursion-budget transform, its runtime and the schema recursion laws read it"
21
+ };
22
+ const KEEP_IGNORED_MUTANT = "To keep these mutants, remove '@systemfsoftware/stryker-ignorer-effect-schema-declarations' from `ignorers`.";
23
+ const KEEP_RECURSION_BUDGET_MUTANT = "These mutants cannot be kept while the recursion-budget transform runs: it reads the annotate object as written, so removing this ignorer fails the dry run with `Budget_RequiresTransform`. To have them tested, remove the `recursionBudget` annotation.";
24
+ const KEEP_ADVICE = {
25
+ "symbol-description": KEEP_IGNORED_MUTANT,
26
+ "tagged-tag": KEEP_IGNORED_MUTANT,
27
+ "tagged-struct-tag": KEEP_IGNORED_MUTANT,
28
+ "tagged-fields": KEEP_IGNORED_MUTANT,
29
+ "class-id": KEEP_IGNORED_MUTANT,
30
+ "brand-name": KEEP_IGNORED_MUTANT,
31
+ "optional-default": KEEP_IGNORED_MUTANT,
32
+ "decoding-default": KEEP_IGNORED_MUTANT,
33
+ "annotation-object": KEEP_IGNORED_MUTANT,
34
+ "annotation-text": KEEP_IGNORED_MUTANT,
35
+ "check-annotation-object": KEEP_IGNORED_MUTANT,
36
+ "check-annotation-text": KEEP_IGNORED_MUTANT,
37
+ "generation-annotation": KEEP_IGNORED_MUTANT,
38
+ "link-transformation": KEEP_IGNORED_MUTANT,
39
+ "type-id": KEEP_IGNORED_MUTANT,
40
+ "recursion-budget-holder": KEEP_RECURSION_BUDGET_MUTANT,
41
+ "recursion-budget": KEEP_RECURSION_BUDGET_MUTANT
42
+ };
43
+ const reasonFor = (code) => `effect-schema-declarations/${code}: ${REASON_CODES[code]}`;
44
+ const SYMBOL_DESCRIPTION_IGNORED = reasonFor("symbol-description");
45
+ const TAGGED_TAG_IGNORED = reasonFor("tagged-tag");
46
+ const TAGGED_STRUCT_TAG_IGNORED = reasonFor("tagged-struct-tag");
47
+ const TAGGED_FIELDS_IGNORED = reasonFor("tagged-fields");
48
+ const CLASS_ID_IGNORED = reasonFor("class-id");
49
+ const BRAND_NAME_IGNORED = reasonFor("brand-name");
50
+ const OPTIONAL_DEFAULT_IGNORED = reasonFor("optional-default");
51
+ const DECODING_DEFAULT_IGNORED = reasonFor("decoding-default");
52
+ const ANNOTATION_OBJECT_IGNORED = reasonFor("annotation-object");
53
+ const ANNOTATION_TEXT_IGNORED = reasonFor("annotation-text");
54
+ const CHECK_ANNOTATION_OBJECT_IGNORED = reasonFor("check-annotation-object");
55
+ const CHECK_ANNOTATION_TEXT_IGNORED = reasonFor("check-annotation-text");
56
+ const GENERATION_ANNOTATION_IGNORED = reasonFor("generation-annotation");
57
+ const LINK_TRANSFORMATION_IGNORED = reasonFor("link-transformation");
58
+ const TYPE_ID_IGNORED = reasonFor("type-id");
59
+ const RECURSION_BUDGET_HOLDER_IGNORED = reasonFor("recursion-budget-holder");
60
+ const RECURSION_BUDGET_IGNORED = reasonFor("recursion-budget");
18
61
  const DOCUMENTATION_KEYS = {
19
62
  identifier: true,
20
63
  description: true,
@@ -33,6 +76,7 @@ const GENERATION_KEYS = {
33
76
  arbitraryConstraint: true,
34
77
  arbitrary: true
35
78
  };
79
+ const RECURSION_BUDGET_KEYS = { recursionBudget: true };
36
80
  const PRODUCTION_CODEC_KEYS = {
37
81
  toCodec: true,
38
82
  toCodecJson: true,
@@ -85,15 +129,19 @@ const asCall = (node) => isCallNode(node) ? node : void 0;
85
129
  const isDocumentationKeyNode = (key) => isKeyOf(key, DOCUMENTATION_KEYS);
86
130
  const isCheckTextKeyNode = (key) => isKeyOf(key, CHECK_TEXT_KEYS);
87
131
  const isGenerationKeyNode = (key) => isKeyOf(key, GENERATION_KEYS);
132
+ const isRecursionBudgetKeyNode = (key) => isKeyOf(key, RECURSION_BUDGET_KEYS);
88
133
  const isDocumentationOrCheckKeyNode = (key) => isDocumentationKeyNode(key) || isCheckTextKeyNode(key);
89
134
  const isDeclarationKeyNode = (key) => isDocumentationOrCheckKeyNode(key) || isGenerationKeyNode(key);
90
135
  const isDocumentationEntry = (property) => isComputedFreeProperty(property) && isDocumentationKeyNode(property.key);
91
136
  const isDeclarationEntry = (property) => isComputedFreeProperty(property) && isDeclarationKeyNode(property.key);
137
+ const isRecursionBudgetEntry = (property) => isComputedFreeProperty(property) && isRecursionBudgetKeyNode(property.key);
92
138
  const holdsEntries = (properties, holds) => properties.length > 0 && properties.every(holds);
93
139
  const isDocumentationOnlyObject = (node) => isObjectNode(node) && holdsEntries(node.properties, isDocumentationEntry);
94
140
  const isDeclarationAnnotationObject = (node) => isObjectNode(node) && holdsEntries(node.properties, isDeclarationEntry);
141
+ const isBudgetHolderObject = (node) => isObjectNode(node) && node.properties.some(isRecursionBudgetEntry);
95
142
  const isArgumentAt = (node, call, index, callee) => isObjectNode(node) && holdsArgumentOf(node, asCall(call), index, callee);
96
143
  const isDocumentationObjectArgument = (node, call) => isDocumentationOnlyObject(node) && holdsArgumentOf(node, call, 0, isAnnotationsCallee);
144
+ const isBudgetHolderArgument = (node, call) => isBudgetHolderObject(node) && holdsArgumentOf(node, call, 0, isAnnotationsCallee);
97
145
  const isDeclarationAnnotationArgument = (node, call) => isDeclarationAnnotationObject(node) && holdsArgumentOf(node, call, 1, isAnnotationObjectCallee);
98
146
  const simpleArgumentRule = (index, callee, reason) => ({
99
147
  holds: (node, call) => holdsArgumentOf(node, call, index, callee),
@@ -112,6 +160,10 @@ const OBJECT_ARGUMENT_RULES = [
112
160
  holds: isDocumentationObjectArgument,
113
161
  reason: ANNOTATION_OBJECT_IGNORED
114
162
  },
163
+ {
164
+ holds: isBudgetHolderArgument,
165
+ reason: RECURSION_BUDGET_HOLDER_IGNORED
166
+ },
115
167
  {
116
168
  holds: isDeclarationAnnotationArgument,
117
169
  reason: CHECK_ANNOTATION_OBJECT_IGNORED
@@ -129,6 +181,8 @@ const isEntrySlot = (slot) => isComputedFreeProperty(slot.ancestor) && slot.ance
129
181
  const isAnnotationEntrySlot = (slot) => isEntrySlot(slot) && isArgumentAt(slot.holder, slot.call, 1, isAnnotationObjectCallee);
130
182
  const isDocumentationEntrySlot = (slot) => isEntrySlot(slot) && isDocumentationKeyNode(slot.ancestor.key);
131
183
  const isDocumentationSlot = (slot) => isDocumentationEntrySlot(slot) && isArgumentAt(slot.holder, slot.call, 0, isAnnotationsCallee);
184
+ const isRecursionBudgetEntrySlot = (slot) => isEntrySlot(slot) && isRecursionBudgetKeyNode(slot.ancestor.key);
185
+ const isRecursionBudgetSlot = (slot) => isRecursionBudgetEntrySlot(slot) && isArgumentAt(slot.holder, slot.call, 0, isAnnotationsCallee);
132
186
  const isCallArgumentSlot = (slot, index) => isCallNode(slot.ancestor) && slot.ancestor.arguments[index] === slot.child;
133
187
  const isArgumentSlot = (slot, index, callee) => isCallArgumentSlot(slot, index) && callee(slot.ancestor.callee);
134
188
  const isDeclaratorSlot = (slot) => isVariableDeclarator(slot.ancestor) && slot.ancestor.init === slot.child;
@@ -142,6 +196,7 @@ const textKeyReason = (key) => isCheckTextKeyNode(key) ? CHECK_ANNOTATION_TEXT_I
142
196
  const keyReason = (key) => generationKeyReason(key) ?? textKeyReason(key);
143
197
  const entrySlotReason = (slot) => isAnnotationEntrySlot(slot) ? keyReason(slot.ancestor.key) : void 0;
144
198
  const documentationSlotReason = (slot) => isDocumentationSlot(slot) ? ANNOTATION_TEXT_IGNORED : void 0;
199
+ const recursionBudgetSlotReason = (slot) => isRecursionBudgetSlot(slot) ? RECURSION_BUDGET_IGNORED : void 0;
145
200
  const argumentSlotReason = (index, callee, reason) => (slot) => isArgumentSlot(slot, index, callee) ? reason : void 0;
146
201
  const typeIdSlotReason = (node) => (slot) => isTypeIdSlot(node)(slot) ? TYPE_ID_IGNORED : void 0;
147
202
  const isProductionCodecKey = (key) => isKeyOf(key, PRODUCTION_CODEC_KEYS);
@@ -151,6 +206,7 @@ const isIgnorableLinkSlot = (slot, slots) => isArgumentSlot(slot, 1, isLinkCalle
151
206
  const linkSlotReason = (slot, slots) => isIgnorableLinkSlot(slot, slots) ? LINK_TRANSFORMATION_IGNORED : void 0;
152
207
  const rulesFor = (node) => [
153
208
  documentationSlotReason,
209
+ recursionBudgetSlotReason,
154
210
  entrySlotReason,
155
211
  linkSlotReason,
156
212
  argumentSlotReason(0, isDefaultCallee, DECODING_DEFAULT_IGNORED),
@@ -172,4 +228,4 @@ const strykerIgnorers = [defineIgnorer({
172
228
  visitors: { onAnyNode: ignoredReasonOf }
173
229
  })];
174
230
  //#endregion
175
- export { ANNOTATION_OBJECT_IGNORED, ANNOTATION_TEXT_IGNORED, BRAND_NAME_IGNORED, CHECK_ANNOTATION_OBJECT_IGNORED, CHECK_ANNOTATION_TEXT_IGNORED, CLASS_ID_IGNORED, DECODING_DEFAULT_IGNORED, GENERATION_ANNOTATION_IGNORED, LINK_TRANSFORMATION_IGNORED, OPTIONAL_DEFAULT_IGNORED, SYMBOL_DESCRIPTION_IGNORED, TAGGED_FIELDS_IGNORED, TAGGED_STRUCT_TAG_IGNORED, TAGGED_TAG_IGNORED, TYPE_ID_IGNORED, strykerIgnorers };
231
+ export { ANNOTATION_OBJECT_IGNORED, ANNOTATION_TEXT_IGNORED, BRAND_NAME_IGNORED, CHECK_ANNOTATION_OBJECT_IGNORED, CHECK_ANNOTATION_TEXT_IGNORED, CLASS_ID_IGNORED, DECODING_DEFAULT_IGNORED, GENERATION_ANNOTATION_IGNORED, KEEP_ADVICE, KEEP_IGNORED_MUTANT, KEEP_RECURSION_BUDGET_MUTANT, LINK_TRANSFORMATION_IGNORED, OPTIONAL_DEFAULT_IGNORED, REASON_CODES, RECURSION_BUDGET_HOLDER_IGNORED, RECURSION_BUDGET_IGNORED, SYMBOL_DESCRIPTION_IGNORED, TAGGED_FIELDS_IGNORED, TAGGED_STRUCT_TAG_IGNORED, TAGGED_TAG_IGNORED, TYPE_ID_IGNORED, strykerIgnorers };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@systemfsoftware/stryker-ignorer-effect-schema-declarations",
3
3
  "license": "Apache-2.0",
4
- "version": "0.2.0",
4
+ "version": "0.3.2",
5
5
  "author": "Ryan Lee <drdgvhbh@gmail.com>",
6
6
  "repository": {
7
7
  "type": "git",
@@ -22,7 +22,8 @@
22
22
  ],
23
23
  "type": "module",
24
24
  "files": [
25
- "dist"
25
+ "dist",
26
+ "CHANGELOG.md"
26
27
  ],
27
28
  "exports": {
28
29
  ".": {
@@ -32,25 +33,25 @@
32
33
  "./package.json": "./package.json"
33
34
  },
34
35
  "dependencies": {
35
- "@systemfsoftware/stryker-ignorer-interface": "^0.1.1",
36
- "@systemfsoftware/stryker-ignorer-kit": "^0.1.1"
36
+ "@systemfsoftware/stryker-ignorer-interface": "^0.1.4",
37
+ "@systemfsoftware/stryker-ignorer-kit": "^0.1.4"
37
38
  },
38
39
  "devDependencies": {
39
- "@effect/tsgo": "^0.45.0",
40
+ "@effect/tsgo": "^0.63.0",
40
41
  "@microsoft/api-extractor": "^7",
41
42
  "@systemfsoftware/arethetypeswrong-cli": "^4.2.0",
43
+ "@systemfsoftware/oxlint-ignorer-config": "^0.1.3",
42
44
  "@systemfsoftware/tsconfig": "^2.0.1",
43
- "@systemfsoftware/vitest": "^0.1.0",
45
+ "@systemfsoftware/tsdown-config": "^0.1.0",
46
+ "@systemfsoftware/vitest": "^2.0.0",
47
+ "@systemfsoftware/vitest-config": "^0.1.0",
44
48
  "@types/node": "^24",
45
49
  "@vitest/coverage-v8": "^5",
46
- "oxlint": "^1",
50
+ "oxlint": "~1.90.0",
47
51
  "rimraf": "^6.1.3",
48
52
  "tsdown": "^0.23.0",
49
53
  "typescript": "^7",
50
- "vitest": "^5",
51
- "@systemfsoftware/oxlint-ignorer-config": "^0.1.1",
52
- "@systemfsoftware/tsdown-config": "^0.1.0",
53
- "@systemfsoftware/vitest-config": "^0.1.0"
54
+ "vitest": "^5"
54
55
  },
55
56
  "publishConfig": {
56
57
  "access": "public",