diff --git a/Cargo.lock b/Cargo.lock index f06ed682f53c8..70cb0ed3a8375 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1917,7 +1917,7 @@ dependencies = [ [[package]] name = "oxc_formatter" -version = "0.35.0" +version = "0.36.0" dependencies = [ "cow-utils", "fast-glob", @@ -1993,7 +1993,7 @@ dependencies = [ [[package]] name = "oxc_linter" -version = "1.50.0" +version = "1.51.0" dependencies = [ "bitflags", "constcat", @@ -2522,7 +2522,7 @@ dependencies = [ [[package]] name = "oxfmt" -version = "0.35.0" +version = "0.36.0" dependencies = [ "bpaf", "cow-utils", @@ -2561,7 +2561,7 @@ dependencies = [ [[package]] name = "oxlint" -version = "1.50.0" +version = "1.51.0" dependencies = [ "bpaf", "cow-utils", diff --git a/apps/oxfmt/CHANGELOG.md b/apps/oxfmt/CHANGELOG.md index 5f9cd43f09c72..2b4ebac92fc3f 100644 --- a/apps/oxfmt/CHANGELOG.md +++ b/apps/oxfmt/CHANGELOG.md @@ -4,6 +4,21 @@ All notable changes to this package will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0). +## [0.36.0] - 2026-03-02 + +### 🚀 Features + +- 4888a99 oxfmt/lsp: Support other schemes beside `file://` and `untitled://` (#19872) (Sysix) +- 14a0181 oxfmt: Support `graphql()` variant for gql-in-js (#19703) (leaysgur) +- ca68ea6 oxfmt: Support gql-in-js substitution (#19670) (leaysgur) +- 035933c formatter,oxfmt: Support js-in-vue (partially) (#19514) (leaysgur) + +### 🐛 Bug Fixes + +- 8e3842d oxfmt: Avoid embedded TSFN crash by returning errors as data (take2) (#19806) (Yuji Sugiura) +- e540585 oxfmt: Support tailwind sort for CSS/LESS/SCSS (#19803) (leaysgur) +- 93bb861 formatter: Trim trailing whitespace before breaking line (#19740) (leaysgur) + ## [0.35.0] - 2026-02-23 ### 🚀 Features diff --git a/apps/oxfmt/Cargo.toml b/apps/oxfmt/Cargo.toml index 42ee3ddd17ec8..d8a83154a66c8 100644 --- a/apps/oxfmt/Cargo.toml +++ b/apps/oxfmt/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxfmt" -version = "0.35.0" +version = "0.36.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/apps/oxfmt/package.json b/apps/oxfmt/package.json index b855b23853b0e..a2615befabeb0 100644 --- a/apps/oxfmt/package.json +++ b/apps/oxfmt/package.json @@ -1,6 +1,6 @@ { "name": "oxfmt-app", - "version": "0.35.0", + "version": "0.36.0", "private": true, "description": "Internal development package for oxfmt. For the published package.json template, see `npm/oxfmt/package.json`.", "license": "MIT", diff --git a/apps/oxfmt/src-js/bindings.js b/apps/oxfmt/src-js/bindings.js index e3e7e085700c6..3284976df82da 100644 --- a/apps/oxfmt/src-js/bindings.js +++ b/apps/oxfmt/src-js/bindings.js @@ -81,8 +81,8 @@ function requireNative() { try { const binding = require('@oxfmt/binding-android-arm64') const bindingPackageVersion = require('@oxfmt/binding-android-arm64/package.json').version - if (bindingPackageVersion !== '0.35.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 0.35.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.36.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 0.36.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -97,8 +97,8 @@ function requireNative() { try { const binding = require('@oxfmt/binding-android-arm-eabi') const bindingPackageVersion = require('@oxfmt/binding-android-arm-eabi/package.json').version - if (bindingPackageVersion !== '0.35.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 0.35.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.36.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 0.36.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -118,8 +118,8 @@ function requireNative() { try { const binding = require('@oxfmt/binding-win32-x64-gnu') const bindingPackageVersion = require('@oxfmt/binding-win32-x64-gnu/package.json').version - if (bindingPackageVersion !== '0.35.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 0.35.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.36.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 0.36.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -134,8 +134,8 @@ function requireNative() { try { const binding = require('@oxfmt/binding-win32-x64-msvc') const bindingPackageVersion = require('@oxfmt/binding-win32-x64-msvc/package.json').version - if (bindingPackageVersion !== '0.35.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 0.35.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.36.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 0.36.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -151,8 +151,8 @@ function requireNative() { try { const binding = require('@oxfmt/binding-win32-ia32-msvc') const bindingPackageVersion = require('@oxfmt/binding-win32-ia32-msvc/package.json').version - if (bindingPackageVersion !== '0.35.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 0.35.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.36.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 0.36.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -167,8 +167,8 @@ function requireNative() { try { const binding = require('@oxfmt/binding-win32-arm64-msvc') const bindingPackageVersion = require('@oxfmt/binding-win32-arm64-msvc/package.json').version - if (bindingPackageVersion !== '0.35.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 0.35.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.36.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 0.36.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -186,8 +186,8 @@ function requireNative() { try { const binding = require('@oxfmt/binding-darwin-universal') const bindingPackageVersion = require('@oxfmt/binding-darwin-universal/package.json').version - if (bindingPackageVersion !== '0.35.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 0.35.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.36.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 0.36.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -202,8 +202,8 @@ function requireNative() { try { const binding = require('@oxfmt/binding-darwin-x64') const bindingPackageVersion = require('@oxfmt/binding-darwin-x64/package.json').version - if (bindingPackageVersion !== '0.35.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 0.35.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.36.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 0.36.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -218,8 +218,8 @@ function requireNative() { try { const binding = require('@oxfmt/binding-darwin-arm64') const bindingPackageVersion = require('@oxfmt/binding-darwin-arm64/package.json').version - if (bindingPackageVersion !== '0.35.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 0.35.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.36.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 0.36.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -238,8 +238,8 @@ function requireNative() { try { const binding = require('@oxfmt/binding-freebsd-x64') const bindingPackageVersion = require('@oxfmt/binding-freebsd-x64/package.json').version - if (bindingPackageVersion !== '0.35.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 0.35.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.36.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 0.36.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -254,8 +254,8 @@ function requireNative() { try { const binding = require('@oxfmt/binding-freebsd-arm64') const bindingPackageVersion = require('@oxfmt/binding-freebsd-arm64/package.json').version - if (bindingPackageVersion !== '0.35.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 0.35.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.36.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 0.36.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -275,8 +275,8 @@ function requireNative() { try { const binding = require('@oxfmt/binding-linux-x64-musl') const bindingPackageVersion = require('@oxfmt/binding-linux-x64-musl/package.json').version - if (bindingPackageVersion !== '0.35.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 0.35.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.36.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 0.36.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -291,8 +291,8 @@ function requireNative() { try { const binding = require('@oxfmt/binding-linux-x64-gnu') const bindingPackageVersion = require('@oxfmt/binding-linux-x64-gnu/package.json').version - if (bindingPackageVersion !== '0.35.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 0.35.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.36.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 0.36.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -309,8 +309,8 @@ function requireNative() { try { const binding = require('@oxfmt/binding-linux-arm64-musl') const bindingPackageVersion = require('@oxfmt/binding-linux-arm64-musl/package.json').version - if (bindingPackageVersion !== '0.35.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 0.35.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.36.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 0.36.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -325,8 +325,8 @@ function requireNative() { try { const binding = require('@oxfmt/binding-linux-arm64-gnu') const bindingPackageVersion = require('@oxfmt/binding-linux-arm64-gnu/package.json').version - if (bindingPackageVersion !== '0.35.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 0.35.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.36.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 0.36.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -343,8 +343,8 @@ function requireNative() { try { const binding = require('@oxfmt/binding-linux-arm-musleabihf') const bindingPackageVersion = require('@oxfmt/binding-linux-arm-musleabihf/package.json').version - if (bindingPackageVersion !== '0.35.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 0.35.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.36.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 0.36.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -359,8 +359,8 @@ function requireNative() { try { const binding = require('@oxfmt/binding-linux-arm-gnueabihf') const bindingPackageVersion = require('@oxfmt/binding-linux-arm-gnueabihf/package.json').version - if (bindingPackageVersion !== '0.35.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 0.35.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.36.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 0.36.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -377,8 +377,8 @@ function requireNative() { try { const binding = require('@oxfmt/binding-linux-loong64-musl') const bindingPackageVersion = require('@oxfmt/binding-linux-loong64-musl/package.json').version - if (bindingPackageVersion !== '0.35.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 0.35.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.36.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 0.36.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -393,8 +393,8 @@ function requireNative() { try { const binding = require('@oxfmt/binding-linux-loong64-gnu') const bindingPackageVersion = require('@oxfmt/binding-linux-loong64-gnu/package.json').version - if (bindingPackageVersion !== '0.35.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 0.35.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.36.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 0.36.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -411,8 +411,8 @@ function requireNative() { try { const binding = require('@oxfmt/binding-linux-riscv64-musl') const bindingPackageVersion = require('@oxfmt/binding-linux-riscv64-musl/package.json').version - if (bindingPackageVersion !== '0.35.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 0.35.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.36.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 0.36.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -427,8 +427,8 @@ function requireNative() { try { const binding = require('@oxfmt/binding-linux-riscv64-gnu') const bindingPackageVersion = require('@oxfmt/binding-linux-riscv64-gnu/package.json').version - if (bindingPackageVersion !== '0.35.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 0.35.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.36.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 0.36.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -444,8 +444,8 @@ function requireNative() { try { const binding = require('@oxfmt/binding-linux-ppc64-gnu') const bindingPackageVersion = require('@oxfmt/binding-linux-ppc64-gnu/package.json').version - if (bindingPackageVersion !== '0.35.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 0.35.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.36.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 0.36.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -460,8 +460,8 @@ function requireNative() { try { const binding = require('@oxfmt/binding-linux-s390x-gnu') const bindingPackageVersion = require('@oxfmt/binding-linux-s390x-gnu/package.json').version - if (bindingPackageVersion !== '0.35.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 0.35.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.36.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 0.36.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -480,8 +480,8 @@ function requireNative() { try { const binding = require('@oxfmt/binding-openharmony-arm64') const bindingPackageVersion = require('@oxfmt/binding-openharmony-arm64/package.json').version - if (bindingPackageVersion !== '0.35.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 0.35.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.36.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 0.36.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -496,8 +496,8 @@ function requireNative() { try { const binding = require('@oxfmt/binding-openharmony-x64') const bindingPackageVersion = require('@oxfmt/binding-openharmony-x64/package.json').version - if (bindingPackageVersion !== '0.35.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 0.35.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.36.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 0.36.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -512,8 +512,8 @@ function requireNative() { try { const binding = require('@oxfmt/binding-openharmony-arm') const bindingPackageVersion = require('@oxfmt/binding-openharmony-arm/package.json').version - if (bindingPackageVersion !== '0.35.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 0.35.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.36.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 0.36.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { diff --git a/apps/oxlint/CHANGELOG.md b/apps/oxlint/CHANGELOG.md index f55ff5f77babc..c0185eb0bf262 100644 --- a/apps/oxlint/CHANGELOG.md +++ b/apps/oxlint/CHANGELOG.md @@ -4,6 +4,33 @@ All notable changes to this package will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0). +## [1.51.0] - 2026-03-02 + +### 🚀 Features + +- f34f6fa linter: Introduce typeCheck config option (#19764) (camc314) +- 694be7d linter: Introduce typeAware as config options (#19614) (camc314) + +### 🐛 Bug Fixes + +- 7682e5a linter/plugins: Decode escapes in identifier tokens (#19838) (overlookmotel) +- 0440e9a linter: Add help text to no_control_regex, no_fallthrough, no_param_reassign (#19655) (Anthony Amaro) +- f5694ce estree/tokens: Reverse field order of `regex` object in tokens (#19679) (overlookmotel) +- b2b7a55 estree/tokens: Generate tokens for files with BOM (#19535) (overlookmotel) +- e384e94 linter: Enhance help diagnostic messages for more eslint rules (#19658) (Anthony Amaro) + +### ⚡ Performance + +- 05ccf9f linter/plugins: Transfer tokens via raw transfer (#19893) (overlookmotel) +- 4b0611a estree/tokens: Introduce `ESTreeTokenConfig` trait (#19842) (overlookmotel) +- ec88f6a estree/tokens: Serialize tokens while visiting AST (#19726) (overlookmotel) +- d4dcf26 linter/plugins: Remove `typescript` from bundle (#19531) (overlookmotel) +- 6a6513c linter/plugins: Use Oxc tokens in plugins (#19498) (camc314) + +### 📚 Documentation + +- caa091d linter/plugins: Correct doc comments for `initTokens` (#19530) (overlookmotel) + ## [1.50.0] - 2026-02-23 ### 🐛 Bug Fixes diff --git a/apps/oxlint/Cargo.toml b/apps/oxlint/Cargo.toml index c57f358c7f28b..5129088d36451 100644 --- a/apps/oxlint/Cargo.toml +++ b/apps/oxlint/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxlint" -version = "1.50.0" +version = "1.51.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/apps/oxlint/package.json b/apps/oxlint/package.json index 8b7d6687d8c46..1b19bfdf34be4 100644 --- a/apps/oxlint/package.json +++ b/apps/oxlint/package.json @@ -1,6 +1,6 @@ { "name": "oxlint-app", - "version": "1.50.0", + "version": "1.51.0", "private": true, "description": "Internal development package for oxlint. For the published package.json template, see `npm/oxlint/package.json`.", "license": "MIT", diff --git a/apps/oxlint/src-js/bindings.js b/apps/oxlint/src-js/bindings.js index ee48b3b4b65e9..4a0c402866b7e 100644 --- a/apps/oxlint/src-js/bindings.js +++ b/apps/oxlint/src-js/bindings.js @@ -81,8 +81,8 @@ function requireNative() { try { const binding = require('@oxlint/binding-android-arm64') const bindingPackageVersion = require('@oxlint/binding-android-arm64/package.json').version - if (bindingPackageVersion !== '1.50.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 1.50.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '1.51.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 1.51.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -97,8 +97,8 @@ function requireNative() { try { const binding = require('@oxlint/binding-android-arm-eabi') const bindingPackageVersion = require('@oxlint/binding-android-arm-eabi/package.json').version - if (bindingPackageVersion !== '1.50.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 1.50.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '1.51.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 1.51.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -118,8 +118,8 @@ function requireNative() { try { const binding = require('@oxlint/binding-win32-x64-gnu') const bindingPackageVersion = require('@oxlint/binding-win32-x64-gnu/package.json').version - if (bindingPackageVersion !== '1.50.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 1.50.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '1.51.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 1.51.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -134,8 +134,8 @@ function requireNative() { try { const binding = require('@oxlint/binding-win32-x64-msvc') const bindingPackageVersion = require('@oxlint/binding-win32-x64-msvc/package.json').version - if (bindingPackageVersion !== '1.50.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 1.50.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '1.51.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 1.51.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -151,8 +151,8 @@ function requireNative() { try { const binding = require('@oxlint/binding-win32-ia32-msvc') const bindingPackageVersion = require('@oxlint/binding-win32-ia32-msvc/package.json').version - if (bindingPackageVersion !== '1.50.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 1.50.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '1.51.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 1.51.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -167,8 +167,8 @@ function requireNative() { try { const binding = require('@oxlint/binding-win32-arm64-msvc') const bindingPackageVersion = require('@oxlint/binding-win32-arm64-msvc/package.json').version - if (bindingPackageVersion !== '1.50.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 1.50.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '1.51.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 1.51.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -186,8 +186,8 @@ function requireNative() { try { const binding = require('@oxlint/binding-darwin-universal') const bindingPackageVersion = require('@oxlint/binding-darwin-universal/package.json').version - if (bindingPackageVersion !== '1.50.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 1.50.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '1.51.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 1.51.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -202,8 +202,8 @@ function requireNative() { try { const binding = require('@oxlint/binding-darwin-x64') const bindingPackageVersion = require('@oxlint/binding-darwin-x64/package.json').version - if (bindingPackageVersion !== '1.50.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 1.50.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '1.51.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 1.51.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -218,8 +218,8 @@ function requireNative() { try { const binding = require('@oxlint/binding-darwin-arm64') const bindingPackageVersion = require('@oxlint/binding-darwin-arm64/package.json').version - if (bindingPackageVersion !== '1.50.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 1.50.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '1.51.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 1.51.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -238,8 +238,8 @@ function requireNative() { try { const binding = require('@oxlint/binding-freebsd-x64') const bindingPackageVersion = require('@oxlint/binding-freebsd-x64/package.json').version - if (bindingPackageVersion !== '1.50.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 1.50.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '1.51.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 1.51.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -254,8 +254,8 @@ function requireNative() { try { const binding = require('@oxlint/binding-freebsd-arm64') const bindingPackageVersion = require('@oxlint/binding-freebsd-arm64/package.json').version - if (bindingPackageVersion !== '1.50.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 1.50.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '1.51.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 1.51.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -275,8 +275,8 @@ function requireNative() { try { const binding = require('@oxlint/binding-linux-x64-musl') const bindingPackageVersion = require('@oxlint/binding-linux-x64-musl/package.json').version - if (bindingPackageVersion !== '1.50.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 1.50.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '1.51.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 1.51.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -291,8 +291,8 @@ function requireNative() { try { const binding = require('@oxlint/binding-linux-x64-gnu') const bindingPackageVersion = require('@oxlint/binding-linux-x64-gnu/package.json').version - if (bindingPackageVersion !== '1.50.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 1.50.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '1.51.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 1.51.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -309,8 +309,8 @@ function requireNative() { try { const binding = require('@oxlint/binding-linux-arm64-musl') const bindingPackageVersion = require('@oxlint/binding-linux-arm64-musl/package.json').version - if (bindingPackageVersion !== '1.50.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 1.50.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '1.51.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 1.51.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -325,8 +325,8 @@ function requireNative() { try { const binding = require('@oxlint/binding-linux-arm64-gnu') const bindingPackageVersion = require('@oxlint/binding-linux-arm64-gnu/package.json').version - if (bindingPackageVersion !== '1.50.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 1.50.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '1.51.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 1.51.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -343,8 +343,8 @@ function requireNative() { try { const binding = require('@oxlint/binding-linux-arm-musleabihf') const bindingPackageVersion = require('@oxlint/binding-linux-arm-musleabihf/package.json').version - if (bindingPackageVersion !== '1.50.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 1.50.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '1.51.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 1.51.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -359,8 +359,8 @@ function requireNative() { try { const binding = require('@oxlint/binding-linux-arm-gnueabihf') const bindingPackageVersion = require('@oxlint/binding-linux-arm-gnueabihf/package.json').version - if (bindingPackageVersion !== '1.50.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 1.50.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '1.51.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 1.51.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -377,8 +377,8 @@ function requireNative() { try { const binding = require('@oxlint/binding-linux-loong64-musl') const bindingPackageVersion = require('@oxlint/binding-linux-loong64-musl/package.json').version - if (bindingPackageVersion !== '1.50.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 1.50.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '1.51.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 1.51.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -393,8 +393,8 @@ function requireNative() { try { const binding = require('@oxlint/binding-linux-loong64-gnu') const bindingPackageVersion = require('@oxlint/binding-linux-loong64-gnu/package.json').version - if (bindingPackageVersion !== '1.50.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 1.50.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '1.51.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 1.51.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -411,8 +411,8 @@ function requireNative() { try { const binding = require('@oxlint/binding-linux-riscv64-musl') const bindingPackageVersion = require('@oxlint/binding-linux-riscv64-musl/package.json').version - if (bindingPackageVersion !== '1.50.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 1.50.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '1.51.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 1.51.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -427,8 +427,8 @@ function requireNative() { try { const binding = require('@oxlint/binding-linux-riscv64-gnu') const bindingPackageVersion = require('@oxlint/binding-linux-riscv64-gnu/package.json').version - if (bindingPackageVersion !== '1.50.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 1.50.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '1.51.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 1.51.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -444,8 +444,8 @@ function requireNative() { try { const binding = require('@oxlint/binding-linux-ppc64-gnu') const bindingPackageVersion = require('@oxlint/binding-linux-ppc64-gnu/package.json').version - if (bindingPackageVersion !== '1.50.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 1.50.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '1.51.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 1.51.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -460,8 +460,8 @@ function requireNative() { try { const binding = require('@oxlint/binding-linux-s390x-gnu') const bindingPackageVersion = require('@oxlint/binding-linux-s390x-gnu/package.json').version - if (bindingPackageVersion !== '1.50.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 1.50.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '1.51.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 1.51.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -480,8 +480,8 @@ function requireNative() { try { const binding = require('@oxlint/binding-openharmony-arm64') const bindingPackageVersion = require('@oxlint/binding-openharmony-arm64/package.json').version - if (bindingPackageVersion !== '1.50.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 1.50.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '1.51.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 1.51.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -496,8 +496,8 @@ function requireNative() { try { const binding = require('@oxlint/binding-openharmony-x64') const bindingPackageVersion = require('@oxlint/binding-openharmony-x64/package.json').version - if (bindingPackageVersion !== '1.50.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 1.50.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '1.51.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 1.51.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -512,8 +512,8 @@ function requireNative() { try { const binding = require('@oxlint/binding-openharmony-arm') const bindingPackageVersion = require('@oxlint/binding-openharmony-arm/package.json').version - if (bindingPackageVersion !== '1.50.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 1.50.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '1.51.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 1.51.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { diff --git a/crates/oxc_formatter/CHANGELOG.md b/crates/oxc_formatter/CHANGELOG.md index 5b8fdfcf0ed4e..a613726dc6ae9 100644 --- a/crates/oxc_formatter/CHANGELOG.md +++ b/crates/oxc_formatter/CHANGELOG.md @@ -4,6 +4,25 @@ All notable changes to this package will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0). +## [0.36.0] - 2026-03-02 + +### 🚀 Features + +- 5141bc2 formatter: Support trailing ignore comments (#19304) (Andreas Lubbe) +- 14a0181 oxfmt: Support `graphql()` variant for gql-in-js (#19703) (leaysgur) +- ca68ea6 oxfmt: Support gql-in-js substitution (#19670) (leaysgur) +- 035933c formatter,oxfmt: Support js-in-vue (partially) (#19514) (leaysgur) +- 9e11dc6 parser,estree,coverage: Collect tokens in parser and convert to ESTree format (#19497) (camc314) + +### 🐛 Bug Fixes + +- 93bb861 formatter: Trim trailing whitespace before breaking line (#19740) (leaysgur) +- b85f97b formatter: Drop blank line between terminal call and first chain member (#19659) (Dunqing) + +### ⚡ Performance + +- b3b2d30 parser: Introduce `ParserConfig` (#19637) (overlookmotel) + ## [0.33.0] - 2026-02-16 ### 💥 BREAKING CHANGES diff --git a/crates/oxc_formatter/Cargo.toml b/crates/oxc_formatter/Cargo.toml index cc0d085c487fe..97dfb4573f27d 100644 --- a/crates/oxc_formatter/Cargo.toml +++ b/crates/oxc_formatter/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_formatter" -version = "0.35.0" +version = "0.36.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/crates/oxc_linter/CHANGELOG.md b/crates/oxc_linter/CHANGELOG.md index ad3feb1a9daea..5e0d8b19f2762 100644 --- a/crates/oxc_linter/CHANGELOG.md +++ b/crates/oxc_linter/CHANGELOG.md @@ -4,6 +4,60 @@ All notable changes to this package will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0). +## [1.51.0] - 2026-03-02 + +### 🚀 Features + +- 2e0e1d0 linter/no-unused-vars: Add experimental fix mode controls (off|suggestion|fix) (#19774) (camc314) +- f34f6fa linter: Introduce typeCheck config option (#19764) (camc314) +- 694be7d linter: Introduce typeAware as config options (#19614) (camc314) +- 655c38f semantic: Add "did you mean?" suggestions to undefined name errors (#19102) (copilot-swe-agent) +- e97a57e linter/id-length: Use serde to deserialize rule options (#19636) (camc314) +- c4a3677 parser: Report error for initializer in ambient context (#19187) (camc314) +- 346045a linter/id-length: Add `checkGeneric` option (#19634) (camc314) + +### 🐛 Bug Fixes + +- 1b7a937 linter: Correct double-comparisons fix with swapped operands (#19846) (camc314) +- c308857 linter/consistent_type_imports: Add missing help and notes to diagnostics (#19827) (Daniel Osmond) +- 7682e5a linter/plugins: Decode escapes in identifier tokens (#19838) (overlookmotel) +- f368fcd linter/consistent_type_assertions: Add missing with_help and with_note to diagnostics (#19826) (Daniel Osmond) +- 86d5037 linter: Add help text to no-extend-native, no-useless-backreference (#19733) (Anthony Amaro) +- 50e8eff linter: Add .with_help() to operator-assignment, no-nonoctal-decimal-escape (#19732) (Anthony Amaro) +- 1417bdc linter/no-wrapper-object-types: Add help messages to missing diagnostics (#19771) (Daniel Osmond) +- 0838477 linter/ban_ts_comment: Add help and notes to missing diagnostics (#19781) (Daniel Osmond) +- e8c77cf linter/adjacent_overload_signatures: Add missing diagnostics (#19780) (Daniel Osmond) +- 28834ac linter/ban_types: Add missing help and note to diagnostics (#19782) (Daniel Osmond) +- fd938d3 linter/prefer-enum-initializers: Add help messages to missing diagnostics (#19772) (Daniel Osmond) +- eb928ee linter/no-dynamic-delete: Add help messages to missing diagnostics (#19768) (Daniel Osmond) +- a985666 linter/no-empty-interface: Add help messages to missing diagnostics (#19769) (Daniel Osmond) +- 2dc0ceb linter/no-extra-non-null-assertion: Add help messages to missing diagnostics (#19770) (Daniel Osmond) +- 95d5d66 linter/no-dupe-keys: Handle `__proto__` proto setters in (#19762) (camc314) +- 24ff0db linter/exhaustive-deps: False positive for member expressions in IIFEs (#19751) (Dennis Chen) +- 7243a58 linter/no-use-before-define: Honor `ignoreTypeReferences` when value and type name collisions (#19747) (Dimava) +- eefd818 linter/explicit-module-boundary-types: Add help messages to missing diagnostics (#19736) (Daniel Osmond) +- 0440e9a linter: Add help text to no_control_regex, no_fallthrough, no_param_reassign (#19655) (Anthony Amaro) +- e84cb2f react/display-name: Handle merged type+value context symbols (#19608) (camc314) +- ce7e253 linter/prefer-object-from-entries: Require exact path match in unicorn helper (#19687) (camc314) +- b2b7a55 estree/tokens: Generate tokens for files with BOM (#19535) (overlookmotel) +- 0722721 linter/jsx-curly-brace-presence: False positive with prop & mixed quotes (#19674) (camc314) +- 3496acd linter: Enhance diagnostic help messages for eslint rules (#19653) (Anthony Amaro) +- e384e94 linter: Enhance help diagnostic messages for more eslint rules (#19658) (Anthony Amaro) +- a4d5b34 linter: Avoid non-promise catch false positives (#19574) (camc314) +- 5706f38 linter: `unicorn/no-array-callback-reference` skip `Effect.*` array-like methods name. (#19633) (Said Atrahouch) + +### ⚡ Performance + +- 05ccf9f linter/plugins: Transfer tokens via raw transfer (#19893) (overlookmotel) +- 4b0611a estree/tokens: Introduce `ESTreeTokenConfig` trait (#19842) (overlookmotel) +- ec88f6a estree/tokens: Serialize tokens while visiting AST (#19726) (overlookmotel) +- 6a6513c linter/plugins: Use Oxc tokens in plugins (#19498) (camc314) + +### 📚 Documentation + +- d86f59e linter: Improve docs for no-useless-concat, mark as pending fixer. (#19859) (connorshea) +- dc0ff73 linter/no-useless-constructor: Warn for parameter properties as well (#19638) (Ole Asteo) + ## [1.50.0] - 2026-02-23 ### 🚀 Features diff --git a/crates/oxc_linter/Cargo.toml b/crates/oxc_linter/Cargo.toml index 8ae9984fd63ac..96affacb74932 100644 --- a/crates/oxc_linter/Cargo.toml +++ b/crates/oxc_linter/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_linter" -version = "1.50.0" +version = "1.51.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/npm/oxfmt/CHANGELOG.md b/npm/oxfmt/CHANGELOG.md index c73ee4f8eae4a..8a14b27f47477 100644 --- a/npm/oxfmt/CHANGELOG.md +++ b/npm/oxfmt/CHANGELOG.md @@ -4,6 +4,16 @@ All notable changes to this package will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0). +## [0.36.0] - 2026-03-02 + +### 🐛 Bug Fixes + +- 04e6223 npm: Add `preferUnplugged` for Yarn PnP compatibility (#19829) (Boshen) + +### 📚 Documentation + +- 2fa936f README.md: Map npm package links to npmx.dev (#19666) (Boshen) + ## [0.35.0] - 2026-02-23 ### 🚀 Features diff --git a/npm/oxfmt/package.json b/npm/oxfmt/package.json index df380735d9623..e7c0a121dbcf1 100644 --- a/npm/oxfmt/package.json +++ b/npm/oxfmt/package.json @@ -1,6 +1,6 @@ { "name": "oxfmt", - "version": "0.35.0", + "version": "0.36.0", "description": "Formatter for the JavaScript Oxidation Compiler", "keywords": [ "formatter", diff --git a/npm/oxlint-plugins/package.json b/npm/oxlint-plugins/package.json index b60f03e16e3b8..1b8d78ba6e367 100644 --- a/npm/oxlint-plugins/package.json +++ b/npm/oxlint-plugins/package.json @@ -1,6 +1,6 @@ { "name": "@oxlint/plugins", - "version": "1.50.0", + "version": "1.51.0", "description": "Plugin utilities for Oxlint", "keywords": [ "eslint", diff --git a/npm/oxlint/CHANGELOG.md b/npm/oxlint/CHANGELOG.md index 68b99ebf36790..61e68c5545a71 100644 --- a/npm/oxlint/CHANGELOG.md +++ b/npm/oxlint/CHANGELOG.md @@ -4,6 +4,21 @@ All notable changes to this package will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0). +## [1.51.0] - 2026-03-02 + +### 🚀 Features + +- f34f6fa linter: Introduce typeCheck config option (#19764) (camc314) +- 694be7d linter: Introduce typeAware as config options (#19614) (camc314) + +### 🐛 Bug Fixes + +- 04e6223 npm: Add `preferUnplugged` for Yarn PnP compatibility (#19829) (Boshen) + +### 📚 Documentation + +- 2fa936f README.md: Map npm package links to npmx.dev (#19666) (Boshen) + ## [1.45.0] - 2026-02-10 ### 🐛 Bug Fixes diff --git a/npm/oxlint/package.json b/npm/oxlint/package.json index 0a8bb3bb5a5f7..49a1cb7a20fee 100644 --- a/npm/oxlint/package.json +++ b/npm/oxlint/package.json @@ -1,6 +1,6 @@ { "name": "oxlint", - "version": "1.50.0", + "version": "1.51.0", "description": "Linter for the JavaScript Oxidation Compiler", "keywords": [ "eslint",