Skip to content

chore(deps): move to Oxc 0.158 and upgrade dependencies - #1003

Merged
rvben merged 1 commit into
rvben:mainfrom
polylint:chore/upgrade-dependencies
Nov 16, 2026
Merged

rvben merged 1 commit into
rvben:mainfrom
polylint:chore/upgrade-dependencies

Conversation

@Goldziher

Copy link
Copy Markdown
Contributor

Moves the MDX JavaScript parser from Oxc 0.137 to 0.158 and upgrades every other dependency to its latest release, including the dev and fuzz dependencies (cargo upgrade --incompatible).

Why: rumdl requires oxc_* ^0.137, which cannot unify with a newer Oxc. Any project that embeds rumdl next to a current Oxc (polylint pins 0.158 for its formatters) ends up linking two copies of the Oxc parser and AST.

Changes:

  • Oxc 0.158 needs Rust 1.97, so rust-version moves from 1.94 to 1.97. CONTRIBUTING, the README and docs/stability.md are updated to match. The MSRV CI job reads the value from Cargo.toml.
  • ParserReturn::panicked is now fatal_error (src/lint_context/mdx.rs).
  • markdown = "=1.0.0" stays pinned because it is the reference parser for the compatibility tests, and 1.0.0 is its latest release.

Checked locally:

  • cargo fmt --check and cargo clippy --all-targets --all-features -- -D warnings -D clippy::uninlined_format_args are clean.
  • cargo check on the fuzz crate passes.
  • cargo nextest run --profile quick: 17,129 of 17,131 passed. Two failed under machine load and pass when run alone: config_comment_ranges_unterminated_openers_linear_complexity (a timing bound) and fail_error_policy_keeps_serial_traversal_and_does_not_write_failed_document.

Oxc 0.158 requires Rust 1.97, so the MSRV rises from 1.94. Projects that embed
rumdl next to a current Oxc otherwise link two copies of the parser and AST, since
^0.137 cannot unify with a newer Oxc. ParserReturn::panicked is now fatal_error.

All other dependencies, including the development and fuzz ones, move to their
latest releases (cargo upgrade --incompatible).
Goldziher added a commit to polylint/adrlint that referenced this pull request Nov 16, 2026
polylint-rumdl is the polylint fork of rumdl on Oxc 0.158 with optional CLI allocators
(rvben/rumdl#1003, #1004). Upstream rumdl 0.3.4 links jemalloc 0.6 and Oxc 0.137, which a host
embedding adrlint next to a current Oxc and jemalloc 0.7 cannot resolve.
Goldziher added a commit to polylint/polylint that referenced this pull request Nov 16, 2026
Upstream rumdl 0.3.4 builds on Oxc 0.137, so the web component linked a
second oxc next to poly's 0.158, plus rumdl's unconditional jemalloc.
polylint-rumdl 0.3.5 is polylint's fork on Oxc 0.158 with the CLI
allocators optional (rvben/rumdl#1003, rvben/rumdl#1004), and adrlint
0.5.2 depends on it, so upstream rumdl leaves the graph entirely. The
lib name stays rumdl_lib, so no source changes; the engine versions
move so cached results are recomputed (#192).

components/Cargo.lock duplicates (package names locked at more than one
version): 67 -> 54. oxc: 12 duplicated crates (0.137 + 0.158) -> 0.
`cargo tree -d -e normal --target all` lists no oxc_, rumdl or
tikv-jemalloc entry, and tikv-jemallocator is no longer in the graph
(was 0.6.1 through rumdl).
@rvben
rvben merged commit 61ac55e into rvben:main Nov 16, 2026
16 checks passed
@rvben

rvben commented Nov 18, 2026

Copy link
Copy Markdown
Owner

Thanks @Goldziher for this, and for the Oxc 0.159 follow-up in #1008. Unifying the Oxc version is a fair ask for anyone embedding rumdl, and the API change from panicked to fatal_error was the only code it needed.

Your PR also prompted a change to our MSRV policy: docs/stability.md now describes a rolling window, so raising the MSRV (now Rust 1.98) can ship in a regular patch release. Both changes are on main and will be in the next release.

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