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

[JavaScript] Document Node.JS v16 requirement #4355

Merged
merged 2 commits into from
Sep 5, 2023

Conversation

aloisklink
Copy link
Contributor

The current antlr4 JavaScript package requires Node.JS v16, since 2c75e64 (aka ANTLR 4.12.0).

The important line changed is:

By the way, can an admin modify the release notes for https://github.com/antlr/antlr4/releases/tag/4.12.0 and stick somewhere that the javascript target now requires Node v16? It's currently missing from the release notes.

By the way, I've also added some badges to the runtime/JavaScript/README.md file that automatically load data listed in the package.json file, which look like: npm version Badge showing the supported LTS versions of Node.JS in the latest NPM release npm type definitions

These shields are pretty common in the Python and JavaScript/NPM eco-system1

Footnotes

  1. GitHub even hosts their own badges for GitHub Actions, like antlr4 is ![antlr4](https://github.com/antlr/antlr4/actions/workflows/hosted.yml/badge.svg)

Document that the ANTLR 4 JavaScript target requires
Node >= 16.

This has been the case since ANTLR 4.12.0

Fixes: 2c75e64

Signed-off-by: Alois Klink <alois@aloisklink.com>
Add some open-source badges to the README.md,
taken from https://shields.io/.

The most important one shows which versions of Node.JS
are supported by the latest version of `antlr4`.

Signed-off-by: Alois Klink <alois@aloisklink.com>
aloisklink added a commit to aloisklink/zenuml-core that referenced this pull request Jul 12, 2023
ANTLR versioning does not strictly follow semver semantics
(see https://github.com/antlr/antlr4/blob/dev/README.md):

> * backwards compatibility is only guaranteed for patch version bumps (4.11.1 -> 4.11.2)
>
> Taken from
> https://github.com/antlr/antlr4/blob/ce7f5e73cd4787c5aebdc05c29d4d898d6f2d123/README.md?plain=1#L33

Because of that, we can't use `^` (caret) in a version requirements.
Instead, we can use [`~` tilde ranges][1].

Staying on v4.11.x is required, becasue `antlr4` v4.12.0 no longer
supports Node.JS v14, see antlr/antlr4#4355.

[1]: https://github.com/npm/node-semver#tilde-ranges-123-12-1
@ericvergnaud
Copy link
Contributor

@parrt blessed

@ericvergnaud ericvergnaud merged commit 475d790 into antlr:dev Sep 5, 2023
42 checks passed
@aloisklink aloisklink deleted the patch-1 branch September 6, 2023 02:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants