@systemfsoftware/stryker-js-cli-contract 3.0.1 → 3.1.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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @systemfsoftware/stryker-js-cli-contract
2
2
 
3
+ ## 3.1.0
4
+
5
+ The span taxonomy declares stryker.html_report.file_name on html_report.write, the attribute the html reporter already records on that span.
6
+
7
+ The span taxonomy declares the importer shortcut, snapshot update and resplice counts on typescript-checker.compiler.check, the attributes the typescript checker already records on that span when a compile completes.
8
+
3
9
  ## 3.0.1
4
10
 
5
11
  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.
@@ -200,7 +200,11 @@
200
200
  {
201
201
  "id": "html_report.write",
202
202
  "name": "html_report.write",
203
- "attributes": {}
203
+ "attributes": {
204
+ "stryker.html_report.file_name": {
205
+ "type": "string"
206
+ }
207
+ }
204
208
  },
205
209
  {
206
210
  "id": "html_report.write_bundle_from_disk",
@@ -1069,7 +1073,72 @@
1069
1073
  {
1070
1074
  "id": "typescript-checker.compiler.check",
1071
1075
  "name": "typescript-checker.compiler.check",
1072
- "attributes": {}
1076
+ "attributes": {
1077
+ "typescript.snapshot_updates.count": {
1078
+ "type": "number",
1079
+ "optional": true
1080
+ },
1081
+ "typescript.resplices.count": {
1082
+ "type": "number",
1083
+ "optional": true
1084
+ },
1085
+ "typescript.importer_shortcut.count": {
1086
+ "type": "number",
1087
+ "optional": true
1088
+ },
1089
+ "typescript.importer_shortcut.fallback.original.outside-function-body.count": {
1090
+ "type": "number",
1091
+ "optional": true
1092
+ },
1093
+ "typescript.importer_shortcut.fallback.original.body-dependent-signature.count": {
1094
+ "type": "number",
1095
+ "optional": true
1096
+ },
1097
+ "typescript.importer_shortcut.fallback.original.not-typescript-module.count": {
1098
+ "type": "number",
1099
+ "optional": true
1100
+ },
1101
+ "typescript.importer_shortcut.fallback.original.module-reference.count": {
1102
+ "type": "number",
1103
+ "optional": true
1104
+ },
1105
+ "typescript.importer_shortcut.fallback.original.syntax-error.count": {
1106
+ "type": "number",
1107
+ "optional": true
1108
+ },
1109
+ "typescript.importer_shortcut.fallback.original.shared-file.count": {
1110
+ "type": "number",
1111
+ "optional": true
1112
+ },
1113
+ "typescript.importer_shortcut.fallback.mutated.outside-function-body.count": {
1114
+ "type": "number",
1115
+ "optional": true
1116
+ },
1117
+ "typescript.importer_shortcut.fallback.mutated.body-dependent-signature.count": {
1118
+ "type": "number",
1119
+ "optional": true
1120
+ },
1121
+ "typescript.importer_shortcut.fallback.mutated.not-typescript-module.count": {
1122
+ "type": "number",
1123
+ "optional": true
1124
+ },
1125
+ "typescript.importer_shortcut.fallback.mutated.module-reference.count": {
1126
+ "type": "number",
1127
+ "optional": true
1128
+ },
1129
+ "typescript.importer_shortcut.fallback.mutated.syntax-error.count": {
1130
+ "type": "number",
1131
+ "optional": true
1132
+ },
1133
+ "typescript.importer_shortcut.fallback.mutated.shared-file.count": {
1134
+ "type": "number",
1135
+ "optional": true
1136
+ },
1137
+ "typescript.importer_shortcut.fallback.unread.count": {
1138
+ "type": "number",
1139
+ "optional": true
1140
+ }
1141
+ }
1073
1142
  },
1074
1143
  {
1075
1144
  "id": "typescript-checker.compiler.close",
package/dist/index.d.mts CHANGED
@@ -2475,7 +2475,9 @@ declare const Spans: {
2475
2475
  };
2476
2476
  readonly htmlReportWrite: {
2477
2477
  readonly name: 'html_report.write';
2478
- readonly attributes: {};
2478
+ readonly attributes: {
2479
+ readonly 'stryker.html_report.file_name': S.String;
2480
+ };
2479
2481
  };
2480
2482
  readonly htmlReportWriteBundleFromDisk: {
2481
2483
  readonly name: 'html_report.write_bundle_from_disk';
@@ -3123,7 +3125,24 @@ declare const Spans: {
3123
3125
  };
3124
3126
  readonly typescriptCheckerCompilerCheck: {
3125
3127
  readonly name: 'typescript-checker.compiler.check';
3126
- readonly attributes: {};
3128
+ readonly attributes: {
3129
+ readonly 'typescript.importer_shortcut.count': S.optionalKey<S.Finite>;
3130
+ readonly 'typescript.importer_shortcut.fallback.original.outside-function-body.count': S.optionalKey<S.Finite>;
3131
+ readonly 'typescript.importer_shortcut.fallback.original.body-dependent-signature.count': S.optionalKey<S.Finite>;
3132
+ readonly 'typescript.importer_shortcut.fallback.original.not-typescript-module.count': S.optionalKey<S.Finite>;
3133
+ readonly 'typescript.importer_shortcut.fallback.original.module-reference.count': S.optionalKey<S.Finite>;
3134
+ readonly 'typescript.importer_shortcut.fallback.original.syntax-error.count': S.optionalKey<S.Finite>;
3135
+ readonly 'typescript.importer_shortcut.fallback.original.shared-file.count': S.optionalKey<S.Finite>;
3136
+ readonly 'typescript.importer_shortcut.fallback.mutated.outside-function-body.count': S.optionalKey<S.Finite>;
3137
+ readonly 'typescript.importer_shortcut.fallback.mutated.body-dependent-signature.count': S.optionalKey<S.Finite>;
3138
+ readonly 'typescript.importer_shortcut.fallback.mutated.not-typescript-module.count': S.optionalKey<S.Finite>;
3139
+ readonly 'typescript.importer_shortcut.fallback.mutated.module-reference.count': S.optionalKey<S.Finite>;
3140
+ readonly 'typescript.importer_shortcut.fallback.mutated.syntax-error.count': S.optionalKey<S.Finite>;
3141
+ readonly 'typescript.importer_shortcut.fallback.mutated.shared-file.count': S.optionalKey<S.Finite>;
3142
+ readonly 'typescript.importer_shortcut.fallback.unread.count': S.optionalKey<S.Finite>;
3143
+ readonly 'typescript.snapshot_updates.count': S.optionalKey<S.Finite>;
3144
+ readonly 'typescript.resplices.count': S.optionalKey<S.Finite>;
3145
+ };
3127
3146
  };
3128
3147
  readonly typescriptCheckerCompilerClose: {
3129
3148
  readonly name: 'typescript-checker.compiler.close';
package/dist/index.mjs CHANGED
@@ -464,6 +464,7 @@ const SpanName = S.String.check(S.isPattern(/^[A-Za-z][A-Za-z0-9_-]*(?:\.[A-Za-z
464
464
  const SpanAttributeKey = S.String.check(S.isPattern(/^[A-Za-z][A-Za-z0-9_.-]*$/u, { expected: "an attribute key starting with a letter, such as \"stryker.checker.name\"" })).pipe(S.brand("SpanAttributeKey"));
465
465
  const SpanAttributeText = S.String;
466
466
  const SpanAttributeCount = S.Finite;
467
+ const SpanAttributeCountWhenRecorded = S.optionalKey(SpanAttributeCount);
467
468
  const SpanRunStatus = S.Literals([
468
469
  "success",
469
470
  "failure",
@@ -471,6 +472,24 @@ const SpanRunStatus = S.Literals([
471
472
  "aborted",
472
473
  "skipped"
473
474
  ]);
475
+ const CompilerCheckAttributes = {
476
+ "typescript.snapshot_updates.count": SpanAttributeCountWhenRecorded,
477
+ "typescript.resplices.count": SpanAttributeCountWhenRecorded,
478
+ "typescript.importer_shortcut.count": SpanAttributeCountWhenRecorded,
479
+ "typescript.importer_shortcut.fallback.original.outside-function-body.count": SpanAttributeCountWhenRecorded,
480
+ "typescript.importer_shortcut.fallback.original.body-dependent-signature.count": SpanAttributeCountWhenRecorded,
481
+ "typescript.importer_shortcut.fallback.original.not-typescript-module.count": SpanAttributeCountWhenRecorded,
482
+ "typescript.importer_shortcut.fallback.original.module-reference.count": SpanAttributeCountWhenRecorded,
483
+ "typescript.importer_shortcut.fallback.original.syntax-error.count": SpanAttributeCountWhenRecorded,
484
+ "typescript.importer_shortcut.fallback.original.shared-file.count": SpanAttributeCountWhenRecorded,
485
+ "typescript.importer_shortcut.fallback.mutated.outside-function-body.count": SpanAttributeCountWhenRecorded,
486
+ "typescript.importer_shortcut.fallback.mutated.body-dependent-signature.count": SpanAttributeCountWhenRecorded,
487
+ "typescript.importer_shortcut.fallback.mutated.not-typescript-module.count": SpanAttributeCountWhenRecorded,
488
+ "typescript.importer_shortcut.fallback.mutated.module-reference.count": SpanAttributeCountWhenRecorded,
489
+ "typescript.importer_shortcut.fallback.mutated.syntax-error.count": SpanAttributeCountWhenRecorded,
490
+ "typescript.importer_shortcut.fallback.mutated.shared-file.count": SpanAttributeCountWhenRecorded,
491
+ "typescript.importer_shortcut.fallback.unread.count": SpanAttributeCountWhenRecorded
492
+ };
474
493
  const SpanDocument = S.Struct({
475
494
  id: SpanName,
476
495
  name: SpanName,
@@ -637,7 +656,7 @@ const Spans = {
637
656
  },
638
657
  htmlReportWrite: {
639
658
  name: "html_report.write",
640
- attributes: {}
659
+ attributes: { "stryker.html_report.file_name": SpanAttributeText }
641
660
  },
642
661
  htmlReportWriteBundleFromDisk: {
643
662
  name: "html_report.write_bundle_from_disk",
@@ -1261,7 +1280,7 @@ const Spans = {
1261
1280
  },
1262
1281
  typescriptCheckerCompilerCheck: {
1263
1282
  name: "typescript-checker.compiler.check",
1264
- attributes: {}
1283
+ attributes: CompilerCheckAttributes
1265
1284
  },
1266
1285
  typescriptCheckerCompilerClose: {
1267
1286
  name: "typescript-checker.compiler.close",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@systemfsoftware/stryker-js-cli-contract",
3
- "version": "3.0.1",
3
+ "version": "3.1.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/systemfsoftware/stryker-js-effect.git",