Bug Fixes
-
jscpdon npm installed the 5.0.16 engine instead of 5.1.0 — thejscpdwrapper package published itsoptionalDependenciespinned to the5.0.16platform binaries, sonpm i jscpd@5.1.0resolved a native binary one release behind andjscpd --versionreportedcpd 5.0.16. Everything 5.1.0 fixed was therefore absent forjscpdusers, including the Windows--baseline-from-reffix. Thecpdpackage was pinned correctly and is unaffected, as are the platform packages themselves — only the wrapper's pins were stale.The cause was in
scripts/sync-version.mjs: the wrapper's version and its platform pins were updated together behind a singleversion !== npmVersionguard, so once anything setversionbefore the script ran, the guard read "already up to date" and left the pins untouched. The two are now updated independently, and the script ends by verifying that every npm version and platform pin matches the release version, exiting non-zero if any disagree — the release workflow runs this script, so a repeat of this mismatch now fails the release instead of publishing. This is the same defect that produced the 5.0.13 republish; the earlier fix covered thecpdpackage but not thejscpdwrapper.
Other
- Declared MSRV corrected to 1.96 — the workspace advertised
rust-version = "1.87"on crates.io, a floor the crate could not build on: theoxcparser crates require 1.96.0, andignore,globsetandaskamarequire 1.88. The value had been set when the Rust workspace was created and never revisited, and no CI job built at the declared MSRV, so the drift went unnoticed. CI now derives the toolchain fromrust-versionand checks against exactly that version.
Published Packages
cpd-core@0.1.10on crates.iocpd-finder@0.1.13on crates.iocpd-reporter@0.1.11on crates.iocpd-tokenizer@0.1.12on crates.iojscpd@5.1.1on crates.iocpd@5.1.1on npmjscpd@5.1.1on npmjscpd-darwin-arm64@5.1.1on npmjscpd-darwin-x64@5.1.1on npmjscpd-linux-x64-gnu@5.1.1on npmjscpd-linux-arm64-gnu@5.1.1on npmjscpd-linux-x64-musl@5.1.1on npmjscpd-windows-x64-msvc@5.1.1on npmjscpd-windows-arm64-msvc@5.1.1on npm