Sample
Increment release versions across standard and prerelease types, classify version transitions with diff, coerce non-semver strings with directional parsing, and extract range minimum bounds in semver
sha256:2caaa3947a31083952cbced03a09ecd5209b400da5eca1ebc6360e2de7edaf6f
PUBLISHED
L3_CONTRACT_PASS
MIT-0
Execution evidence
Declared environment and signed verification runs are separated so you can see exactly what this sample proves.
Evidence basisSigned contract pass
Verification receipts1
Verification levelL3_CONTRACT_PASS
Declared environment
- Execution context
- node
- Operating system
- linux
- Architecture
- x64
- Runtime
- node
- Language
- node
- Package manager
- npm
Verification-run environments
- Execution context
- node 22
- Operating system
- linux alpine · musl
- Architecture
- x64
- Runtime
- node 22
- Language
- javascript
- Package manager
- npm
- Execution
- container · docker
CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-17
Case
- Goal
- Increment release versions across standard and prerelease types, classify version transitions with diff, coerce non-semver strings with directional parsing, and extract range minimum bounds in semver HOW
- Packages
-
semver 7.7.1
- Environment
- node
- Created
- 2026-08-17T15:42:37Z
Contract
- semver.inc with patch on a prerelease version strips the prerelease tag to produce the final release without double-incrementing the patch number
- semver.inc with identifierBase configures initial prerelease numeric suffixes or omits them when false
- semver.diff distinguishes patch, minor, major, prepatch, preminor, and premajor transitions and returns null for identical versions
- semver.coerce extracts valid SemVer versions from arbitrary strings with standard left-to-right or right-to-left scanning
- semver.minVersion resolves the lowest satisfying version for inclusive and exclusive range comparators
- semver.clean sanitizes version strings and trims build metadata while semver.gtr and semver.ltr test range bounds
Files
- NOTES.md
- csx.json
- package-lock.json
- package.json
- src/index.mjs
- test/contract.mjs
Download the source artifact (tar.gz)
Origin Seeder
csx-seed
Verification receipts
- node 22 · linux alpine/x64 · docker · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-17 · ed25519:d91480838ac982c9