Skip to content

Merge next into main#92

Merged
jsumners merged 4 commits intomainfrom
next
Jun 23, 2024
Merged

Merge next into main#92
jsumners merged 4 commits intomainfrom
next

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ß <kurtextrem@gmail.com>
Co-authored-by: Gürgün Dayıoğlu <hey@gurgun.day>
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
@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.

4 participants