diff --git a/Cargo.lock b/Cargo.lock index 0e684d26157a4..61c8a6d51ce1e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2148,7 +2148,7 @@ dependencies = [ [[package]] name = "oxc_language_server" -version = "1.20.0" +version = "1.21.0" dependencies = [ "env_logger", "futures", @@ -2172,7 +2172,7 @@ dependencies = [ [[package]] name = "oxc_linter" -version = "1.20.0" +version = "1.21.0" dependencies = [ "bitflags 2.9.4", "constcat", @@ -2846,7 +2846,7 @@ dependencies = [ [[package]] name = "oxlint" -version = "1.20.0" +version = "1.21.0" dependencies = [ "bpaf", "cow-utils", diff --git a/apps/oxlint/CHANGELOG.md b/apps/oxlint/CHANGELOG.md index 3e9de5682f9bd..7bb13722d6c7f 100644 --- a/apps/oxlint/CHANGELOG.md +++ b/apps/oxlint/CHANGELOG.md @@ -4,6 +4,86 @@ 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.21.0] - 2025-10-08 + +### ๐Ÿš€ Features + +- 576be20 linter/plugins: Support selectors DSL (#14435) (overlookmotel) +- b2de44f linter/plugins: Support interpolation in normal diagnostic `message` (#14419) (overlookmotel) +- 382c5be linter/plugins: Support placeholders in messageIds (#14416) (camc314) +- 529e88e linter/plugins: Support `messageId`s (#14415) (camc314) +- 0ec0847 ci: Run napi tests on windows (#14383) (camc314) + +### ๐Ÿ› Bug Fixes + +- 88ec1bd linter/plugins: Fix error messages (#14423) (overlookmotel) +- 18616c2 oxlint: Ignore fixtures dir for vitest (#14414) (camc314) +- ec02fe8 oxlint: Normalize path separators in snapshot tests (#14406) (camc314) +- 96663fb linter/plugins: Do not call `before` hook if empty visitor (#14401) (overlookmotel) +- 52f04bd linter: Use `pathToFileURL` for importing plugins to ensure correct URL format (#14394) (camc314) +- 1ea0d46 oxlint: Resolve tsdown deprecation warning (#14389) (camc314) + +### ๐Ÿšœ Refactor + +- 3b26bf3 linter/plugins: Split adding visit function to compiler visitor into multiple functions (#14433) (overlookmotel) +- af3a75e linter/plugins: Track ancestors while walking AST (#14432) (overlookmotel) +- f279f0b linter/plugins: Do not lazy-load visitor keys (#14431) (overlookmotel) +- 5e99ed3 linter/plugins: Allow nullish values as `message` or `messageId` (#14422) (overlookmotel) +- dc30938 linter/plugins: Remove default value from `Context` constructor (#14421) (overlookmotel) +- 28cfae0 oxlint: Use `vitest`s built in file snapshot comparison (#14392) (camc314) +- 06b0e9f linter/plugins: Convert generated files to TS (#14385) (overlookmotel) +- 52f35c6 napi/parser, linter/plugins: Rename `types.js` to `type_ids.js` (#14384) (overlookmotel) + +### โšก Performance + +- 26435a1 linter/plugins: Small perf optimizations (#14420) (overlookmotel) +- d8a8be1 linter/plugins: Avoid private methods (#14418) (overlookmotel) + +### ๐Ÿงช Testing + +- d8da4a4 linter/plugins: Clarify tests for message placeholders (#14417) (overlookmotel) + + +## [1.21.0] - 2025-10-08 + +### ๐Ÿš€ Features + +- 576be20 linter/plugins: Support selectors DSL (#14435) (overlookmotel) +- b2de44f linter/plugins: Support interpolation in normal diagnostic `message` (#14419) (overlookmotel) +- 382c5be linter/plugins: Support placeholders in messageIds (#14416) (camc314) +- 529e88e linter/plugins: Support `messageId`s (#14415) (camc314) +- 0ec0847 ci: Run napi tests on windows (#14383) (camc314) + +### ๐Ÿ› Bug Fixes + +- 88ec1bd linter/plugins: Fix error messages (#14423) (overlookmotel) +- 18616c2 oxlint: Ignore fixtures dir for vitest (#14414) (camc314) +- ec02fe8 oxlint: Normalize path separators in snapshot tests (#14406) (camc314) +- 96663fb linter/plugins: Do not call `before` hook if empty visitor (#14401) (overlookmotel) +- 52f04bd linter: Use `pathToFileURL` for importing plugins to ensure correct URL format (#14394) (camc314) +- 1ea0d46 oxlint: Resolve tsdown deprecation warning (#14389) (camc314) + +### ๐Ÿšœ Refactor + +- 3b26bf3 linter/plugins: Split adding visit function to compiler visitor into multiple functions (#14433) (overlookmotel) +- af3a75e linter/plugins: Track ancestors while walking AST (#14432) (overlookmotel) +- f279f0b linter/plugins: Do not lazy-load visitor keys (#14431) (overlookmotel) +- 5e99ed3 linter/plugins: Allow nullish values as `message` or `messageId` (#14422) (overlookmotel) +- dc30938 linter/plugins: Remove default value from `Context` constructor (#14421) (overlookmotel) +- 28cfae0 oxlint: Use `vitest`s built in file snapshot comparison (#14392) (camc314) +- 06b0e9f linter/plugins: Convert generated files to TS (#14385) (overlookmotel) +- 52f35c6 napi/parser, linter/plugins: Rename `types.js` to `type_ids.js` (#14384) (overlookmotel) + +### โšก Performance + +- 26435a1 linter/plugins: Small perf optimizations (#14420) (overlookmotel) +- d8a8be1 linter/plugins: Avoid private methods (#14418) (overlookmotel) + +### ๐Ÿงช Testing + +- d8da4a4 linter/plugins: Clarify tests for message placeholders (#14417) (overlookmotel) + + ## [1.20.0] - 2025-10-06 ### ๐Ÿš€ Features diff --git a/apps/oxlint/Cargo.toml b/apps/oxlint/Cargo.toml index 01bdc2f11f404..2e0359b0d141a 100644 --- a/apps/oxlint/Cargo.toml +++ b/apps/oxlint/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxlint" -version = "1.20.0" +version = "1.21.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/apps/oxlint/package.json b/apps/oxlint/package.json index 38ecac4313d0d..7aa976506cf5c 100644 --- a/apps/oxlint/package.json +++ b/apps/oxlint/package.json @@ -1,6 +1,6 @@ { "name": "oxlint", - "version": "1.20.0", + "version": "1.21.0", "type": "module", "main": "dist/index.js", "bin": "dist/cli.js", diff --git a/apps/oxlint/src-js/bindings.js b/apps/oxlint/src-js/bindings.js index e65cac29ba14c..d8191006deb65 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/android-arm64') const bindingPackageVersion = require('@oxlint/android-arm64/package.json').version - if (bindingPackageVersion !== '1.20.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.20.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '1.21.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.21.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/android-arm-eabi') const bindingPackageVersion = require('@oxlint/android-arm-eabi/package.json').version - if (bindingPackageVersion !== '1.20.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.20.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '1.21.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.21.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/win32-x64-gnu') const bindingPackageVersion = require('@oxlint/win32-x64-gnu/package.json').version - if (bindingPackageVersion !== '1.20.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.20.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '1.21.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.21.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/win32-x64') const bindingPackageVersion = require('@oxlint/win32-x64/package.json').version - if (bindingPackageVersion !== '1.20.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.20.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '1.21.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.21.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/win32-ia32') const bindingPackageVersion = require('@oxlint/win32-ia32/package.json').version - if (bindingPackageVersion !== '1.20.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.20.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '1.21.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.21.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/win32-arm64') const bindingPackageVersion = require('@oxlint/win32-arm64/package.json').version - if (bindingPackageVersion !== '1.20.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.20.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '1.21.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.21.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/darwin-universal') const bindingPackageVersion = require('@oxlint/darwin-universal/package.json').version - if (bindingPackageVersion !== '1.20.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.20.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '1.21.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.21.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/darwin-x64') const bindingPackageVersion = require('@oxlint/darwin-x64/package.json').version - if (bindingPackageVersion !== '1.20.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.20.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '1.21.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.21.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/darwin-arm64') const bindingPackageVersion = require('@oxlint/darwin-arm64/package.json').version - if (bindingPackageVersion !== '1.20.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.20.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '1.21.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.21.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/freebsd-x64') const bindingPackageVersion = require('@oxlint/freebsd-x64/package.json').version - if (bindingPackageVersion !== '1.20.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.20.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '1.21.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.21.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/freebsd-arm64') const bindingPackageVersion = require('@oxlint/freebsd-arm64/package.json').version - if (bindingPackageVersion !== '1.20.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.20.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '1.21.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.21.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/linux-x64-musl') const bindingPackageVersion = require('@oxlint/linux-x64-musl/package.json').version - if (bindingPackageVersion !== '1.20.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.20.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '1.21.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.21.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/linux-x64-gnu') const bindingPackageVersion = require('@oxlint/linux-x64-gnu/package.json').version - if (bindingPackageVersion !== '1.20.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.20.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '1.21.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.21.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/linux-arm64-musl') const bindingPackageVersion = require('@oxlint/linux-arm64-musl/package.json').version - if (bindingPackageVersion !== '1.20.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.20.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '1.21.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.21.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/linux-arm64-gnu') const bindingPackageVersion = require('@oxlint/linux-arm64-gnu/package.json').version - if (bindingPackageVersion !== '1.20.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.20.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '1.21.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.21.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/linux-arm-musleabihf') const bindingPackageVersion = require('@oxlint/linux-arm-musleabihf/package.json').version - if (bindingPackageVersion !== '1.20.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.20.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '1.21.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.21.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/linux-arm-gnueabihf') const bindingPackageVersion = require('@oxlint/linux-arm-gnueabihf/package.json').version - if (bindingPackageVersion !== '1.20.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.20.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '1.21.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.21.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/linux-loong64-musl') const bindingPackageVersion = require('@oxlint/linux-loong64-musl/package.json').version - if (bindingPackageVersion !== '1.20.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.20.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '1.21.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.21.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/linux-loong64-gnu') const bindingPackageVersion = require('@oxlint/linux-loong64-gnu/package.json').version - if (bindingPackageVersion !== '1.20.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.20.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '1.21.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.21.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/linux-riscv64-musl') const bindingPackageVersion = require('@oxlint/linux-riscv64-musl/package.json').version - if (bindingPackageVersion !== '1.20.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.20.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '1.21.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.21.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/linux-riscv64-gnu') const bindingPackageVersion = require('@oxlint/linux-riscv64-gnu/package.json').version - if (bindingPackageVersion !== '1.20.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.20.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '1.21.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.21.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/linux-ppc64-gnu') const bindingPackageVersion = require('@oxlint/linux-ppc64-gnu/package.json').version - if (bindingPackageVersion !== '1.20.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.20.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '1.21.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.21.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/linux-s390x-gnu') const bindingPackageVersion = require('@oxlint/linux-s390x-gnu/package.json').version - if (bindingPackageVersion !== '1.20.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.20.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '1.21.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.21.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/openharmony-arm64') const bindingPackageVersion = require('@oxlint/openharmony-arm64/package.json').version - if (bindingPackageVersion !== '1.20.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.20.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '1.21.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.21.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/openharmony-x64') const bindingPackageVersion = require('@oxlint/openharmony-x64/package.json').version - if (bindingPackageVersion !== '1.20.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.20.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '1.21.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.21.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/openharmony-arm') const bindingPackageVersion = require('@oxlint/openharmony-arm/package.json').version - if (bindingPackageVersion !== '1.20.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.20.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '1.21.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.21.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { diff --git a/crates/oxc_language_server/CHANGELOG.md b/crates/oxc_language_server/CHANGELOG.md index 35f242095333d..a09973988ef84 100644 --- a/crates/oxc_language_server/CHANGELOG.md +++ b/crates/oxc_language_server/CHANGELOG.md @@ -4,6 +4,20 @@ 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.21.0] - 2025-10-08 + +### ๐Ÿ› Bug Fixes + +- 493082c language_server: Use the first Span of the message as the primary Diagnostic range (#14057) (Sysix) +- 6e8d2f6 language_server: Ignore JS plugins (#14379) (overlookmotel) + +### ๐Ÿšœ Refactor + +- 3374b8e linter/language_server: Move all lsp relevant code to `oxc_language_server` crate (#14430) (Sysix) +- d24b74e linter/language_server: `oxc_linter::TsgoLinter::run_source` returns `Message` (#14429) (Sysix) +- e5b7fb2 linter/language_server: `oxc_linter::Runtime::run_source` returns `Message` (#14428) (Sysix) + + ## [1.20.0] - 2025-10-06 ### ๐Ÿš€ Features diff --git a/crates/oxc_language_server/Cargo.toml b/crates/oxc_language_server/Cargo.toml index cbf20bc35f808..ca58cc846c961 100644 --- a/crates/oxc_language_server/Cargo.toml +++ b/crates/oxc_language_server/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_language_server" -version = "1.20.0" +version = "1.21.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 73f5bc95abb32..2eda6279e1538 100644 --- a/crates/oxc_linter/CHANGELOG.md +++ b/crates/oxc_linter/CHANGELOG.md @@ -4,6 +4,27 @@ 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.21.0] - 2025-10-08 + +### ๐Ÿš€ Features + +- 83e7824 linter: Add `vue/require-default-export` rule (#14351) (Sysix) +- ff98536 linter: Add `vue/no-import-compiler-macros` rule (#14335) (Sysix) + +### ๐Ÿ› Bug Fixes + +- 11e0440 linter/jsx-handler-name: Improve handler name position in error messages (#14174) (Takuji Shimokawa) +- 493082c language_server: Use the first Span of the message as the primary Diagnostic range (#14057) (Sysix) +- 6e8d2f6 language_server: Ignore JS plugins (#14379) (overlookmotel) +- bb679b5 linter: Promise/prefer-await-to-then strict option not reading from config (#14382) (camc314) + +### ๐Ÿšœ Refactor + +- 3374b8e linter/language_server: Move all lsp relevant code to `oxc_language_server` crate (#14430) (Sysix) +- d24b74e linter/language_server: `oxc_linter::TsgoLinter::run_source` returns `Message` (#14429) (Sysix) +- e5b7fb2 linter/language_server: `oxc_linter::Runtime::run_source` returns `Message` (#14428) (Sysix) + + ## [1.20.0] - 2025-10-06 ### ๐Ÿš€ Features diff --git a/crates/oxc_linter/Cargo.toml b/crates/oxc_linter/Cargo.toml index 4071134cf4b81..5733f5f0c518d 100644 --- a/crates/oxc_linter/Cargo.toml +++ b/crates/oxc_linter/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_linter" -version = "1.20.0" +version = "1.21.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/editors/vscode/CHANGELOG.md b/editors/vscode/CHANGELOG.md index 36d48da6f2caf..1f3043402e10a 100644 --- a/editors/vscode/CHANGELOG.md +++ b/editors/vscode/CHANGELOG.md @@ -4,6 +4,7 @@ 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.20.0] - 2025-10-06 ### ๐Ÿš€ Features diff --git a/editors/vscode/package.json b/editors/vscode/package.json index ff592216be31f..dbb8edc6a159f 100644 --- a/editors/vscode/package.json +++ b/editors/vscode/package.json @@ -2,7 +2,7 @@ "name": "oxc-vscode", "description": "oxc vscode extension", "license": "MIT", - "version": "1.20.0", + "version": "1.21.0", "icon": "icon.png", "publisher": "oxc", "displayName": "Oxc", diff --git a/npm/oxlint/CHANGELOG.md b/npm/oxlint/CHANGELOG.md index 0f26f9ca136cb..57ae0a49a5448 100644 --- a/npm/oxlint/CHANGELOG.md +++ b/npm/oxlint/CHANGELOG.md @@ -4,6 +4,13 @@ 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.21.0] - 2025-10-08 + +### ๐Ÿ› Bug Fixes + +- 6e8d2f6 language_server: Ignore JS plugins (#14379) (overlookmotel) + + ## [1.19.0] - 2025-09-29 diff --git a/npm/oxlint/package.json b/npm/oxlint/package.json index c28387b1c5c4e..f599dc2ef903c 100644 --- a/npm/oxlint/package.json +++ b/npm/oxlint/package.json @@ -1,6 +1,6 @@ { "name": "oxlint", - "version": "1.20.0", + "version": "1.21.0", "type": "module", "description": "Linter for the JavaScript Oxidation Compiler", "keywords": [],