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

Merge next into main #92

Merged
merged 4 commits into from
Jun 23, 2024
Merged

Merge next into main #92

merged 4 commits into from
Jun 23, 2024

Conversation

jsumners
Copy link
Member

As titled.

gurgunday and others added 4 commits April 13, 2024 11:34
* update

* up
* update workflow

* start from 16
* perf: make ipv4 regex faster

All credits for this regex to https://stackoverflow.com/a/36760050. 

The regex is both more correct and faster (https://esbench.com/bench/6532596e7ff73700a4debb6a).
Examples:
previous regex recognized "01.01.01.01" or "1.1.000.1" as correct ipv4 regex, but those aren't valid as per https://datatracker.ietf.org/doc/html/rfc5954#section-4.1.

* avoid capture groups

* update to fastest regexp variant

* comment out 10.10.000.1110

* lint

---------

Signed-off-by: Jacob Groß <[email protected]>
Co-authored-by: Gürgün Dayıoğlu <[email protected]>
Copy link
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

You can release a major for this directly

Copy link
Member

@gurgunday gurgunday left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@mcollina
Copy link
Member

Given our goals of having this as the default of ajv, I think we would need to support a wide range of node versions.

We might consider instead to switch to tape.

@jsumners jsumners merged commit 8dea240 into main Jun 23, 2024
42 checks passed
@jsumners jsumners deleted the next branch June 23, 2024 15:58
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.

None yet

4 participants