diff --git a/Cargo.lock b/Cargo.lock index 046478fa9be78..21877f3ffe8a9 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1264,7 +1264,7 @@ checksum = "caff54706df99d2a78a5a4e3455ff45448d81ef1bb63c22cd14052ca0e993a3f" [[package]] name = "oxc" -version = "0.13.1" +version = "0.13.2" dependencies = [ "oxc_allocator", "oxc_ast", @@ -1299,7 +1299,7 @@ dependencies = [ [[package]] name = "oxc_allocator" -version = "0.13.1" +version = "0.13.2" dependencies = [ "allocator-api2", "bumpalo", @@ -1309,7 +1309,7 @@ dependencies = [ [[package]] name = "oxc_ast" -version = "0.13.1" +version = "0.13.2" dependencies = [ "bitflags 2.5.0", "num-bigint", @@ -1326,7 +1326,7 @@ dependencies = [ [[package]] name = "oxc_ast_macros" -version = "0.13.1" +version = "0.13.2" [[package]] name = "oxc_benchmark" @@ -1350,7 +1350,7 @@ dependencies = [ [[package]] name = "oxc_codegen" -version = "0.13.1" +version = "0.13.2" dependencies = [ "base64", "bitflags 2.5.0", @@ -1401,7 +1401,7 @@ dependencies = [ [[package]] name = "oxc_diagnostics" -version = "0.13.1" +version = "0.13.2" dependencies = [ "miette", "owo-colors", @@ -1411,7 +1411,7 @@ dependencies = [ [[package]] name = "oxc_index" -version = "0.13.1" +version = "0.13.2" dependencies = [ "serde", ] @@ -1497,7 +1497,7 @@ dependencies = [ [[package]] name = "oxc_minifier" -version = "0.13.1" +version = "0.13.2" dependencies = [ "insta", "itertools 0.13.0", @@ -1531,7 +1531,7 @@ dependencies = [ [[package]] name = "oxc_module_lexer" -version = "0.13.1" +version = "0.13.2" dependencies = [ "oxc_allocator", "oxc_ast", @@ -1541,7 +1541,7 @@ dependencies = [ [[package]] name = "oxc_parser" -version = "0.13.1" +version = "0.13.2" dependencies = [ "assert-unchecked", "bitflags 2.5.0", @@ -1635,7 +1635,7 @@ dependencies = [ [[package]] name = "oxc_semantic" -version = "0.13.1" +version = "0.13.2" dependencies = [ "indexmap", "insta", @@ -1657,7 +1657,7 @@ dependencies = [ [[package]] name = "oxc_sourcemap" -version = "0.13.1" +version = "0.13.2" dependencies = [ "base64-simd", "cfg-if", @@ -1669,7 +1669,7 @@ dependencies = [ [[package]] name = "oxc_span" -version = "0.13.1" +version = "0.13.2" dependencies = [ "compact_str", "miette", @@ -1680,7 +1680,7 @@ dependencies = [ [[package]] name = "oxc_syntax" -version = "0.13.1" +version = "0.13.2" dependencies = [ "bitflags 2.5.0", "dashmap", @@ -1724,7 +1724,7 @@ dependencies = [ [[package]] name = "oxc_transformer" -version = "0.13.1" +version = "0.13.2" dependencies = [ "dashmap", "indexmap", @@ -1745,7 +1745,7 @@ dependencies = [ [[package]] name = "oxc_traverse" -version = "0.13.1" +version = "0.13.2" dependencies = [ "compact_str", "memoffset", diff --git a/Cargo.toml b/Cargo.toml index aeb1d492d38ca..ae3a40ba12310 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -72,22 +72,22 @@ cargo_common_metadata = "allow" # TODO: fix this [workspace.dependencies] # publish = true -oxc = { version = "0.13.1", path = "crates/oxc" } -oxc_allocator = { version = "0.13.1", path = "crates/oxc_allocator" } -oxc_ast = { version = "0.13.1", path = "crates/oxc_ast" } -oxc_codegen = { version = "0.13.1", path = "crates/oxc_codegen" } -oxc_diagnostics = { version = "0.13.1", path = "crates/oxc_diagnostics" } -oxc_index = { version = "0.13.1", path = "crates/oxc_index" } -oxc_minifier = { version = "0.13.1", path = "crates/oxc_minifier" } -oxc_parser = { version = "0.13.1", path = "crates/oxc_parser" } -oxc_semantic = { version = "0.13.1", path = "crates/oxc_semantic" } -oxc_span = { version = "0.13.1", path = "crates/oxc_span" } -oxc_syntax = { version = "0.13.1", path = "crates/oxc_syntax" } -oxc_transformer = { version = "0.13.1", path = "crates/oxc_transformer" } -oxc_sourcemap = { version = "0.13.1", path = "crates/oxc_sourcemap" } -oxc_ast_macros = { version = "0.13.1", path = "crates/oxc_ast_macros" } -oxc_traverse = { version = "0.13.1", path = "crates/oxc_traverse" } -oxc_module_lexer = { version = "0.13.1", path = "crates/oxc_module_lexer" } +oxc = { version = "0.13.2", path = "crates/oxc" } +oxc_allocator = { version = "0.13.2", path = "crates/oxc_allocator" } +oxc_ast = { version = "0.13.2", path = "crates/oxc_ast" } +oxc_codegen = { version = "0.13.2", path = "crates/oxc_codegen" } +oxc_diagnostics = { version = "0.13.2", path = "crates/oxc_diagnostics" } +oxc_index = { version = "0.13.2", path = "crates/oxc_index" } +oxc_minifier = { version = "0.13.2", path = "crates/oxc_minifier" } +oxc_parser = { version = "0.13.2", path = "crates/oxc_parser" } +oxc_semantic = { version = "0.13.2", path = "crates/oxc_semantic" } +oxc_span = { version = "0.13.2", path = "crates/oxc_span" } +oxc_syntax = { version = "0.13.2", path = "crates/oxc_syntax" } +oxc_transformer = { version = "0.13.2", path = "crates/oxc_transformer" } +oxc_sourcemap = { version = "0.13.2", path = "crates/oxc_sourcemap" } +oxc_ast_macros = { version = "0.13.2", path = "crates/oxc_ast_macros" } +oxc_traverse = { version = "0.13.2", path = "crates/oxc_traverse" } +oxc_module_lexer = { version = "0.13.2", path = "crates/oxc_module_lexer" } # publish = false oxc_macros = { path = "crates/oxc_macros" } diff --git a/crates/oxc/Cargo.toml b/crates/oxc/Cargo.toml index a3925eeb27a6f..c23455dff3033 100644 --- a/crates/oxc/Cargo.toml +++ b/crates/oxc/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc" -version = "0.13.1" +version = "0.13.2" publish = true authors.workspace = true description.workspace = true diff --git a/crates/oxc_allocator/Cargo.toml b/crates/oxc_allocator/Cargo.toml index fb4e48b9ef086..c4f9bc850bab5 100644 --- a/crates/oxc_allocator/Cargo.toml +++ b/crates/oxc_allocator/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_allocator" -version = "0.13.1" +version = "0.13.2" authors.workspace = true description.workspace = true edition.workspace = true diff --git a/crates/oxc_ast/CHANGELOG.md b/crates/oxc_ast/CHANGELOG.md index 16d5d0cdf5e25..a9dbc0cec06bd 100644 --- a/crates/oxc_ast/CHANGELOG.md +++ b/crates/oxc_ast/CHANGELOG.md @@ -5,6 +5,23 @@ All notable changes to this crate 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.13.2] - 2024-06-02 + +### Features + +- Add `oxc/no-const-enum` rule (#3435) + +### Bug Fixes + +- UsingDeclaration is not a typescript syntax (#3482) + +### Refactor + +- Update scope attrs (#3494) +- Move scope from `TSModuleBlock` to `TSModuleDeclaration` (#3488) +- Rename function params (#3487) +- Remove defunct hashing of `Span` (#3486) + ## [0.13.1] - 2024-05-22 ### Bug Fixes diff --git a/crates/oxc_ast/Cargo.toml b/crates/oxc_ast/Cargo.toml index 13f861e2bde69..8e97e6d79729f 100644 --- a/crates/oxc_ast/Cargo.toml +++ b/crates/oxc_ast/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_ast" -version = "0.13.1" +version = "0.13.2" 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 ef6660d2702e4..403f3e5b6fd3a 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.13.1" +version = "0.13.2" publish = true authors.workspace = true description.workspace = true diff --git a/crates/oxc_codegen/CHANGELOG.md b/crates/oxc_codegen/CHANGELOG.md index 137e33502af0c..513f6937221d5 100644 --- a/crates/oxc_codegen/CHANGELOG.md +++ b/crates/oxc_codegen/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to this crate 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.13.2] - 2024-06-02 + +### Features + +- Preserve annotate comment (#3465) + ## [0.13.1] - 2024-05-22 ### Features diff --git a/crates/oxc_codegen/Cargo.toml b/crates/oxc_codegen/Cargo.toml index 41f9f37a1d82a..663b84001b59f 100644 --- a/crates/oxc_codegen/Cargo.toml +++ b/crates/oxc_codegen/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_codegen" -version = "0.13.1" +version = "0.13.2" publish = true authors.workspace = true description.workspace = true diff --git a/crates/oxc_diagnostics/Cargo.toml b/crates/oxc_diagnostics/Cargo.toml index 3be5ba7c1af58..32de31bb1b0ca 100644 --- a/crates/oxc_diagnostics/Cargo.toml +++ b/crates/oxc_diagnostics/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_diagnostics" -version = "0.13.1" +version = "0.13.2" authors.workspace = true description.workspace = true edition.workspace = true diff --git a/crates/oxc_index/Cargo.toml b/crates/oxc_index/Cargo.toml index 10cf72169ce04..264453b05a71f 100644 --- a/crates/oxc_index/Cargo.toml +++ b/crates/oxc_index/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_index" -version = "0.13.1" +version = "0.13.2" publish = true authors.workspace = true description.workspace = true diff --git a/crates/oxc_minifier/CHANGELOG.md b/crates/oxc_minifier/CHANGELOG.md index 8974286493f94..7750921e46f10 100644 --- a/crates/oxc_minifier/CHANGELOG.md +++ b/crates/oxc_minifier/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to this crate 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.13.2] - 2024-06-02 + +### Features + +- Preserve annotate comment (#3465) + ## [0.13.1] - 2024-05-22 ### Features diff --git a/crates/oxc_minifier/Cargo.toml b/crates/oxc_minifier/Cargo.toml index dcdf44954740d..885e235243fe1 100644 --- a/crates/oxc_minifier/Cargo.toml +++ b/crates/oxc_minifier/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_minifier" -version = "0.13.1" +version = "0.13.2" publish = true authors.workspace = true description.workspace = true diff --git a/crates/oxc_module_lexer/CHANGELOG.md b/crates/oxc_module_lexer/CHANGELOG.md index 0c5a50ea61bfb..90ea05477eae0 100644 --- a/crates/oxc_module_lexer/CHANGELOG.md +++ b/crates/oxc_module_lexer/CHANGELOG.md @@ -5,3 +5,9 @@ All notable changes to this crate 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.13.2] - 2024-06-02 + +### Bug Fixes + +- Should parser error when function declaration has no name (#3461) + diff --git a/crates/oxc_module_lexer/Cargo.toml b/crates/oxc_module_lexer/Cargo.toml index 3cf61d67bb79e..19953c6472159 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.13.1" +version = "0.13.2" publish = true authors.workspace = true description.workspace = true diff --git a/crates/oxc_parser/CHANGELOG.md b/crates/oxc_parser/CHANGELOG.md index f4f1093270472..89381733abc05 100644 --- a/crates/oxc_parser/CHANGELOG.md +++ b/crates/oxc_parser/CHANGELOG.md @@ -5,6 +5,14 @@ All notable changes to this crate 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.13.2] - 2024-06-02 + +### Bug Fixes + +- Should parser error when function declaration has no name (#3461) +- Parse const extends in arrow functions correctly (#3450) +- Fix lexer error while parsing parenthesized arrow expressions (#3400) + ## [0.13.1] - 2024-05-22 ### Performance diff --git a/crates/oxc_parser/Cargo.toml b/crates/oxc_parser/Cargo.toml index 8943041948146..25b4e620e1111 100644 --- a/crates/oxc_parser/Cargo.toml +++ b/crates/oxc_parser/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_parser" -version = "0.13.1" +version = "0.13.2" authors.workspace = true description.workspace = true edition.workspace = true diff --git a/crates/oxc_semantic/CHANGELOG.md b/crates/oxc_semantic/CHANGELOG.md index 596ec39a516ef..6a02e7d14594d 100644 --- a/crates/oxc_semantic/CHANGELOG.md +++ b/crates/oxc_semantic/CHANGELOG.md @@ -5,6 +5,25 @@ All notable changes to this crate 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.13.2] - 2024-06-02 + +### Features + +- Add `TraverseCtx::generate_uid` (#3394) +- Implement require-returns rule (#3218) + +### Bug Fixes + +- Set program scope_id for TS definition files (#3496) +- Use UIDs in TS namespace transforms (#3395) +- Memorize visited block id in `neighbors_filtered_by_edge_weight` (#3407) + +### Refactor + +- Move scope from `TSModuleBlock` to `TSModuleDeclaration` (#3488) +- Use a simpler way to resolve reference for ReferenceFlag::Type (#3430) +- Compile less test binaries to speed up CI (#3414) + ## [0.13.1] - 2024-05-22 ### Refactor diff --git a/crates/oxc_semantic/Cargo.toml b/crates/oxc_semantic/Cargo.toml index 9b21e70ff5051..074a865cc3a22 100644 --- a/crates/oxc_semantic/Cargo.toml +++ b/crates/oxc_semantic/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_semantic" -version = "0.13.1" +version = "0.13.2" authors.workspace = true description.workspace = true edition.workspace = true diff --git a/crates/oxc_sourcemap/Cargo.toml b/crates/oxc_sourcemap/Cargo.toml index 248c8d11bb8d5..5f94971a95af8 100644 --- a/crates/oxc_sourcemap/Cargo.toml +++ b/crates/oxc_sourcemap/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_sourcemap" -version = "0.13.1" +version = "0.13.2" authors.workspace = true description.workspace = true edition.workspace = true diff --git a/crates/oxc_span/CHANGELOG.md b/crates/oxc_span/CHANGELOG.md index 09e7f71881340..b5fafc72003c3 100644 --- a/crates/oxc_span/CHANGELOG.md +++ b/crates/oxc_span/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to this crate 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.13.2] - 2024-06-02 + +### Features + +- Get &str from Atom<'a> with lifetime of 'a (#3420) + ## [0.13.0] - 2024-05-14 ### Features diff --git a/crates/oxc_span/Cargo.toml b/crates/oxc_span/Cargo.toml index 4786399a119f5..880b6cd854d66 100644 --- a/crates/oxc_span/Cargo.toml +++ b/crates/oxc_span/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_span" -version = "0.13.1" +version = "0.13.2" publish = true authors.workspace = true description.workspace = true diff --git a/crates/oxc_syntax/Cargo.toml b/crates/oxc_syntax/Cargo.toml index 54c5f1a969e5b..18d2b41fa4962 100644 --- a/crates/oxc_syntax/Cargo.toml +++ b/crates/oxc_syntax/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_syntax" -version = "0.13.1" +version = "0.13.2" publish = true authors.workspace = true description.workspace = true diff --git a/crates/oxc_transformer/CHANGELOG.md b/crates/oxc_transformer/CHANGELOG.md index 98f058c1417cc..f38abf3217f29 100644 --- a/crates/oxc_transformer/CHANGELOG.md +++ b/crates/oxc_transformer/CHANGELOG.md @@ -5,6 +5,38 @@ All notable changes to this crate 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.13.2] - 2024-06-02 + +### Features + +- Turn on idempotency testing for transformer (#3470) +- Preserve annotate comment (#3465) +- Report error that do not allow namespaces (#3448) +- Report error for namespace exporting non-const (#3447) +- If within a block scope, use let to declare enum name (#3446) +- If binding exists, variable declarations are not created for namespace name (#3445) +- Support `targets` option of preset-env (#3371) +- If the binding exists, the identifier reference is not renamed (#3387) + +### Bug Fixes + +- Add filename statement only after inserting the source object (#3469) +- Variable declarations are not created when a function has a binding with the same name (#3460) +- Use UIDs for React imports (#3431) +- Use UIDs in TS namespace transforms (#3395) + +### Refactor + +- Move scope from `TSModuleBlock` to `TSModuleDeclaration` (#3488) +- Use a memory-safe implementation instead (#3481) +- Explicit skip TS statements in TS namespace transform (#3479) +- Shorter code in TS namespace transform (#3478) +- Panic on illegal cases in TS namespace transform (#3477) +- Rename var (#3476) +- Shorten code in TS namespace transform (#3468) +- Remove unreachable code from TS namespace transform (#3475) +- Reuse TSModuleBlock's scope id (#3459) + ## [0.13.1] - 2024-05-22 ### Features diff --git a/crates/oxc_transformer/Cargo.toml b/crates/oxc_transformer/Cargo.toml index 197b7e430dd2d..69802b5df50f0 100644 --- a/crates/oxc_transformer/Cargo.toml +++ b/crates/oxc_transformer/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_transformer" -version = "0.13.1" +version = "0.13.2" publish = true authors.workspace = true description.workspace = true diff --git a/crates/oxc_traverse/CHANGELOG.md b/crates/oxc_traverse/CHANGELOG.md index f2f91816f3d5b..b1c66db692160 100644 --- a/crates/oxc_traverse/CHANGELOG.md +++ b/crates/oxc_traverse/CHANGELOG.md @@ -5,6 +5,20 @@ All notable changes to this crate 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.13.2] - 2024-06-02 + +### Features + +- Add `TraverseCtx::generate_uid` (#3394) + +### Bug Fixes + +- Exit scope early if enter it late (#3493) + +### Refactor + +- Move scope from `TSModuleBlock` to `TSModuleDeclaration` (#3488) + ## [0.13.1] - 2024-05-22 ### Features diff --git a/crates/oxc_traverse/Cargo.toml b/crates/oxc_traverse/Cargo.toml index 131cb7b45e74c..f00c8cea4496b 100644 --- a/crates/oxc_traverse/Cargo.toml +++ b/crates/oxc_traverse/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_traverse" -version = "0.13.1" +version = "0.13.2" publish = true authors.workspace = true description.workspace = true