Skip to content

v2.11.0: Read and write pnpm's experimental v13 lockfile

Latest

Choose a tag to compare

@jdx jdx released this 23 Nov 22:55
Immutable release. Only release title and notes can be modified.
083c8d2

aube can now read and write pnpm's experimental lockfileVersion: '13.0' lockfile, so it can share a v13 lockfile with pnpm. This release also fixes git and remote-tarball dependencies (peer linking and prepare scripts) and Windows .cmd bin shims.

Added

  • pnpm v13 lockfile support (#1977, #1979, @jdx): pnpm 12.19 added an experimental lockfile format, which a project turns on in pnpm-workspace.yaml. aube can now read v13 lockfiles in both JSON and YAML form and can write them. The output matches pnpm 12.21 byte for byte. Before, aube failed on these lockfiles with invalid type: map, expected a string or importer . is missing, or it quietly rewrote them as version 9.
    # pnpm-workspace.yaml
    lockfile:
      format: v13
    • An existing pnpm-lock.yaml keeps its current format, v9 or v13. The new lockfile.format setting (v9 or v13, also AUBE_LOCKFILE_FORMAT) overrides this when aube writes the lockfile. It also picks the format of a new pnpm-lock.yaml. aube-lock.yaml is always written at version 9.
    • --frozen-lockfile accepts either format. An install that changes nothing leaves the file untouched.
    • If aube can't write a graph at v13 without losing data, it stops with ERR_AUBE_PNPM_LOCKFILE_V13_NOT_REPRESENTABLE (exit 17) and leaves the file unchanged. Set lockfile.format: v9 to write version 9 instead.
    • pnpm still treats v13 as experimental, so the format may change.

Changed

  • pnpm lockfile version check (#1977, @jdx): aube now refuses a pnpm-lock.yaml whose lockfileVersion is not 9 or 13 and reports ERR_AUBE_UNSUPPORTED_PNPM_LOCKFILE_VERSION (exit 16). Before, it read any version 9 or higher as v9.
  • Lockfile write errors keep their error code (#1977, @jdx): when writing the lockfile fails during install, add or a workspace install, aube now reports the specific ERR_AUBE_* code, help text and exit code. Before, these errors exited with code 1.

Fixed

  • Peer dependencies of git and remote-tarball deps (#1983, @jdx): aube now links the peerDependencies of packages installed from git or tarball URLs, as it already does for registry packages. Before, these peers were not linked. With the global virtual store, this could load two copies of a peer such as vite. The lockfile entry now has the usual (peer@version) suffix.
  • prepare for git-hosted tarball deps (#1984, @jdx): GitHub, GitLab and Bitbucket dependencies that the lockfile records as gitHosted: true tarballs now run their prepare script, as type: git entries already did. Before, a package that builds dist/ in prepare was installed without it. --ignore-scripts still skips the script.
  • Windows .cmd bin shims (#1986, @jdx): a shim started by a quoted name found through PATH, such as cmd /d /s /c ""npm" -v", now finds its target. Before, it looked in the current folder and failed with Cannot find module. aube still recognizes shims written by earlier versions and replaces them with the new form the next time it rewrites them.

Security

  • Updated the Rust url crate to 2.5.9 to address RUSTSEC-2026-0592 (#1988, @jdx).

Full Changelog: v2.10.1...v2.11.0

💚 Sponsor aube

aube is built and maintained by @jdx, an open source developer at entire.io, the title sponsor of his open source work.

If aube saves your team install time or CI minutes, please consider becoming an individual or company sponsor. Your support funds ongoing development and helps keep aube fast, free, and independent.