Skip to content

v2.11.3: Global add no longer removes other global packages; stalled downloads recover

Latest

Choose a tag to compare

@jdx jdx released this 04 Dec 02:11
· 2 commits to main since this release
Immutable release. Only release title and notes can be modified.
1feca0c

aube add -g now gives each space-separated package its own install, so re-adding one global package no longer deletes others. This release also fixes aube add/aube remove failures caused by transitive npm aliases, recovers from stalled tarball downloads in about 10 seconds, and makes the OSV checks in aube add and fresh installs faster.

Fixed

  • aube add -g re-adds no longer remove other global packages (#2025, reported by @papaspiridis): before, aube add -g semver which put both packages into one shared install. A later aube add -g semver or aube remove -g semver then removed which and its bin without any message. As in pnpm, each space-separated package now gets its own install, and a comma-separated list creates one shared install:
    aube add -g semver which     # two installs; re-adding or removing one leaves the other
    aube add -g eslint,prettier  # one shared install, replaced and removed together
    If replacing a shared install drops packages you didn't name, aube warns with WARN_AUBE_GLOBAL_GROUP_MEMBERS_REMOVED and shows the command to reinstall them. remove -g lists every package it removes. Packages that an older aube grouped from a space-separated command stay grouped until you run add -g again with all of them. Space-separated packages install one after another, so if one fails, the ones before it stay installed. Packages that need each other as peers should be passed comma-separated.
  • aube add and aube remove work again with transitive npm aliases (#2030): since 2.11.2, a lockfile with a transitive alias such as string-width-cjs (npm:string-width@^4.2.0, pulled in by glob, jackspeak and others) made these commands fail with ERR_AUBE_NO_MATCHING_VERSION: no version of string-width-cjs matches range. Installs after a manifest change were also affected. When aube reuses a locked dependency, it now keeps the alias target.
  • Stalled tarball downloads are retried on a new connection (#2031): on cold installs, a download whose connection went silent could hold up the install for minutes, up to the 5-minute fetchTimeout. Now, if a tarball request with a retry left gets no response headers or no body data for 10 seconds, aube sends it again right away on a new, unpooled connection. The last attempt still waits the full fetchTimeout, so slow links that keep sending data don't fail sooner. There are no new settings.
  • OSV malicious-package checks read every page of results (#2036): when OSV split a package's advisories across pages, aube read only the first page. A MAL-* advisory on a later page was missed, even with advisoryCheck = required. aube now follows OSV's page tokens for up to 16 pages. If more pages remain after that, the check counts as failed, not clean.
  • git+ dependencies only use standard transports (#2027): git+ specs are now accepted only with https, http, ssh, git or file URLs, the transports npm and pnpm document. Others, such as git+ftp://, now fail to resolve. Before, they were passed to git unchanged. aube also sets GIT_ALLOW_PROTOCOL on every git command it runs, which covers lockfile URLs and submodules. A stricter GIT_ALLOW_PROTOCOL or git protocol.*.allow config still applies. Hosted shorthands such as github:owner/repo are not affected.

Changed

  • Faster OSV checks in aube add (#2022, #2033, #2034):
    • After resolving, the live OSV check covers only package versions that the lockfile didn't already pin. These are the packages you named and any new or changed transitive dependencies. On a Next.js fixture, adding one package now checks 2 package versions instead of 402. advisoryCheck = required, paranoid, advisoryCheckEveryInstall, aube update and aube dlx still check the whole graph. A new advisory for a version that is already locked is no longer caught by aube add, the same as a default aube install.
    • The pre-resolve name check now runs while the packuments download, not before. Files are still written only after the checks pass.
    • Packages that the name check already cleared are not sent to OSV again after resolving. aube add left-pad now makes one OSV request instead of two.
  • Install overlaps the OSV check with materializing packages (#2032): fresh installs now start placing packages in the virtual store while the live OSV check is still running. aube still waits for the result before it writes the lockfile, links top-level node_modules entries and bins, or runs scripts. If OSV blocks a package, the install fails as before, but it can leave a partial node_modules/.aube (or global virtual store entries) behind. The next install replaces them.
  • Fewer tarball connections (#2037): tarball downloads are now capped at 128 at once (down from 256), and the tarball connection pool keeps 128 idle connections (up from 64). On a large cold install, this about halves the number of new connections. An explicit networkConcurrency above 128 still raises the cap, and maxsockets still sizes both pools.
  • Faster second install after a fresh one (#2023): packages served from aube's bundled primer are no longer checked again with the registry on the next install, as long as the primer covers the minimumReleaseAge cutoff. On vlt's next fixture, the first cached install dropped from about 3.5 s to about 0.5 s. Packages named in minimumReleaseAgeExclude, or installs with minimumReleaseAge: 0, are still checked with the registry as before.
  • Faster peer-dependency resolution on deep trees (#2038): the peer-dependency pass no longer copies the whole ancestor scope for each package. On vlt's large fixture, aube install --lockfile-only without a lockfile went from 244 ms to 196 ms. Lockfiles are byte-for-byte the same.

Full Changelog: v2.11.2...v2.11.3

💚 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.