Repository navigation
fix(oxfmt): skip shutdown delay on fixed Node 24 releases - #26518
Merged
leaysgur merged 2 commits intoSep 10, 2026
Merged
Conversation
leaysgur
requested changes
Sep 10, 2026
leaysgur
left a comment
Member
There was a problem hiding this comment.
Thanks, this is great news~! 👍🏻
One note on the tests: I'm not convinced this test provide enough value to justify the maintenance overhead..., so I think it's fine to leave them out.
Contributor
Author
|
Thanks, removed the mocked shutdown test in 1c98d21. The PR now changes only the Node-version guard and its explanatory comment. The production CLI is unchanged from the revision tested with the native build on Node 24.13.1 and 24.19.0; I also updated the description to distinguish that validation from this test-only removal. |
graphite-app Bot
pushed a commit
that referenced
this pull request
Sep 14, 2026
# Oxlint ### 🚀 Features - afe950d linter/react: Update lint rules to accomodate changes in React 19.3 (#26571) (Connor Shea) ### 🐛 Bug Fixes - fb87ed7 linter/unicorn/prefer-array-flat-map: Report `.filter().flatMap()` chains (#26626) (camc314) - 336b654 linter/unicorn/prefer-at: Report single-character substring calls (#26623) (camc314) - a5bba6d linter/eslint/no-unused-vars: Respect rest params after-used option (#26579) (Bartok) - c1470a2 linter/eslint/no-unused-vars: Preserve ambient implicit exports (#26582) (Dex Hunter) - 9a469d2 linter/unicorn/prefer-global-this: Preserve window event method references (#26611) (Dex Hunter) - aaff758 linter/unicorn/prefer-default-parameters: Report violation for `??=` and `||=` (#26607) (Bartok) - 2bed25a linter/unicorn/prefer-array-flat: Skip plain `concat` normalization (#26604) (im10furry) - 72bc7f2 oxlint: Replace backlashes path for "no js runtime" diagnostic (#26599) (Sysix) - 1aa5ec1 linter/typescript/prefer-for-of: Handle computed collections (#26584) (camc314) - 1e90019 linter/typescript: Mark `no-unnecessary-type-parameters` and `prefer-find` suggestions as implemented (#26586) (Mikhail Baev) - 4231536 linter: Compare label text in runtime optimization assertion (#26526) (camc314) - 36d5534 linter: Include file path in diagnostic assertion (#26525) (camc314) - 31508b1 parser: Reject return types on constructor overloads (#26523) (camc314) ### ⚡ Performance - 1d681b0 linter/react/jsx-pascal-case: Avoid temporary name segment vector (#26531) (camc314) - 2ad7d49 linter/promise/catch-or-return: Avoid temporary formatting vectors (#26505) (camc314) - 203235b linter/jsx-a11y/no-static-element-interactions: Avoid role vector (#26504) (camc314) - 2e95167 linter/jsx-a11y/anchor-is-valid: Avoid temporary attribute vector (#26501) (camc314) - deafdba linter/react/exhaustive-deps: Avoid temporary dependency vector (#26502) (camc314) - 4f1627f linter/oxc/branches-sharing-code: Compute deletion spans lazily (#26500) (camc314) - c068fd2 linter/react/jsx-curly-brace-presence: Avoid newline position allocation (#26499) (camc314) - ed4357c linter/eslint/no-restricted-properties: Skip empty configurations (#26497) (camc314) - 92e41b7 linter/oxc/no-barrel-file: Iterate module requests directly (#26498) (camc314) - 5255ee3 linter/unicorn/prefer-single-call: Avoid temporary argument vector (#26494) (camc314) - 96ef365 linter/unicorn/prefer-includes: Reduce suggestion allocations (#26492) (camc314) - a71fd7f linter/unicorn/no-new-buffer: Avoid temporary argument vector (#26491) (camc314) - 11085e7 linter/jsdoc/require-yields: Short-circuit JSDoc checks (#26488) (camc314) - 9b1aff8 linter/unicorn/no-useless-undefined: Skip calls without trailing undefined (#26481) (camc314) - 1e5d5d7 linter/eslint/no-unused-vars: Skip absent global declaration checks (#26457) (camc314) - 403f899 linter/eslint/no-undef: Check globals once per unresolved name (#26456) (camc314) - 118adb0 linter/eslint/no-restricted-imports: Avoid redundant import scans (#26455) (camc314) - ab848f2 linter/eslint/no-useless-assignment: Skip tracking exported symbols (#26449) (camc314) - 1b6e409 linter/unicorn/prefer-object-from-entries: Avoid allocating configured paths (#26448) (camc314) - 2206875 linter/eslint/new-cap: Avoid unnecessary callee name allocations (#26447) (camc314) ### 📚 Documentation - b927e0a linter/typescript/await-thenable: Add missing lang for markdown doc comment (#26438) (Ari Perkkiö) # Oxfmt ### 🚀 Features - 586f27a formatter_core: Add `prefix_align` builder and `Tag::(Start|End)Prefix` (#26520) (leaysgur) - dc45cc3 formatter_test: Test Prettier dynamic snippet tests (#26469) (leaysgur) ### 🐛 Bug Fixes - d7e0c82 formatter: Keep an enum member's trailing suppress comment (#26549) (leaysgur) - d2fe01e formatter: Unify suppress comment behavior (#26547) (leaysgur) - d35d89f oxfmt: Skip shutdown delay on fixed Node 24 releases (#26518) (Pablo García) - aef8b4a formatter_css: Handle less-test-suites failures (#26513) (leaysgur) - 9dbddca formatter: Keep group flat for own-line comment in JSX (#26475) (leaysgur) - d226e6f formatter_yaml: Bump oxc-yaml-parser to 0.0.6 (#26472) (leaysgur) - 8b41fc0 formatter_yaml: Clamp `tab_width: 0` to 1 to keep semantics (#26471) (leaysgur) - dea2ba0 formatter_core: Do not panic with align(0) (#26468) (leaysgur) - bf1d3f6 formatter: Check `this_param` for simple parameters test (#26474) (leaysgur) - 33cdc84 formatter: Keep cast-target assignment and commented parameter patterns (#26429) (leaysgur) - 876fbe3 oxfmt: Expand `Fill` parts in tsx-in-vue (#26427) (leaysgur) ### 📚 Documentation - 66fda4f formatter: Update AGENTS.md comment handling (#26551) (leaysgur) - 41abcba formatter: Note why jsx-test-suite snippets stay off (#26515) (leaysgur)
pabloimrik17
added a commit
to pabloimrik17/daily-agentic-task-force
that referenced
this pull request
Nov 19, 2026
* chore(deps): update oxfmt to 0.68.0 to drop its 50 ms exit delay On Node.js older than 25.4, oxfmt 0.59 holds every process open for a fixed 50 ms before it exits. This works around a ThreadsafeFunction cleanup race (nodejs/node#55706). oxfmt 0.68.0 skips the delay on Node.js 24.13.1 and later, which carry the backported fix (oxc-project/oxc#26518). The five tests in scripts/oxfmt-config.test.ts run the real CLI once each and were the slowest in the suite, at 124-137 ms apiece. On Node.js 24.21 they now take 55-59 ms: Node.js start-up, loading oxfmt and importing oxfmt.config.ts. The file drops from 660 ms to 289 ms. 0.68.0 is the first release with the fix and still pins tinypool 2.1.2, the version the tinypool override already selects. oxfmt --check reports no formatting changes across the repository. AGENTS.md quotes the oxfmt version whose error message it cites, so it moves to 0.68 too. * chore(deps): update oxfmt to 0.76.0 and drop the tinypool override oxfmt 0.71 and later pin tinypool 2.2.0, which already contains the fix the override forced (2.1.2). Without the override, bun resolves tinypool 2.2.0 through oxfmt and osv-scanner reports no issues. * style: reformat with oxfmt 0.76.0 oxfmt 0.76.0 prints the arrow-function argument of .map() on decide.ts without the extra call-argument indent. One file, one hunk, no semantic change. --------- Co-authored-by: Pablo Fernandez Guerra <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Oxfmt still schedules its 50 ms forced-exit workaround on every Node 24 release, although Node 24.13.1 backported the ThreadsafeFunction fix. Exempt fixed Node 24 releases while retaining the existing workaround for older Node 20/22/24 versions and Node 25 before 25.4.0.
The backport is documented in Node 24.13.1's release notes and nodejs/node@1e13e84f16. This narrows the workaround introduced in #18980; it preserves worker disposal and
process.exitCodehandling.Earlier downstream validation of this same condition on Linux/Node 24.19 included ten successful checks of 12,032 synthetic files with complete output. In eleven paired downstream Vite+ check rounds, removing the timer saved a median of about 42 ms for full checks and 44 ms for three-file checks. These are project-specific workflow timings, not a universal 50 ms guarantee.
Validation on
805650e8f60e25abb8ae1038580ab799e7f8dcd9, using the repository's frozen pnpm 12.3.2 dependency installation and Rust 1.98.1:pnpm --dir apps/oxfmt build-dev: native and JavaScript build passed.env -u NO_COLOR -u FORCE_COLOR pnpm --dir apps/oxfmt test --maxWorkers=4: 480 passed, 10 skipped, using the pinned Vitest 5.0.0. This covers the complete Oxfmt JavaScript suite, including CLI, API, LSP and the ten new regression cases. The first run had two color snapshot mismatches caused by inheritedNO_COLOR; clearing the ambient color variables resolved them without changing tests or snapshots.cargo test -p oxfmt --locked: 84 passed.cargo clippy -p oxfmt --all-targets --locked -- -D warnings: passed.Additional checks exercised the freshly built native CLI on real Node 24.13.1 and 24.19.0: five successful runs per runtime over 12,032 synthetic JS/Markdown files, including worker callbacks; no 50 ms timers were registered. Both runtimes preserved all 497,780 bytes of a large stdin-formatting result and the expected parse-error exit code 2. These are correctness/stress checks of the dev build, not performance benchmarks.
The entire Oxc workspace's other packages and the cross-platform CI matrix were not run locally.
The follow-up commit
1c98d210501e276c2d6e3009562b2ebe41217ab3removes the ten mocked shutdown regression cases at the maintainer's request. Its only change is deleting that test file; the production CLI is byte-for-byte unchanged from the fully validated revision above. The final PR changes onlyapps/oxfmt/src-js/cli.ts. The suite counts above describe the earlier run, including the subsequently removed tests; no new full-suite run is claimed for the deletion-only follow-up.AI assistance: implementation and self-review performed with OpenAI Codex using GPT-6 Astra (
gpt-6-astra), with reasoning effort set tohigh.