diff --git a/Cargo.lock b/Cargo.lock index 79d07be61c620..3243a33ccb0a5 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1272,7 +1272,7 @@ checksum = "caff54706df99d2a78a5a4e3455ff45448d81ef1bb63c22cd14052ca0e993a3f" [[package]] name = "oxc" -version = "0.16.2" +version = "0.16.3" dependencies = [ "oxc_allocator", "oxc_ast", @@ -1308,7 +1308,7 @@ dependencies = [ [[package]] name = "oxc_allocator" -version = "0.16.2" +version = "0.16.3" dependencies = [ "allocator-api2", "bumpalo", @@ -1318,7 +1318,7 @@ dependencies = [ [[package]] name = "oxc_ast" -version = "0.16.2" +version = "0.16.3" dependencies = [ "bitflags 2.6.0", "num-bigint", @@ -1349,7 +1349,7 @@ dependencies = [ [[package]] name = "oxc_ast_macros" -version = "0.16.2" +version = "0.16.3" [[package]] name = "oxc_benchmark" @@ -1373,7 +1373,7 @@ dependencies = [ [[package]] name = "oxc_cfg" -version = "0.16.2" +version = "0.16.3" dependencies = [ "bitflags 2.6.0", "itertools 0.13.0", @@ -1384,7 +1384,7 @@ dependencies = [ [[package]] name = "oxc_codegen" -version = "0.16.2" +version = "0.16.3" dependencies = [ "base64", "bitflags 2.6.0", @@ -1436,7 +1436,7 @@ dependencies = [ [[package]] name = "oxc_diagnostics" -version = "0.16.2" +version = "0.16.3" dependencies = [ "miette", "owo-colors", @@ -1446,14 +1446,14 @@ dependencies = [ [[package]] name = "oxc_index" -version = "0.16.2" +version = "0.16.3" dependencies = [ "serde", ] [[package]] name = "oxc_isolated_declarations" -version = "0.16.2" +version = "0.16.3" dependencies = [ "insta", "oxc_allocator", @@ -1548,7 +1548,7 @@ dependencies = [ [[package]] name = "oxc_minifier" -version = "0.16.2" +version = "0.16.3" dependencies = [ "insta", "itertools 0.13.0", @@ -1583,7 +1583,7 @@ dependencies = [ [[package]] name = "oxc_module_lexer" -version = "0.16.2" +version = "0.16.3" dependencies = [ "oxc_allocator", "oxc_ast", @@ -1593,7 +1593,7 @@ dependencies = [ [[package]] name = "oxc_parser" -version = "0.16.2" +version = "0.16.3" dependencies = [ "assert-unchecked", "bitflags 2.6.0", @@ -1687,7 +1687,7 @@ dependencies = [ [[package]] name = "oxc_semantic" -version = "0.16.2" +version = "0.16.3" dependencies = [ "indexmap", "insta", @@ -1709,7 +1709,7 @@ dependencies = [ [[package]] name = "oxc_sourcemap" -version = "0.16.2" +version = "0.16.3" dependencies = [ "base64-simd", "cfg-if", @@ -1721,7 +1721,7 @@ dependencies = [ [[package]] name = "oxc_span" -version = "0.16.2" +version = "0.16.3" dependencies = [ "compact_str", "miette", @@ -1732,7 +1732,7 @@ dependencies = [ [[package]] name = "oxc_syntax" -version = "0.16.2" +version = "0.16.3" dependencies = [ "bitflags 2.6.0", "dashmap 6.0.1", @@ -1776,7 +1776,7 @@ dependencies = [ [[package]] name = "oxc_transform_napi" -version = "0.16.2" +version = "0.16.3" dependencies = [ "napi", "napi-build", @@ -1791,7 +1791,7 @@ dependencies = [ [[package]] name = "oxc_transformer" -version = "0.16.2" +version = "0.16.3" dependencies = [ "dashmap 6.0.1", "indexmap", @@ -1813,7 +1813,7 @@ dependencies = [ [[package]] name = "oxc_traverse" -version = "0.16.2" +version = "0.16.3" dependencies = [ "compact_str", "memoffset", diff --git a/Cargo.toml b/Cargo.toml index 429ce807b8c38..4dec01dec2476 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -74,25 +74,25 @@ cargo_common_metadata = "allow" # TODO: fix this [workspace.dependencies] # publish = true -oxc = { version = "0.16.2", path = "crates/oxc" } -oxc_allocator = { version = "0.16.2", path = "crates/oxc_allocator" } -oxc_ast = { version = "0.16.2", path = "crates/oxc_ast" } -oxc_codegen = { version = "0.16.2", path = "crates/oxc_codegen" } -oxc_diagnostics = { version = "0.16.2", path = "crates/oxc_diagnostics" } -oxc_index = { version = "0.16.2", path = "crates/oxc_index" } -oxc_minifier = { version = "0.16.2", path = "crates/oxc_minifier" } -oxc_parser = { version = "0.16.2", path = "crates/oxc_parser" } -oxc_semantic = { version = "0.16.2", path = "crates/oxc_semantic" } -oxc_span = { version = "0.16.2", path = "crates/oxc_span" } -oxc_syntax = { version = "0.16.2", path = "crates/oxc_syntax" } -oxc_transformer = { version = "0.16.2", path = "crates/oxc_transformer" } -oxc_sourcemap = { version = "0.16.2", path = "crates/oxc_sourcemap" } -oxc_ast_macros = { version = "0.16.2", path = "crates/oxc_ast_macros" } -oxc_traverse = { version = "0.16.2", path = "crates/oxc_traverse" } -oxc_module_lexer = { version = "0.16.2", path = "crates/oxc_module_lexer" } -oxc_cfg = { version = "0.16.2", path = "crates/oxc_cfg" } -oxc_isolated_declarations = { version = "0.16.2", path = "crates/oxc_isolated_declarations" } -oxc_transform_napi = { version = "0.16.2", path = "napi/transform" } +oxc = { version = "0.16.3", path = "crates/oxc" } +oxc_allocator = { version = "0.16.3", path = "crates/oxc_allocator" } +oxc_ast = { version = "0.16.3", path = "crates/oxc_ast" } +oxc_codegen = { version = "0.16.3", path = "crates/oxc_codegen" } +oxc_diagnostics = { version = "0.16.3", path = "crates/oxc_diagnostics" } +oxc_index = { version = "0.16.3", path = "crates/oxc_index" } +oxc_minifier = { version = "0.16.3", path = "crates/oxc_minifier" } +oxc_parser = { version = "0.16.3", path = "crates/oxc_parser" } +oxc_semantic = { version = "0.16.3", path = "crates/oxc_semantic" } +oxc_span = { version = "0.16.3", path = "crates/oxc_span" } +oxc_syntax = { version = "0.16.3", path = "crates/oxc_syntax" } +oxc_transformer = { version = "0.16.3", path = "crates/oxc_transformer" } +oxc_sourcemap = { version = "0.16.3", path = "crates/oxc_sourcemap" } +oxc_ast_macros = { version = "0.16.3", path = "crates/oxc_ast_macros" } +oxc_traverse = { version = "0.16.3", path = "crates/oxc_traverse" } +oxc_module_lexer = { version = "0.16.3", path = "crates/oxc_module_lexer" } +oxc_cfg = { version = "0.16.3", path = "crates/oxc_cfg" } +oxc_isolated_declarations = { version = "0.16.3", path = "crates/oxc_isolated_declarations" } +oxc_transform_napi = { version = "0.16.3", path = "napi/transform" } # publish = false oxc_macros = { path = "crates/oxc_macros" } diff --git a/crates/oxc/Cargo.toml b/crates/oxc/Cargo.toml index bc9421a03485a..339ea73319abf 100644 --- a/crates/oxc/Cargo.toml +++ b/crates/oxc/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc" -version = "0.16.2" +version = "0.16.3" publish = true authors.workspace = true description.workspace = true diff --git a/crates/oxc_allocator/Cargo.toml b/crates/oxc_allocator/Cargo.toml index 310c5981ba9b9..1dcdd5337bc58 100644 --- a/crates/oxc_allocator/Cargo.toml +++ b/crates/oxc_allocator/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_allocator" -version = "0.16.2" +version = "0.16.3" authors.workspace = true description.workspace = true edition.workspace = true diff --git a/crates/oxc_ast/CHANGELOG.md b/crates/oxc_ast/CHANGELOG.md index 52111e957e942..4550977d13ef0 100644 --- a/crates/oxc_ast/CHANGELOG.md +++ b/crates/oxc_ast/CHANGELOG.md @@ -4,6 +4,20 @@ All notable changes to this package will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project does not adhere to [Semantic Versioning](https://semver.org/spec/v2.0.0.html) until v1.0.0. +## [0.16.3] - 2024-07-02 + +### Features + +- b257d53 linter: Support report `@typescript-eslint/consistent-type-imports` (#3895) (mysteryven) + +### Bug Fixes + +- d995f94 semantic: Resolve reference incorrectly when a parameter references a parameter that hasn't been defined yet (#4004) (Dunqing) + +### Refactor + +- 0fe22a8 ast: Reorder fields to reflect their visit order. (#3994) (rzvxa) + ## [0.16.2] - 2024-06-30 ### Features diff --git a/crates/oxc_ast/Cargo.toml b/crates/oxc_ast/Cargo.toml index 66fca561b6f68..85f88b6070908 100644 --- a/crates/oxc_ast/Cargo.toml +++ b/crates/oxc_ast/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_ast" -version = "0.16.2" +version = "0.16.3" authors.workspace = true description.workspace = true edition.workspace = true diff --git a/crates/oxc_ast_macros/Cargo.toml b/crates/oxc_ast_macros/Cargo.toml index 737541d8f43cf..c10dc3fe041ef 100644 --- a/crates/oxc_ast_macros/Cargo.toml +++ b/crates/oxc_ast_macros/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_ast_macros" -version = "0.16.2" +version = "0.16.3" publish = true authors.workspace = true description.workspace = true diff --git a/crates/oxc_cfg/Cargo.toml b/crates/oxc_cfg/Cargo.toml index a12ea0fa1502d..fd445ec7bf0bf 100644 --- a/crates/oxc_cfg/Cargo.toml +++ b/crates/oxc_cfg/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_cfg" -version = "0.16.2" +version = "0.16.3" publish = true authors.workspace = true description.workspace = true diff --git a/crates/oxc_codegen/CHANGELOG.md b/crates/oxc_codegen/CHANGELOG.md index d82a7658d0325..a3f09e7b07d44 100644 --- a/crates/oxc_codegen/CHANGELOG.md +++ b/crates/oxc_codegen/CHANGELOG.md @@ -4,6 +4,12 @@ All notable changes to this package will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project does not adhere to [Semantic Versioning](https://semver.org/spec/v2.0.0.html) until v1.0.0. +## [0.16.3] - 2024-07-02 + +### Bug Fixes + +- 23038ad codegen: Print `TSFunctionType` inside `TSTypeAssertion` (#3999) (Boshen) + ## [0.16.2] - 2024-06-30 ### Features diff --git a/crates/oxc_codegen/Cargo.toml b/crates/oxc_codegen/Cargo.toml index e306473655f2e..9a58927a727d1 100644 --- a/crates/oxc_codegen/Cargo.toml +++ b/crates/oxc_codegen/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_codegen" -version = "0.16.2" +version = "0.16.3" publish = true authors.workspace = true description.workspace = true diff --git a/crates/oxc_diagnostics/Cargo.toml b/crates/oxc_diagnostics/Cargo.toml index 16172cde9cb76..6d4987ccaed39 100644 --- a/crates/oxc_diagnostics/Cargo.toml +++ b/crates/oxc_diagnostics/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_diagnostics" -version = "0.16.2" +version = "0.16.3" authors.workspace = true description.workspace = true edition.workspace = true diff --git a/crates/oxc_index/Cargo.toml b/crates/oxc_index/Cargo.toml index b8513472a0b80..dab84e0b43eab 100644 --- a/crates/oxc_index/Cargo.toml +++ b/crates/oxc_index/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_index" -version = "0.16.2" +version = "0.16.3" publish = true authors.workspace = true description.workspace = true diff --git a/crates/oxc_isolated_declarations/Cargo.toml b/crates/oxc_isolated_declarations/Cargo.toml index a2fcfa9f8f363..f773dee277761 100644 --- a/crates/oxc_isolated_declarations/Cargo.toml +++ b/crates/oxc_isolated_declarations/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_isolated_declarations" -version = "0.16.2" +version = "0.16.3" publish = true authors.workspace = true description.workspace = true diff --git a/crates/oxc_minifier/Cargo.toml b/crates/oxc_minifier/Cargo.toml index 5b54a4402bb0c..c66741fb59dce 100644 --- a/crates/oxc_minifier/Cargo.toml +++ b/crates/oxc_minifier/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_minifier" -version = "0.16.2" +version = "0.16.3" publish = true authors.workspace = true description.workspace = true diff --git a/crates/oxc_module_lexer/Cargo.toml b/crates/oxc_module_lexer/Cargo.toml index 75bf0cbb7037b..1b086e8d601cb 100644 --- a/crates/oxc_module_lexer/Cargo.toml +++ b/crates/oxc_module_lexer/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_module_lexer" -version = "0.16.2" +version = "0.16.3" publish = true authors.workspace = true description.workspace = true diff --git a/crates/oxc_parser/CHANGELOG.md b/crates/oxc_parser/CHANGELOG.md index 6f81c33fb238f..7450ca99b909b 100644 --- a/crates/oxc_parser/CHANGELOG.md +++ b/crates/oxc_parser/CHANGELOG.md @@ -4,6 +4,12 @@ All notable changes to this package will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project does not adhere to [Semantic Versioning](https://semver.org/spec/v2.0.0.html) until v1.0.0. +## [0.16.3] - 2024-07-02 + +### Refactor + +- d0eac46 parser: Use function instead of trait to parse normal lists (#4003) (Boshen) + ## [0.16.2] - 2024-06-30 ### Features diff --git a/crates/oxc_parser/Cargo.toml b/crates/oxc_parser/Cargo.toml index 2dd60ef49aa46..72b2465b98480 100644 --- a/crates/oxc_parser/Cargo.toml +++ b/crates/oxc_parser/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_parser" -version = "0.16.2" +version = "0.16.3" authors.workspace = true description.workspace = true edition.workspace = true diff --git a/crates/oxc_semantic/CHANGELOG.md b/crates/oxc_semantic/CHANGELOG.md index 466df02e0f633..f5113ac59504b 100644 --- a/crates/oxc_semantic/CHANGELOG.md +++ b/crates/oxc_semantic/CHANGELOG.md @@ -4,6 +4,12 @@ All notable changes to this package will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project does not adhere to [Semantic Versioning](https://semver.org/spec/v2.0.0.html) until v1.0.0. +## [0.16.3] - 2024-07-02 + +### Bug Fixes + +- d995f94 semantic: Resolve reference incorrectly when a parameter references a parameter that hasn't been defined yet (#4004) (Dunqing) + ## [0.16.2] - 2024-06-30 ### Performance diff --git a/crates/oxc_semantic/Cargo.toml b/crates/oxc_semantic/Cargo.toml index 152bcc36fcc38..b417e5ea078b3 100644 --- a/crates/oxc_semantic/Cargo.toml +++ b/crates/oxc_semantic/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_semantic" -version = "0.16.2" +version = "0.16.3" authors.workspace = true description.workspace = true edition.workspace = true diff --git a/crates/oxc_sourcemap/Cargo.toml b/crates/oxc_sourcemap/Cargo.toml index f412d1f85cbcc..4e71ff07f1945 100644 --- a/crates/oxc_sourcemap/Cargo.toml +++ b/crates/oxc_sourcemap/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_sourcemap" -version = "0.16.2" +version = "0.16.3" authors.workspace = true description.workspace = true edition.workspace = true diff --git a/crates/oxc_span/Cargo.toml b/crates/oxc_span/Cargo.toml index 8b2b4089a1f43..51954488c89f9 100644 --- a/crates/oxc_span/Cargo.toml +++ b/crates/oxc_span/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_span" -version = "0.16.2" +version = "0.16.3" publish = true authors.workspace = true description.workspace = true diff --git a/crates/oxc_syntax/CHANGELOG.md b/crates/oxc_syntax/CHANGELOG.md index ba954a1256577..03dfaa0acdb78 100644 --- a/crates/oxc_syntax/CHANGELOG.md +++ b/crates/oxc_syntax/CHANGELOG.md @@ -4,6 +4,12 @@ All notable changes to this package will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project does not adhere to [Semantic Versioning](https://semver.org/spec/v2.0.0.html) until v1.0.0. +## [0.16.3] - 2024-07-02 + +### Bug Fixes + +- d995f94 semantic: Resolve reference incorrectly when a parameter references a parameter that hasn't been defined yet (#4004) (Dunqing) + ## [0.16.2] - 2024-06-30 ### Performance diff --git a/crates/oxc_syntax/Cargo.toml b/crates/oxc_syntax/Cargo.toml index 542d03f3e7586..e83f4e4d252fc 100644 --- a/crates/oxc_syntax/Cargo.toml +++ b/crates/oxc_syntax/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_syntax" -version = "0.16.2" +version = "0.16.3" publish = true authors.workspace = true description.workspace = true diff --git a/crates/oxc_transformer/CHANGELOG.md b/crates/oxc_transformer/CHANGELOG.md index 6b90a2e92683b..27f2980fc4d97 100644 --- a/crates/oxc_transformer/CHANGELOG.md +++ b/crates/oxc_transformer/CHANGELOG.md @@ -4,6 +4,13 @@ All notable changes to this package will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project does not adhere to [Semantic Versioning](https://semver.org/spec/v2.0.0.html) until v1.0.0. +## [0.16.3] - 2024-07-02 + +### Bug Fixes + +- bdee156 transformer/typescript: `declare class` incorrectly preserved as runtime class (#3997) (Dunqing) +- a50ce3d transformer/typescript: Missing initializer for class constructor arguments with `private` and `protected` modifier (#3996) (Dunqing) + ## [0.16.2] - 2024-06-30 ### Performance diff --git a/crates/oxc_transformer/Cargo.toml b/crates/oxc_transformer/Cargo.toml index a46c75439c2b0..db59eb2baa27a 100644 --- a/crates/oxc_transformer/Cargo.toml +++ b/crates/oxc_transformer/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_transformer" -version = "0.16.2" +version = "0.16.3" publish = true authors.workspace = true description.workspace = true diff --git a/crates/oxc_traverse/CHANGELOG.md b/crates/oxc_traverse/CHANGELOG.md index 78cc6e3a2c6b6..aa7966302533d 100644 --- a/crates/oxc_traverse/CHANGELOG.md +++ b/crates/oxc_traverse/CHANGELOG.md @@ -4,6 +4,12 @@ All notable changes to this package will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project does not adhere to [Semantic Versioning](https://semver.org/spec/v2.0.0.html) until v1.0.0. +## [0.16.3] - 2024-07-02 + +### Refactor + +- 0fe22a8 ast: Reorder fields to reflect their visit order. (#3994) (rzvxa) + ## [0.16.2] - 2024-06-30 ### Features diff --git a/crates/oxc_traverse/Cargo.toml b/crates/oxc_traverse/Cargo.toml index bf731f55b7a5f..bad64e980c62a 100644 --- a/crates/oxc_traverse/Cargo.toml +++ b/crates/oxc_traverse/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_traverse" -version = "0.16.2" +version = "0.16.3" publish = true authors.workspace = true description.workspace = true diff --git a/napi/transform/Cargo.toml b/napi/transform/Cargo.toml index a9a6b4c1adc9d..dc203cc9309ad 100644 --- a/napi/transform/Cargo.toml +++ b/napi/transform/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_transform_napi" -version = "0.16.2" +version = "0.16.3" publish = true authors.workspace = true description.workspace = true diff --git a/npm/oxc-parser/package.json b/npm/oxc-parser/package.json index b31f31cb03b75..c7c1118d0f2f2 100644 --- a/npm/oxc-parser/package.json +++ b/npm/oxc-parser/package.json @@ -1,6 +1,6 @@ { "name": "oxc-parser", - "version": "0.16.2", + "version": "0.16.3", "description": "Oxc Parser Node API", "keywords": [ "Parser" diff --git a/npm/oxc-transform/package.json b/npm/oxc-transform/package.json index 20d19d7930754..e85c047261585 100644 --- a/npm/oxc-transform/package.json +++ b/npm/oxc-transform/package.json @@ -1,6 +1,6 @@ { "name": "oxc-transform", - "version": "0.16.2", + "version": "0.16.3", "description": "Oxc transform Node API", "keywords": [ "transform" diff --git a/wasm/parser/package.json b/wasm/parser/package.json index 8efa3d21f64c3..6dcbde57f8315 100644 --- a/wasm/parser/package.json +++ b/wasm/parser/package.json @@ -1,6 +1,6 @@ { "name": "@oxc-parser/wasm", - "version": "0.16.2", + "version": "0.16.3", "description": "Wasm target for the oxc parser.", "keywords": [ "JavaScript",