checkchange 0.5.5 → 0.5.6

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.
@@ -19,7 +19,7 @@ Correct use of `checkchange check`: prevents hallucination, enforces WARN blocks
19
19
  # What It Entails
20
20
  1. Generate coverage artifact before check — required before check:
21
21
  - vitest/jest: `pnpm vitest run --coverage` → `coverage/coverage-final.json`
22
- - bun: `bun test --coverage --coverage-reporter=lcov` → `coverage/lcov.info`, check with `--coverage-file coverage/lcov.info`. Bare `bun test --coverage` prints a table + exit 0 but writes NO artifact (default reporter text) → `coverageArtifact: absent`. No converter needed. vitest cannot run `bun:test` suites — don't try it. (checkchange >=0.5.4 detects bun via builtin BUN_RUNNER + `--auto-coverage`.)
22
+ - bun (checkchange >=0.5.4): `checkchange check --auto-coverage` detects bun (bunfig.toml or `bun --version` probe, and the repo must contain at least one source file matching a provider extension: `.ts/.tsx/.js/.jsx/.mjs/.cjs`) and runs `bun test --coverage --coverage-reporter=lcov` itself → `coverage/lcov.info`. Manual recipe when not using --auto-coverage: run that command, then check with `--coverage-file coverage/lcov.info`. Bare `bun test --coverage` prints a table + exit 0 but writes NO artifact (default reporter text) → `coverageArtifact: absent`. No converter needed. vitest cannot run `bun:test` suites — don't try it.
23
23
  2. `checkchange check [--base <ref>] [--json] [--cache] [--auto-coverage] [--crap-threshold <n>] [--coverage-file <path>] [--format github|junit|sarif] [--provider-config <path>] [--allow-external-config] [--verbose]` — auto-detects base if omitted (origin/HEAD → origin/master/main → master/main)
24
24
  3. Read gate + changedFunctions
25
25
 
@@ -174,10 +174,10 @@ export function vehicleRejection() {
174
174
  return lastVehicleRejection;
175
175
  }
176
176
  // The fallback parser is checkchange's OWN code (./csharpFallbackParser.ts), so
177
- // its tool is checkchange and its version is the package version — same 0.5.5
177
+ // its tool is checkchange and its version is the package version — same 0.5.6
178
178
  // the other self-provenance consts hard-code (src/crapCalc.ts:3, src/rules.ts:4).
179
179
  const FALLBACK_TOOL = 'checkchange';
180
- const FALLBACK_TOOL_VERSION = '0.5.5';
180
+ const FALLBACK_TOOL_VERSION = '0.5.6';
181
181
  // The vehicle's INSTALLED version is never probed: the rich path is
182
182
  // documented-unreachable (see SPAWN FORM above), so `dotnet-crap --version` is
183
183
  // never spawned to learn it, and no version is fabricated here. `unknown` is the
@@ -1,5 +1,5 @@
1
1
  export declare const crapCalcProvenance: {
2
2
  readonly tool: "checkchange";
3
- readonly version: "0.5.5";
3
+ readonly version: "0.5.6";
4
4
  };
5
5
  export declare function calculateCrap(cc: number, coveragePercent: number | null): number | null;
package/dist/crapCalc.js CHANGED
@@ -1,6 +1,6 @@
1
1
  // Provenance for the crapCalc lineage stage. Self tool version tracks package.json
2
- // (matches existing hard-coded '0.5.5' style for the core package).
3
- export const crapCalcProvenance = { tool: 'checkchange', version: '0.5.5' };
2
+ // (matches existing hard-coded '0.5.6' style for the core package).
3
+ export const crapCalcProvenance = { tool: 'checkchange', version: '0.5.6' };
4
4
  export function calculateCrap(cc, coveragePercent) {
5
5
  if (coveragePercent == null) {
6
6
  return null;
@@ -31,7 +31,7 @@ export interface DiagnosticLineageEntry {
31
31
  }
32
32
  export declare const evidenceProvenance: {
33
33
  readonly tool: "checkchange";
34
- readonly version: "0.5.5";
34
+ readonly version: "0.5.6";
35
35
  };
36
36
  export interface EvidenceOutput {
37
37
  schemaVersion: string;
package/dist/evidence.js CHANGED
@@ -19,8 +19,8 @@ import * as fs from 'fs';
19
19
  import * as path from 'path';
20
20
  import { loadProviderConfig, deriveRegistry, builtinConfig, createGenericCommandProvider } from './providers/index.js';
21
21
  const requireFromEvidence = createRequire(import.meta.url);
22
- // Self provenance; version mirrors package.json (existing codebase style hard-codes '0.5.5').
23
- export const evidenceProvenance = { tool: 'checkchange', version: '0.5.5' };
22
+ // Self provenance; version mirrors package.json (existing codebase style hard-codes '0.5.6').
23
+ export const evidenceProvenance = { tool: 'checkchange', version: '0.5.6' };
24
24
  function sha256Hex(content) {
25
25
  return createHash('sha256').update(content).digest('hex');
26
26
  }
package/dist/rules.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { ChangedFunction } from './evidence.js';
2
2
  export declare const rulesProvenance: {
3
3
  readonly tool: "checkchange";
4
- readonly version: "0.5.5";
4
+ readonly version: "0.5.6";
5
5
  };
6
6
  export interface RuleResult {
7
7
  ruleId: string;
package/dist/rules.js CHANGED
@@ -1,5 +1,5 @@
1
1
  // Provenance for the rules lineage stage. Self tool version tracks package.json.
2
- export const rulesProvenance = { tool: 'checkchange', version: '0.5.5' };
2
+ export const rulesProvenance = { tool: 'checkchange', version: '0.5.6' };
3
3
  /**
4
4
  * Evaluate changed functions against the high-CRAP rule.
5
5
  * @param changed Array of changed functions
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "checkchange",
3
- "version": "0.5.5",
3
+ "version": "0.5.6",
4
4
  "license": "MIT",
5
5
  "packageManager": "pnpm@11.17.0",
6
6
  "type": "module",