diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 00000000..c33b9253 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,58 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) +and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). + + + +## [3.0.0] (2019-03-29) + +### Added + +- detect arm64 architecture [#448][] [#521][] + +### Changed + +- allow `n rm` of active version of node [#541][] [#169][] [#327][] [#441][] +- show more version examples in README, including partial version number [#548][] +- updated description of interactive version selection [#518][] +- make (old) stable an alias for lts [#467][] [#335][] +- replace use of `which` with more standard `command -v` [#532][] + +### Fixed + +- error messages when selecting from version menu if active node version not listed [#541][] [#292][] [#367][] [#391][] [#400][] +- removed inappropriate `shift` from prune function [#531][] [#529][] + +### Removed + +- Remove old io project support [#516][] [#331][] + + + +[#169]: https://github.com/tj/n/issues/169 +[#292]: https://github.com/tj/n/issues/292 +[#327]: https://github.com/tj/n/issues/327 +[#331]: https://github.com/tj/n/issues/331 +[#335]: https://github.com/tj/n/issues/335 +[#367]: https://github.com/tj/n/issues/367 +[#391]: https://github.com/tj/n/issues/391 +[#400]: https://github.com/tj/n/issues/400 +[#441]: https://github.com/tj/n/issues/441 +[#448]: https://github.com/tj/n/issues/448 +[#467]: https://github.com/tj/n/issues/467 +[#516]: https://github.com/tj/n/issues/516 +[#518]: https://github.com/tj/n/issues/518 +[#521]: https://github.com/tj/n/issues/521 +[#529]: https://github.com/tj/n/issues/529 +[#531]: https://github.com/tj/n/issues/531 +[#532]: https://github.com/tj/n/issues/532 +[#541]: https://github.com/tj/n/issues/541 +[#548]: https://github.com/tj/n/issues/548 + + + +[3.0.0]: https://github.com/tj/n/compare/v2.1.12...3.0.0 +[Unreleased]: https://github.com/tj/n/compare/master...develop diff --git a/bin/n b/bin/n index 9c8962d5..478050a9 100755 --- a/bin/n +++ b/bin/n @@ -4,7 +4,7 @@ # Setup. # -VERSION="2.1.12" +VERSION="3.0.0" N_PREFIX=${N_PREFIX-/usr/local} BASE_VERSIONS_DIR=$N_PREFIX/n/versions @@ -211,7 +211,7 @@ show_cursor() { # next_version_installed() { - list_versions_installed | grep $selected -A 1 | tail -n 1 + list_versions_installed | grep "$selected" -A 1 | tail -n 1 } # @@ -219,7 +219,7 @@ next_version_installed() { # prev_version_installed() { - list_versions_installed | grep $selected -B 1 | head -n 1 + list_versions_installed | grep "$selected" -B 1 | head -n 1 } # @@ -412,6 +412,8 @@ tarball_url() { *x86_64*) arch=x64 ;; *armv6l*) arch=armv6l ;; *armv7l*) arch=armv7l ;; + *arm64*) arch=arm64 ;; + *aarch64*) arch=arm64 ;; esac if [ ${arch} = "armv6l" -a ${BIN_NAME[$DEFAULT]} = node ]; then @@ -580,10 +582,8 @@ set_quiet() { remove_versions() { test -z $1 && abort "version(s) required" - check_current_version while test $# -ne 0; do local version=${1#v} - [ "${BINS[$DEFAULT]}/$version" == "$active" ] && abort "cannot remove currently active version ($active)" rm -rf ${VERSIONS_DIR[$DEFAULT]}/$version shift done diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 00000000..357a869e --- /dev/null +++ b/package-lock.json @@ -0,0 +1,5 @@ +{ + "name": "n", + "version": "3.0.0", + "lockfileVersion": 1 +} diff --git a/package.json b/package.json index 219caef4..6d0e763e 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "n", "description": "Interactively Manage All Your Node Versions", - "version": "2.1.12", + "version": "3.0.0", "author": "TJ Holowaychuk ", "homepage": "https://github.com/tj/n", "bugs": "https://github.com/tj/n/issues",