Skip to content

v2.11.1: Fix scoped-package publishing to AWS CodeArtifact and speed up warm installs

Latest

Choose a tag to compare

@jdx jdx released this 28 Nov 23:38
· 3 commits to main since this release
Immutable release. Only release title and notes can be modified.
4cd80b8

aube publish now works with AWS CodeArtifact for scoped packages, and concurrent installs that share the global virtual store no longer fail on Windows. Warm repeat installs and fresh resolution of large dependency trees are also faster.

Fixed

  • Scoped packages published to AWS CodeArtifact (#1990, reported by @mekwall): CodeArtifact rejected aube publish of a scoped package with 400 Bad Request: ... the tarball attachment is missing from the request. aube now keys the tarball in _attachments as @scope/pkg-1.2.3.tgz, as npm and pnpm do. Before, it used the sanitized name scope-pkg-1.2.3.tgz. dist.tarball now uses the same name. Unscoped packages don't change. The file aube pack writes and the filename in --json output keep the sanitized name.
  • Concurrent Windows installs sharing the global virtual store (#1992): installs that ran at the same time could fail with Access is denied (os error 5) on the shared hidden-hoist directory <store>/aube-cache/virtual-store/node_modules/<name>. On Windows, aube now builds each shared junction under a temporary name and then renames it into place. It also retries short-lived access and sharing errors. Temporary links left behind by a crashed process are removed after 5 minutes. Linux and macOS don't change.

Changed

  • Faster warm installs (#1996, #1997, #1998, #1999, #2002): a frozen-lockfile install with a warm global virtual store and no node_modules now does less work:

    • lockfile entries are parsed in parallel, and the graph hash is cached
    • the node --version check and license collection run alongside the rest of the install
    • packages already in the shared store are reused without loading their store index
    • the lockfile graph and its hashes are reused instead of being computed again
    • only the needed package.json fields (engines, bin) are read

    On the gvs-warm benchmark, the median time fell from about 197 ms to about 103 ms. Install results on disk are the same.

  • Faster resolution of large peer-heavy graphs (#2001): during a pass, the resolver now reuses the rewritten peer suffix for packages that share it. On vlt's large fixture, with a warm cache and no lockfile, the median install time fell from 5.72 s to 1.20 s. The lockfiles were byte-for-byte the same.

Full Changelog: v2.11.0...v2.11.1

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