v0.40.5
v0.40.5
Release Notes
New Stuff
nvm install --offline: install from cache without network access
Bug Fixes
nvm_download_artifact: reject version strings with disallowed charactersnvm_get_checksum: pass the tarball name to awk as data, not program textnvm_download: avoidevalso mirror-supplied version strings can't inject commandsnvm_download: send a well-formed Authorization header on the wget path- avoid an unbound variable
- Add local for sanitized_header (#3837)
- fix same owner for root when install from binary (#3834)
nvm_normalize_lts: only reject uppercase for LTS names, not regular aliasesinstall.sh: checkmkdirreturn codesinstall.sh: fix POSIX compliance, printf format strings, and profile detectionnvm which: show alias name in infinite loop error messagenvm uninstall: fix alias cleanup glob expansionnvm debug: use default empty values for potentially unset variablesnvm_iojs_version_has_solaris_binary: fix comparison to detect non-iojs versionsnvm_download_artifact: fix error propagation from subshellsnvm_install_binary: return failure when binary download fails with-bnvm_get_arch: only apply musl suffix on x64 Alpinenvm_get_arch: addcommandprefix tounamecallnvm_resolve_local_alias: avoid using variable as printf format stringnvm_get_mirror: fix awk URL validation to actually reject invalid URLsnvm_ls_remote_combined: propagate iojs remote listing failuresnvm install: fixnvm errtypo tonvm_errfor-s/-bconflictnvm alias: fix colors not showing by default
Refactors
nvm_rc_version: use fd 3 instead of exported env var for multiple return
Docs
- fix
--offlinehelp line alignment - Clean up wording in docs and shell comments (#3806)
- fix CONTRIBUTING grammar (#3804)
- do not use tilde expansion in ENV of Dockerfile (#3821)
- [readme] use tilde expansion instead of "$HOME" for consistency (#3799)
- [readme] use "$HOME" instead of hardcoded "/home/user"
- [readme] Revise Node.js version usage examples (#3802)
Misc
- [meta] Update .gitmodules with relative submodule path (#3839)
- [meta] Submodule nvmrc update protocol from git to https (#3839)
- [meta] Align and enhance AGENTS.md instructions (#3774)
Tests
install_nvm_from_git: stop git background gc/maintenance racing with cleanupinstall_nvm_from_git: fix malformed test command (missing space before])- reduce CI flakiness from transient Docker registry failures
- remove double-substitution in assert_ok and assert_not_ok (#3826)
- fix 4 test failures
- add
try/try_errhelpers; convert tests to use them - [actions] add workflow to update nodejs.org nvm version
- [actions] set per-job permissions in the
nvm installworkflow - [actions] allow DockerHub's CloudFront CDN so image pulls aren't blocked
- [actions] upgrade vampire/setup-wsl (#3775)