Skip to content

Releases: nvm-sh/nvm

v0.33.1

21 Feb 02:30
6669e91
Compare
Choose a tag to compare

v0.33.1

Fixes

  • Enable working without tput available (#1403)
  • nvm unload: run nvm deactivate before unsetting everything (#1399)
  • unset NVM_RC_VERSION env var immediately after it’s no longer needed (#1399)
  • install.sh: only un-interpolate $HOME for the profile source string (#1384)
  • set -e: nvm install lts/something: call nvm_ensure_default_set with the proper value (#1394)

Install script

  • Use $HOME variable in NVM_DIR (#1381)

nvm debug

  • include mirrors in nvm debug output

Docs

  • [Fix] zsh autochange: only nvm install if we can’t nvm use (#1357, #1378)
  • Add CII best practices badge (#1397)

v0.33.0

30 Dec 07:35
40e4097
Compare
Choose a tag to compare

Breaking Changes (probably)

  • remove the unused and broken $NVM_PATH (#1353)

New Stuff

  • install.sh: Install bash programmble completions automatically (#753)
  • nvm install -s: Use clang as C/C++ compiler if detected (#902, #1300)
  • nvm install: Add AIX support (#1295)
  • nvm install: Print the version that is being installed (#1286)
  • nvm install: support external install hook “$NVM_INSTALL_THIRD_PARTY_HOOK” (#1207)

Fixes

  • [reverted] Also run git gc after nvm upgraded (#1274, #1301)
  • bypass aliased cd in a few places (#1284)
  • Improve nvm_download_artifact() process (#1291, #1294)
  • allow uninstalls when files are nonwritable but self-owned (#1270)
  • nvm install: Handle 'N/A' version instead of asking to install it (#1304, #1305)
  • nvm install -s: aix: detect number of threads on aix and not just number of processors (#1319)
  • nvm unload add missing unloadable functions/vars (#1333, #1335)
  • nvm install -s: nvm should respect CC/CXX env var (#1336)
  • set -u: ensure that potentially unbound variables aren’t called unchecked (#1363)

Refactors/Robustness/Caching

  • use echo instead of cat in install.sh (#1276)
  • use backslash when sourcing in case of overridden dot (#1278, #1279)
  • fix/retab indent in bash_completion (#1297)
  • add missing "command" prefix call for some commands (#1296)
  • nvm install: Do not remove src dir after compilation succeeds (#1299)
  • Add missing backslash for dots (#1322)
  • Rename NVM_CPU_THREADS to NVM_CPU_CORES (#1326)
  • Use "case" instead of multi "if" (#1332)

Tests

  • die() in tests should quote "$@" for echo (#1288)
  • [reverted] Drop manual apt source and package installation (#1311, #1323)
  • switch to use cabal to install shellcheck (#1320)
  • run shellcheck against bash_completion (#1324)
  • run shellcheck against nvm_exec (#1321)
  • cache $HOME/.ghc for cabal (#1327)
  • add test to ensure that nvm unload unloads all functions

Docs

  • Link version badge to the release page + cleanup (#1338, #1340)
  • update readme about compile nodejs v0.10+ from src (#1330)
  • update alpine environment installation info (#1330)
  • Auto install not exist version in zsh .nvmrc script (#1306, #1272)
  • Add current version on the top of README (#1309)
  • Bold leading "Note:" in readme for readability (#1275)

v0.32.1

18 Oct 20:18
589a911
Compare
Choose a tag to compare

Fixes

  • ensure that lts/* points to boron/latest, not argon/earliest (#1268)
  • nvm uninstall: work around nomatch zsh option (#1228)
  • Fix trailing whitespace in nvm ls-remote``zsh: when warncreateglobal is set, this line warns for some reason. Use env 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 into nvm_remote_versions directly
  • nvm_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 use nvm_get_mirror
  • nvm_install_binary: remove unused nvm_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

  • consolidate APT packages (#1260)
  • improve + update test mocks
  • update test mocks (#1248)

v0.32.0

15 Sep 22:06
63fe22d
Compare
Choose a tag to compare

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 and nvm cache dir
  • expand xz support to more versions

Tests

  • show type output for debugging
  • improve travis-ci test matrix

v0.31.7

03 Sep 06:45
25fa40e
Compare
Choose a tag to compare

Fixes

  • ensure LTS alias dir exists before writing to it (#1216)
  • when originally installed without git, ensure it can be upgraded to use git (#1212, #1213)

Tests

  • add shellcheck

v0.31.6

23 Aug 21:45
31c68ad
Compare
Choose a tag to compare

Fix

  • Revert %s-formatting for SOURCE_STR when writing to shell profile (#1210, #1209)

v0.31.5

23 Aug 18:22
d179810
Compare
Choose a tag to compare

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, use z to extract, not x
  • 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 args
  • nvm 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 curlies
  • nvm install: remove unused REINSTALL_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

30 Jul 00:27
31e58d1
Compare
Choose a tag to compare

Fixes

  • fix "find: warning: Unix filenames usually don't contain slashes" warning (#871)
  • Fix nvm on SmartOS setups using 64 bits pkgsrc repository (#1182)

Install Script

  • Clean up messaging; don't source entire profile (#1178)

Documentation

  • Improve installation and upgrade instructions (#1179)
  • Document required git version (#1181)

v0.31.3

20 Jul 08:00
56417f8
Compare
Choose a tag to compare

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 standalone GREP_OPTIONS line.
  • use "case" instead of if/else in install (#898)

Tests

  • update test mocks (#1140)
  • use $NVM_DIR instead of relative paths
  • set x option in update mock to better locate failures
  • make “nvm use iojs” test actually test that thing
  • use -ex option during tests when possible (#1130)
  • avoid accidental command execution in test failure message

v0.31.2

25 Jun 17:01
9f5322e
Compare
Choose a tag to compare

Fixes

  • nvm ls: avoid use of maxdepth 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 and io.js installation test suites separately
  • swap order of slow + sourcing tests