github nvm-sh/nvm v0.40.8

4 hours ago

Bug Fixes

  • nvm_alias, nvm_version_path: reject .. path components
  • nvm_get_make_jobs: count cores on platforms the case does not name
  • nvm-exec: improve the no-version failure message
  • nvm use: do not clobber man's default search path (#3890)
  • nvm_err, nvm_err_with_colors: do not fail when stderr is closed (#3907)
  • nvm_hash_reset: only run hash -r where the shell supports it
  • nvm_alias: unset zsh's extendedglob while reading an alias file (#3891)
  • zsh: restore nomatch and markdirs rather than clobbering them
  • nvm --help: render the set-colors legend in color (#3915)
  • nvm unload: drop the undefined nvm_format_help_message_colors
  • nvm_get_mirror: allow ports, userinfo, IPv6 hosts, and percent-encoding
  • nvm_sanitize_auth_header: allow ~, completing RFC 7235 token68 (#3751)

Refactors

  • nvm --help: extract the set-colors legend into nvm_print_color_legend

Performance

  • Optimize nvm_tree_contains_path with in-memory POSIX parent-walk (#3912)

Docs

  • [readme] document platforms with no official node binaries
  • install.sh: Fix missing words in bash/zsh completion message (#3887)
  • Remove stray closing HTML tag (#3919)

Misc

  • [meta] remove CLAUDE.md symlink in favor of AGENTS.md (#3928)
  • [meta] add release-notes.sh, the release notes generator

Tests

  • homebrew/actions changed their default branch
  • [actions] WSL: pin every distribution, and test the newest of each line
  • nvm_print_color_legend: look up the function with PATH emptied
  • nvm_print_color_legend: check for the function, not a same-named file
  • nvm_print_color_legend: fix the fast suite on GNU userlands
  • [actions] release.yml: provide GH_TOKEN so release-notes PR lookup can run

Don't miss a new nvm release

NewReleases is sending notifications on new releases.