Release Notes
π Updates
- We now pass an applicable GitHub token to all github.com or githubusercontent.com requests. To scope it to proto, use
PROTO_GITHUB_TOKEN, otherwise we inherit GITHUB_TOKEN.
- Updated the plugin registry and new version check requests to use the same HTTP client as downloads, so they now respect
settings.http (proxies, certificates, user agent) and .netrc, and retry transient failures.
π οΈ Tools
- Bun
- Fixed a
package.json with a field that can't be parsed, like "version": "1.0" or an unusual
dependency range, losing its engines.bun, devEngines.runtime or packageManager pin. Those
fields are now skipped.
- Fixed a cycle in
volta.extends overflowing the stack.
- Fixed pinning a version to
package.json replacing a devEngines.runtime list, like one for
Node.js and Bun, with only the pinned tool's entry.
- Fixed a
packageManager URL, which Corepack accepts, being cut off at its first @.
- Deno
- Fixed a
package.json with a field that can't be parsed, like "version": "1.0" or an unusual
dependency range, losing its devEngines.runtime pin. Those fields are now skipped.
- Removed
DENO_HOME from the globals directories, as Deno doesn't read it.
- Fixed pinning a version to
package.json replacing a devEngines.runtime list, like one for
Node.js and Bun, with only the pinned tool's entry.
- Node
- Fixed a
package.json with a field that can't be parsed, like "version": "1.0" or an unusual
dependency range, losing its engines.node, devEngines.runtime or volta.node pin. Those
fields are now skipped.
- Fixed a cycle in
volta.extends overflowing the stack.
- Fixed pinning a version to
package.json replacing a devEngines.runtime list, like one for
Node.js and Bun, with only the pinned tool's entry.
- Fixed an entry in nodejs.org's index that can't be parsed failing version loading and canary
installs. It's now skipped.
- Node package managers
- Nub globals are now also found in its
globalBinDir setting (NPM_CONFIG_GLOBAL_BIN_DIR) and
$XDG_DATA_HOME/../bin, where nub v0.9+ links them.
- Yarn now runs with
YARN_IGNORE_PATH=1, so the configured version wins over a committed
yarnPath, which yarn set version writes. Repos whose yarnPath disagrees with their Yarn
version now run a different Yarn.
- Yarn 1β5's executable directory now comes first on
PATH, ahead of globals directories like
~/.yarn/bin and Node.js's bin, which can hold another Yarn, like Corepack's.
- Fixed Yarn 6 running Yarn Switch, which runs the Yarn that
packageManager asks for, and Yarn 1
without one, instead of the installed Yarn. The switch is now removed from the install directory.
- Fixed a
package.json with a field that can't be parsed, like "version": "1.0" or an unusual
dependency range, losing its packageManager or devEngines.packageManager pin. Those fields are
now skipped.
- Fixed a cycle in
volta.extends overflowing the stack.
- Fixed pinning a version to
package.json replacing a devEngines.packageManager list, like one
for npm and pnpm, with only the pinned package manager's entry.
- Fixed a
packageManager URL, which Corepack accepts, being cut off at its first @.
- Fixed an entry in nodejs.org's index that can't be parsed failing the npm
bundled alias. It's
now skipped.
- Rust
- Fixed a toolchain without
rustc and cargo counting as installed. In a folder with a
rust-toolchain.toml, rustup toolchain list filled the folder that proto creates with only that
file's components and targets.
π Fixes
- Fixed the globals directories of a tool taking precedence over the executable directories of other tools in
proto activate, proto exec, proto run, and shims, when multiple tools are active. For example, a package installed into the globals directory that npm shares with Node.js could shadow Node.js itself. The executable directories of every tool now come before any globals directories.
- Fixed the directory of a tool's primary executable being added to
PATH by proto activate, proto exec, proto run, and shims, when the plugin doesn't create a bin or shim for it (like proto itself).
- Fixed HTTP responses with a non-standard status code (600 or higher) failing immediately instead of being retried. For example, GitHub release downloads may intermittently respond with a 618 when they redirect to an already expired URL, which a retry resolves.
βοΈ Internal
- Updated dependencies.
- Added
LocatorResponse.use_exe_file_dir, which is true when the primary executable provides a bin or shim.
Install proto_cli 0.64.2
Install prebuilt binaries via shell script
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/moonrepo/proto/releases/download/v0.64.2/proto_cli-installer.sh | sh
Install prebuilt binaries via powershell script
powershell -ExecutionPolicy Bypass -c "irm https://github.com/moonrepo/proto/releases/download/v0.64.2/proto_cli-installer.ps1 | iex"
Download proto_cli 0.64.2