Skip to content

Update dependency re2js to v2 (main)#235671

Draft
elastic-renovate-prod[bot] wants to merge 1 commit into
mainfrom
renovate/main-re2js
Draft

Update dependency re2js to v2 (main)#235671
elastic-renovate-prod[bot] wants to merge 1 commit into
mainfrom
renovate/main-re2js

Conversation

@elastic-renovate-prod
Copy link
Copy Markdown
Contributor

@elastic-renovate-prod elastic-renovate-prod Bot commented Sep 18, 2025

This PR contains the following updates:

Package Type Update Change Pending
re2js dependencies major 0.4.3 -> 2.8.0 2.8.3 (+2)

Warning

Some dependencies could not be looked up. Check the Dependency Dashboard for more information.


Release Notes

le0pard/re2js (re2js)

v2.8.0

Compare Source

What's Changed

  • replaceAll() and replaceFirst() now support replacement as function (additional to string type). More info

Full Changelog: le0pard/re2js@2.7.1...2.8.0

v2.7.1

Compare Source

What's Changed

  • optimize per-byte spawning loop for LOOKBEHINDS flag

Full Changelog: le0pard/re2js@2.7.0...2.7.1

v2.7.0

Compare Source

What's Changed

  • Inst.arg memory optimization
  • AST SyntaxError validation for LOOKBEHINDS flag

Full Changelog: le0pard/re2js@2.6.1...2.7.0

v2.6.1

Compare Source

What's Changed

  • fix desync bug in matchAll

Full Changelog: le0pard/re2js@2.6.0...2.6.1

v2.6.0

Compare Source

What's Changed

Full Changelog: le0pard/re2js@2.5.0...2.6.0

v2.5.0

Compare Source

What's Changed

  • Use ZigZag Delta Decoder for Unicode case folding maps (it was increased, because ICU data data is different in different JS env)
  • Added re tagged template literal method

Full Changelog: le0pard/re2js@2.4.0...2.5.0

v2.4.0

Compare Source

What's Changed

Full Changelog: le0pard/re2js@2.3.2...2.4.0

v2.3.2

Compare Source

What's Changed

  • Word Boundaries speedup

Full Changelog: le0pard/re2js@2.3.1...2.3.2

v2.3.1

Compare Source

What's Changed

  • Typescript d.ts fixes

Full Changelog: le0pard/re2js@2.3.0...2.3.1

v2.3.0

Compare Source

What's Changed

  • translateRegExp() now support native Regex
  • TS fixes for types

Full Changelog: le0pard/re2js@2.2.3...2.3.0

v2.2.3

Compare Source

What's Changed

  • Unicode fixes
  • translateRegExp() fixes

Full Changelog: le0pard/re2js@2.2.2...2.2.3

v2.2.2

Compare Source

What's Changed

  • Maximum call stack size exceeded fixes

Full Changelog: le0pard/re2js@2.2.1...2.2.2

v2.2.1

Compare Source

What's Changed

  • added Aho-Corasick for prefilter
  • granular DFA cache eviction
  • fix compiler memory leak
  • fix onepass logic
  • do not corrupt UTF-8/UTF-16 on zero-width matches
  • various small fixes

Full Changelog: le0pard/re2js@2.2.0...2.2.1

v2.2.0

Compare Source

What's Changed

Full Changelog: le0pard/re2js@2.1.1...2.2.0

v2.1.1

Compare Source

What's Changed

  • Fix prototype pollution for getNamedGroups method

Full Changelog: le0pard/re2js@2.1.0...2.1.1

v2.1.0

Compare Source

What's Changed

Full Changelog: le0pard/re2js@2.0.2...2.1.0

v2.0.2

Compare Source

What's Changed

Full Changelog: le0pard/re2js@2.0.1...2.0.2

v2.0.1

Compare Source

What's Changed

  • Performance improvements for DFA
  • Add more info about performance in README

Full Changelog: le0pard/re2js@2.0.0...2.0.1

v2.0.0

Compare Source

What's Changed

Breaking Changes
  • Native JavaScript replacement semantics by default: replaceAll and replaceFirst now use native ECMAScript replacement semantics by default ($$ escapes a dollar sign, and \ is treated literally).
  • Legacy Java mode opt-in: If you relied on the previous Java-style escaping (where \ escapes special characters and throws exceptions on invalid capture groups), you must now explicitly pass true for the new javaMode flag (e.g., replaceAll(replacement, true))

Full Changelog: le0pard/re2js@1.3.3...2.0.0

v1.4.0

Compare Source

v1.3.3

Compare Source

What's Changed

  • fix information disclosure and XSS in Matcher.quoteReplacement

Full Changelog: le0pard/re2js@1.3.2...1.3.3

v1.3.2

Compare Source

What's Changed

  • Massive matches() Speedup: Upgraded both the instance and static RE2JS.matches() methods to use the new testExact() DFA fast-path under the hood. Existing code using .matches() gets a free, significant performance boost and ReDoS immunity without any code changes.

Full Changelog: le0pard/re2js@1.3.1...1.3.2

v1.3.1

Compare Source

What's Changed

  • Finished DFA implementation
  • Added high-performance boolean testing test() and testExact() methods
--- Benchmarking "Simple Literal": /damage/ ---
Legacy (.matcher.find) : 27.84 ms | 1,077,514 ops/sec
Fast-Path (.test)      : 15.54 ms | 1,930,297 ops/sec
Result                 : 1.79x faster

--- Benchmarking "Wildcard": /enters.*battlefield/ ---
Legacy (.matcher.find) : 48.54 ms | 618,117 ops/sec
Fast-Path (.test)      : 17.01 ms | 1,763,611 ops/sec
Result                 : 2.85x faster

--- Benchmarking "Alternation": /damage|life|mana/ ---
Legacy (.matcher.find) : 315.79 ms | 95,003 ops/sec
Fast-Path (.test)      : 11.51 ms | 2,605,780 ops/sec
Result                 : 27.43x faster

--- Benchmarking "Character Class + Repetition": /[0-9]+ mana/ ---
Legacy (.matcher.find) : 173.44 ms | 172,972 ops/sec
Fast-Path (.test)      : 11.73 ms | 2,557,012 ops/sec
Result                 : 14.78x faster

--- Benchmarking "Complex Char Classes": /[A-Z][a-z]+, [a-z]+/ ---
Legacy (.matcher.find) : 207.45 ms | 144,618 ops/sec
Fast-Path (.test)      : 11.19 ms | 2,680,625 ops/sec
Result                 : 18.54x faster

--- Benchmarking "Case Insensitive": /(?i)swamp/ ---
Legacy (.matcher.find) : 266.78 ms | 112,455 ops/sec
Fast-Path (.test)      : 14.79 ms | 2,028,162 ops/sec
Result                 : 18.04x faster

--- Benchmarking "ReDoS Attempt (Catastrophic Backtracking)": /(a+)+!/ ---
Legacy (.matcher.find) : 76.15 ms | 393,958 ops/sec
Fast-Path (.test)      : 16.52 ms | 1,815,977 ops/sec
Result                 : 4.61x faster

Full Changelog: le0pard/re2js@1.3.0...1.3.1

v1.3.0

Compare Source

What's Changed

Full Changelog: le0pard/re2js@1.2.3...1.3.0

v1.2.3

Compare Source

What's Changed

Full Changelog: le0pard/re2js@1.2.2...1.2.3

v1.2.2

Compare Source

  • Improve typescript support

Full Changelog: le0pard/re2js@1.2.1...1.2.2

v1.2.1

Compare Source

What's Changed

New Contributors

Full Changelog: le0pard/re2js@1.2.0...1.2.1

v1.2.0

Compare Source

What's Changed

Full Changelog: le0pard/re2js@1.1.0...1.2.0

v1.1.0: Unicode 16 and translateRegExp() method

Compare Source

What's Changed

  • Support Unicode 16
  • Add translateRegExp() method to preprocesses a given regular expression string to ensure compatibility with RE2JS

Full Changelog: le0pard/re2js@1.0.1...1.1.0

v1.0.1: Fixed programSize() d.ts return type

Compare Source

What's Changed

  • Fixed programSize() d.ts return type

Full Changelog: le0pard/re2js@1.0.0...1.0.1

v1.0.0: - added additional regex checks, like have original re2 + programSize()

Compare Source

What's Changed

  • Added programSize() - represents a very approximate measure of a regexp's "cost". Larger numbers are more expensive than smaller numbers
  • Added regex checks for height, runes and size for parse tree in https://github.com/le0pard/re2js/pull/15 - now it should raise same errors for too big or too nested regex as original re2
  • Fixed parseEscape to support only ASCII values (show error on invalid escape in regex)

Full Changelog: le0pard/re2js@0.4.3...1.0.0


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

@elastic-renovate-prod elastic-renovate-prod Bot added backport:prev-minor release_note:skip Skip the PR/issue when compiling release notes Team:Visualizations Team label for Lens, elastic-charts, Graph, legacy editors (TSVB, Visualize, Timelion) t// labels Sep 18, 2025
@elastic-renovate-prod elastic-renovate-prod Bot requested review from a team and dej611 September 18, 2025 19:43
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/kibana-visualizations (Team:Visualizations)

@elasticmachine
Copy link
Copy Markdown
Contributor

elasticmachine commented Sep 18, 2025

💔 Build Failed

Failed CI Steps

History

@nickofthyme nickofthyme marked this pull request as draft September 24, 2025 15:13
@elasticmachine
Copy link
Copy Markdown
Contributor

🤖 Jobs for this PR can be triggered through checkboxes. 🚧

ℹ️ To trigger the CI, please tick the checkbox below 👇

  • Click to trigger kibana-pull-request for this PR!
  • Click to trigger kibana-deploy-project-from-pr for this PR!
  • Click to trigger kibana-deploy-cloud-from-pr for this PR!

@delanni delanni added backport:version Backport to applied version labels v9.1.5 and removed backport:prev-minor labels Sep 26, 2025
@elastic-renovate-prod elastic-renovate-prod Bot force-pushed the renovate/main-re2js branch 4 times, most recently from 9be3c71 to 120c670 Compare January 7, 2026 12:44
@elastic-renovate-prod elastic-renovate-prod Bot force-pushed the renovate/main-re2js branch 2 times, most recently from d002a35 to 402e41d Compare March 6, 2026 13:29
@elastic-renovate-prod elastic-renovate-prod Bot force-pushed the renovate/main-re2js branch 2 times, most recently from 1041a25 to 374a9c5 Compare April 15, 2026 09:31
@elastic-renovate-prod elastic-renovate-prod Bot force-pushed the renovate/main-re2js branch 4 times, most recently from 9400b5e to f8651ec Compare April 21, 2026 22:21
@elastic-renovate-prod elastic-renovate-prod Bot changed the title Update dependency re2js to v1 (main) Update dependency re2js to v2 (main) Apr 21, 2026
@elastic-renovate-prod elastic-renovate-prod Bot force-pushed the renovate/main-re2js branch 2 times, most recently from 083bc14 to d1a6321 Compare April 22, 2026 22:21
@elastic-renovate-prod elastic-renovate-prod Bot force-pushed the renovate/main-re2js branch 4 times, most recently from abb2ab5 to 859426e Compare April 28, 2026 08:08
@elastic-renovate-prod elastic-renovate-prod Bot force-pushed the renovate/main-re2js branch 8 times, most recently from f730b70 to 6120ef8 Compare May 11, 2026 22:24
@elastic-renovate-prod elastic-renovate-prod Bot force-pushed the renovate/main-re2js branch 8 times, most recently from 2ed81e6 to cd8a233 Compare May 27, 2026 14:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:version Backport to applied version labels release_note:skip Skip the PR/issue when compiling release notes Team:Visualizations Team label for Lens, elastic-charts, Graph, legacy editors (TSVB, Visualize, Timelion) t// v9.1.5

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants