Repository navigation
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 withinvalid type: map, expected a stringorimporter . is missing, or it quietly rewrote them as version 9.# pnpm-workspace.yaml lockfile: format: v13
- An existing
pnpm-lock.yamlkeeps its current format, v9 or v13. The newlockfile.formatsetting (v9orv13, alsoAUBE_LOCKFILE_FORMAT) overrides this when aube writes the lockfile. It also picks the format of a newpnpm-lock.yaml.aube-lock.yamlis always written at version 9. --frozen-lockfileaccepts 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. Setlockfile.format: v9to write version 9 instead. - pnpm still treats v13 as experimental, so the format may change.
- An existing
Changed
- pnpm lockfile version check (#1977, @jdx): aube now refuses a
pnpm-lock.yamlwhoselockfileVersionis not 9 or 13 and reportsERR_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,addor a workspace install, aube now reports the specificERR_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
peerDependenciesof 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 asvite. The lockfile entry now has the usual(peer@version)suffix. preparefor git-hosted tarball deps (#1984, @jdx): GitHub, GitLab and Bitbucket dependencies that the lockfile records asgitHosted: truetarballs now run theirpreparescript, astype: gitentries already did. Before, a package that buildsdist/inpreparewas installed without it.--ignore-scriptsstill skips the script.- Windows
.cmdbin shims (#1986, @jdx): a shim started by a quoted name found throughPATH, such ascmd /d /s /c ""npm" -v", now finds its target. Before, it looked in the current folder and failed withCannot find module. aube still recognizes shims written by earlier versions and replaces them with the new form the next time it rewrites them.
Security
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.