Node Version Manager Versions Save

Node Version Manager - POSIX-compliant bash script to manage multiple active node.js versions

v0.37.1

3 years ago

New Stuff

  • Added set-colors command (#2291, #2232)

Fixes

  • nvm_die_on_prefix: only grep lines starting with env var name (#2347)

Tests

  • Run fast test suite in clean environment (#2336)
  • partially migrate to Github Actions
  • Add shellcheck workflow (#2351)
  • Add release test workflow (#2355)
  • add "Allow Edits" workflow
  • switch Automatic Rebase workflow to pull_request_target event

v0.37.0

3 years ago

Major Performance Enhancement

  • use/nvm_die_on_prefix: replicate npm config algorithm and remove npm config call (#2317)

Fixes

  • nvm ls-remote: accept versions that end with a dot (#2310)
  • nvm_ls: zsh: unset markdirs and local_options (#2316)
  • nvm_die_on_prefix: use directory comparison rather than string (#2316)

Docs

  • improve nvm --help output (#2301)
  • [readme] bash shell integration: amend example (#2313)

Tests

  • Fix nvm_ls_current fast test (#2322)
  • Fix nvm unload fast test cleanup (#2332)
  • Drop deprecated sudo: option in TravisCI config (#2307)

v0.36.0

3 years ago

v0.36.0

New Stuff

  • add nvm -v as an alias for nvm --version (#2270)
  • nvm deactivate/nvm which: add --silent
  • adding default and alias option to nvm install (#2274, #1929)
  • nvm_supports_xz: Add Mac/FreeBSD xz platform support checks (#2156)
  • add nvm_find_project_dir helper

Fixes

  • latest-npm: ensure npm 7 is not installed on node < 10
  • nvm_die_on_prefix: check that the prefix is inside the version dir, not just the nvm dir
  • nvm use: fix --silent when version is omitted
  • ensure --help is intercepted on any command (#2277)
  • --help: Add more examples (#2272)
  • install: improved arg parsing around --reinstall-packages-from (#1762)
  • reinstall-packages: do not include unmet peer deps (#1948)
  • --help: explain more clearly that parameter is optional and can be provided by .nvmrc on nvm install, nvm use, nvm exec, and nvm run (#2242)
  • [Robustness] add command to xargs/rm in nvm_get_default_packages (#2281)
  • [debug] add whoami output
  • [performance] nvm_auto: only call nvm_ls_current in use mode (#2286)

Refactors

  • [Refactor] add nvm_get_checksum_binary; use it in nvm debug
  • [Refactor] remove unused nvm_checksum function
  • [Refactor] Rename solaris and iojs helper functions to be nvm_ prefixed (#2213)
  • [Refactor] nvm run/nvm exec: use NVM_SILENT consistently internally (#2279)

Dockerfile

  • [dockerfile] Add missing apt package locales (#2306)
  • [dockerfile] Remove ShellCheck Segmentation fault workaround (#2305)
  • [dockerfile] Update ShellCheck download URL in Dockerfile (#2304, #2232)
  • [dockerfile] Update Dockerfile base image to Ubuntu 16.04, cc #2008 (#2187)

Docs

  • [readme] fix LTS upgrade command (#2294)
  • [readme] update autocompletion output examples
  • [readme] Mention problem with windows cmd echo (#2282)
  • [readme] Add documentation for LTS updates which reinstall existing packages (#2271)
  • [readme] Fix fish load_nvm function (#2252)
  • [readme] Update macOS troubleshooting w/ 10.15 zsh default (#2248)
  • [readme] Update install instructions troubleshooting (#2225)
  • [readme] Syntax highlight for Ansible task example in README.md (#2228)
  • [readme] Update README for environment variables (#2159)
  • [readme] Stop removing spaces from nvm_path (#2235)
  • [readme] include deeper integration instructions for fish (#2208)
  • [patch] Update docs and add warning for 'nvm is not compatible with the npm config "prefix" option' edgecase error on Mac OS (#2263)

Tests

  • pin postcss to v7
  • Source nvm.sh before defining FILE (#2182)

Meta Stuff

  • fix TOC action
  • add actions: Automatic Rebase for PRs, auto-update-TOC for push

v0.35.3

4 years ago

v0.35.3

New

  • add lts/-1 etc, to point to an LTS line relative to "latest"
  • use: set NVM_INC to expose the node include path
  • uninstall: add NVM_DEBUG to print out a filename as its permissions are checked

Fixes

  • nvm ls-remote: properly label latest LTS versions instead of just the latest one in the filter

Docs

  • [readme] restore broken anchor
  • [readme] add nvm intro
  • Improve readme clarity and troubleshooting (#2125)
  • Fix small typo in README (#2130)

Tests

  • update mocks
  • fix update mocks script
  • update test mocks
  • try to make nvm unload test more robust
  • ensure nvm unload unsets env vars too

v0.35.2

4 years ago

Fixes

  • if a prefix env var is set (as in npm run), but is correct, do not fail (#2106)
  • allow nvm unalias x when x is a default alias, but shadowed (#2122)

Tests

  • pin david to v11

Docs

  • [readme] Fix a typo (#2121)

Meta

  • create FUNDING.yml

v0.35.1

4 years ago

Fixes

  • install-latest-npm: npm v6.10 breaks on node v6.0, v6.1, and v9.0-v9.2
  • nvm use: improve help output with bare nvm use and no .nvmrc

Docs

  • Add description if instructions don't work; make install instructions more readable (#2112)

v0.35.0

4 years ago

New Stuff

  • nvm ls: add --no-alias to suppress alias output

Fixes

  • set -u: Add default empty value for $NVM_NO_ALIAS (#2054, #2047)
  • Determine correct sub directory if XDG_CONFIG_HOME is set (#2035)
  • Set $NVM_DIR to ".nvm" instead of "nvm" (#2069, #2033)
  • default_packages: work when the file lacks a trailing newline
  • install: Add missing io.js installation message (#1989)
  • Make installation less restrictive when NVM_DIR is set (#1986)
  • Enhance nvm debug for different environments (#1654)
  • nvm_supports_source_options: work around a bug in bash 3.2
  • install: error out when an argument has ---
  • attempt to fix a bug in bash 3.2, fixed in 4.4, that improperly exits on -e in a test.
  • nvm ls: --no-colors: system: print an asterisk

Refactors

  • add nvm_stdout_is_terminal helper (#2012, #2007)
  • extract “get default packages” logic to nvm_get_default_packages
  • nvm.sh: make coding style more consistent (#1819)

Docs

  • Fix bash auto-use nvm command (#2086)
  • Updated note about Windows (#2037)
  • sync node release schedule url (#2001)
  • clarify how to specify default packages (#1981)
  • clean up formatting in readme (#2038)
  • clean up a bit (#1627)
  • Add --latest-npm info to Migrating global packages section (#1970)
  • Set $NVM_DIR to ".nvm" instead of "nvm" (#2069, #2033)
  • update bash cdnvm script to properly handle aliases (#2017)
  • Add note about what version of node new shells run with (#2003)
  • --help: consolidate some help output
  • README.md: mention --no-colors option (#2004)
  • nvm --help: add --no-colors and --no-alias
  • add version number to nvm —help output (#1993)
  • add “update” terminology to installation section
  • unalias: add more specific error message for builtin aliases (#1992)

Tests

  • jspm v2 beta started breaking tests; pin to < v2
  • use rimraf over rmdir in teardowns (#2010)
  • update dist from trusty to xenial (#2008)
  • nvm_command_info: make error output more helpful
  • nvm ls: ensure nvm alias is called
  • add more checks to make_fake_* helpers
  • fix fake node versions
  • Improve syntax in "test/installation_iojs/nvm install v1 works" (#1990)
  • [shellcheck] remove unnecessary overrides
  • [shellcheck] add overrides

Dockerfile

  • install shellcheck v0.6.0 in Dockerfile (#1836)
  • add libssl-dev to Docker image (#1835)

Meta

  • add copyright line to license file
  • update repo links to point to org

v0.34.0

5 years ago

New Stuff

  • Support --no-progress for nvm install (#1422)
  • install.sh: allow user to explicitly opt out of nvm adding the source string (#1804)
  • Respect previously nvm-loaded node version when sourcing (#1315)
  • add support for $XDG_CONFIG_HOME (#1888)
  • bash_completion: Add support for ZSH_DISABLE_COMPFIX flag (#1911)

Fixes

  • Improve .nvmrc reading process (#1740)
  • nvm debug: Fix sed syntax error in nvm_command_info (#1528)
  • Remove $NVM_DIR trailing slash automatically (#1734)
  • install -s: zsh: ensure shwordsplit opt is set (#1719)
  • ls-remote: fix issues in zsh when using a mirror with a ton of entries (#1818)
  • Improve nvm_is_version_installed to check for a node executable instead of root dir (#1824)
  • use: Prepend instead of changing if shadowed by system dirs (#1830)
  • Improve and update Dockerfile (#1861, #1863)
  • install.sh: Print an error and exit the script if $METHOD is set to something unexpected (#1917)
  • Allow zsh users to have the nomatch option set (#1938)
  • avoid unbound variable (#1949)

Refactors

  • Speedup nvm_list_aliases (#1517)
  • bash_completion: Improve coding style (#1816)
  • [shellcheck] use { …; } instead of (…) to group test commands (#1825)
  • [shellcheck] quote variables in for loops to avoid unintentional expansion
  • [shellcheck] ignore SC2230 errors
  • [shellcheck] Use -n/-z instead of ! -z/! -n condition (#1955)

Tests

  • add nvm install-latest-npm tests for all node versions
  • fix failing tests on master due to npm registry SSL changes
  • Enable ccache on Travis CI to speed up compilation (#1947)
  • print out shellcheck version
  • avoid using shopt in zsh

Docs

  • add --tags to git fetch in manual upgrade (#1793)
  • fix failing if check in autoload script (#1821)
  • Grammar update (#1822)
  • fix for .nvmrc script (#1823)
  • add --no-use option to installation (#1839, #1840, #1862)
  • add instructions for installing a specific version (#1901)
  • Added fish nvm (#1926)
  • Add section on automatic nvm use in Bash (#1865)
  • improve instructions for manual install (#1930)
  • update README to fix docker run command flag order (#1925)
  • Improve md file syntax (#1864)
  • Add Ansible task example (#1964)
  • Improve indent of output block in GitHub Issue template (#1967)
  • fixing cdnvm on .bashrc (#1971)
  • Improve phrasing of 'nvm current' (#1974)

v0.33.11

6 years ago

Fix

  • install-latest-npm: node v4.5 and v4.6 work on npm v5.4.1, but not v5.4.2

v0.33.10

6 years ago

Fix

  • install-latest-npm: npm 6 is out, and requires node 6 or higher