Repository navigation
v2.11.3: Global add no longer removes other global packages; stalled downloads recover
Latestaube 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 -gre-adds no longer remove other global packages (#2025, reported by @papaspiridis): before,aube add -g semver whichput both packages into one shared install. A lateraube add -g semveroraube remove -g semverthen removedwhichand 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:If replacing a shared install drops packages you didn't name, aube warns withaube 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
WARN_AUBE_GLOBAL_GROUP_MEMBERS_REMOVEDand shows the command to reinstall them.remove -glists every package it removes. Packages that an older aube grouped from a space-separated command stay grouped until you runadd -gagain 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 addandaube removework again with transitive npm aliases (#2030): since 2.11.2, a lockfile with a transitive alias such asstring-width-cjs(npm:string-width@^4.2.0, pulled in byglob,jackspeakand others) made these commands fail withERR_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 fullfetchTimeout, 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 withadvisoryCheck = 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 withhttps,http,ssh,gitorfileURLs, the transports npm and pnpm document. Others, such asgit+ftp://, now fail to resolve. Before, they were passed to git unchanged. aube also setsGIT_ALLOW_PROTOCOLon every git command it runs, which covers lockfile URLs and submodules. A stricterGIT_ALLOW_PROTOCOLor gitprotocol.*.allowconfig still applies. Hosted shorthands such asgithub:owner/repoare 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 updateandaube dlxstill check the whole graph. A new advisory for a version that is already locked is no longer caught byaube add, the same as a defaultaube 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-padnow makes one OSV request instead of two.
- 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.
- 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_modulesentries and bins, or runs scripts. If OSV blocks a package, the install fails as before, but it can leave a partialnode_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
networkConcurrencyabove 128 still raises the cap, andmaxsocketsstill 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
minimumReleaseAgecutoff. On vlt'snextfixture, the first cached install dropped from about 3.5 s to about 0.5 s. Packages named inminimumReleaseAgeExclude, or installs withminimumReleaseAge: 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
largefixture,aube install --lockfile-onlywithout 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.