From 273a485c9e20db875e982f56de8d1c8c910105aa Mon Sep 17 00:00:00 2001 From: John Gee Date: Fri, 16 Aug 2024 16:37:02 +1200 Subject: [PATCH] Add use of jq to README and CHANGELOG --- CHANGELOG.md | 5 +++++ README.md | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b370c81..300160b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] (date goes here) +### Changed + +- if `jq` is available, use `jq` for reading `engines` from `package.json` instead of using `node` ([#810]) + ## [9.2.3] (2024-04-21) ### Fixed @@ -506,6 +510,7 @@ Only minor functional changes, but technically could break scripts relying on sp [#746]: https://github.com/tj/n/pull/746 [#764]: https://github.com/tj/n/pull/764 [#785]: https://github.com/tj/n/pull/785 +[#810]: https://github.com/tj/n/pull/810 diff --git a/README.md b/README.md index c7dbff9..725c5cd 100644 --- a/README.md +++ b/README.md @@ -143,7 +143,7 @@ There is an `auto` label to read the target version from a file in the current d - `.nvmrc`: version on single line. Used by `nvm`. - if no version file found, look for `engine` as below. -The `engine` label looks for a `package.json` file and reads the `engines` field to determine compatible Node.js. Requires an installed version of `node`, and uses `npx semver` to resolve complex ranges. +The `engine` label looks for a `package.json` file and reads the `engines` field to determine compatible Node.js. Requires an installed version of `jq` or `node`, and uses `npx semver` to resolve complex ranges. There is support for the named release streams: