Skip to content

Tags: cndv/nvm

Tags

v0.39.3

Toggle v0.39.3's commit message

Verified

This tag was signed with the committer’s verified signature.
ljharb Jordan Harband
v0.39.3

Fixes
 - `nvm install-latest-npm`: npm v6.14.18 can not be installed from npm < v4.4.4
 - ensure this variable is bound
 - `debug`: correct mistaken `-V` to `--version` from nvm-sh#2922
 - `debug`: `awk`: not an option: `--version` (nvm-sh#2922)
 - grep: warning: stray \ before / (nvm-sh#2919)
 - improve backward compatibility for non-gnu awk (nvm-sh#2917)
 - fix `nvm install` error `unknown condition: -ne` (nvm-sh#2915)

Tests
 - update test mocks (nvm-sh#2933)
 - move installation_node tests back to xenial
 - move tests that fail on focal to a separate suite that runs on xenial
 - update travis to use focal
 - [actions] fix `latest-npm` tests so they use this repo’s nvm instead of the last published one
 - fix nvm_list_aliases test to use mocks for LTS aliases

Docs
 - [meta] Improve contributors documentation (nvm-sh#2791)
 - [Docs] added WSL troubleshooting with solution to (6) Could not resolve host: raw.githubusercontent.com (nvm-sh#2961)

Refactors
 - add `nvm_wrap_with_color_code`; allow no color code

v0.39.2

Toggle v0.39.2's commit message

Verified

This tag was signed with the committer’s verified signature.
ljharb Jordan Harband
v0.39.2

Fixes
 - `--help`: proper default `NVM_COLORS` info
 - `nvm install-latest-npm`: ensure npm 9 does not install on unsupported nodes
 - `install.sh`: support `~/.zprofile` (nvm-sh#2892, nvm-sh#2868, nvm-sh#2232)
 - Don't override Mac M1 architecture for node ^14.17 (nvm-sh#2777)
 - `nvm install`: show proper version in `.nvmrc` install instructions (nvm-sh#2770)
 - `install.sh`: error out if the install instructions are not followed (nvm-sh#2742)
 - `install`: better error message when xcode command line tools are needed
 - avoid OpenBSD `nvm install` error when /sbin/init doesn't exist (nvm-sh#2698)
 - `set -E`: Add test for `node install` on Bash with an ERR trap and `set -E`
 - add missing `local` (handle nonexisting /sbin/init a bit more cleanly) (nvm-sh#2678)
 - Update `nvm_extract_tarball` to support OpenBSD (nvm-sh#2693)

Performance
 - `nvm_print_versions`: re-implement using awk

Robustness
 - avoid a clobbered `ls` (nvm-sh#2727)

Refactors
 - nvm install/`nvm_install_default_packages`: move "get" logic inside helper
 - add `nvm_extract_tarball` to consolidate extraction logic

Docs / Read Me
 - Update Alpine Linux Section (nvm-sh#2896)
 - optimize calling of `nvm version` in zsh (nvm-sh#2874)
 - Fix Ansible Linting Errors (nvm-sh#2861)
 - cdnvm(): handle failed dir change (nvm-sh#2840)
 - Fix Git Install instruction list structure (nvm-sh#2823)
 - add logo
 - minor cleanup
 - Add note about creating .bashrc file *as well as* .bash_profile (nvm-sh#2729)
 - `fish`: send output from `load_nvm` to `/dev/stderr` (nvm-sh#2783)
 - fix fish load_nvm variable interpolations (nvm-sh#2776)
 - Correct typos in "Macs with M1 chip" section (nvm-sh#2760)
 - HTTP => HTTPS (nvm-sh#2735, nvm-sh#2713)
 - clarify instructions for running Node on M1 Mac (nvm-sh#2675)

Dockerfile
Update base image from Ubuntu 18.04 to 20.04, cc nvm-sh#2877 (nvm-sh#2882)

Misc
 - [meta] Update CODE_OF_CONDUCT to current version (nvm-sh#2790)

Tests
 - update test mocks
 - github actions removed homebrew and broke shellcheck (nvm-sh#2907)
 - node 18 no longer builds in travis-ci (nvm-sh#2907)

v0.39.1

Toggle v0.39.1's commit message

Verified

This tag was signed with the committer’s verified signature.
ljharb Jordan Harband
v0.39.1

New Stuff
 - Add OpenBSD support (nvm-sh#1062)

Fixes
 - `ls-remote`/`install`: support `lts/-X` patterns in installs
 - `ls-remote`/`install`: properly handle `lts/x` patterns
 - `nvm alias`/`nvm_list_aliases`: support `lts/` aliases
 - `nvm_get_download_slug`: better architecture selection for M1 Macs
 - `install`: fix method=script install condition (nvm-sh#2668)
 - `install`: properly check for curl/wget
 - install script: Add `--no-pager` option to git branch (nvm-sh#2637)

Refactors
 - create `nvm_normalize_lts` helper
 - [shellcheck] apply v0.8.0 updates

Docs
 - [readme] Balance the if statement in bash example (nvm-sh#2658)
 - [readme] Describe another failure case for installing node versions from source on mac arm64 machines (nvm-sh#2653)

Tests
 - [actions] add step security runner (nvm-sh#2659)
 - [Tests] update test mocks
 - [Tests] `nvm_get_download_slug`: add unit tests (nvm-sh#2657, nvm-sh#2232)
 - [Tests] fix windows WSL tests
 - [Dev Deps] update `doctoc`, `markdown-link-check`

v0.39.0

Toggle v0.39.0's commit message

Verified

This tag was signed with the committer’s verified signature.
ljharb Jordan Harband
v0.39.0

New Stuff
 - maybe support Windows with WSL, MSYS, Cygwin (nvm-sh#2391)

Fixes
 - `nvm install-latest-npm`: ensure npm 8 does not install on unsupported nodes
 - `nvm_die_on_prefix`: filter prefixed env vars on name only, ignoring values (nvm-sh#2368)
 - `set -a`: when this option is set, some `sh` shells break
 - `bash_completion`: be robust when `cd` is overridden (nvm-sh#2585)
 - `nvm_die_on_prefix`: avoid grepping env functions in bash (2dad045, nvm-sh#2606)
 - `reinstall-packages`: handle global symlink locations properly
 - `nvm_ls_remote_index_tab`: handle long version lists (nvm-sh#2581)
 - `nvm ls`/`nvm alias`/`nvm_list_aliases`: zsh: when no LTS aliases, no error
 - `install`: Detect correct profile based on $SHELL var (nvm-sh#2556)
 - `nvm_get_arch`: suppress error output if `/sbin` does not exist
 - `bash_completion`: check if `compinit` is called before calling it (nvm-sh#2490)
 - `nvm_get_arch`: Rasbperry Pi: armv7l with arm64 kernel, get correct arch (nvm-sh#2469)
 - install script: check the proper version; fetch tags also (nvm-sh#9)

Robustness
 - avoid IFS shenanigans: quote arg count/return codes

Refactors
 - Use awk for path stripping (nvm-sh#1360)
 - [shellcheck] disable additional `-x` warning from v0.7.2
 - [shellcheck] update for new warnings in v0.7.2

Dockerfile
 - Update dated base image from Ubuntu 16.04 to 18.04 (nvm-sh#2571)

Docs
 - [readme] link "Windows WSL" down to the "important notes" section (nvm-sh#2502)
 - [readme] Add bash_completion in "manual install" section (nvm-sh#2620)
 - [readme] Use absolute URL for nvm-sh#606 in README.md (nvm-sh#1656)
 - [readme] Add quick intro to `nvm` (nvm-sh#1343)
 - [readme] Add info to restart bash if verification not working in verification section (nvm-sh#1749)
 - [readme] Avoid infinite loop in cdnvm() (nvm-sh#2605)
 - [readme] remove duplicate word 'run' (nvm-sh#2609)
 - [readme] updated automatic call script for bash (nvm-sh#2604)
 - [readme] fixed small typo afew to a few (nvm-sh#2517)
 - [readme] fix typo regarding docker image base in Dockerfile (nvm-sh#2573)
 - [readme] move License and Copyright notice sections to the bottom
 - [readme] remove redundant "license" section text in favor of LICENSE.md
 - [readme] Improve README about Macs with M1 chips (nvm-sh#2479)

Meta Stuff
 - add project charter and governance
 - add OpenJS Foundation copyright notices/links
 - add `SECURITY.md`

Tests
 - use a matrix on the `nvm install-latest-npm` tests
 - blacklist expired LetsEncrypt CA (nvm-sh#2623)
 - Add `markdown-link-check` script
 - `nvm install-latest-npm`: node < 0.10 breaks with npm with dropped support for TLS < 1.2
 - Print shell version in Travis CI (nvm-sh#1471)
 - [actions] restrict permissions for `GITHUB_TOKEN` (nvm-sh#2584)
 - `postcss` v7.0.36 stopped working on node 0.10; downgrade to v4
 - update mocks
 - disable `fail-fast`
 - [actions] fix typo in dockerfile_lint job
 - [actions] use `node/install` instead of `node/run`
 - [actions] adjust shellcheck/windows tests to9 have a final "done" job
 - Add unit tests for `nvm_is_version_installed`
 - `node-gyp` v8 breaks a test

v0.38.0

Toggle v0.38.0's commit message

Verified

This tag was signed with the committer’s verified signature.
ljharb Jordan Harband
v0.38.0

New Stuff
 - `install`: add parallel build support for openbsd (nvm-sh#2390)
 - `install`: add `-b` flag to skip building from source (nvm-sh#2439)
 - install script: Allow installation from other repository also for git method (nvm-sh#2401)
 - install script: Allow installation from other repository (nvm-sh#2394)

Fixes
 - `exec`: `--` should stop argument parsing (nvm-sh#2354)
 - `nvm_alias`: ensure `lts/-1` returns the one before `lts/*` (nvm-sh#2462)
 - install script: define `nvm_echo`
 - Fix potential unbound var error on nvm install (nvm-sh#2421)
 - avoid parse error with common omz global aliases, in `nvm_print_color_code` (nvm-sh#2365)
 - install script: sync `nvm_download` implementation from nvm.sh (nvm-sh#2406)
 - remove `nvm_supports_source_options` (nvm-sh#2402)
 - `bash_completion`: move compinit before bashcompinit (nvm-sh#2393)
 - relax `$PREFIX` checking, to accomodate `npm exec`
 - Use local variable when looping over args (nvm-sh#2377)
 - `install`: Ignore npm command under $NVM_DIR when checking for global modules (nvm-sh#2348)

Refactors
 - add `nvm_install_binary_extract`
 - add `nvm_get_artifact_compression`
 - fix silly shellcheck complaint

Docs
 - Add macOS troubleshooting instructions for M1 chip (nvm-sh#2416, nvm-sh#2436, nvm-sh#2232)
 - Update source command to include s in zsh (nvm-sh#2466)
 - Add `nvs` as one of the Windows alternatives (nvm-sh#2454)
 - add headings to certain sections (nvm-sh#2457)
 - add commands to help troubleshoot without closing the current shell (nvm-sh#2202)
 - update `cdnvm` implementation (nvm-sh#2442)
 - add install error tips (nvm-sh#2400)
 - quote asterisk in shell command on `--latest-npm` example (nvm-sh#2431)
 - Updated README.md to include homebrew unsecure dirs warning (nvm-sh#2388)
 - source `./nvm.sh` instead of `nvm.sh`, for `zsh` (nvm-sh#2205)
 - add CODE_OF_CONDUCT.md

Tests
 - Rename some files to be more cross platform (nvm-sh#2397)
 - [actions] update workflows (nvm-sh#2427)
 - [Dev Deps] update `dockerfile_lint`, `doctoc`, `eclint`, `replace`, `semver`
 - ensure `doctoc` action fails when it should
 - update mocks
 - Add unit test for nvm_download
 - add `nvm_grep` to install script, fix tests (nvm-sh#2403
 - `.npm` is now cached by default (nvm-sh#2104)
 - `release`: clobber local tags

v0.37.2

Toggle v0.37.2's commit message

Verified

This tag was signed with the committer’s verified signature.
ljharb Jordan Harband
v0.37.2

Fixes
 - Revert "[Fix] `nvm_die_on_prefix`: only grep lines starting with env var name" (nvm-sh#2347, nvm-sh#2360, nvm-sh#2364, nvm-sh#2366)

v0.37.1

Toggle v0.37.1's commit message

Verified

This tag was signed with the committer’s verified signature.
ljharb Jordan Harband
v0.37.1

New Stuff
 - Added `set-colors` command (nvm-sh#2291, nvm-sh#2232)

Fixes
 - `nvm_die_on_prefix`: only grep lines starting with env var name (nvm-sh#2347)

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

v0.37.0

Toggle v0.37.0's commit message

Verified

This tag was signed with the committer’s verified signature.
ljharb Jordan Harband
v0.37.0

Major Performance Enhancement
 - `use`/`nvm_die_on_prefix`: replicate npm config algorithm and remove `npm config` call (nvm-sh#2317)

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

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

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

v0.36.0

Toggle v0.36.0's commit message

Verified

This tag was signed with the committer’s verified signature.
ljharb Jordan Harband
v0.36.0

New Stuff
 - add `nvm -v` as an alias for `nvm --version` (nvm-sh#2270)
 - `nvm deactivate`/`nvm which`: add `--silent`
 - adding default and alias option to `nvm install` (nvm-sh#2274, nvm-sh#1929)
 - `nvm_supports_xz`: Add Mac/FreeBSD xz platform support checks (nvm-sh#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 (nvm-sh#2277)
 - `--help`: Add more examples (nvm-sh#2272)
 - `install`: improved arg parsing around `--reinstall-packages-from` (nvm-sh#1762)
 - `reinstall-packages`: do not include unmet peer deps (nvm-sh#1948)
 - `--help`: explain more clearly that <version> parameter is optional and can be provided by .nvmrc on `nvm install`, `nvm use`, `nvm exec`, and `nvm run` (nvm-sh#2242)
 - [Robustness] add `command` to `xargs`/`rm` in `nvm_get_default_packages` (nvm-sh#2281)
 - [debug] add `whoami` output
 - [performance] `nvm_auto`: only call `nvm_ls_current` in `use` mode (nvm-sh#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 (nvm-sh#2213)
 - [Refactor] `nvm run`/`nvm exec`: use `NVM_SILENT` consistently internally (nvm-sh#2279)

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

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

Tests:
 - pin postcss to v7
 - Source nvm.sh before defining FILE (nvm-sh#2182)

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

v0.35.3

Toggle v0.35.3's commit message
v0.35.3

 - [New] add `lts/-1` etc, to point to an LTS line relative to "latest"
 - [New] `use`: set `NVM_INC` to expose the node include path
 - `uninstall`: add `NVM_DEBUG` to print out a filename as its permissions are checked
 - [Fix] `nvm ls-remote`: properly label latest LTS versions instead of just the latest one in the filter
 - [readme] restore broken anchor
 - [readme] add nvm intro
 - [Docs] Improve readme clarity and troubleshooting (nvm-sh#2125)
 - [Docs] Fix small typo in README (nvm-sh#2130)
 - [Tests] update mocks
 - [Tests] fix update mocks script
 - [Tests] update test mocks
 - [Tests] try to make `nvm unload` test more robust
 - [Tests] ensure `nvm unload` unsets env vars too