chore(infra): use oxfmt for all files, remove dprint (#16599)

Toml formatting is missing but there's only a few toml files, can wait
for oxfmt plugins.

- [x] Something is slow, can't figure out why, need #16607
This commit is contained in:
Boshen committed 2025-12-15 12:06:24 +00:00
1 parent 3d471e3df2
commit 6fca2f7f60
41 files changed
+1182 -1362

No files matched your search

+6 -3
View File
@@ -20,11 +20,13 @@ A-editor:
A-formatter:
- changed-files:
- any-glob-to-any-file: ["crates/oxc_formatter/**", "tasks/prettier_conformance/**", "apps/oxfmt/**"]
- any-glob-to-any-file:
["crates/oxc_formatter/**", "tasks/prettier_conformance/**", "apps/oxfmt/**"]
A-transformer:
- changed-files:
- any-glob-to-any-file: ["crates/oxc_transformer/**", "tasks/transform_conformance/**", "napi/transform/**"]
- any-glob-to-any-file:
["crates/oxc_transformer/**", "tasks/transform_conformance/**", "napi/transform/**"]
A-linter:
- changed-files:
@@ -32,7 +34,8 @@ A-linter:
A-linter-plugins:
- changed-files:
- any-glob-to-any-file: ["apps/oxlint/src-js/**", "apps/oxlint/test/**", "apps/oxlint/conformance/**"]
- any-glob-to-any-file:
["apps/oxlint/src-js/**", "apps/oxlint/test/**", "apps/oxlint/conformance/**"]
A-minifier:
- changed-files:
+1 -8
View File
@@ -21,18 +21,11 @@ jobs:
- uses: oxc-project/setup-node@141eb77546de6702f92d320926403fe3f9f6a6f2 # v1.0.5
- name: Restore dprint plugin cache
id: cache-restore
uses: actions/cache/restore@9255dc7a253b0ccc959486e2bca901246202afeb # v5.0.1
with:
key: dprint-${{ hashFiles('dprint.json') }}
path: ~/.cache/dprint
- uses: oxc-project/setup-rust@ecabb7322a2ba5aeedb3612d2a40b86a85cee235 # v1.0.11
with:
restore-cache: true
cache-key: warm
tools: just,dprint,cargo-shear@1.9.0
tools: just,cargo-shear@1.9.0
components: rustfmt
- name: cargo-shear
+1 -8
View File
@@ -32,16 +32,9 @@ jobs:
with:
cache-key: warm
save-cache: false
tools: just,cargo-insta,typos-cli,cargo-shear,dprint,ast-grep
tools: just,cargo-insta,typos-cli,cargo-shear,ast-grep
components: clippy rust-docs rustfmt rust-analyzer
- uses: oxc-project/setup-node@141eb77546de6702f92d320926403fe3f9f6a6f2 # v1.0.5
- name: Restore dprint plugin cache
id: cache-restore
uses: actions/cache/restore@9255dc7a253b0ccc959486e2bca901246202afeb # v5.0.1
with:
key: dprint-${{ hashFiles('dprint.json') }}
path: ~/.cache/dprint
- run: pnpm run --filter mcp-oxc build
-30
View File
@@ -1,30 +0,0 @@
name: Save dprint plugin cache
permissions: {}
on:
workflow_dispatch:
push:
branches:
- main
paths:
- "dprint.json"
- ".github/workflows/dprint.yml"
jobs:
cache:
runs-on: ubuntu-latest
steps:
- uses: taiki-e/checkout-action@b13d20b7cda4e2f325ef19895128f7ff735c0b3d # v1.3.1
- uses: taiki-e/install-action@61e5998d108b2b55a81b9b386c18bd46e4237e4f # v2.63.1
with:
tool: dprint
- run: dprint check
- name: Save dprint plugin cache
uses: actions/cache/save@9255dc7a253b0ccc959486e2bca901246202afeb # v5.0.1
with:
key: dprint-${{ hashFiles('dprint.json') }}
path: ~/.cache/dprint
+1 -1
View File
@@ -54,7 +54,7 @@ jobs:
- uses: oxc-project/setup-rust@ecabb7322a2ba5aeedb3612d2a40b86a85cee235 # v1.0.11
with:
cache-key: conformance
tools: just,dprint,cargo-shear@1.3.0
tools: just,cargo-shear@1.3.0
components: rustfmt
- name: Get latest SHAs for all submodules
+1
View File
@@ -12,6 +12,7 @@ target/
/tasks/benchmark/codspeed/node_modules/
/tasks/transform_conformance/node_modules/
/tasks/compat_data/node_modules/
/tasks/compat_data/compat-table/
/tasks/e2e/node_modules/
/tasks/e2e/tests/nestjs/node_modules/
/npm/*/node_modules
+5 -15
View File
@@ -8,12 +8,8 @@
"label": "rust: cargo test --no-run",
"type": "cargo",
"command": "test",
"args": [
"--no-run"
],
"problemMatcher": [
"$rustc"
],
"args": ["--no-run"],
"problemMatcher": ["$rustc"],
"group": {
"kind": "build",
"isDefault": true
@@ -26,16 +22,12 @@
"showReuseMessage": false,
"clear": true
},
"dependsOn": [
"rust: cargo fmt"
]
"dependsOn": ["rust: cargo fmt"]
},
{
"type": "cargo",
"command": "fmt",
"problemMatcher": [
"$rustc"
],
"problemMatcher": ["$rustc"],
"presentation": {
"echo": true,
"reveal": "silent",
@@ -54,9 +46,7 @@
"panel": "dedicated",
"reveal": "never"
},
"problemMatcher": [
"$tsc"
]
"problemMatcher": ["$tsc"]
},
{
"type": "shell",
+1 -1
View File
@@ -50,7 +50,7 @@ Prerequisites: Rust (MSRV: 1.91), Node.js, pnpm, just
**Setup Notes:**
- All tools already installed (`cargo-insta`, `typos-cli`, `cargo-shear`, `dprint`, `ast-grep`)
- All tools already installed (`cargo-insta`, `typos-cli`, `cargo-shear`, `ast-grep`)
- Rust components already installed (`clippy`, `rust-docs`, `rustfmt`)
- Run `just ready` after commits for final checks
- You run in an environment where `ast-grep` is available; whenever a search requires syntax-aware or structural matching, default to `ast-grep --lang rust -p '<pattern>'` (or set `--lang` appropriately) and avoid falling back to text-only tools like `rg` or `grep` unless I explicitly request a plain-text search.
+1 -1
View File
@@ -185,7 +185,7 @@ This clear distinction greatly enhances the development experience by aligning m
- Symbol search and completion
- **Dependencies**: All core components
#### NAPI Bindings (napi/*)
#### NAPI Bindings (napi/\*)
- **Purpose**: Node.js integration layer
- **Key Features**:
+1 -1
View File
@@ -26,7 +26,7 @@ Oxc is part of [VoidZero](https://voidzero.dev/)'s vision for a unified, high-pe
For more information, check out our website at [oxc.rs](https://oxc.rs).
<sub>* Oxidation is the chemical process that creates rust</sub>
<sub>\* Oxidation is the chemical process that creates rust</sub>
## 🏗️ Design Principles
+5 -5
View File
@@ -2,10 +2,10 @@
"name": "oxfmt-app",
"version": "0.18.0",
"private": true,
"type": "module",
"main": "dist/index.js",
"description": "Internal development package for oxfmt. For the published package.json template, see `npm/oxfmt/package.json`.",
"license": "MIT",
"type": "module",
"main": "dist/index.js",
"scripts": {
"build": "pnpm run build-napi-release && pnpm run build-js",
"build-dev": "pnpm run build-napi && pnpm run build-js",
@@ -16,9 +16,6 @@
"build-js": "node scripts/build.js",
"test": "tsc && vitest --dir test run"
},
"engines": {
"node": "^20.19.0 || >=22.12.0"
},
"dependencies": {
"prettier": "3.7.4",
"tinypool": "2.0.0"
@@ -43,5 +40,8 @@
"darwin-x64",
"darwin-arm64"
]
},
"engines": {
"node": "^20.19.0 || >=22.12.0"
}
}
+2 -7
View File
@@ -7,11 +7,6 @@
"strict": true,
"skipLibCheck": true
},
"include": [
"src-js",
"test/**/*.ts"
],
"exclude": [
"test/fixtures"
]
"include": ["src-js", "test/**/*.ts"],
"exclude": ["test/fixtures"]
}
+7 -7
View File
@@ -2,10 +2,13 @@
"name": "oxlint-app",
"version": "1.33.0",
"private": true,
"type": "module",
"main": "dist/index.js",
"description": "Internal development package for oxlint. For the published package.json template, see `npm/oxlint/package.json`.",
"license": "MIT",
"type": "module",
"main": "dist/index.js",
"imports": {
"#oxlint": "./dist/index.js"
},
"scripts": {
"build": "pnpm run build-napi-release && pnpm run build-js",
"build-dev": "pnpm run build-napi && cross-env DEBUG=true pnpm run build-js",
@@ -19,9 +22,6 @@
"init-conformance": "cd conformance; ./init.sh",
"conformance": "node ./conformance/src/index.ts"
},
"engines": {
"node": "^20.19.0 || >=22.12.0"
},
"devDependencies": {
"@types/esquery": "^1.5.4",
"@types/estree": "^1.0.8",
@@ -54,7 +54,7 @@
"darwin-arm64"
]
},
"imports": {
"#oxlint": "./dist/index.js"
"engines": {
"node": "^20.19.0 || >=22.12.0"
}
}
+2 -6
View File
@@ -1,7 +1,5 @@
{
"jsPlugins": [
"./plugin.ts"
],
"jsPlugins": ["./plugin.ts"],
"categories": {
"correctness": "off"
},
@@ -20,9 +18,7 @@
},
"overrides": [
{
"files": [
"files/nested/**"
],
"files": ["files/nested/**"],
"globals": {
"React": "writable",
"process": "off",
+3 -13
View File
@@ -9,10 +9,7 @@
"error",
false,
{
"array": [
{ "deep": true, "str": "hello" },
456
],
"array": [{ "deep": true, "str": "hello" }, 456],
"not": null
}
],
@@ -37,15 +34,8 @@
{
"files": ["files/nested/**"],
"rules": {
"options-plugin/options": [
"error",
{ "somethingElse": true }
],
"options-plugin/merge-options": [
"error",
{ "fromConfig": 21 },
{ "fromConfig": 22 },
]
"options-plugin/options": ["error", { "somethingElse": true }],
"options-plugin/merge-options": ["error", { "fromConfig": 21 }, { "fromConfig": 22 }]
}
}
]
+1 -6
View File
@@ -9,10 +9,5 @@
"strictNullChecks": true,
"skipLibCheck": true
},
"exclude": [
"node_modules",
"fixtures",
"test/fixtures/*/files",
"conformance/submodules"
]
"exclude": ["node_modules", "fixtures", "test/fixtures/*/files", "conformance/submodules"]
}
+1
View File
@@ -138,6 +138,7 @@ cargo run -p oxc_minifier --example minifier test.js --twice
- Preserve semantics
3. **Test thoroughly**
```bash
cargo test -p oxc_minifier
cargo coverage
-26
View File
@@ -1,26 +0,0 @@
{
"lineWidth": 120,
"json": {
"indentWidth": 2
},
"toml": {
},
"excludes": [
"**/fixtures/**",
"**/*.snap.*",
"**/CHANGELOG.md",
"pnpm-workspace.yaml",
"pnpm-lock.yaml",
"apps/oxlint/conformance/snapshot.md",
"npm/*/package.json",
"npm/{oxlint,oxfmt}/configuration_schema.json",
"npm/runtime/src",
".github/generated/ast_changes_watch_list.yml"
],
"plugins": [
"https://plugins.dprint.dev/json-0.21.0.wasm",
"https://plugins.dprint.dev/markdown-0.20.0.wasm",
"https://plugins.dprint.dev/g-plane/pretty_yaml-v0.5.1.wasm",
"https://plugins.dprint.dev/toml-0.7.0.wasm"
]
}
+57 -57
View File
@@ -1,11 +1,15 @@
{
"name": "oxc-vscode",
"description": "oxc vs code extension",
"license": "MIT",
"version": "1.33.0",
"icon": "icon.png",
"publisher": "oxc",
"displayName": "Oxc",
"version": "1.32.0",
"description": "oxc vs code extension",
"categories": [
"Linters"
],
"keywords": [
"linter",
"oxc"
],
"bugs": {
"url": "https://github.com/oxc-project/oxc/issues"
},
@@ -14,29 +18,33 @@
"url": "git+https://github.com/oxc-project/oxc.git",
"directory": "editors/vscode"
},
"categories": [
"Linters"
],
"keywords": [
"linter",
"oxc"
],
"engines": {
"vscode": "^1.93.0"
},
"sponsor": {
"url": "https://github.com/sponsors/boshen"
},
"activationEvents": [
"onLanguage:javascript",
"onLanguage:javascriptreact",
"onLanguage:typescript",
"onLanguage:typescriptreact",
"onLanguage:vue",
"onLanguage:svelte",
"onLanguage:astro"
],
"license": "MIT",
"publisher": "oxc",
"main": "./out/main.js",
"scripts": {
"preinstall": "[ -f icon.png ] || curl https://cdn.jsdelivr.net/gh/oxc-project/oxc-assets/square.png --output icon.png",
"build": "pnpm run server:build:release && pnpm run compile && pnpm run package",
"build:dev": "pnpm run server:build:debug && pnpm run compile && pnpm run package",
"compile": "rolldown -c rolldown.config.ts",
"watch": "pnpm run compile --watch",
"package": "vsce package --no-dependencies -o oxc_language_server.vsix",
"install-extension": "code --install-extension oxc_language_server.vsix --force",
"oxlint:build:debug": "pnpm -C ../../apps/oxlint build-napi-test && pnpm -C ../../apps/oxlint build-js",
"oxlint:build:release": "pnpm -C ../../apps/oxlint build-napi && pnpm -C ../../apps/oxlint build-js",
"oxfmt:build:debug": "pnpm -C ../../apps/oxfmt build-napi-test && pnpm -C ../../apps/oxfmt build-js",
"oxfmt:build:release": "pnpm -C ../../apps/oxfmt build-napi && pnpm -C ../../apps/oxfmt build-js",
"server:build:debug": "cross-env CARGO_TARGET_DIR=./target cargo build -p oxc_language_server",
"server:build:release": "cross-env CARGO_TARGET_DIR=./target cargo build -p oxc_language_server --release",
"test": "cross-env TEST=true pnpm run compile && vscode-test",
"test:single-folder": "cross-env TEST=true pnpm run compile && cross-env TEST_SUITE=single-folder vscode-test",
"test:multi-root": "cross-env TEST=true pnpm run compile && cross-env TEST_SUITE=multi-root vscode-test",
"test:oxlint": "cross-env TEST=true pnpm run compile && cross-env TEST_SUITE=oxlint-lsp vscode-test",
"test:oxfmt": "cross-env TEST=true pnpm run compile && cross-env TEST_SUITE=oxfmt-lsp vscode-test",
"type-check": "tsc --noEmit"
},
"contributes": {
"commands": [
{
@@ -250,37 +258,17 @@
}
]
},
"capabilities": {
"untrustedWorkspaces": {
"supported": "limited",
"description": "The Extension will always use the Language Server shipped with the Extension.",
"restrictedConfigurations": [
"oxc.path.server",
"oxc.path.oxlint",
"oxc.path.oxfmt"
]
}
},
"scripts": {
"preinstall": "[ -f icon.png ] || curl https://cdn.jsdelivr.net/gh/oxc-project/oxc-assets/square.png --output icon.png",
"build": "pnpm run server:build:release && pnpm run compile && pnpm run package",
"build:dev": "pnpm run server:build:debug && pnpm run compile && pnpm run package",
"compile": "rolldown -c rolldown.config.ts",
"watch": "pnpm run compile --watch",
"package": "vsce package --no-dependencies -o oxc_language_server.vsix",
"install-extension": "code --install-extension oxc_language_server.vsix --force",
"oxlint:build:debug": "pnpm -C ../../apps/oxlint build-napi-test && pnpm -C ../../apps/oxlint build-js",
"oxlint:build:release": "pnpm -C ../../apps/oxlint build-napi && pnpm -C ../../apps/oxlint build-js",
"oxfmt:build:debug": "pnpm -C ../../apps/oxfmt build-napi-test && pnpm -C ../../apps/oxfmt build-js",
"oxfmt:build:release": "pnpm -C ../../apps/oxfmt build-napi && pnpm -C ../../apps/oxfmt build-js",
"server:build:debug": "cross-env CARGO_TARGET_DIR=./target cargo build -p oxc_language_server",
"server:build:release": "cross-env CARGO_TARGET_DIR=./target cargo build -p oxc_language_server --release",
"test": "cross-env TEST=true pnpm run compile && vscode-test",
"test:single-folder": "cross-env TEST=true pnpm run compile && cross-env TEST_SUITE=single-folder vscode-test",
"test:multi-root": "cross-env TEST=true pnpm run compile && cross-env TEST_SUITE=multi-root vscode-test",
"test:oxlint": "cross-env TEST=true pnpm run compile && cross-env TEST_SUITE=oxlint-lsp vscode-test",
"test:oxfmt": "cross-env TEST=true pnpm run compile && cross-env TEST_SUITE=oxfmt-lsp vscode-test",
"type-check": "tsc --noEmit"
"activationEvents": [
"onLanguage:astro",
"onLanguage:javascript",
"onLanguage:javascriptreact",
"onLanguage:svelte",
"onLanguage:typescript",
"onLanguage:typescriptreact",
"onLanguage:vue"
],
"dependencies": {
"vscode-languageclient": "^9.0.1"
},
"devDependencies": {
"@types/mocha": "^10.0.9",
@@ -295,8 +283,20 @@
"tinyglobby": "^0.2.15",
"typescript": "catalog:"
},
"dependencies": {
"vscode-languageclient": "^9.0.1"
"engines": {
"vscode": "^1.93.0"
},
"icon": "icon.png",
"capabilities": {
"untrustedWorkspaces": {
"supported": "limited",
"description": "The Extension will always use the Language Server shipped with the Extension.",
"restrictedConfigurations": [
"oxc.path.server",
"oxc.path.oxlint",
"oxc.path.oxfmt"
]
}
},
"vsce": {
"dependencies": false
+2 -3
View File
@@ -16,7 +16,7 @@ alias f := fix
# Initialize the project by installing all necessary tools
init:
# Rust related init
cargo binstall watchexec-cli cargo-insta typos-cli cargo-shear dprint -y
cargo binstall watchexec-cli cargo-insta typos-cli cargo-shear -y
# Node.js related init
pnpm install
@@ -60,7 +60,6 @@ lint:
fmt:
-cargo shear --fix # remove all unused dependencies
cargo fmt
dprint fmt
node --run fmt
[unix]
@@ -243,7 +242,7 @@ watch-playground:
# Generate website documentation, intended for updating the oxc-project.github.io site.
# Path should be the path to your clone of https://github.com/oxc-project/oxc-project.github.io
# When testing changes to the website documentation, you may also want to run `dprint fmt --staged`
# When testing changes to the website documentation, you may also want to run `pnpm run fmt`
# in the website directory.
website path:
cargo run -p website_linter rules --table {{path}}/src/docs/guide/usage/linter/generated-rules.md --rule-docs {{path}}/src/docs/guide/usage/linter/rules --git-ref $(git rev-parse HEAD)
+22 -22
View File
@@ -1,27 +1,11 @@
{
"name": "oxc-minify",
"version": "0.103.0",
"type": "module",
"main": "index.js",
"browser": "browser.js",
"scripts": {
"build-dev": "napi build --esm --platform",
"build-test": "pnpm run build-dev",
"build": "pnpm run build-dev --features allocator --release",
"postbuild": "publint",
"postbuild-dev": "node scripts/patch.js",
"test": "tsc && vitest run --dir ./test"
},
"engines": {
"node": "^20.19.0 || >=22.12.0"
},
"description": "Oxc Minifier Node API",
"keywords": [
"oxc",
"minify"
"minify",
"oxc"
],
"author": "Boshen and oxc contributors",
"license": "MIT",
"homepage": "https://oxc.rs",
"bugs": "https://github.com/oxc-project/oxc/issues",
"repository": {
@@ -29,18 +13,27 @@
"url": "git+https://github.com/oxc-project/oxc.git",
"directory": "napi/minify"
},
"author": "Boshen and oxc contributors",
"funding": {
"url": "https://github.com/sponsors/Boshen"
},
"license": "MIT",
"type": "module",
"main": "index.js",
"browser": "browser.js",
"files": [
"browser.js",
"index.d.ts",
"index.js",
"browser.js",
"webcontainer-fallback.cjs"
],
"publishConfig": {
"registry": "https://registry.npmjs.org/",
"access": "public"
"scripts": {
"build-dev": "napi build --esm --platform",
"build-test": "pnpm run build-dev",
"build": "pnpm run build-dev --features allocator --release",
"postbuild": "publint",
"postbuild-dev": "node scripts/patch.js",
"test": "tsc && vitest run --dir ./test"
},
"devDependencies": {
"@types/node": "catalog:",
@@ -72,5 +65,12 @@
"fs": false
}
}
},
"engines": {
"node": "^20.19.0 || >=22.12.0"
},
"publishConfig": {
"access": "public",
"registry": "https://registry.npmjs.org/"
}
}
+56 -56
View File
@@ -1,9 +1,55 @@
{
"name": "oxc-parser",
"version": "0.103.0",
"version": "0.102.0",
"description": "Oxc Parser Node API",
"keywords": [
"oxc",
"parser"
],
"homepage": "https://oxc.rs",
"bugs": "https://github.com/oxc-project/oxc/issues",
"repository": {
"type": "git",
"url": "git+https://github.com/oxc-project/oxc.git",
"directory": "napi/parser"
},
"author": "Boshen and oxc contributors",
"funding": {
"url": "https://github.com/sponsors/Boshen"
},
"license": "MIT",
"type": "module",
"main": "src-js/index.js",
"browser": "src-js/wasm.js",
"files": [
"generated/constants.js",
"generated/deserialize/js.js",
"generated/deserialize/js_range.js",
"generated/deserialize/ts.js",
"generated/deserialize/ts_range.js",
"generated/lazy/constructors.js",
"generated/lazy/type_ids.js",
"generated/lazy/walk.js",
"generated/visit/keys.js",
"generated/visit/type_ids.js",
"generated/visit/visitor.d.ts",
"generated/visit/walk.js",
"src-js/bindings.js",
"src-js/index.d.ts",
"src-js/index.js",
"src-js/raw-transfer/common.js",
"src-js/raw-transfer/eager.js",
"src-js/raw-transfer/lazy-common.js",
"src-js/raw-transfer/lazy.js",
"src-js/raw-transfer/node-array.js",
"src-js/raw-transfer/supported.js",
"src-js/raw-transfer/visitor.js",
"src-js/visit/index.js",
"src-js/visit/visitor.js",
"src-js/wasm.js",
"src-js/webcontainer-fallback.cjs",
"src-js/wrap.js"
],
"scripts": {
"build-dev": "napi build --esm --platform --js bindings.js --dts index.d.ts --output-dir src-js",
"build-test": "pnpm run build-dev --profile coverage",
@@ -18,59 +64,6 @@
"test-browser": "vitest -c vitest.config.browser.ts",
"bench": "vitest bench --run ./bench.bench.js"
},
"engines": {
"node": "^20.19.0 || >=22.12.0"
},
"description": "Oxc Parser Node API",
"keywords": [
"oxc",
"parser"
],
"author": "Boshen and oxc contributors",
"license": "MIT",
"homepage": "https://oxc.rs",
"bugs": "https://github.com/oxc-project/oxc/issues",
"repository": {
"type": "git",
"url": "git+https://github.com/oxc-project/oxc.git",
"directory": "napi/parser"
},
"funding": {
"url": "https://github.com/sponsors/Boshen"
},
"files": [
"generated/constants.js",
"generated/deserialize/js.js",
"generated/deserialize/ts.js",
"generated/deserialize/js_range.js",
"generated/deserialize/ts_range.js",
"generated/lazy/constructors.js",
"generated/lazy/type_ids.js",
"generated/lazy/walk.js",
"generated/visit/keys.js",
"generated/visit/type_ids.js",
"generated/visit/visitor.d.ts",
"generated/visit/walk.js",
"src-js/bindings.js",
"src-js/index.d.ts",
"src-js/index.js",
"src-js/wasm.js",
"src-js/webcontainer-fallback.cjs",
"src-js/wrap.js",
"src-js/raw-transfer/common.js",
"src-js/raw-transfer/eager.js",
"src-js/raw-transfer/lazy.js",
"src-js/raw-transfer/lazy-common.js",
"src-js/raw-transfer/node-array.js",
"src-js/raw-transfer/supported.js",
"src-js/raw-transfer/visitor.js",
"src-js/visit/index.js",
"src-js/visit/visitor.js"
],
"publishConfig": {
"registry": "https://registry.npmjs.org/",
"access": "public"
},
"dependencies": {
"@oxc-project/types": "workspace:^"
},
@@ -88,6 +81,7 @@
},
"napi": {
"binaryName": "parser",
"dtsHeaderFile": "src-js/header.d.ts",
"packageName": "@oxc-parser/binding",
"targets": [
"aarch64-apple-darwin",
@@ -110,7 +104,13 @@
"browser": {
"fs": false
}
},
"dtsHeaderFile": "src-js/header.d.ts"
}
},
"engines": {
"node": "^20.19.0 || >=22.12.0"
},
"publishConfig": {
"access": "public",
"registry": "https://registry.npmjs.org/"
}
}
+52 -52
View File
@@ -81,8 +81,8 @@ function requireNative() {
try {
const binding = require('@oxc-parser/binding-android-arm64')
const bindingPackageVersion = require('@oxc-parser/binding-android-arm64/package.json').version
if (bindingPackageVersion !== '0.103.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.103.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
if (bindingPackageVersion !== '0.102.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.102.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('@oxc-parser/binding-android-arm-eabi')
const bindingPackageVersion = require('@oxc-parser/binding-android-arm-eabi/package.json').version
if (bindingPackageVersion !== '0.103.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.103.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
if (bindingPackageVersion !== '0.102.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.102.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('@oxc-parser/binding-win32-x64-gnu')
const bindingPackageVersion = require('@oxc-parser/binding-win32-x64-gnu/package.json').version
if (bindingPackageVersion !== '0.103.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.103.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
if (bindingPackageVersion !== '0.102.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.102.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('@oxc-parser/binding-win32-x64-msvc')
const bindingPackageVersion = require('@oxc-parser/binding-win32-x64-msvc/package.json').version
if (bindingPackageVersion !== '0.103.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.103.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
if (bindingPackageVersion !== '0.102.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.102.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('@oxc-parser/binding-win32-ia32-msvc')
const bindingPackageVersion = require('@oxc-parser/binding-win32-ia32-msvc/package.json').version
if (bindingPackageVersion !== '0.103.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.103.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
if (bindingPackageVersion !== '0.102.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.102.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('@oxc-parser/binding-win32-arm64-msvc')
const bindingPackageVersion = require('@oxc-parser/binding-win32-arm64-msvc/package.json').version
if (bindingPackageVersion !== '0.103.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.103.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
if (bindingPackageVersion !== '0.102.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.102.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('@oxc-parser/binding-darwin-universal')
const bindingPackageVersion = require('@oxc-parser/binding-darwin-universal/package.json').version
if (bindingPackageVersion !== '0.103.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.103.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
if (bindingPackageVersion !== '0.102.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.102.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('@oxc-parser/binding-darwin-x64')
const bindingPackageVersion = require('@oxc-parser/binding-darwin-x64/package.json').version
if (bindingPackageVersion !== '0.103.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.103.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
if (bindingPackageVersion !== '0.102.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.102.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('@oxc-parser/binding-darwin-arm64')
const bindingPackageVersion = require('@oxc-parser/binding-darwin-arm64/package.json').version
if (bindingPackageVersion !== '0.103.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.103.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
if (bindingPackageVersion !== '0.102.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.102.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('@oxc-parser/binding-freebsd-x64')
const bindingPackageVersion = require('@oxc-parser/binding-freebsd-x64/package.json').version
if (bindingPackageVersion !== '0.103.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.103.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
if (bindingPackageVersion !== '0.102.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.102.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('@oxc-parser/binding-freebsd-arm64')
const bindingPackageVersion = require('@oxc-parser/binding-freebsd-arm64/package.json').version
if (bindingPackageVersion !== '0.103.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.103.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
if (bindingPackageVersion !== '0.102.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.102.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('@oxc-parser/binding-linux-x64-musl')
const bindingPackageVersion = require('@oxc-parser/binding-linux-x64-musl/package.json').version
if (bindingPackageVersion !== '0.103.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.103.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
if (bindingPackageVersion !== '0.102.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.102.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('@oxc-parser/binding-linux-x64-gnu')
const bindingPackageVersion = require('@oxc-parser/binding-linux-x64-gnu/package.json').version
if (bindingPackageVersion !== '0.103.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.103.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
if (bindingPackageVersion !== '0.102.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.102.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('@oxc-parser/binding-linux-arm64-musl')
const bindingPackageVersion = require('@oxc-parser/binding-linux-arm64-musl/package.json').version
if (bindingPackageVersion !== '0.103.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.103.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
if (bindingPackageVersion !== '0.102.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.102.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('@oxc-parser/binding-linux-arm64-gnu')
const bindingPackageVersion = require('@oxc-parser/binding-linux-arm64-gnu/package.json').version
if (bindingPackageVersion !== '0.103.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.103.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
if (bindingPackageVersion !== '0.102.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.102.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('@oxc-parser/binding-linux-arm-musleabihf')
const bindingPackageVersion = require('@oxc-parser/binding-linux-arm-musleabihf/package.json').version
if (bindingPackageVersion !== '0.103.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.103.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
if (bindingPackageVersion !== '0.102.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.102.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('@oxc-parser/binding-linux-arm-gnueabihf')
const bindingPackageVersion = require('@oxc-parser/binding-linux-arm-gnueabihf/package.json').version
if (bindingPackageVersion !== '0.103.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.103.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
if (bindingPackageVersion !== '0.102.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.102.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('@oxc-parser/binding-linux-loong64-musl')
const bindingPackageVersion = require('@oxc-parser/binding-linux-loong64-musl/package.json').version
if (bindingPackageVersion !== '0.103.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.103.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
if (bindingPackageVersion !== '0.102.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.102.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('@oxc-parser/binding-linux-loong64-gnu')
const bindingPackageVersion = require('@oxc-parser/binding-linux-loong64-gnu/package.json').version
if (bindingPackageVersion !== '0.103.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.103.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
if (bindingPackageVersion !== '0.102.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.102.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('@oxc-parser/binding-linux-riscv64-musl')
const bindingPackageVersion = require('@oxc-parser/binding-linux-riscv64-musl/package.json').version
if (bindingPackageVersion !== '0.103.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.103.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
if (bindingPackageVersion !== '0.102.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.102.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('@oxc-parser/binding-linux-riscv64-gnu')
const bindingPackageVersion = require('@oxc-parser/binding-linux-riscv64-gnu/package.json').version
if (bindingPackageVersion !== '0.103.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.103.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
if (bindingPackageVersion !== '0.102.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.102.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('@oxc-parser/binding-linux-ppc64-gnu')
const bindingPackageVersion = require('@oxc-parser/binding-linux-ppc64-gnu/package.json').version
if (bindingPackageVersion !== '0.103.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.103.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
if (bindingPackageVersion !== '0.102.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.102.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('@oxc-parser/binding-linux-s390x-gnu')
const bindingPackageVersion = require('@oxc-parser/binding-linux-s390x-gnu/package.json').version
if (bindingPackageVersion !== '0.103.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.103.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
if (bindingPackageVersion !== '0.102.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.102.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('@oxc-parser/binding-openharmony-arm64')
const bindingPackageVersion = require('@oxc-parser/binding-openharmony-arm64/package.json').version
if (bindingPackageVersion !== '0.103.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.103.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
if (bindingPackageVersion !== '0.102.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.102.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('@oxc-parser/binding-openharmony-x64')
const bindingPackageVersion = require('@oxc-parser/binding-openharmony-x64/package.json').version
if (bindingPackageVersion !== '0.103.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.103.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
if (bindingPackageVersion !== '0.102.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.102.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('@oxc-parser/binding-openharmony-arm')
const bindingPackageVersion = require('@oxc-parser/binding-openharmony-arm/package.json').version
if (bindingPackageVersion !== '0.103.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.103.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
if (bindingPackageVersion !== '0.102.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.102.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
}
return binding
} catch (e) {
-4
View File
@@ -22,10 +22,6 @@
"dependencies": {
"@napi-rs/wasm-runtime": "catalog:"
},
"collaborators": [
"Boshen <boshenc@gmail.com>",
"Oxc contributors"
],
"napi": {
"binaryName": "playground",
"packageName": "@oxc-playground/binding",
+52 -52
View File
@@ -81,8 +81,8 @@ function requireNative() {
try {
const binding = require('@oxc-transform/binding-android-arm64')
const bindingPackageVersion = require('@oxc-transform/binding-android-arm64/package.json').version
if (bindingPackageVersion !== '0.103.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.103.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
if (bindingPackageVersion !== '0.102.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.102.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('@oxc-transform/binding-android-arm-eabi')
const bindingPackageVersion = require('@oxc-transform/binding-android-arm-eabi/package.json').version
if (bindingPackageVersion !== '0.103.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.103.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
if (bindingPackageVersion !== '0.102.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.102.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('@oxc-transform/binding-win32-x64-gnu')
const bindingPackageVersion = require('@oxc-transform/binding-win32-x64-gnu/package.json').version
if (bindingPackageVersion !== '0.103.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.103.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
if (bindingPackageVersion !== '0.102.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.102.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('@oxc-transform/binding-win32-x64-msvc')
const bindingPackageVersion = require('@oxc-transform/binding-win32-x64-msvc/package.json').version
if (bindingPackageVersion !== '0.103.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.103.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
if (bindingPackageVersion !== '0.102.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.102.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('@oxc-transform/binding-win32-ia32-msvc')
const bindingPackageVersion = require('@oxc-transform/binding-win32-ia32-msvc/package.json').version
if (bindingPackageVersion !== '0.103.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.103.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
if (bindingPackageVersion !== '0.102.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.102.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('@oxc-transform/binding-win32-arm64-msvc')
const bindingPackageVersion = require('@oxc-transform/binding-win32-arm64-msvc/package.json').version
if (bindingPackageVersion !== '0.103.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.103.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
if (bindingPackageVersion !== '0.102.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.102.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('@oxc-transform/binding-darwin-universal')
const bindingPackageVersion = require('@oxc-transform/binding-darwin-universal/package.json').version
if (bindingPackageVersion !== '0.103.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.103.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
if (bindingPackageVersion !== '0.102.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.102.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('@oxc-transform/binding-darwin-x64')
const bindingPackageVersion = require('@oxc-transform/binding-darwin-x64/package.json').version
if (bindingPackageVersion !== '0.103.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.103.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
if (bindingPackageVersion !== '0.102.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.102.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('@oxc-transform/binding-darwin-arm64')
const bindingPackageVersion = require('@oxc-transform/binding-darwin-arm64/package.json').version
if (bindingPackageVersion !== '0.103.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.103.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
if (bindingPackageVersion !== '0.102.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.102.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('@oxc-transform/binding-freebsd-x64')
const bindingPackageVersion = require('@oxc-transform/binding-freebsd-x64/package.json').version
if (bindingPackageVersion !== '0.103.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.103.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
if (bindingPackageVersion !== '0.102.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.102.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('@oxc-transform/binding-freebsd-arm64')
const bindingPackageVersion = require('@oxc-transform/binding-freebsd-arm64/package.json').version
if (bindingPackageVersion !== '0.103.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.103.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
if (bindingPackageVersion !== '0.102.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.102.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('@oxc-transform/binding-linux-x64-musl')
const bindingPackageVersion = require('@oxc-transform/binding-linux-x64-musl/package.json').version
if (bindingPackageVersion !== '0.103.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.103.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
if (bindingPackageVersion !== '0.102.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.102.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('@oxc-transform/binding-linux-x64-gnu')
const bindingPackageVersion = require('@oxc-transform/binding-linux-x64-gnu/package.json').version
if (bindingPackageVersion !== '0.103.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.103.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
if (bindingPackageVersion !== '0.102.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.102.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('@oxc-transform/binding-linux-arm64-musl')
const bindingPackageVersion = require('@oxc-transform/binding-linux-arm64-musl/package.json').version
if (bindingPackageVersion !== '0.103.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.103.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
if (bindingPackageVersion !== '0.102.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.102.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('@oxc-transform/binding-linux-arm64-gnu')
const bindingPackageVersion = require('@oxc-transform/binding-linux-arm64-gnu/package.json').version
if (bindingPackageVersion !== '0.103.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.103.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
if (bindingPackageVersion !== '0.102.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.102.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('@oxc-transform/binding-linux-arm-musleabihf')
const bindingPackageVersion = require('@oxc-transform/binding-linux-arm-musleabihf/package.json').version
if (bindingPackageVersion !== '0.103.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.103.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
if (bindingPackageVersion !== '0.102.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.102.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('@oxc-transform/binding-linux-arm-gnueabihf')
const bindingPackageVersion = require('@oxc-transform/binding-linux-arm-gnueabihf/package.json').version
if (bindingPackageVersion !== '0.103.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.103.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
if (bindingPackageVersion !== '0.102.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.102.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('@oxc-transform/binding-linux-loong64-musl')
const bindingPackageVersion = require('@oxc-transform/binding-linux-loong64-musl/package.json').version
if (bindingPackageVersion !== '0.103.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.103.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
if (bindingPackageVersion !== '0.102.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.102.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('@oxc-transform/binding-linux-loong64-gnu')
const bindingPackageVersion = require('@oxc-transform/binding-linux-loong64-gnu/package.json').version
if (bindingPackageVersion !== '0.103.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.103.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
if (bindingPackageVersion !== '0.102.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.102.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('@oxc-transform/binding-linux-riscv64-musl')
const bindingPackageVersion = require('@oxc-transform/binding-linux-riscv64-musl/package.json').version
if (bindingPackageVersion !== '0.103.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.103.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
if (bindingPackageVersion !== '0.102.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.102.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('@oxc-transform/binding-linux-riscv64-gnu')
const bindingPackageVersion = require('@oxc-transform/binding-linux-riscv64-gnu/package.json').version
if (bindingPackageVersion !== '0.103.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.103.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
if (bindingPackageVersion !== '0.102.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.102.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('@oxc-transform/binding-linux-ppc64-gnu')
const bindingPackageVersion = require('@oxc-transform/binding-linux-ppc64-gnu/package.json').version
if (bindingPackageVersion !== '0.103.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.103.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
if (bindingPackageVersion !== '0.102.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.102.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('@oxc-transform/binding-linux-s390x-gnu')
const bindingPackageVersion = require('@oxc-transform/binding-linux-s390x-gnu/package.json').version
if (bindingPackageVersion !== '0.103.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.103.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
if (bindingPackageVersion !== '0.102.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.102.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('@oxc-transform/binding-openharmony-arm64')
const bindingPackageVersion = require('@oxc-transform/binding-openharmony-arm64/package.json').version
if (bindingPackageVersion !== '0.103.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.103.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
if (bindingPackageVersion !== '0.102.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.102.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('@oxc-transform/binding-openharmony-x64')
const bindingPackageVersion = require('@oxc-transform/binding-openharmony-x64/package.json').version
if (bindingPackageVersion !== '0.103.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.103.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
if (bindingPackageVersion !== '0.102.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.102.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('@oxc-transform/binding-openharmony-arm')
const bindingPackageVersion = require('@oxc-transform/binding-openharmony-arm/package.json').version
if (bindingPackageVersion !== '0.103.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.103.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
if (bindingPackageVersion !== '0.102.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.102.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
}
return binding
} catch (e) {
+21 -21
View File
@@ -1,27 +1,11 @@
{
"name": "oxc-transform",
"version": "0.103.0",
"type": "module",
"main": "index.js",
"browser": "browser.js",
"scripts": {
"build-dev": "napi build --esm --platform",
"build-test": "pnpm run build-dev",
"build": "pnpm run build-dev --features allocator --release",
"postbuild": "publint",
"postbuild-dev": "node scripts/patch.js",
"test": "tsc && vitest run --dir ./test"
},
"engines": {
"node": "^20.19.0 || >=22.12.0"
},
"version": "0.102.0",
"description": "Oxc Transformer Node API",
"keywords": [
"oxc",
"transform"
],
"author": "Boshen and oxc contributors",
"license": "MIT",
"homepage": "https://oxc.rs",
"bugs": "https://github.com/oxc-project/oxc/issues",
"repository": {
@@ -29,18 +13,27 @@
"url": "git+https://github.com/oxc-project/oxc.git",
"directory": "napi/transform"
},
"author": "Boshen and oxc contributors",
"funding": {
"url": "https://github.com/sponsors/Boshen"
},
"license": "MIT",
"type": "module",
"main": "index.js",
"browser": "browser.js",
"files": [
"browser.js",
"index.d.ts",
"index.js",
"browser.js",
"webcontainer-fallback.cjs"
],
"publishConfig": {
"registry": "https://registry.npmjs.org/",
"access": "public"
"scripts": {
"build-dev": "napi build --esm --platform",
"build-test": "pnpm run build-dev",
"build": "pnpm run build-dev --features allocator --release",
"postbuild": "publint",
"postbuild-dev": "node scripts/patch.js",
"test": "tsc && vitest run --dir ./test"
},
"devDependencies": {
"@types/node": "catalog:",
@@ -72,5 +65,12 @@
"fs": false
}
}
},
"engines": {
"node": "^20.19.0 || >=22.12.0"
},
"publishConfig": {
"access": "public",
"registry": "https://registry.npmjs.org/"
}
}
+3 -3
View File
@@ -2,13 +2,10 @@
"name": "@oxc-project/types",
"version": "0.103.0",
"description": "Types for Oxc AST nodes",
"type": "module",
"keywords": [
"AST",
"Parser"
],
"author": "Boshen and oxc contributors",
"license": "MIT",
"homepage": "https://oxc.rs",
"bugs": "https://github.com/oxc-project/oxc/issues",
"repository": {
@@ -16,9 +13,12 @@
"url": "git+https://github.com/oxc-project/oxc.git",
"directory": "npm/oxc-types"
},
"author": "Boshen and oxc contributors",
"funding": {
"url": "https://github.com/sponsors/Boshen"
},
"license": "MIT",
"type": "module",
"types": "types.d.ts",
"files": [
"types.d.ts"
+15 -15
View File
@@ -1,11 +1,8 @@
{
"name": "oxfmt",
"version": "0.18.0",
"type": "module",
"description": "Formatter for the JavaScript Oxidation Compiler",
"keywords": [],
"author": "Boshen and oxc contributors",
"license": "MIT",
"homepage": "https://oxc.rs",
"bugs": "https://github.com/oxc-project/oxc/issues",
"repository": {
@@ -13,24 +10,27 @@
"url": "git+https://github.com/oxc-project/oxc",
"directory": "npm/oxfmt"
},
"main": "dist/index.js",
"bin": {
"oxfmt": "bin/oxfmt"
},
"types": "dist/index.d.ts",
"author": "Boshen and oxc contributors",
"funding": {
"url": "https://github.com/sponsors/Boshen"
},
"license": "MIT",
"type": "module",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"bin": {
"oxfmt": "bin/oxfmt"
},
"files": [
"README.md",
"bin/oxfmt",
"configuration_schema.json",
"dist"
],
"dependencies": {
"tinypool": "2.0.0"
},
"engines": {
"node": "^20.19.0 || >=22.12.0"
},
"files": [
"bin/oxfmt",
"configuration_schema.json",
"dist",
"README.md"
]
}
}
+15 -15
View File
@@ -1,11 +1,8 @@
{
"name": "oxlint",
"version": "1.33.0",
"type": "module",
"description": "Linter for the JavaScript Oxidation Compiler",
"keywords": [],
"author": "Boshen and oxc contributors",
"license": "MIT",
"homepage": "https://oxc.rs",
"bugs": "https://github.com/oxc-project/oxc/issues",
"repository": {
@@ -13,23 +10,26 @@
"url": "git+https://github.com/oxc-project/oxc",
"directory": "npm/oxlint"
},
"main": "dist/index.js",
"bin": {
"oxlint": "bin/oxlint",
"oxc_language_server": "bin/oxc_language_server"
},
"types": "dist/index.d.ts",
"author": "Boshen and oxc contributors",
"funding": {
"url": "https://github.com/sponsors/Boshen"
},
"engines": {
"node": "^20.19.0 || >=22.12.0"
"license": "MIT",
"type": "module",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"bin": {
"oxc_language_server": "bin/oxc_language_server",
"oxlint": "bin/oxlint"
},
"files": [
"bin/oxlint",
"README.md",
"bin/oxc_language_server",
"bin/oxlint",
"configuration_schema.json",
"dist",
"README.md"
]
"dist"
],
"engines": {
"node": "^20.19.0 || >=22.12.0"
}
}
+729 -729
View File
File diff suppressed because it is too large. Load diff
+7
View File
@@ -6,14 +6,19 @@
"**/generated/**",
// Ignore `fixtures` directories except for `apps/oxlint/test/fixtures`
"**/fixtures/**",
"**/CHANGELOG.md",
"!apps/oxlint/test/fixtures/**",
"**/*.snap.md",
"apps/oxlint/conformance/snapshot.md",
"tasks/coverage/node-compat-table",
"tasks/coverage/misc",
"tasks/coverage/src/runtime/babelHelpers.js",
"tasks/transform_conformance/tests",
"apps/{oxlint,oxfmt}/src-js/bindings.js",
"apps/{oxlint,oxfmt}/src-js/bindings.d.ts",
"apps/oxlint/conformance/submodules/**",
"napi/parser/src-js/bindings.js",
"napi/playground/playground.wasi-browser.js",
"napi/{transform,minify,playground}/index.js",
"napi/{transform,minify,playground}/index.d.ts",
"napi/{parser,transform,minify,playground}/**/index.d.ts",
@@ -24,5 +29,7 @@
"napi/{parser,transform,minify,playground}/**/browser.js",
"npm/runtime/src",
"npm/oxc-types/types.d.ts",
"npm/oxfmt/configuration_schema.json",
"npm/oxlint/configuration_schema.json",
],
}
+13 -9
View File
@@ -20,9 +20,12 @@
"rules": {
"no-console": "error",
"curly": ["error", "multi-line"],
"prefer-destructuring": ["error", {
"VariableDeclarator": { "array": false, "object": true }
}],
"prefer-destructuring": [
"error",
{
"VariableDeclarator": { "array": false, "object": true }
}
],
"typescript/consistent-indexed-object-style": ["error", "record"],
"typescript/ban-ts-comment": ["error", { "ts-expect-error": "allow-with-description" }],
"eslint-js/prefer-const": ["error", { "destructuring": "all" }]
@@ -37,13 +40,14 @@
}
},
{
"files": [
"tasks/e2e/test/*.test.ts"
],
"files": ["tasks/e2e/test/*.test.ts"],
"rules": {
"vitest/valid-title": ["error", {
"typecheck": true
}]
"vitest/valid-title": [
"error",
{
"typecheck": true
}
]
}
}
],
+3 -3
View File
@@ -1,7 +1,6 @@
{
"name": "oxc",
"private": true,
"packageManager": "pnpm@10.24.0",
"scripts": {
"build": "pnpm --workspace-concurrency=1 --filter \"./napi/*\" --filter \"./apps/*\" build",
"build-dev": "pnpm --workspace-concurrency=1 --filter \"./napi/*\" --filter \"./apps/*\" build-dev",
@@ -15,11 +14,12 @@
"@napi-rs/cli": "catalog:",
"emnapi": "1.7.1",
"eslint": "^9.39.1",
"oxfmt": "^0.16.0",
"oxfmt": "^0.18.0",
"oxlint": "^1.33.0",
"oxlint-tsgolint": "0.9.0",
"publint": "catalog:",
"typescript": "catalog:",
"vitest": "catalog:"
}
},
"packageManager": "pnpm@10.24.0"
}
+39 -37
View File
@@ -56,8 +56,8 @@ importers:
specifier: ^9.39.1
version: 9.39.1(jiti@2.6.1)
oxfmt:
specifier: ^0.16.0
version: 0.16.0
specifier: ^0.18.0
version: 0.18.0
oxlint:
specifier: ^1.33.0
version: 1.33.0(oxlint-tsgolint@0.9.0)
@@ -1740,43 +1740,43 @@ packages:
'@oxc-project/types@0.103.0':
resolution: {integrity: sha512-bkiYX5kaXWwUessFRSoXFkGIQTmc6dLGdxuRTrC+h8PSnIdZyuXHHlLAeTmOue5Br/a0/a7dHH0Gca6eXn9MKg==}
'@oxfmt/darwin-arm64@0.16.0':
resolution: {integrity: sha512-I+Unj7wePcUTK7p/YKtgbm4yer6dw7dTlmCJa0UilFZyge5uD4rwCSfSDx3A+a6Z3A60/SqXMbNR2UyidWF4Cg==}
'@oxfmt/darwin-arm64@0.18.0':
resolution: {integrity: sha512-Dp3mOFUtLtG/0eDclI3rx2be5FEnUxh2T6zlq7Zx5Q1c+DS9LJF8H97nQx+O/OU+o0e0J90kN8Msf9v3j7Hhsg==}
cpu: [arm64]
os: [darwin]
'@oxfmt/darwin-x64@0.16.0':
resolution: {integrity: sha512-EfiXFKEOV5gXgEatFK89OOoSmd8E9Xq83TcjPLWQNFBO4cgaQsfKmctpgJmJjQnoUwD7nQsm0ruj3ae7Gva8QA==}
'@oxfmt/darwin-x64@0.18.0':
resolution: {integrity: sha512-Oe3KS4tdfLq+f1Ebje7D9BF7/0xmBYSMN6dWatSko1xfvu8oCZzKcNCcbwz0a8rBnoH/BnIiGFUEbgJDnA/JLQ==}
cpu: [x64]
os: [darwin]
'@oxfmt/linux-arm64-gnu@0.16.0':
resolution: {integrity: sha512-ydcNY9Fn/8TjVswANhdSh+zdgD3tiikNQA68bgXbENHuV3RyYql1qoOM1eGv5xeIVJfkPJme17MKQz3OwMFS4A==}
'@oxfmt/linux-arm64-gnu@0.18.0':
resolution: {integrity: sha512-zW9z8LrAgL9bswgsaFOnQmoImCbq9YQST8B15FAoTeZYr9sb/VfdD6/PQEBLCptYlFmoTvmDNHjppi9g61NwHQ==}
cpu: [arm64]
os: [linux]
'@oxfmt/linux-arm64-musl@0.16.0':
resolution: {integrity: sha512-I9WeYe1/YnrfXgXVaKkZITZzil0G0g9IknS2KJbq1lOnpTw3dwViXZ7XMa2cq6Mv7S+4SoDImb7fLQ59AfVX/w==}
'@oxfmt/linux-arm64-musl@0.18.0':
resolution: {integrity: sha512-mFnpcasZZv1s/+6YDPradhIgR2G7GWr+mnzgJMIKQOJAtX3b0vzG+FE4f7hDIZPEUhC0hvZSd8f31FjAtrX0aQ==}
cpu: [arm64]
os: [linux]
'@oxfmt/linux-x64-gnu@0.16.0':
resolution: {integrity: sha512-Szg9lJtZdN5FoCnNbl3N/2pJv8d056NUmk51m60E2tZV7rvwRTrNC8HPc2sVdb1Ti5ogsicpZDYSWA3cwIrJIQ==}
'@oxfmt/linux-x64-gnu@0.18.0':
resolution: {integrity: sha512-G1AXQNHVkPgVgRrAvDYdNi0x3gkvVyEmpL6WLMwoSjMnwYWQLt5/jrndHbS2Db8/CcmMo6VPP8lUQGvM4TRVaQ==}
cpu: [x64]
os: [linux]
'@oxfmt/linux-x64-musl@0.16.0':
resolution: {integrity: sha512-5koN8nl21ZxOADaMxXHT+mt3YjfXe1nsa23Fanf9aY7B0hcQ6rXYCZ7r5vmpoTtzW/US3aaVcRFZE1cyof+lKw==}
'@oxfmt/linux-x64-musl@0.18.0':
resolution: {integrity: sha512-M/KEIMHDr5lcK9gDxgIGr9xVwX7Pfl3PZs+6e8SySuckMgoJMkee6uWxhMdxws3dfU94saAkVmNQzM2+l3hvtA==}
cpu: [x64]
os: [linux]
'@oxfmt/win32-arm64@0.16.0':
resolution: {integrity: sha512-Jaesn+FYn+MudSmWJMPGBAa0PhQXo52Z0ZYeNfzbQP7v2GFbZBI3Cb87+K0aHGlpqK3VEJKXeIaASaTWlkgO1Q==}
'@oxfmt/win32-arm64@0.18.0':
resolution: {integrity: sha512-LunuNBTLOgfkYFjiHOeNHD/Ii5paO/GVyNPSEYBwEPULbdeMGnjHqxzQHLGU8QIQjwu55mp4uuBP0DAXTli2TQ==}
cpu: [arm64]
os: [win32]
'@oxfmt/win32-x64@0.16.0':
resolution: {integrity: sha512-1obVSlb5blwBKgSsE1mNxvcq1pK9I6aXpZDy5d6jjGdrru33dHrH1ASChrcxwCukkToH2SxwYmnzAto0xeuZlw==}
'@oxfmt/win32-x64@0.18.0':
resolution: {integrity: sha512-0kJJwn4FPeGJ4uV6ofOCiY+oBKWg+RWpRjYc9bywTjDbxWR6JAqtuXkiARCJej8UD/rJeXnHYTF78sFALkwZyA==}
cpu: [x64]
os: [win32]
@@ -3568,8 +3568,8 @@ packages:
resolution: {integrity: sha512-UrSUdhwNVUUysWq5yHBCUwe0njFL7k377GGRSSDByAT02IubuMlUiudG+CaQQjP+RgjYXCgoINMVA+enZRJdZA==}
engines: {node: ^20.19.0 || >=22.12.0}
oxfmt@0.16.0:
resolution: {integrity: sha512-uRnnBAN0zH07FXSfvSKbIw+Jrohv4Px2RwNiZOGI4/pvns4sx0+k4WSt+tqwd7bDeoWaXiGmhZgnbK63hi6hVQ==}
oxfmt@0.18.0:
resolution: {integrity: sha512-XqVS+LQi7ARsFlIftB69+jGN2qQaJNBjQU2b9ZQYt+iaUV9digh+dBIsU0isQIZhaQ1ihxGFfsTYQXE/Oak8Qw==}
engines: {node: ^20.19.0 || >=22.12.0}
hasBin: true
@@ -5674,28 +5674,28 @@ snapshots:
'@oxc-project/types@0.103.0': {}
'@oxfmt/darwin-arm64@0.16.0':
'@oxfmt/darwin-arm64@0.18.0':
optional: true
'@oxfmt/darwin-x64@0.16.0':
'@oxfmt/darwin-x64@0.18.0':
optional: true
'@oxfmt/linux-arm64-gnu@0.16.0':
'@oxfmt/linux-arm64-gnu@0.18.0':
optional: true
'@oxfmt/linux-arm64-musl@0.16.0':
'@oxfmt/linux-arm64-musl@0.18.0':
optional: true
'@oxfmt/linux-x64-gnu@0.16.0':
'@oxfmt/linux-x64-gnu@0.18.0':
optional: true
'@oxfmt/linux-x64-musl@0.16.0':
'@oxfmt/linux-x64-musl@0.18.0':
optional: true
'@oxfmt/win32-arm64@0.16.0':
'@oxfmt/win32-arm64@0.18.0':
optional: true
'@oxfmt/win32-x64@0.16.0':
'@oxfmt/win32-x64@0.18.0':
optional: true
'@oxlint-tsgolint/darwin-arm64@0.9.0':
@@ -7510,16 +7510,18 @@ snapshots:
'@oxc-parser/binding-win32-arm64-msvc': 0.103.0
'@oxc-parser/binding-win32-x64-msvc': 0.103.0
oxfmt@0.16.0:
oxfmt@0.18.0:
dependencies:
tinypool: 2.0.0
optionalDependencies:
'@oxfmt/darwin-arm64': 0.16.0
'@oxfmt/darwin-x64': 0.16.0
'@oxfmt/linux-arm64-gnu': 0.16.0
'@oxfmt/linux-arm64-musl': 0.16.0
'@oxfmt/linux-x64-gnu': 0.16.0
'@oxfmt/linux-x64-musl': 0.16.0
'@oxfmt/win32-arm64': 0.16.0
'@oxfmt/win32-x64': 0.16.0
'@oxfmt/darwin-arm64': 0.18.0
'@oxfmt/darwin-x64': 0.18.0
'@oxfmt/linux-arm64-gnu': 0.18.0
'@oxfmt/linux-arm64-musl': 0.18.0
'@oxfmt/linux-x64-gnu': 0.18.0
'@oxfmt/linux-x64-musl': 0.18.0
'@oxfmt/win32-arm64': 0.18.0
'@oxfmt/win32-x64': 0.18.0
oxlint-tsgolint@0.9.0:
optionalDependencies:
+5 -5
View File
@@ -9,9 +9,9 @@ packages:
- tasks/mcp
catalog:
'@napi-rs/cli': 3.5.0
'@napi-rs/wasm-runtime': 1.1.0
'@types/node': ^25.0.0
"@napi-rs/cli": 3.5.0
"@napi-rs/wasm-runtime": 1.1.0
"@types/node": ^25.0.0
cross-env: ^10.1.0
publint: 0.3.15
rolldown: 1.0.0-beta.54
@@ -20,10 +20,10 @@ catalog:
vitest: 4.0.15
onlyBuiltDependencies:
- '@vscode/vsce-sign@2.0.8'
- "@vscode/vsce-sign@2.0.8"
- esbuild@0.25.11
patchedDependencies:
'@typescript-eslint/scope-manager': patches/@typescript-eslint__scope-manager.patch
"@typescript-eslint/scope-manager": patches/@typescript-eslint__scope-manager.patch
verifyDepsBeforeRun: install
-1
View File
@@ -1 +0,0 @@
compat-table/
+41 -129
View File
@@ -3,9 +3,7 @@
"name": "MemberExpressionLiterals",
"es": "ES5",
"babel": "transform-member-expression-literals",
"features": [
"Object/array literal extensions / Reserved words as property names"
],
"features": ["Object/array literal extensions / Reserved words as property names"],
"targets": {
"chrome": "7",
"opera": "12",
@@ -27,9 +25,7 @@
"name": "PropertyLiterals",
"es": "ES5",
"babel": "transform-property-literals",
"features": [
"Object/array literal extensions / Reserved words as property names"
],
"features": ["Object/array literal extensions / Reserved words as property names"],
"targets": {
"chrome": "7",
"opera": "12",
@@ -51,9 +47,7 @@
"name": "ReservedWords",
"es": "ES5",
"babel": "transform-reserved-words",
"features": [
"Miscellaneous / Unreserved words"
],
"features": ["Miscellaneous / Unreserved words"],
"targets": {
"chrome": "13",
"opera": "10.50",
@@ -99,9 +93,7 @@
{
"name": "TemplateLiterals",
"babel": "transform-template-literals",
"features": [
"template literals"
],
"features": ["template literals"],
"es": "ES2015",
"targets": {
"chrome": "62",
@@ -120,9 +112,7 @@
{
"name": "Literals",
"babel": "transform-literals",
"features": [
"Unicode code point escapes"
],
"features": ["Unicode code point escapes"],
"es": "ES2015",
"targets": {
"chrome": "44",
@@ -142,9 +132,7 @@
{
"name": "FunctionName",
"babel": "transform-function-name",
"features": [
"function \"name\" property"
],
"features": ["function \"name\" property"],
"es": "ES2015",
"targets": {
"chrome": "51",
@@ -194,9 +182,7 @@
{
"name": "BlockScopedFunctions",
"babel": "transform-block-scoped-functions",
"features": [
"block-level function declaration"
],
"features": ["block-level function declaration"],
"es": "ES2015",
"targets": {
"chrome": "41",
@@ -240,9 +226,7 @@
{
"name": "ObjectSuper",
"babel": "transform-object-super",
"features": [
"super"
],
"features": ["super"],
"es": "ES2015",
"targets": {
"chrome": "46",
@@ -261,9 +245,7 @@
{
"name": "ShorthandProperties",
"babel": "transform-shorthand-properties",
"features": [
"object literal extensions / shorthand properties"
],
"features": ["object literal extensions / shorthand properties"],
"es": "ES2015",
"targets": {
"chrome": "43",
@@ -283,9 +265,7 @@
{
"name": "DuplicateKeys",
"babel": "transform-duplicate-keys",
"features": [
"miscellaneous / duplicate property names in strict mode"
],
"features": ["miscellaneous / duplicate property names in strict mode"],
"es": "ES2015",
"targets": {
"chrome": "42",
@@ -304,9 +284,7 @@
{
"name": "ComputedProperties",
"babel": "transform-computed-properties",
"features": [
"object literal extensions / computed properties"
],
"features": ["object literal extensions / computed properties"],
"es": "ES2015",
"targets": {
"chrome": "44",
@@ -326,9 +304,7 @@
{
"name": "ForOf",
"babel": "transform-for-of",
"features": [
"for..of loops"
],
"features": ["for..of loops"],
"es": "ES2015",
"targets": {
"chrome": "51",
@@ -370,9 +346,7 @@
{
"name": "UnicodeEscapes",
"babel": "transform-unicode-escapes",
"features": [
"Unicode code point escapes"
],
"features": ["Unicode code point escapes"],
"es": "ES2015",
"targets": {
"chrome": "44",
@@ -416,11 +390,7 @@
{
"name": "Spread",
"babel": "transform-spread",
"features": [
"spread syntax for iterable objects",
"class",
"super"
],
"features": ["spread syntax for iterable objects", "class", "super"],
"es": "ES2015",
"targets": {
"chrome": "46",
@@ -439,10 +409,7 @@
{
"name": "Destructuring",
"babel": "transform-destructuring",
"features": [
"destructuring, assignment",
"destructuring, declarations"
],
"features": ["destructuring, assignment", "destructuring, declarations"],
"es": "ES2015",
"targets": {
"chrome": "51",
@@ -461,11 +428,7 @@
{
"name": "BlockScoping",
"babel": "transform-block-scoping",
"features": [
"const",
"let",
"generators"
],
"features": ["const", "let", "generators"],
"es": "ES2015",
"targets": {
"chrome": "50",
@@ -484,9 +447,7 @@
{
"name": "TypeofSymbol",
"babel": "transform-typeof-symbol",
"features": [
"Symbol / typeof support"
],
"features": ["Symbol / typeof support"],
"es": "ES2015",
"targets": {
"chrome": "38",
@@ -506,10 +467,7 @@
{
"name": "NewTarget",
"babel": "transform-new-target",
"features": [
"new.target",
"arrow functions / lexical \"new.target\" binding"
],
"features": ["new.target", "arrow functions / lexical \"new.target\" binding"],
"es": "ES2015",
"targets": {
"chrome": "46",
@@ -528,9 +486,7 @@
{
"name": "Regenerator",
"babel": "transform-regenerator",
"features": [
"generators"
],
"features": ["generators"],
"es": "ES2015",
"targets": {
"chrome": "50",
@@ -549,9 +505,7 @@
{
"name": "ExponentiationOperator",
"babel": "transform-exponentiation-operator",
"features": [
"exponentiation (**) operator"
],
"features": ["exponentiation (**) operator"],
"es": "ES2016",
"targets": {
"chrome": "52",
@@ -571,9 +525,7 @@
{
"name": "AsyncToGenerator",
"babel": "transform-async-to-generator",
"features": [
"async functions"
],
"features": ["async functions"],
"es": "ES2017",
"targets": {
"chrome": "55",
@@ -592,9 +544,7 @@
{
"name": "AsyncGeneratorFunctions",
"babel": "transform-async-generator-functions",
"features": [
"Asynchronous Iterators"
],
"features": ["Asynchronous Iterators"],
"es": "ES2018",
"targets": {
"chrome": "63",
@@ -613,9 +563,7 @@
{
"name": "ObjectRestSpread",
"babel": "transform-object-rest-spread",
"features": [
"object rest/spread properties"
],
"features": ["object rest/spread properties"],
"es": "ES2018",
"targets": {
"chrome": "60",
@@ -634,9 +582,7 @@
{
"name": "DotallRegex",
"babel": "transform-dotall-regex",
"features": [
"s (dotAll) flag for regular expressions"
],
"features": ["s (dotAll) flag for regular expressions"],
"es": "ES2018",
"targets": {
"chrome": "62",
@@ -656,9 +602,7 @@
{
"name": "UnicodePropertyRegex",
"babel": "transform-unicode-property-regex",
"features": [
"RegExp Unicode Property Escapes / basic"
],
"features": ["RegExp Unicode Property Escapes / basic"],
"es": "ES2018",
"targets": {
"chrome": "64",
@@ -677,9 +621,7 @@
{
"name": "NamedCapturingGroupsRegex",
"babel": "transform-named-capturing-groups-regex",
"features": [
"RegExp named capture groups"
],
"features": ["RegExp named capture groups"],
"es": "ES2018",
"targets": {
"chrome": "64",
@@ -698,9 +640,7 @@
{
"name": "LookbehindRegex",
"babel": null,
"features": [
"RegExp Lookbehind Assertions"
],
"features": ["RegExp Lookbehind Assertions"],
"es": "ES2018",
"targets": {
"chrome": "62",
@@ -719,9 +659,7 @@
{
"name": "JsonStrings",
"babel": "transform-json-strings",
"features": [
"JSON superset"
],
"features": ["JSON superset"],
"es": "ES2019",
"targets": {
"chrome": "66",
@@ -741,9 +679,7 @@
{
"name": "OptionalCatchBinding",
"babel": "transform-optional-catch-binding",
"features": [
"optional catch binding"
],
"features": ["optional catch binding"],
"es": "ES2019",
"targets": {
"chrome": "66",
@@ -762,9 +698,7 @@
{
"name": "NullishCoalescingOperator",
"babel": "transform-nullish-coalescing-operator",
"features": [
"nullish coalescing operator (??)"
],
"features": ["nullish coalescing operator (??)"],
"es": "ES2020",
"targets": {
"chrome": "80",
@@ -784,9 +718,7 @@
{
"name": "OptionalChaining",
"babel": "transform-optional-chaining",
"features": [
"optional chaining operator (?.)"
],
"features": ["optional chaining operator (?.)"],
"es": "ES2020",
"targets": {
"chrome": "91",
@@ -805,9 +737,7 @@
{
"name": "BigInt",
"babel": null,
"features": [
"BigInt / basic functionality"
],
"features": ["BigInt / basic functionality"],
"es": "ES2020",
"targets": {
"chrome": "67",
@@ -827,9 +757,7 @@
{
"name": "NumericSeparator",
"babel": "transform-numeric-separator",
"features": [
"numeric separators"
],
"features": ["numeric separators"],
"es": "ES2021",
"targets": {
"chrome": "75",
@@ -849,9 +777,7 @@
{
"name": "LogicalAssignmentOperators",
"babel": "transform-logical-assignment-operators",
"features": [
"Logical Assignment"
],
"features": ["Logical Assignment"],
"es": "ES2021",
"targets": {
"chrome": "85",
@@ -870,9 +796,7 @@
{
"name": "ClassStaticBlock",
"babel": "transform-class-static-block",
"features": [
"Class static initialization blocks"
],
"features": ["Class static initialization blocks"],
"es": "ES2022",
"targets": {
"chrome": "94",
@@ -891,9 +815,7 @@
{
"name": "PrivatePropertyInObject",
"babel": "transform-private-property-in-object",
"features": [
"Ergonomic brand checks for private fields"
],
"features": ["Ergonomic brand checks for private fields"],
"es": "ES2022",
"targets": {
"chrome": "91",
@@ -937,9 +859,7 @@
{
"name": "PrivateMethods",
"babel": "transform-private-methods",
"features": [
"private class methods"
],
"features": ["private class methods"],
"es": "ES2022",
"targets": {
"chrome": "84",
@@ -958,9 +878,7 @@
{
"name": "MatchIndicesRegex",
"babel": null,
"features": [
"RegExp Match Indices (`hasIndices` / `d` flag) / constructor supports it"
],
"features": ["RegExp Match Indices (`hasIndices` / `d` flag) / constructor supports it"],
"es": "ES2022",
"targets": {
"chrome": "90",
@@ -1003,9 +921,7 @@
{
"name": "DuplicateNamedCapturingGroupsRegex",
"babel": "transform-duplicate-named-capturing-groups-regex",
"features": [
"Duplicate named capturing groups"
],
"features": ["Duplicate named capturing groups"],
"es": "ES2025",
"targets": {
"chrome": "126",
@@ -1021,9 +937,7 @@
{
"name": "RegexpModifiers",
"babel": "transform-regexp-modifiers",
"features": [
"RegExp Pattern Modifiers"
],
"features": ["RegExp Pattern Modifiers"],
"es": "ES2025",
"targets": {
"chrome": "125",
@@ -1038,9 +952,7 @@
{
"name": "ExplicitResourceManagement",
"babel": "transform-explicit-resource-management",
"features": [
"Explicit Resource Management"
],
"features": ["Explicit Resource Management"],
"es": "ES2026",
"targets": {
"chrome": "134",
+3 -3
View File
@@ -4,6 +4,9 @@
"scripts": {
"test": "vitest run --dir ./test && pnpm -r test run"
},
"dependencies": {
"@types/supertest": "^6.0.3"
},
"devDependencies": {
"alpinejs": "^3.14.9",
"antd": "^6.0.0",
@@ -37,8 +40,5 @@
"vitest": "^4.0.1",
"vue": "^3.5.14",
"yup": "^1.6.1"
},
"dependencies": {
"@types/supertest": "^6.0.3"
}
}
+2 -2
View File
@@ -1,5 +1,5 @@
packages:
- .
- tests/**
- .
- tests/**
verifyDepsBeforeRun: install
+2 -2
View File
@@ -1,8 +1,8 @@
{
"private": true,
"name": "lint_rules",
"main": "./src/main.mjs",
"version": "0.0.0",
"private": true,
"main": "./src/main.mjs",
"dependencies": {
"@next/eslint-plugin-next": "latest",
"@typescript-eslint/eslint-plugin": "latest",
+4 -4
View File
@@ -5,6 +5,9 @@
"scripts": {
"vitest": "vitest"
},
"dependencies": {
"@babel/plugin-transform-typescript": "^7.26.3"
},
"devDependencies": {
"@babel/core": "^7.26.0",
"@babel/plugin-external-helpers": "^7.25.9",
@@ -13,16 +16,13 @@
"@babel/plugin-transform-async-to-generator": "^7.25.9",
"@babel/plugin-transform-class-properties": "^7.25.9",
"@babel/plugin-transform-class-static-block": "^7.26.0",
"@babel/plugin-transform-explicit-resource-management": "^7.25.9",
"@babel/plugin-transform-exponentiation-operator": "^7.25.9",
"@babel/plugin-transform-logical-assignment-operators": "^7.25.9",
"@babel/plugin-transform-explicit-resource-management": "^7.25.9",
"@babel/plugin-transform-optional-chaining": "^7.25.9",
"@babel/plugin-transform-private-methods": "^7.25.9",
"@babel/plugin-transform-private-property-in-object": "^7.25.9",
"@oxc-project/runtime": "link:../../npm/runtime",
"reflect-metadata": "^0.2.2"
},
"dependencies": {
"@babel/plugin-transform-typescript": "^7.26.3"
}
}