Releases: nvm-sh/nvm
Releases · nvm-sh/nvm
v0.32.1
Fixes
- ensure that
lts/*
points to boron/latest, not argon/earliest (#1268) nvm uninstall
: work aroundnomatch
zsh
option (#1228)- Fix trailing whitespace in
nvm ls-remote``zsh
: whenwarncreateglobal
is set, this line warns for some reason. Useenv
to suppress it (#1236) - Remove un-local var EXIT_CODE (#1236)
install
: Manually run git gc after nvm installation (#1231, #1226)
Refactors
nvm ls-remote
: make the main ls-remote command call intonvm_remote_versions
directlynvm_install_source
,nvm_install_binary
,nvm_download_artifact
: ensure a version is provided- Use
||:
and&&:
when appropriate nvm_ls_remote_index_tab
: clean up to usenvm_get_mirror
nvm_install_binary
: remove unusednvm_get_mirror
call- Fix indentation (#1256)
Docs
zsh
auto-use snippet: improve speed (#1264)- Fix "Manual upgrade" link in readme (#1247)
- add a menu for readme for easier readability (#1234)
- Remove fin from the readme (#1225)
- Bump to require git v1.7+ and add docs (#1233, #1232)
- copyedit readme (#1230)
Tests
v0.32.0
New Stuff!
- HUGE rewrite of installation code path! (#1204) This enables:
- node 4+ source installs
- io.js source installs
- downloaded tarballs are cached and reused if they checksum-match
nvm cache clear
andnvm cache dir
- expand
xz
support to more versions
Tests
- show
type
output for debugging - improve travis-ci test matrix
v0.31.7
v0.31.6
v0.31.5
Fixes
install.sh
: Fix nvm dir path in install script (#1189, #1190)install.sh
: Add trailing newline char to $SOURCE_STR (#1191)- when not using
xz
on merged node versions, usez
to extract, notx
nvm unload
: ensure all functions are unset
New Stuff
- Add
lts/foo
support to remote commands (#1208) nvm ls
/nvm ls-remote
/nvm alias
: add--no-colors
nvm alias
: add in--
-based argument support
Performance
- [Performance] make auto-using faster
Refactoring
- use curlies with variables
nvm alias
: shift out the “alias”nvm alias
: use named vars instead of positional argsnvm alias
: reorganize so alias listing is done last- create
nvm_list_aliases
- always shift first argument to
nvm
nvm_install_merged_node_binary
: reduce nesting, fix var curliesnvm install
: remove unusedREINSTALL_PACKAGES_FROM
argument to inner installation helpers- Add
nvm_get_checksum_alg
,nvm_get_mirror
- [shellcheck] fix incorrect
A && B || C
usages - [shellcheck] properly quote arguments
- [shellcheck] disable intentional violations via comments
- [shellcheck] clean up
install.sh
Documentation
- add a road map
Tests
- set -ex options on more tests
v0.31.4
v0.31.3
New Stuff
- Add remote LTS support (#1070)
nvm install
: Improve error messages for missing versions- Install node upon installing if NODE_VERSION is set (#549)
Fixes
- remove the need for
sed -E
(#1126) - install script: Don’t attempt to
cd
twice (#1137) - install should not exit after successful git clone (#1146, #1147)
- use Solaris-compatible tail options (#1148)
- ensure proper checking of the “shwordsplit” zsh option
Refactors
- [install script] Refactors NVM_DIR; adds tests (#566)
- use git options instead of cd in install script (#1144)
- create
nvm_grep
and remove standaloneGREP_OPTIONS
line. - use "case" instead of if/else in install (#898)
Tests
v0.31.2
Fixes
nvm ls
: avoid use ofmaxdepth
which is not on Solaris/SmartOS (#1121)- do not print help text on sourcing when an empty .nvmrc file is found (#1113)
nvm install -s
: when “core id” doesn’t appear in /proc/cpuinfo, fall back to counting “processor” lines (#1115)- On aarch64 use arm64 packages (#1104)
- ensure
uname
is unaliased (#1105) set -u
: is variable set test (#1100)dash
does not support string substitution- [shellcheck] remove use of
expr
- [shellcheck] clean up unquoted args etc
- [shellcheck] add shellcheck override comments
Docs
- [help] Add
nvm ls-remote <version>
(#1094) - Slightly elaborated the instruction for manual install (#1114)
- Add info WRT installing on Alpine Linux / Busybox (#1106)
- add some OS X notes to the README (#1101)
- readme cleanups (#1097, #1109)
Tests
- Run
node
andio.js
installation test suites separately - swap order of slow + sourcing tests
v0.31.1
New Stuff
nvm uninstall
: Check installation dir permissions before uninstalling; display "fix" commands (#847)nvm alias
: colorize output to matchnvm ls
nvm alias
: colorize output when creating aliasesnvm ls
/nvm alias
/nvm ls-remote
: only colorize when colors are supported
Fixes
- don’t use bash
==
in conditionals nvm run
: pass through--silent
on barenvm run
nvm exec
: show “io.js” for io.js versionsset -e
: ensurenvm_version
returning 3, andnvm_alias
returning 2, doesn’t terminate the processnvm alias
: explicitly forbid user aliases in subdirsread
exits 1 when.nvmrc
lacks a trailing newline; avoid thatset -x
: avoid an unbound variabledeactivate
: unset$NVM_BIN
and$NVM_PATH
(#1033)
Performance
nvm alias
: slightly speed up alias resolution- Use
awk
to improve version comparison performance
Robustness
- add a missing
command
to ased
call
Misc
- Various README tweaks
- Various testing improvements
- Prefer
nvm --help
overnvm help
v0.31.0
New Stuff
install
: After installing, ensure that a default is set.install
: added optional sha256 support (#981)
Fixes
nvm-exec
: properly exit when failing; improve error messages, suppressnvm use --help
output (#997)- internal
nvm_format_version
should only return 3 version groups - Use env bash instead of
/bin/bash
in a few places (#1004) - Do not modify args of sourcing script when parsing
--install
/--no-use
arg (#1011, #976)
Docs
- Document how to reload nvm after upgrading (#1007)