Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Backport 2.x] Allow relaxing the Node.js runtime version requirement #3442

Merged
merged 1 commit into from
Feb 17, 2023

Conversation

opensearch-trigger-bot[bot]
Copy link
Contributor

Backport b080da5 from #3402.

With this change, the `engines.node` of `package.json` need not be a fixed version; it can be a range using a subset of formats defined by `semver`.

A very limited subset of what [semver](https://github.com/npm/node-semver/blob/cb1ca1d5480a6c07c12ac31ba5f2071ed530c4ed/README.md#ranges) supports has been added; only a single comparator, composed of an operator and a version, is supported.

The supported operators are
 *   `>`    Greater than
 *   `>=`   Greater than or equal to
 *   `=`    Equal
 *   `~`    Tilde ranges: Allows patch changes if a minor version is specified but if only a major version is specified, it allows minor changes.
 *   `^`    Caret ranges: Allows patch and minor updates when major is non-zero (and we will never have that).

If no operator is specified, equality is assumed.

Signed-off-by: Miki <miki@amazon.com>
(cherry picked from commit b080da5)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

# Conflicts:
#	CHANGELOG.md
@opensearch-trigger-bot opensearch-trigger-bot bot requested a review from a team as a code owner February 17, 2023 18:50
@AMoo-Miki AMoo-Miki added the autocut Skip the changelog verification check on backports label Feb 17, 2023
@abbyhu2000 abbyhu2000 merged commit 29d887e into 2.x Feb 17, 2023
@github-actions github-actions bot deleted the backport/backport-3402-to-2.x branch February 17, 2023 19:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
autocut Skip the changelog verification check on backports v2.6.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants