v0.35.0
版本发布时间: 2019-10-02 12:18:21
nvm-sh/nvm最新发布版本:v0.40.1(2024-08-28 04:45:26)
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
: ensurenvm 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