Repository navigation
Releases
Releases · Sec-ant/locksmith
0.5.4 (2026-12-04)
Fixes
- Convergence preserves ordinary child pins when a retained package gains or loses a peer. Switching from a registry peer to an aliased local directory requires matching locked evidence. Local providers shadow inherited peers, and retained wrappers continue to expose unbound optional peers. Shared snapshots accept equivalent references and derive optionality from the final graph. When configuration is omitted, linked-peer identities use the encoding supported by the input locks.
- Rebind peers supplied by renamed file dependencies during contextual merges, including directories with
@in their paths. - Reduce temporary allocations when
inspecttraverses workspace dependencies. - Exclude leftover build files when packing the npm wrapper and native binaries.
- Reject conflicting registry routes for the same scope before fetching package metadata, regardless of declaration order.
- Keep the original importer pin when peer resolution returns to its starting provider context during a contextual merge.
0.5.3 (2026-12-02)
Fixes
- Guide agents through pnpm lockfile tasks with the project-local
locksmithCLI and publish the matching command examples on crates.io and npm.
0.5.2 (2026-12-02)
Features
- Accept
str::parseforDocumentKindandMergeTargetin the Rust API.
Fixes
- Read lockfiles whose YAML document start markers share a line with the environment or project mapping.
- Report malformed package metadata at its own key when validating a lockfile that also contains a package with the same base locator.
- Speed up
repairin workspaces where many projects inherit peer dependencies from the root. - Return the same exit status for text and JSON output from
locksmith validate --workspacewhen the lockfile settings disagree with the workspace. - Read and repair lockfiles with an explicit
%YAML 1.2version directive, including two-document locks. Lockfiles that declare document-local tag handles with%TAGremain unsupported.
0.5.1 (2026-12-02)
Features
- Run supported pnpmfile hooks in an embedded JavaScript runtime when the CLI reads a workspace or Git revision, including TypeScript helpers with erasable types when Node.js on PATH provides
module.stripTypeScriptTypes. - Add
--context FILEtorepair(andRepairInput::apply_effective/ NodeeffectiveManifests) to supply effective manifests after pnpmfile hooks, with an explicit rootless mode for workspaces without a root manifest. Node callers can also mark registry manifests processed by the target workspace witheffectiveRegistryManifests. - Add a global
--workspace-root <DIR>flag sovalidate --workspace,repair, andconvergesupport cross-directory workspace layouts (such as Rush subspaces without a sibling rootpackage.json) while keeping parent-directory traversal bounded to the declared root.
Fixes
- Keep Git merge conflicts in
driver runwhen an active pnpmfile could account for a dependency declaration not supported by any source lockfile. - Preserve an explicitly recorded registry tarball URL when merging peer instances of the same release with matching integrity.
- Check the pnpmfile checksum recorded in each source lock before reusing its package graph in a contextual merge or repair. Carry the verified checksum into the merged lock.
- Preserve locked versions for unchanged
npm:alias declarations using release tags such aslatestinrepair. - Repair missing peer snapshots offline when an existing instance witnesses the same artifact and the workspace determines the exact peer bindings.
- Reuse published package records across unrelated edits in Git-based
repairand lockfile merges when the same local CommonJS hook derives dependency changes solely from each package manifest. - Match catalog tarballs by their declared URL and package version during validation, repair, and merge. Accept normalized URLs and redirected HTTP(S) downloads with recorded integrity.
0.5.0 (2026-11-29)
Breaking Changes
Add canonical lockfile formatting and orphan checks
Use --canonical to format or validate pnpm 9–12 lockfiles while preserving override order. Use --no-orphans to prune unreachable snapshots and packages in converge and repair, or report them in validate. Node.js callers can use the corresponding canonical and noOrphans options.
Rust callers must now pass ValidateOptions to Lockfile::validate and Lockfile::validate_workspace, and FormatOptions to Lockfile::to_yaml. Pass Default::default() to keep the previous defaults. Set no_orphans: false in RepairContext struct literals to preserve orphan handling. The Node.js LockfileError type no longer includes the UNMET_PEERS variant.
0.4.0 (2026-11-28)
Breaking Changes
- Move the Git merge driver to
driver run(existing clones must updatemerge.locksmith.driver), adddriver setup,completions,man,-o/--write/--diff/--check,validate --json, and global-C/--color/-q/-voptions with improved diagnostics.
0.3.11 (2026-11-28)
Fixes
- Organize core modules into a layered DAG and add architecture diagrams.
0.3.10 (2026-11-28)
Features
- Replace
converge_with_patchesandconverge_with_recorded_baselineswithconvergeandConvergeOptions::patchesorConvergeOptions::recorded_baselines, respectively. RenamePeerVersionMatching::ReleaseCompatibletoPnpm10, add#[non_exhaustive],#[must_use],Display, and standard Rust traits, and declare the default export andCLI_FAILEDerror variant innpm/index.d.ts.
Fixes
- Fix YAML scalar/float quoting, verifier non-finite float matching, peer diagnostics, reconcile/repair/CLI/npm edge cases, and optimize YAML emission and registry packument fetching.
0.3.9 (2026-11-27)
Fixes
- Select compatible recorded settings in contextual merges and report a mismatch when no source reflects the final pnpm workspace.
- Allow
merge --contextto omitpatcheswhen the workspace has no configured patches. - Reject pnpm 12 lockfiles whose recorded resolution settings or integrity target disagree with the workspace in
validate --workspace. - Read the pnpm 9 peer suffix limit from
.npmrcand accept inline comments onpeers-suffix-max-length. - Check
pnpmfileChecksumin Rust workspace validation when the caller supplies effective manifests. - Accept comments after whitespace on YAML document markers in two-document pnpm lockfiles.
0.3.8 (2026-11-26)
Fixes
- Keep the final workspace’s configuration dependencies and package-manager pin when merging or converging bootstrap locks. The Git driver, CLI, and Node API interpret the final settings with the pnpm version from the selected bootstrap graph when the manifest leaves a range or omits the version. Repair checks each parent using its recorded pnpm version when recovering missing records. Repair and workspace validation honor
devEngines.packageManager,packageManager, andpmOnFail, including when a frozen install requires a bootstrap pin. - Resolve linked workspace members and manifests against the selected Git revision, including relative targets containing
.and... On Git 2.38 and later, blobless clones with one promisor remote fetch the selected missing manifests in a single batch. Convergence checks working directory links against the installed lockfile. A conflict in a linked manifest keeps the lockfile unmerged, including when its target filename contains non-UTF-8 bytes. - Ignore unrelated non-UTF-8 filenames when discovering Git workspace members and dependency conflicts.
- Read peer provider manifests inside the workspace even when their directories are not workspace members.
- Report invalid lockfile setting types and compare quoted booleans under the selected pnpm version.
- Resolve the installed npm README’s links to type declarations and repository documentation.
- Validate the patch hash selected for each locked package version.
- Use the same default pnpm version policy for the Node
inspectandinspectPeersAPIs. - Converge minor and patch pnpm upgrades using the final resolver configuration.
- Batch independent missing workspace and transitive dependency versions during contextual merges with registry access. Reuse a compatible dependency or alias before requesting an auto-installed peer.
- Preserve unreachable package extension records during
repair.