0
0
mirror of https://github.com/tj/n.git synced 2024-12-01 14:41:07 +01:00
Commit Graph

450 Commits

Author SHA1 Message Date
John Gee
2123176c88 Post-release 2021-04-19 20:30:51 +12:00
John Gee
ff57944eb0 Bump version correctly prior to release 2021-04-19 20:27:18 +12:00
John Gee
edc9d040ac
Add support for new Node.js builds for Apple silicon (#664)
* On Darwin, default to x64 for node versions below 16

* Prepare for release

* Add caveat about hole opened by searching for two architectures at once.

* Add Apple silicon details to README
2021-04-19 20:21:53 +12:00
John Gee
acc10cda7b Fix spelling 2021-04-15 19:54:20 +12:00
John Gee
f95aa129c9 Post-release 2021-03-12 20:13:16 +13:00
John Gee
7c353eec32 Set release version 2021-03-12 20:09:45 +13:00
John Gee
eb92841e79 Prepare for release 2021-03-12 20:05:12 +13:00
John Gee
f1d0dd5a22
Rework activate to support more configurations (#657)
* Rework activate to be (much) more explicit. Add archlinux image. Remove need for rsync.

* Reword use case without npm
2021-03-12 19:41:44 +13:00
John Gee
e7920e7872
Refer to product as Node.js, executable as node (#658)
* Refer to product as Node.js, binary as node

* Update references in command-line help

* Typo
2021-03-12 19:13:26 +13:00
John Gee
8572bd4245
Add install to command-line help. Sort aliases. (#659) 2021-03-12 19:04:38 +13:00
John Gee
c5e439ebac Post release 2021-02-27 12:44:38 +13:00
John Gee
8843b26fdc Prepare for release 2021-02-27 12:39:51 +13:00
John Gee
c7aaa3d1cf
Use STDOUT for logs from engine and auto searches (#654)
* Refactor routines that log (like auto and engine) to return global rather than use STDOUT

* Reduce output from N_TEST_DISPLAY_LATEST_RESOLVED_VERSION and reduce churn in tests, revert changes

* Tweek comment
2021-02-27 11:48:50 +13:00
John Gee
6777a34af0 Post-release 2021-01-30 16:56:03 +13:00
John Gee
0ac569ed07 Prerelease 2021-01-30 16:53:44 +13:00
John Gee
5b8d920723
Fix failure to display error under some circumstances (#651) 2021-01-27 22:20:46 +13:00
John Gee
09d05f4228 Post-release 2020-12-20 17:23:06 +13:00
John Gee
f4712eaa05 Prepare for release 2020-12-20 16:56:24 +13:00
John Gee
228dc1c4d7
WIP: Scan package.json last (#644)
* Scan for package.json after other files (as engine)

* Add engine to help, remove chakra from code.

* Rework auto tests with best practice BATS patterm. Simpler and ignores trace logging.

* Same-line local masking possible command  error

* Oops, remove denugging
2020-12-20 16:17:18 +13:00
John Gee
61a11c2394 Protect tests fron GREP_OPTIONS too 2020-12-20 10:17:31 +13:00
John Gee
56f92d3963 Merge branch 'develop' of github.com:tj/n into develop 2020-12-20 10:11:04 +13:00
al3x-huang
c864482c26
Fix wrong version string match for colorized grep (#643)
* Add a wrapper function for grep to ensure consistency across different
  aliases and options by forcing it to use builtin grep without GREP_OPTIONS
2020-12-20 10:10:16 +13:00
John Gee
62a00c750f Post release 2020-12-12 19:36:49 +13:00
John Gee
851fd12f61 Use x64 for Apple M1 architecture for now 2020-12-12 19:33:49 +13:00
John Gee
41d22aa905 Fix lint warnings 2020-11-29 09:49:27 +13:00
John Gee
03d1d8b2b9 Suppress warning when downloading semvr with npx using npm 7 2020-11-29 09:47:11 +13:00
John Gee
db28c7f098 Post release 2020-11-25 22:13:08 +13:00
John Gee
db087af8b8 Prepare for release, better 2020-11-25 22:09:38 +13:00
John Gee
6b82f30793
Detect download failure (#635)
* Detect download failure

* Add rsync to containers for --preserve tests
2020-11-25 21:12:07 +13:00
John Gee
8b0951d649 Post release 2020-07-25 22:06:13 +12:00
John Gee
25cf9f9672
Extend auto support to include .node-version, .nvmrc, and engines field of package.json (#628)
* Extend auto to include .node-version, .nvmrc, and engines

* Prepare for release
2020-07-25 21:59:32 +12:00
Daniel Ruf
d550a9f60e
Use https instead of http (#627) 2020-07-15 20:39:09 +12:00
John Gee
c27d85148a Post-release 2020-07-04 15:30:44 +12:00
John Gee
2678bda60c Prepare for release 2020-07-04 15:24:14 +12:00
John Gee
449948926e
Add node support aliases (#619)
* Basic implementation of node support aliases

* Add documentation for node support aliases, drop all from first implementation

* Make wording more accurate

* Rename testing hook

* Modify markdown for keys

* Add node support alias for supported, add tests
2020-06-24 21:01:53 +12:00
John Gee
4358e91442 Lint: quote echoed variables 2020-06-24 20:46:35 +12:00
DeeDeeG
c9475fd328
bin/n: Update can_use_xz() for macOS 11 (#624)
macOS 11 has been announced, and is expected to continue to support xz
2020-06-24 20:44:29 +12:00
John Gee
9e87f62c7e Post release 2020-04-11 17:49:23 +12:00
John Gee
e1e9f706cd Change filename. Prepare for release. 2020-04-11 17:46:36 +12:00
John Gee
2bde133649 Post release 2020-04-11 14:19:39 +12:00
John Gee
59adcab8b4
Add auto label to read version from .node-version (#616)
* Add support for auto, reading version from .node-version

* Make version unique in tests

* Add support for auto doing a lookup for unresolved version

* Make auto description more consistent in style with other labels.
2020-04-11 14:10:29 +12:00
John Gee
3a1e96a4c0 Post release 2020-03-10 21:03:46 +13:00
John Gee
aa288f87e5 Set execute permission 2020-03-10 20:54:30 +13:00
John Gee
1ed870c3b0 Prepare for release 2020-03-10 20:53:58 +13:00
John Gee
9de2ee159c Add release script 2020-03-10 20:52:51 +13:00
_lchemist
a67fbc9c9b
fix arch match rule for armv8l (#614) 2020-03-10 20:22:14 +13:00
John Gee
4b87f8b760 Post-release 2020-02-25 21:31:03 +13:00
John Gee
a0cfc80791 Prepare for release 2020-02-25 21:18:38 +13:00
John Gee
67cd962c10 Remove old node before copy 2020-02-25 21:00:33 +13:00
John Gee
1dfbe3d869 Post-release 2020-02-24 21:54:38 +13:00
John Gee
8c30f120d1
Preserve npm (#611)
* First cut at --preserve (npm)

* Add documentation for --preserve

* Add --preserve test

* Extend help section to include --no-preserve

* Bump version

* Prepare CHANGELOG for release
2020-02-24 21:50:23 +13:00
John Gee
494f8ba307 Post release 2020-01-29 22:13:49 +13:00
John Gee
89f55fd2f6 Bump version 2020-01-29 22:07:50 +13:00
John Gee
39700eb84f Preparing for release 2020-01-29 22:06:19 +13:00
John Gee
aef717d3ab Fix typo and improve comment
Co-authored-by:  DeeDeeG <DeeDeeG@users.noreply.github.com>
2020-01-29 21:47:54 +13:00
DeeDeeG
6d642bc6e8
Auto xz (#607)
* bin/n: Port auto-xz feature from nvh

Includes platform/feature detection to guess if the user has
the ability to decompress xz tarballs using `tar`.

Doesn't attempt to fetch/decompress xz tarballs
for Node versions less than 4. (KISS).

The feature is set up to use xz instead of gz by default,
but the default behavior is easily configurable.

Co-authored-by: John Gee <john@ruru.gen.nz>

* documentation: Add documentation for auto-xz

* CHANGELOG.md: Copy xz entry from the nvh changelog

  Copied and pasted from here:
  https://github.com/shadowspawn/nvh/blob/master/CHANGELOG.md

* README.md: Copy xz info from docs at nvh repo

  Copied and pasted from here:
  https://github.com/shadowspawn/nvh/blob/master/docs/environment-variables.md

  ("NVH" changed to "N" as appropriate.)

Co-authored-by: John Gee <john@ruru.gen.nz>

Co-authored-by: John Gee <john@ruru.gen.nz>
2020-01-29 21:42:31 +13:00
John Gee
98005fb691 Post-release 2019-11-23 18:00:50 +13:00
John Gee
cc524e98a3 Add How It Works ro README and prepare for release 2019-11-23 17:54:41 +13:00
John Gee
d84a584403 Simplify doctor output, no markdown 2019-11-16 17:27:53 +13:00
John Gee
a564e2662e Post-release, and suppress lint warning 2019-11-16 16:42:56 +13:00
John Gee
0a3316a43b Prepare for release 2019-11-16 16:26:10 +13:00
John Gee
3104e958f1 List the old and new locations when change location, one-off situation, give lots of detail 2019-11-16 16:24:44 +13:00
John Gee
4c76c422c3 Add advice to reset command hash when appropriate 2019-11-16 14:26:47 +13:00
John Gee
f6aa66a367 Post-release 2019-11-10 11:37:52 +13:00
John Gee
23788b640a Prepare for 6.1.1 release 2019-11-10 11:34:13 +13:00
scottkof
a5b5ae5a97 Update tar command to use --no-same-owner (#593) 2019-11-10 11:26:25 +13:00
John Gee
b301bceb15 Post release 2019-10-25 20:49:58 +13:00
John Gee
c984499482 Update README and CHANGELOG with deletion, and bump version 2019-10-23 23:11:56 +13:00
John Gee
455079eca2 Refactor deletion code
- remove legacy side-effect modifying `selected`
- inline deletion logic
- do nothing if no selection
2019-10-23 23:11:42 +13:00
Thomas Ruiz
4e6ee60a74 Press "d" to remove version in menu (#590)
* Press "d" to remove version in menu

* changed "remove" to "delete"

* allow to delete active version and improved UX

* fixed menu message

* added comment to function
2019-10-23 20:29:08 +13:00
John Gee
0cbbefc645 Post-release 2019-08-20 20:54:11 +12:00
John Gee
9476384600 Allow options to come after commands 2019-08-20 20:50:16 +12:00
John Gee
488354dc9c Post-release 2019-08-16 21:19:11 +12:00
John Gee
db6ef10901 Prerelease 2019-08-16 21:02:36 +12:00
John Gee
f96e609314 Call exit to avoid processing extra parameters 2019-08-12 21:32:51 +12:00
John Gee
f8ab857aa8 Bump version post-release 2019-08-04 17:03:27 +12:00
John Gee
18908a8de0 Add back support for old stable (now alias for lts) 2019-08-04 12:49:24 +12:00
John Gee
57da8ce4d8 Candidate of major revision, many changes 2019-08-03 19:54:26 +12:00
John Gee
491ee93a5a Added lsr, much broken 2019-08-03 15:00:56 +12:00
John Gee
7643fb5855 Post-release 2019-08-02 21:38:07 +12:00
John Gee
b73a6ab83d Add prompt to menu selection 2019-08-02 21:28:20 +12:00
John Gee
d89a969f25 Post-release 2019-07-20 13:47:13 +12:00
John Gee
e71823de10 Remove reference to now released prerelease 2019-07-20 13:44:14 +12:00
John Gee
61cfe1b005 Post release 2019-07-20 13:25:24 +12:00
John Gee
52a2bc3c56 Preparing for release 2019-07-20 13:17:16 +12:00
John Gee
fe5f808185
Merge pull request #571 from DeeDeeG/xz-compression-option
Feature: xz compression option
2019-07-20 12:42:39 +12:00
DeeDeeG
6dc516ebe7 bugfix: Improve install logic (regex fixes) (#572)
* bin/n: Fix "dots" regex

Copy-pasted from @shadowspawn's comment:
https://github.com/tj/n/issues/570#issuecomment-503970238

* bin/n: Add trailing dot to version in "install()"

Prevents expanding single-digit numbers to multi-digit ones.
2019-07-20 12:21:35 +12:00
DeeDeeG
41400d6a60 bin/n: Option to download xz-compressed tarball
To download an xz-compressed tarball, set the environment variable
"N_USE_XZ" to be non-empty before running n.
2019-06-23 10:06:15 -04:00
John Gee
aeb20088b2 Use prerelease format like npm 2019-06-03 20:41:20 +12:00
John Gee
0be7c53b2f Preparing for (pre)release 2019-06-03 20:31:12 +12:00
John Gee
1747b7a819 Add support for tty detection, NO_COLOR, and CLICOLOR 2019-05-23 22:16:07 +12:00
John Gee
ae2207612e More informative install logging
- always install
- log when install from cache
- show same output installing from menu as from command line
- show diagnostics is installed version not active version
2019-05-21 23:24:24 +12:00
John Gee
1cf60d7806 Post release 2019-05-10 20:42:08 +12:00
John Gee
366e97cfb8 Preparing for release 2019-05-10 20:38:22 +12:00
John Gee
f6c12dda1c Follow shellcheck advice 2019-05-10 20:30:32 +12:00
John Gee
fda99f5da2 Add another reason for running uninstall. Lint. 2019-05-10 20:20:34 +12:00
John Gee
42eeb651c9 Remove bogus code from prompt 2019-05-09 22:28:28 +12:00
John Gee
18de5eead8 Add uninstall 2019-05-09 22:22:17 +12:00
John Gee
a454bcd271 Post release 2019-05-05 10:06:24 +12:00
John Gee
1ec95901d1 Preparing for release 2019-05-05 10:02:22 +12:00