Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: oxc-project/oxc
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: oxlint_v0.15.15
Choose a base ref
...
head repository: oxc-project/oxc
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: oxlint_v0.16.0
Choose a head ref
Loading
Showing with 14,352 additions and 1,110 deletions.
  1. +1 −1 .github/actions/clone-submodules/action.yml
  2. +37 −43 Cargo.lock
  3. +25 −25 Cargo.toml
  4. +6 −0 MAINTENANCE.md
  5. +11 −0 apps/oxlint/CHANGELOG.md
  6. +1 −1 apps/oxlint/Cargo.toml
  7. +6 −6 apps/oxlint/src/command/lint.rs
  8. +13 −15 apps/oxlint/src/lint.rs
  9. +1 −1 apps/oxlint/src/snapshots/fixtures__auto_config_detection_debugger.js@oxlint.snap
  10. +37 −0 apps/oxlint/src/snapshots/fixtures__extends_config_--disable-nested-config@oxlint.snap
  11. +21 −13 apps/oxlint/src/snapshots/fixtures__extends_config_overrides@oxlint.snap
  12. +20 −0 apps/oxlint/src/snapshots/fixtures__extends_config_overrides_same_directory@oxlint.snap
  13. +43 −0 apps/oxlint/src/snapshots/fixtures__nested_config_--config oxlint-no-console.json@oxlint.snap
  14. +12 −0 ...t/src/snapshots/fixtures__nested_config_-A no-console --config oxlint-no-console.json@oxlint.snap
  15. +34 −0 apps/oxlint/src/snapshots/fixtures__nested_config_-A no-console@oxlint.snap
  16. +57 −0 apps/oxlint/src/snapshots/fixtures__nested_config_@oxlint.snap
  17. +1 −1 apps/oxlint/src/snapshots/fixtures__output_formatter_diagnostic_--format=default test.js@oxlint.snap
  18. +1 −1 crates/oxc/Cargo.toml
  19. +27 −0 crates/oxc_allocator/CHANGELOG.md
  20. +2 −1 crates/oxc_allocator/Cargo.toml
  21. +0 −22 crates/oxc_allocator/src/boxed.rs
  22. +3 −0 crates/oxc_allocator/src/clone_in.rs
  23. +1 −0 crates/oxc_allocator/src/lib.rs
  24. +12 −3 crates/oxc_allocator/src/string.rs
  25. +12 −68 crates/oxc_allocator/src/vec.rs
  26. +158 −21 crates/oxc_allocator/src/vec2/mod.rs
  27. +117 −23 crates/oxc_allocator/src/vec2/raw_vec.rs
  28. +19 −0 crates/oxc_ast/CHANGELOG.md
  29. +1 −1 crates/oxc_ast/Cargo.toml
  30. +8 −0 crates/oxc_ast/src/ast/jsx.rs
  31. +1 −0 crates/oxc_ast/src/ast_impl/js.rs
  32. +4 −2 crates/oxc_ast/src/generated/assert_layouts.rs
  33. +14 −6 crates/oxc_ast/src/generated/ast_builder.rs
  34. +1 −0 crates/oxc_ast/src/generated/derive_clone_in.rs
  35. +5 −2 crates/oxc_ast/src/generated/derive_estree.rs
  36. +10 −0 crates/oxc_ast/src/serialize.rs
  37. +1 −1 crates/oxc_ast_macros/Cargo.toml
  38. +6 −0 crates/oxc_ast_visit/CHANGELOG.md
  39. +1 −1 crates/oxc_ast_visit/Cargo.toml
  40. +1 −1 crates/oxc_cfg/Cargo.toml
  41. +6 −0 crates/oxc_codegen/CHANGELOG.md
  42. +1 −1 crates/oxc_codegen/Cargo.toml
  43. +1 −1 crates/oxc_data_structures/Cargo.toml
  44. +1 −1 crates/oxc_diagnostics/Cargo.toml
  45. +1 −1 crates/oxc_ecmascript/Cargo.toml
  46. +1 −1 crates/oxc_estree/Cargo.toml
  47. +6 −0 crates/oxc_isolated_declarations/CHANGELOG.md
  48. +1 −1 crates/oxc_isolated_declarations/Cargo.toml
  49. +15 −12 crates/oxc_isolated_declarations/src/lib.rs
  50. +1 −1 crates/oxc_language_server/Cargo.toml
  51. +29 −0 crates/oxc_linter/CHANGELOG.md
  52. +1 −1 crates/oxc_linter/Cargo.toml
  53. +4 −1 crates/oxc_linter/src/config/config_builder.rs
  54. +2 −0 crates/oxc_linter/src/rules.rs
  55. +2 −7 crates/oxc_linter/src/rules/eslint/curly.rs
  56. +43 −8 crates/oxc_linter/src/rules/eslint/no_async_promise_executor.rs
  57. +53 −6 crates/oxc_linter/src/rules/eslint/no_class_assign.rs
  58. +290 −0 crates/oxc_linter/src/rules/eslint/no_lonely_if.rs
  59. +66 −4 crates/oxc_linter/src/rules/eslint/no_self_assign.rs
  60. +46 −10 crates/oxc_linter/src/rules/eslint/valid_typeof.rs
  61. +10 −4 crates/oxc_linter/src/rules/jsx_a11y/anchor_ambiguous_text.rs
  62. +36 −33 crates/oxc_linter/src/rules/nextjs/no_async_client_component.rs
  63. +1 −1 crates/oxc_linter/src/rules/oxc/bad_min_max_func.rs
  64. +53 −34 crates/oxc_linter/src/rules/typescript/no_misused_new.rs
  65. +51 −21 crates/oxc_linter/src/rules/typescript/no_unnecessary_type_constraint.rs
  66. +30 −31 crates/oxc_linter/src/rules/unicorn/catch_error_name.rs
  67. +27 −26 crates/oxc_linter/src/rules/unicorn/consistent_date_clone.rs
  68. +88 −56 crates/oxc_linter/src/rules/unicorn/filename_case.rs
  69. +84 −0 crates/oxc_linter/src/snapshots/eslint_no_lonely_if.snap
  70. +57 −28 crates/oxc_linter/src/snapshots/jsx_a11y_anchor_ambiguous_text.snap
  71. +6 −0 crates/oxc_linter/src/snapshots/unicorn_catch_error_name.snap
  72. +6 −0 crates/oxc_mangler/CHANGELOG.md
  73. +1 −1 crates/oxc_mangler/Cargo.toml
  74. +4 −1 crates/oxc_mangler/src/lib.rs
  75. +6 −0 crates/oxc_minifier/CHANGELOG.md
  76. +1 −1 crates/oxc_minifier/Cargo.toml
  77. +9 −5 crates/oxc_minifier/README.md
  78. +4 −1 crates/oxc_minifier/src/options.rs
  79. +7 −1 crates/oxc_minifier/src/peephole/substitute_alternate_syntax.rs
  80. +1 −1 crates/oxc_napi/Cargo.toml
  81. +11 −0 crates/oxc_parser/CHANGELOG.md
  82. +1 −1 crates/oxc_parser/Cargo.toml
  83. +6 −14 crates/oxc_parser/src/js/class.rs
  84. +5 −1 crates/oxc_parser/src/js/declaration.rs
  85. +1 −1 crates/oxc_parser/src/js/expression.rs
  86. +7 −1 crates/oxc_parser/src/jsx/mod.rs
  87. +1 −1 crates/oxc_regular_expression/Cargo.toml
  88. +1 −1 crates/oxc_semantic/Cargo.toml
  89. +1 −1 crates/oxc_span/Cargo.toml
  90. +1 −1 crates/oxc_syntax/Cargo.toml
  91. +44 −0 crates/oxc_transformer/CHANGELOG.md
  92. +1 −1 crates/oxc_transformer/Cargo.toml
  93. +24 −9 crates/oxc_transformer/src/lib.rs
  94. +3 −1 crates/oxc_transformer/src/options/babel/plugins.rs
  95. +251 −272 crates/oxc_transformer/src/options/es_features.rs
  96. +8 −0 crates/oxc_transformer/src/options/mod.rs
  97. +5 −31 crates/oxc_transformer/src/proposals/explicit_resource_management.rs
  98. +5 −1 crates/oxc_transformer/src/proposals/mod.rs
  99. +4 −0 crates/oxc_transformer/src/proposals/options.rs
  100. +6 −0 crates/oxc_traverse/CHANGELOG.md
  101. +1 −1 crates/oxc_traverse/Cargo.toml
  102. +20 −3 crates/oxc_traverse/src/context/mod.rs
  103. +18 −0 crates/oxc_traverse/src/context/scoping.rs
  104. +6 −0 editors/vscode/CHANGELOG.md
  105. +3 −1 editors/vscode/client/Config.ts
  106. +32 −6 editors/vscode/client/extension.ts
  107. +1 −1 editors/vscode/package.json
  108. +1 −1 justfile
  109. +6 −0 napi/minify/CHANGELOG.md
  110. +46 −0 napi/minify/README.md
  111. +17 −12 napi/minify/index.d.ts
  112. +1 −1 napi/minify/package.json
  113. +2 −6 napi/minify/src/lib.rs
  114. +29 −11 napi/minify/src/options.rs
  115. +7 −1 napi/minify/test/minify.test.ts
  116. +46 −0 napi/parser/CHANGELOG.md
  117. +1 −1 napi/parser/Cargo.toml
  118. +4 −12 napi/parser/README.md
  119. +5 −2 napi/parser/deserialize-js.js
  120. +5 −2 napi/parser/deserialize-ts.js
  121. +1 −1 napi/parser/package.json
  122. +24 −0 napi/transform/CHANGELOG.md
  123. +1 −1 napi/transform/Cargo.toml
  124. +1 −1 napi/transform/package.json
  125. +3 −2 napi/transform/src/transformer.rs
  126. +15 −0 npm/oxc-types/CHANGELOG.md
  127. +1 −1 npm/oxc-types/package.json
  128. +5 −2 npm/oxc-types/types.d.ts
  129. +1 −1 npm/oxlint/package.json
  130. +4 −9 npm/parser-wasm/README.md
  131. +1 −1 npm/parser-wasm/package.json
  132. +1 −1 npm/runtime/package.json
  133. +1 −1 tasks/compat_data/package.json
  134. +1 −15 tasks/compat_data/src/lib.rs
  135. +13 −0 tasks/coverage/snapshots/estree_acorn_jsx.snap
  136. +11,495 −0 tasks/coverage/snapshots/estree_typescript.snap
  137. +12 −12 tasks/coverage/snapshots/semantic_babel.snap
  138. +58 −79 tasks/coverage/snapshots/semantic_typescript.snap
  139. +1 −9 tasks/coverage/snapshots/transformer_babel.snap
  140. +1 −3 tasks/coverage/snapshots/transformer_typescript.snap
  141. +3 −0 tasks/coverage/src/lib.rs
  142. +230 −1 tasks/coverage/src/tools/estree.rs
  143. +3 −1 tasks/transform_conformance/snapshots/babel.snap.md
  144. +27 −2 tasks/transform_conformance/snapshots/oxc.snap.md
  145. +1 −0 tasks/transform_conformance/src/test_case.rs
  146. +3 −2 ...e/tests/babel-plugin-proposal-explicit-resource-management/test/fixtures/for-of-no-block/input.js
  147. +2 −2 .../tests/babel-plugin-proposal-explicit-resource-management/test/fixtures/for-of-no-block/output.js
  148. +5 −0 ...lugin-proposal-explicit-resource-management/test/fixtures/function-with-scopes-in-params/input.js
  149. +3 −0 ...n-proposal-explicit-resource-management/test/fixtures/function-with-scopes-in-params/options.json
  150. +11 −0 ...ugin-proposal-explicit-resource-management/test/fixtures/function-with-scopes-in-params/output.js
  151. +2 −2 tasks/website/src/linter/snapshots/cli.snap
  152. +1 −2 tasks/website/src/linter/snapshots/cli_terminal.snap
  153. +1 −1 wasm/parser/package.json
2 changes: 1 addition & 1 deletion .github/actions/clone-submodules/action.yml
Original file line number Diff line number Diff line change
@@ -38,4 +38,4 @@ runs:
show-progress: false
repository: oxc-project/acorn-test262
path: tasks/coverage/acorn-test262
ref: 3d7013e145499268dc8f985d087208aa013e0ba2 # Latest main at 4/3/25
ref: ad6f20525e19e8fb66c35f3513ed0fa7ac06fbd8 # Latest main at 14/3/25
80 changes: 37 additions & 43 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

50 changes: 25 additions & 25 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -103,30 +103,30 @@ doc_lazy_continuation = "allow" # FIXME

[workspace.dependencies]
# publish = true
oxc = { version = "0.57.0", path = "crates/oxc" }
oxc_allocator = { version = "0.57.0", path = "crates/oxc_allocator" }
oxc_ast = { version = "0.57.0", path = "crates/oxc_ast" }
oxc_ast_macros = { version = "0.57.0", path = "crates/oxc_ast_macros" }
oxc_ast_visit = { version = "0.57.0", path = "crates/oxc_ast_visit" }
oxc_cfg = { version = "0.57.0", path = "crates/oxc_cfg" }
oxc_codegen = { version = "0.57.0", path = "crates/oxc_codegen" }
oxc_data_structures = { version = "0.57.0", path = "crates/oxc_data_structures" }
oxc_diagnostics = { version = "0.57.0", path = "crates/oxc_diagnostics" }
oxc_ecmascript = { version = "0.57.0", path = "crates/oxc_ecmascript" }
oxc_estree = { version = "0.57.0", path = "crates/oxc_estree" }
oxc_isolated_declarations = { version = "0.57.0", path = "crates/oxc_isolated_declarations" }
oxc_mangler = { version = "0.57.0", path = "crates/oxc_mangler" }
oxc_minifier = { version = "0.57.0", path = "crates/oxc_minifier" }
oxc_napi = { version = "0.57.0", path = "crates/oxc_napi" }
oxc_parser = { version = "0.57.0", path = "crates/oxc_parser" }
oxc_parser_napi = { version = "0.57.0", path = "napi/parser" }
oxc_regular_expression = { version = "0.57.0", path = "crates/oxc_regular_expression" }
oxc_semantic = { version = "0.57.0", path = "crates/oxc_semantic" }
oxc_span = { version = "0.57.0", path = "crates/oxc_span" }
oxc_syntax = { version = "0.57.0", path = "crates/oxc_syntax" }
oxc_transform_napi = { version = "0.57.0", path = "napi/transform" }
oxc_transformer = { version = "0.57.0", path = "crates/oxc_transformer" }
oxc_traverse = { version = "0.57.0", path = "crates/oxc_traverse" }
oxc = { version = "0.58.1", path = "crates/oxc" }
oxc_allocator = { version = "0.58.1", path = "crates/oxc_allocator" }
oxc_ast = { version = "0.58.1", path = "crates/oxc_ast" }
oxc_ast_macros = { version = "0.58.1", path = "crates/oxc_ast_macros" }
oxc_ast_visit = { version = "0.58.1", path = "crates/oxc_ast_visit" }
oxc_cfg = { version = "0.58.1", path = "crates/oxc_cfg" }
oxc_codegen = { version = "0.58.1", path = "crates/oxc_codegen" }
oxc_data_structures = { version = "0.58.1", path = "crates/oxc_data_structures" }
oxc_diagnostics = { version = "0.58.1", path = "crates/oxc_diagnostics" }
oxc_ecmascript = { version = "0.58.1", path = "crates/oxc_ecmascript" }
oxc_estree = { version = "0.58.1", path = "crates/oxc_estree" }
oxc_isolated_declarations = { version = "0.58.1", path = "crates/oxc_isolated_declarations" }
oxc_mangler = { version = "0.58.1", path = "crates/oxc_mangler" }
oxc_minifier = { version = "0.58.1", path = "crates/oxc_minifier" }
oxc_napi = { version = "0.58.1", path = "crates/oxc_napi" }
oxc_parser = { version = "0.58.1", path = "crates/oxc_parser" }
oxc_parser_napi = { version = "0.58.1", path = "napi/parser" }
oxc_regular_expression = { version = "0.58.1", path = "crates/oxc_regular_expression" }
oxc_semantic = { version = "0.58.1", path = "crates/oxc_semantic" }
oxc_span = { version = "0.58.1", path = "crates/oxc_span" }
oxc_syntax = { version = "0.58.1", path = "crates/oxc_syntax" }
oxc_transform_napi = { version = "0.58.1", path = "napi/transform" }
oxc_transformer = { version = "0.58.1", path = "crates/oxc_transformer" }
oxc_traverse = { version = "0.58.1", path = "crates/oxc_traverse" }

# publish = false
oxc_linter = { path = "crates/oxc_linter" }
@@ -196,7 +196,7 @@ lazy_static = "1.5.0"
log = "0.4.25"
markdown = "1.0.0-alpha.22"
memchr = "2.7.4"
miette = { package = "oxc-miette", version = "1.0.2", features = ["fancy-no-syscall"] }
miette = { package = "oxc-miette", version = "2.1.2", features = ["fancy-no-syscall"] }
mimalloc = "0.1.43"
nonmax = "0.5.5"
num-bigint = "0.4.6"
6 changes: 6 additions & 0 deletions MAINTENANCE.md
Original file line number Diff line number Diff line change
@@ -11,3 +11,9 @@
## Release Crates

- Run [Prepare Release Crates] https://github.com/oxc-project/oxc/actions/workflows/prepare_release_crates.yml

## Update `VSCE_PERSONAL_ACCESS_TOKEN`

- Visit https://dev.azure.com/boshenc/_usersSettings/tokens
- Change to "Access scope: All accessible organizations"
- Edit Token
Loading