Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: nodejs/cjs-module-lexer
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 2.2.1
Choose a base ref
...
head repository: nodejs/cjs-module-lexer
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 2.3.0
Choose a head ref
  • 6 commits
  • 11 files changed
  • 3 contributors

Commits on Sep 7, 2026

  1. fix: initialize Wasm automatically before parsing (#120)

    The synchronous parse API cannot represent pending initialization, but it previously required callers to arrange initialization first. Browser callers should still await init() because main threads can restrict synchronous Wasm compilation.
    
    Refs: guybedford/es-module-lexer@61ad2a5
    BridgeAR authored Sep 7, 2026
    Configuration menu
    Copy the full SHA
    0bd0461 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    66e5b9a View commit details
    Browse the repository at this point in the history
  3. perf: skip identifier and number runs (#124)

    On a 3,629,072-code-unit corpus, JS drops from 12,799.70 to 11,094.91 µs per sweep on Node 24.20.0 (V8 13.6). Wasm drops from 14,187.29 to 11,671.96 µs.
    
    A fresh process measured 13,138.99 to 11,264.66 µs for JS and 14,188.62 to 11,670.16 µs for Wasm.
    
    The optimized Wasm grows by 154 bytes.
    BridgeAR authored Sep 7, 2026
    Configuration menu
    Copy the full SHA
    8c63bbc View commit details
    Browse the repository at this point in the history
  4. perf: skip class checks for unrelated identifiers (#123)

    On a 3,629,072-code-unit corpus, seven alternating trials improved parse time from 13,161.06 to 12,783.68 µs on Node 24.20.0 (V8 13.6).
    
    A fresh process measured 13,399.06 to 13,041.79 µs.
    BridgeAR authored Sep 7, 2026
    Configuration menu
    Copy the full SHA
    20f8343 View commit details
    Browse the repository at this point in the history

Commits on Sep 8, 2026

  1. fix: guard parser stack bounds (#125)

    Wasm inputs nested beyond 2,048 entries wrote past fixed parser stacks, which could terminate Node instead of returning a parse error.
    
    Fixes: #81
    BridgeAR authored Sep 8, 2026
    Configuration menu
    Copy the full SHA
    9b39cd2 View commit details
    Browse the repository at this point in the history

Commits on Oct 5, 2026

  1. 2.3.0

    guybedford committed Oct 5, 2026
    Configuration menu
    Copy the full SHA
    70d33c7 View commit details
    Browse the repository at this point in the history
Loading