Skip to content

Releases: nvm-sh/nvm

v0.26.0

14 Aug 01:16
Compare
Choose a tag to compare

Breaking Changes

  • Remove $NVM_IOJS_ORG_VERSION_LISTING env var.
    • you probably weren't using this for anything anyways. Now the version listing is just $NVM_IOJS_ORG_MIRROR/index.tab
  • nvm reinstall-packages should install the same version it had before.
    • Previously, reinstall-packages would just reinstall the same packages, but at the latest version. Now, it attempts to preserve the version number you had it at before.

Installation

  • Source the nvm.sh file automatically upon install (#775)
  • Better profile detection: detect shell type from $SHELL variable instead of .$SHELLrc files (#765)

Fixes

  • Fix "reinstall" output wording (#778)
  • Fix nvm debug output in zsh
  • Redirect stderr output from npm ls -g to /dev/null (#756)

New things

  • Automatically add --without-snapshot build parameter when installing from source on ARM (#766)
  • Add --silent option to nvm use to suppress output (#780)
  • Add nvm version-remote

Performance

  • Speed up nvm_print_npm_version
  • Refactor a nvm use case statement out into an nvm_match_version function
  • Make nvm_ensure_version_installed slightly more efficient

Refactoring

  • Factor out global installs/links into nvm_npm_global_modules function
  • Some refactoring to clear up the path to io.js release candidate support (related to #779)

Dev Dependencies

  • Update semver

Documentation

  • Updated usage instructions to include --reinstall-packages-from syntax and example (#795)
  • document nvm version and nvm version-remote in nvm --help output
  • Add usage string for --reinstall-packages-from (#797)
  • Add explanatory note to --help output for <version>
  • Clean up grammar in readme (#799)
  • Replace links to nvm-fish and nvm-fish-wrapper with a link to bass (#802)

v0.25.4

29 May 18:12
Compare
Choose a tag to compare

Fixes

  • Use the original ls instead of aliases in bash_completion (#755)

v0.25.3

22 May 22:55
Compare
Choose a tag to compare

Fixes

  • Make sure sourcing nvm.sh on shells that don't support source options doesn't exit nonzero (#721)

v0.24.2

22 May 22:22
Compare
Choose a tag to compare

Fixes

  • Make sure sourcing nvm.sh on shells that don't support source options doesn't exit nonzero (#721)

v0.25.2

19 May 21:07
Compare
Choose a tag to compare

Fixes

  • Fix curl installation instructions
  • Make sure that nvm reinstall-packages system has the right std output.
  • nvm reinstall-packages: On systems where npm ls -g --depth=0 does not include npm for some reason, make sure to filter out (empty).

Enhancements (not worth a minor bump)

  • Add wrapping curly braces to ensure that the entire scripts are downloaded. If the closing curly brace isn't present, the script will error out.
  • Add undocumented nvm debug to print out helpful debugging info.

v0.25.1

03 May 22:34
Compare
Choose a tag to compare

Enhancement slash fixes

  • Make sure to ignore any curl settings in ~/.curlrc, if it exists.
  • Actually try to install from source when the error message says "binary failed, trying source".
  • Use uname -m instead of uname -a to detect installation architecture (#744)
  • Improve the error message when the binary tarball URL 404s. (#743)

Testing

  • Only test the install script in bash, since it only runs in bash.

v0.25.0

26 Apr 19:58
Compare
Choose a tag to compare

Bugfixes

  • install.sh: Ensure that the --quiet option is available before trying to use it. (#738, #657)
  • When no arguments are passed to nvm run X, use nvm exec to open a REPL (#625, #717)
  • Adding .gitattributes to force unix line endings (#728, #741)

New features

  • Include npm version when displaying the results of nvm use (#722)
  • adding architecture detection for Raspberry Pi 2/armv71 (#742)

Performance

  • Consolidate and avoid sed/cut calls, clean up pattern matches (#718)

Misc

  • General README improvements (#726, #735)

v0.24.1

05 Apr 20:00
Compare
Choose a tag to compare
  • Bugfixes
    • Fix nvm reinstall-packages support for npm linked packages (#693)
    • Fix error message when sourcing nvm.sh on shells that don't support sourcing options (#694)
    • Only filter the package npm, not any package name that contains npm (#690)
    • Make help error output actually output to stderr consistently.
  • Performance
    • Improve startup performance. (#703, #705)
    • Combine sed and grep commands in nvm ls code (#710)
    • Consolidate faster default alias lookup, and use that explicit version to avoid a second default alias lookup in nvm use default.
    • Remove some external calls using parameter filtering and case statements. (relates to #709)
    • Cache a few function calls; clean up some logic.
  • Testing
    • Make sure npm run test/fast passes whether there's a system node installed or not.
    • Use ksh/zsh travis-ci addons to avoid the need for sudo apt-get install.

v0.24.0

06 Mar 05:43
Compare
Choose a tag to compare
  • Installation:
    • fixed return code of 1 when updating from git (#686)
    • Attempt to fix script install - no shadowing $NVM_SOURCE; nvm-exec and nvm.sh should not both use $NVM_SOURCE since they're different URLs. (#654)
    • Add armv6 and armv7 support for io.js (#680, #678, #227)
    • Use nvm_ensure_version_installed to consistently check if a version is installed. (#675)
    • Make sure checksum commands are not aliases. (#659, #420, #640)
    • Prevent VERSION='' output caused by double local declaration. (#644)
  • Referencing versions:
    • Fix bare nvm use when nvm_ls_current is "none" (#684)
    • Add support for node and iojs implicit aliases.
  • Listing versions:
    • When none of the version directories exist, don't find within them.
    • Add nvm_is_alias unit tests, and a zsh fix. (#670)
    • Suppressing extraneous output from #622.
  • Add bash_completion for nvm exec
  • Notify the user when they're losing access to global modules (#631)
  • README: Point fish users in the right direction (relates to #303, #648)
  • Make sure multiple nvm run arguments get passed through to node/iojs properly. (#641)

v0.23.3

03 Feb 04:27
Compare
Choose a tag to compare
  • Fix nvm ls v1.0.3 so that it locates iojs-v1.0.3.
  • Bypass sha1sum/sha1 aliases. (#640)
  • Ensure that nvm run 0.12 --version errors out sensibly when 0.12 isn't installed.
  • Filter out the io.js version dir from nvm_ls output. (#642)