Skip to content

fix: read version from package.json and warn on unknown engine names - #9

Merged
sraisl merged 1 commit into
mainfrom
fix/version-and-engine-validation
Jul 19, 2026
Merged

sraisl merged 1 commit into
mainfrom
fix/version-and-engine-validation

Conversation

@sraisl

@sraisl sraisl commented Jul 19, 2026

Copy link
Copy Markdown
Owner

#5 — version no longer hardcoded:

  • sarif.ts and sbom.ts now import the version from package.json via resolveJsonModule instead of hardcoding "1.0.0"

#6 — unknown engine names produce a warning:

  • engines.ts: add unknownEngines() helper that returns names not in ALL_ENGINES
  • main.ts: warn for each unknown engine and filter them out before running
  • test/engines.test.ts: 3 new tests for unknownEngines()

#5 — version no longer hardcoded:
- sarif.ts and sbom.ts now import the version from package.json via
  resolveJsonModule instead of hardcoding "1.0.0"

#6 — unknown engine names produce a warning:
- engines.ts: add unknownEngines() helper that returns names not in ALL_ENGINES
- main.ts: warn for each unknown engine and filter them out before running
- test/engines.test.ts: 3 new tests for unknownEngines()

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@sraisl
sraisl merged commit 8e31a03 into main Jul 19, 2026
3 checks passed
@sraisl
sraisl deleted the fix/version-and-engine-validation branch September 20, 2026 07:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant