diff --git a/Cargo.lock b/Cargo.lock index 03b27fee65eda..50ef27aea8d71 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1257,7 +1257,7 @@ checksum = "caff54706df99d2a78a5a4e3455ff45448d81ef1bb63c22cd14052ca0e993a3f" [[package]] name = "oxc" -version = "0.15.0" +version = "0.16.0" dependencies = [ "oxc_allocator", "oxc_ast", @@ -1293,7 +1293,7 @@ dependencies = [ [[package]] name = "oxc_allocator" -version = "0.15.0" +version = "0.16.0" dependencies = [ "allocator-api2", "bumpalo", @@ -1303,7 +1303,7 @@ dependencies = [ [[package]] name = "oxc_ast" -version = "0.15.0" +version = "0.16.0" dependencies = [ "bitflags 2.5.0", "num-bigint", @@ -1334,7 +1334,7 @@ dependencies = [ [[package]] name = "oxc_ast_macros" -version = "0.15.0" +version = "0.16.0" [[package]] name = "oxc_benchmark" @@ -1358,7 +1358,7 @@ dependencies = [ [[package]] name = "oxc_cfg" -version = "0.15.0" +version = "0.16.0" dependencies = [ "bitflags 2.5.0", "itertools 0.13.0", @@ -1369,7 +1369,7 @@ dependencies = [ [[package]] name = "oxc_codegen" -version = "0.15.0" +version = "0.16.0" dependencies = [ "base64", "bitflags 2.5.0", @@ -1421,7 +1421,7 @@ dependencies = [ [[package]] name = "oxc_diagnostics" -version = "0.15.0" +version = "0.16.0" dependencies = [ "miette", "owo-colors", @@ -1431,14 +1431,14 @@ dependencies = [ [[package]] name = "oxc_index" -version = "0.15.0" +version = "0.16.0" dependencies = [ "serde", ] [[package]] name = "oxc_isolated_declarations" -version = "0.15.0" +version = "0.16.0" dependencies = [ "insta", "oxc_allocator", @@ -1533,7 +1533,7 @@ dependencies = [ [[package]] name = "oxc_minifier" -version = "0.15.0" +version = "0.16.0" dependencies = [ "insta", "itertools 0.13.0", @@ -1568,7 +1568,7 @@ dependencies = [ [[package]] name = "oxc_module_lexer" -version = "0.15.0" +version = "0.16.0" dependencies = [ "oxc_allocator", "oxc_ast", @@ -1578,7 +1578,7 @@ dependencies = [ [[package]] name = "oxc_parser" -version = "0.15.0" +version = "0.16.0" dependencies = [ "assert-unchecked", "bitflags 2.5.0", @@ -1672,7 +1672,7 @@ dependencies = [ [[package]] name = "oxc_semantic" -version = "0.15.0" +version = "0.16.0" dependencies = [ "indexmap", "insta", @@ -1694,7 +1694,7 @@ dependencies = [ [[package]] name = "oxc_sourcemap" -version = "0.15.0" +version = "0.16.0" dependencies = [ "base64-simd", "cfg-if", @@ -1706,7 +1706,7 @@ dependencies = [ [[package]] name = "oxc_span" -version = "0.15.0" +version = "0.16.0" dependencies = [ "compact_str", "miette", @@ -1717,7 +1717,7 @@ dependencies = [ [[package]] name = "oxc_syntax" -version = "0.15.0" +version = "0.16.0" dependencies = [ "bitflags 2.5.0", "dashmap", @@ -1776,7 +1776,7 @@ dependencies = [ [[package]] name = "oxc_transformer" -version = "0.15.0" +version = "0.16.0" dependencies = [ "dashmap", "indexmap", @@ -1797,7 +1797,7 @@ dependencies = [ [[package]] name = "oxc_traverse" -version = "0.15.0" +version = "0.16.0" dependencies = [ "compact_str", "memoffset", diff --git a/Cargo.toml b/Cargo.toml index b165efddcf7de..974a314deb61d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -74,24 +74,24 @@ cargo_common_metadata = "allow" # TODO: fix this [workspace.dependencies] # publish = true -oxc = { version = "0.15.0", path = "crates/oxc" } -oxc_allocator = { version = "0.15.0", path = "crates/oxc_allocator" } -oxc_ast = { version = "0.15.0", path = "crates/oxc_ast" } -oxc_codegen = { version = "0.15.0", path = "crates/oxc_codegen" } -oxc_diagnostics = { version = "0.15.0", path = "crates/oxc_diagnostics" } -oxc_index = { version = "0.15.0", path = "crates/oxc_index" } -oxc_minifier = { version = "0.15.0", path = "crates/oxc_minifier" } -oxc_parser = { version = "0.15.0", path = "crates/oxc_parser" } -oxc_semantic = { version = "0.15.0", path = "crates/oxc_semantic" } -oxc_span = { version = "0.15.0", path = "crates/oxc_span" } -oxc_syntax = { version = "0.15.0", path = "crates/oxc_syntax" } -oxc_transformer = { version = "0.15.0", path = "crates/oxc_transformer" } -oxc_sourcemap = { version = "0.15.0", path = "crates/oxc_sourcemap" } -oxc_ast_macros = { version = "0.15.0", path = "crates/oxc_ast_macros" } -oxc_traverse = { version = "0.15.0", path = "crates/oxc_traverse" } -oxc_module_lexer = { version = "0.15.0", path = "crates/oxc_module_lexer" } -oxc_cfg = { version = "0.15.0", path = "crates/oxc_cfg" } -oxc_isolated_declarations = { version = "0.15.0", path = "crates/oxc_isolated_declarations" } +oxc = { version = "0.16.0", path = "crates/oxc" } +oxc_allocator = { version = "0.16.0", path = "crates/oxc_allocator" } +oxc_ast = { version = "0.16.0", path = "crates/oxc_ast" } +oxc_codegen = { version = "0.16.0", path = "crates/oxc_codegen" } +oxc_diagnostics = { version = "0.16.0", path = "crates/oxc_diagnostics" } +oxc_index = { version = "0.16.0", path = "crates/oxc_index" } +oxc_minifier = { version = "0.16.0", path = "crates/oxc_minifier" } +oxc_parser = { version = "0.16.0", path = "crates/oxc_parser" } +oxc_semantic = { version = "0.16.0", path = "crates/oxc_semantic" } +oxc_span = { version = "0.16.0", path = "crates/oxc_span" } +oxc_syntax = { version = "0.16.0", path = "crates/oxc_syntax" } +oxc_transformer = { version = "0.16.0", path = "crates/oxc_transformer" } +oxc_sourcemap = { version = "0.16.0", path = "crates/oxc_sourcemap" } +oxc_ast_macros = { version = "0.16.0", path = "crates/oxc_ast_macros" } +oxc_traverse = { version = "0.16.0", path = "crates/oxc_traverse" } +oxc_module_lexer = { version = "0.16.0", path = "crates/oxc_module_lexer" } +oxc_cfg = { version = "0.16.0", path = "crates/oxc_cfg" } +oxc_isolated_declarations = { version = "0.16.0", path = "crates/oxc_isolated_declarations" } # publish = false oxc_macros = { path = "crates/oxc_macros" } diff --git a/crates/oxc/CHANGELOG.md b/crates/oxc/CHANGELOG.md index d1171943862f0..b1fd519004b23 100644 --- a/crates/oxc/CHANGELOG.md +++ b/crates/oxc/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.0] - 2024-06-26 + +### Features + +- 4fb90eb oxc: Export isolated-declarations (#3765) (Boshen) + ## [0.13.0] - 2024-05-14 ### Features diff --git a/crates/oxc/Cargo.toml b/crates/oxc/Cargo.toml index 26d1aed4d39fe..20fe0913af073 100644 --- a/crates/oxc/Cargo.toml +++ b/crates/oxc/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc" -version = "0.15.0" +version = "0.16.0" publish = true authors.workspace = true description.workspace = true diff --git a/crates/oxc_allocator/Cargo.toml b/crates/oxc_allocator/Cargo.toml index c37c4a7448448..068c3608c5865 100644 --- a/crates/oxc_allocator/Cargo.toml +++ b/crates/oxc_allocator/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_allocator" -version = "0.15.0" +version = "0.16.0" authors.workspace = true description.workspace = true edition.workspace = true diff --git a/crates/oxc_ast/CHANGELOG.md b/crates/oxc_ast/CHANGELOG.md index cf50775212af5..ef930742535ae 100644 --- a/crates/oxc_ast/CHANGELOG.md +++ b/crates/oxc_ast/CHANGELOG.md @@ -4,6 +4,61 @@ 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.0] - 2024-06-26 + +- 6796891 ast: [**BREAKING**] Rename all instances of `BigintLiteral` to `BigIntLiteral`. (#3898) (rzvxa) + +- 1f85f1a ast: [**BREAKING**] Revert adding `span` field to the `BindingPattern` type. (#3899) (rzvxa) + +- ae09a97 ast: [**BREAKING**] Remove `Modifiers` from ts nodes (#3846) (Boshen) + +- 1af5ed3 ast: [**BREAKING**] Replace `Modifiers` with `declare` and `const` on `EnumDeclaration` (#3845) (Boshen) + +- 0673677 ast: [**BREAKING**] Replace `Modifiers` with `declare` on `Function` (#3844) (Boshen) + +- ee6ec4e ast: [**BREAKING**] Replace `Modifiers` with `declare` and `abstract` on `Class` (#3841) (Boshen) + +- 9b38119 ast: [**BREAKING**] Replace `Modifiers` with `declare` on `VariableDeclaration` (#3839) (Boshen) + +- cfcef24 ast: [**BREAKING**] Add `directives` field to `TSModuleBlock` (#3830) (Boshen) + +- 4456034 ast: [**BREAKING**] Add `IdentifierReference` to `ExportSpecifier` (#3820) (Boshen) + +### Features + +- 497769c ast: Add some visitor functions (#3785) (Dunqing) +- 4b06dc7 ast: Add TSType::TSIntrinsicKeyword to is_keyword (#3775) (Dunqing) +- 5847e16 ast,parser: Add `intrinsic` keyword (#3767) (Boshen) +- 2e026e1 ast_codegen: Generate `ast_kind.rs`. (#3888) (rzvxa) +- 09f4d3c ast_codegen: Add `ImplGetSpanGenerator`. (#3852) (rzvxa) +- d5f6aeb semantic: Check for illegal symbol modifiers (#3838) (Don Isaac) + +### Bug Fixes + +- 063cfde ast: Correct JSON serialization of `TSModuleBlock` (#3858) (overlookmotel) +- 66f404c ast: Fix JSON serialization of `BindingPattern` (#3856) (overlookmotel) +- 59ce38b isolated-declarations: Inferring of UnrayExpression incorrectly (#3920) (Dunqing) +- 8c9fc63 semantic: Apply strict mode scope flag for strict mode TS Modules (#3861) (overlookmotel) +- aea3e9a transformer: Correct spans for TS annotations transform (#3782) (overlookmotel) + +### Performance +- 4f7ff7e Do not pass `&Atom` to functions (#3818) (overlookmotel) + +### Refactor + +- 6f26087 ast: Add comment about alternatives to `AstBuilder::copy` (#3905) (overlookmotel) +- 442aca3 ast: Add comment not to use `AstBuilder::copy` (#3891) (overlookmotel) +- acf69fa ast: Refactor custom `Serialize` impls (#3859) (overlookmotel) +- 9e148e9 ast: Add line breaks (#3860) (overlookmotel) +- 363d3d5 ast: Add span field to the `BindingPattern` type. (#3855) (rzvxa) +- a648748 ast: Shorten code in AST builder (#3835) (overlookmotel) +- 1206967 ast: Reduce allocations in AST builder (#3834) (overlookmotel) +- 4cf3c76 parser: Improve parsing of TypeScript types (#3903) (Boshen) +- 97d59fc parser: Move code around for parsing `Modifiers` (#3849) (Boshen) +- 1061baa traverse: Separate `#[scope]` attr (#3901) (overlookmotel) +- fcd21a6 traverse: Indicate scope entry point with `scope(enter_before)` attr (#3882) (overlookmotel) +- 2045c92 traverse: Improve parsing attrs in traverse codegen (#3879) (overlookmotel) + ## [0.15.0] - 2024-06-18 - 0578ece ast: [**BREAKING**] Remove `ExportDefaultDeclarationKind::TSEnumDeclaration` (#3666) (Dunqing) diff --git a/crates/oxc_ast/Cargo.toml b/crates/oxc_ast/Cargo.toml index 05810ebf1e0c0..ffd24a753863b 100644 --- a/crates/oxc_ast/Cargo.toml +++ b/crates/oxc_ast/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_ast" -version = "0.15.0" +version = "0.16.0" authors.workspace = true description.workspace = true edition.workspace = true diff --git a/crates/oxc_ast_macros/CHANGELOG.md b/crates/oxc_ast_macros/CHANGELOG.md index e3d0dcc794f29..ebf3bcc3610a2 100644 --- a/crates/oxc_ast_macros/CHANGELOG.md +++ b/crates/oxc_ast_macros/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.0] - 2024-06-26 + +### Refactor + +- fcd21a6 traverse: Indicate scope entry point with `scope(enter_before)` attr (#3882) (overlookmotel) + ## [0.13.0] - 2024-05-14 ### Features diff --git a/crates/oxc_ast_macros/Cargo.toml b/crates/oxc_ast_macros/Cargo.toml index 2a1af28510b12..904b54532fa2c 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.15.0" +version = "0.16.0" publish = true authors.workspace = true description.workspace = true diff --git a/crates/oxc_cfg/CHANGELOG.md b/crates/oxc_cfg/CHANGELOG.md index a59e46596fe0c..21fe0fa295647 100644 --- a/crates/oxc_cfg/CHANGELOG.md +++ b/crates/oxc_cfg/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.0] - 2024-06-26 + +### Features + +- 3e78f98 cfg: Add depth first search with hash sets. (#3771) (rzvxa) + ## [0.15.0] - 2024-06-18 - 0537d29 cfg: [**BREAKING**] Move control flow to its own crate. (#3728) (rzvxa) diff --git a/crates/oxc_cfg/Cargo.toml b/crates/oxc_cfg/Cargo.toml index d0752b83a93b8..6e3927c23ad5a 100644 --- a/crates/oxc_cfg/Cargo.toml +++ b/crates/oxc_cfg/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_cfg" -version = "0.15.0" +version = "0.16.0" publish = true authors.workspace = true description.workspace = true diff --git a/crates/oxc_codegen/CHANGELOG.md b/crates/oxc_codegen/CHANGELOG.md index 37b402af3224b..a81dc561ccb46 100644 --- a/crates/oxc_codegen/CHANGELOG.md +++ b/crates/oxc_codegen/CHANGELOG.md @@ -4,6 +4,42 @@ 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.0] - 2024-06-26 + +- 6796891 ast: [**BREAKING**] Rename all instances of `BigintLiteral` to `BigIntLiteral`. (#3898) (rzvxa) + +- ae09a97 ast: [**BREAKING**] Remove `Modifiers` from ts nodes (#3846) (Boshen) + +- 1af5ed3 ast: [**BREAKING**] Replace `Modifiers` with `declare` and `const` on `EnumDeclaration` (#3845) (Boshen) + +- 0673677 ast: [**BREAKING**] Replace `Modifiers` with `declare` on `Function` (#3844) (Boshen) + +- ee6ec4e ast: [**BREAKING**] Replace `Modifiers` with `declare` and `abstract` on `Class` (#3841) (Boshen) + +- 9b38119 ast: [**BREAKING**] Replace `Modifiers` with `declare` on `VariableDeclaration` (#3839) (Boshen) + +- cfcef24 ast: [**BREAKING**] Add `directives` field to `TSModuleBlock` (#3830) (Boshen) + +- 4456034 ast: [**BREAKING**] Add `IdentifierReference` to `ExportSpecifier` (#3820) (Boshen) + +### Features + +- 5847e16 ast,parser: Add `intrinsic` keyword (#3767) (Boshen) +- 01da2f7 codegen: Print TSThisParameter for TSCallSignatureDeclaration and TSMethodSignature (#3792) (Dunqing) +- 2821e0e codegen: Print readonly keyword for TSIndexSignature (#3791) (Dunqing) +- 97575d8 codegen: Print TSClassImplements and TSThisParameter (#3786) (Dunqing) + +### Bug Fixes + +- 2766594 codegen: Print type parameters for MethodDefinition (#3922) (Dunqing) + +### Performance +- 4f7ff7e Do not pass `&Atom` to functions (#3818) (overlookmotel) + +### Refactor + +- 4cf3c76 parser: Improve parsing of TypeScript types (#3903) (Boshen) + ## [0.15.0] - 2024-06-18 - 5c38a0f codegen: [**BREAKING**] New code gen API (#3740) (Boshen) diff --git a/crates/oxc_codegen/Cargo.toml b/crates/oxc_codegen/Cargo.toml index 12f7552ff8f29..19bf74e070891 100644 --- a/crates/oxc_codegen/Cargo.toml +++ b/crates/oxc_codegen/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_codegen" -version = "0.15.0" +version = "0.16.0" publish = true authors.workspace = true description.workspace = true diff --git a/crates/oxc_diagnostics/CHANGELOG.md b/crates/oxc_diagnostics/CHANGELOG.md index d669bc10426f7..013f96bbc56ca 100644 --- a/crates/oxc_diagnostics/CHANGELOG.md +++ b/crates/oxc_diagnostics/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.0] - 2024-06-26 + +### Performance + +- 92c21b2 diagnostics: Optimize string-buffer reallocations (#3897) (Luca Bruno) + ## [0.14.0] - 2024-06-12 ### Bug Fixes diff --git a/crates/oxc_diagnostics/Cargo.toml b/crates/oxc_diagnostics/Cargo.toml index 2c2bef192a073..664f23f631239 100644 --- a/crates/oxc_diagnostics/Cargo.toml +++ b/crates/oxc_diagnostics/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_diagnostics" -version = "0.15.0" +version = "0.16.0" authors.workspace = true description.workspace = true edition.workspace = true diff --git a/crates/oxc_index/Cargo.toml b/crates/oxc_index/Cargo.toml index 55f5f59d9c581..624052103ed57 100644 --- a/crates/oxc_index/Cargo.toml +++ b/crates/oxc_index/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_index" -version = "0.15.0" +version = "0.16.0" publish = true authors.workspace = true description.workspace = true diff --git a/crates/oxc_isolated_declarations/CHANGELOG.md b/crates/oxc_isolated_declarations/CHANGELOG.md index 02065091c10be..58bd233d01ec7 100644 --- a/crates/oxc_isolated_declarations/CHANGELOG.md +++ b/crates/oxc_isolated_declarations/CHANGELOG.md @@ -4,6 +4,67 @@ 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.0] - 2024-06-26 + +- 6796891 ast: [**BREAKING**] Rename all instances of `BigintLiteral` to `BigIntLiteral`. (#3898) (rzvxa) + +- 1f85f1a ast: [**BREAKING**] Revert adding `span` field to the `BindingPattern` type. (#3899) (rzvxa) + +- ae09a97 ast: [**BREAKING**] Remove `Modifiers` from ts nodes (#3846) (Boshen) + +- 1af5ed3 ast: [**BREAKING**] Replace `Modifiers` with `declare` and `const` on `EnumDeclaration` (#3845) (Boshen) + +- 0673677 ast: [**BREAKING**] Replace `Modifiers` with `declare` on `Function` (#3844) (Boshen) + +- ee6ec4e ast: [**BREAKING**] Replace `Modifiers` with `declare` and `abstract` on `Class` (#3841) (Boshen) + +- 9b38119 ast: [**BREAKING**] Replace `Modifiers` with `declare` on `VariableDeclaration` (#3839) (Boshen) + +- cfcef24 ast: [**BREAKING**] Add `directives` field to `TSModuleBlock` (#3830) (Boshen) + +- 4456034 ast: [**BREAKING**] Add `IdentifierReference` to `ExportSpecifier` (#3820) (Boshen) + +### Features + +- 497769c ast: Add some visitor functions (#3785) (Dunqing) +- 2821e0e codegen: Print readonly keyword for TSIndexSignature (#3791) (Dunqing) +- 97575d8 codegen: Print TSClassImplements and TSThisParameter (#3786) (Dunqing) +- 5e2baf3 isolated-declarations: Report error for expando functions (#3872) (Dunqing) +- 2cdb34f isolated-declarations: Support for class function overloads (#3811) (Dunqing) +- 231b8f0 isolated-declarations: Support for export default function overloads (#3809) (Dunqing) +- a37138f isolated-declarations: Improve the inference template literal (#3797) (Dunqing) +- b0d7355 isolated-declarations: Transform const expression correctly (#3793) (Dunqing) +- b38c34d isolated-declarations: Support inferring ParenthesizedExpression (#3769) (Dunqing) +- 4134de8 isolated-declarations: Add ts error code to the error message (#3755) (Dunqing) +- 94202de isolated-declarations: Add `export {}` when needed (#3754) (Dunqing) +- e95d8e3 isolated-declarations: Shrink span for arrow function that needs an explicit return type (#3752) (Dunqing) +- df9971d isolated-declarations: Improve inferring the return type from function (#3750) (Dunqing) +- 4aea2b1 isolated-declarations: Improve inferring the type of accessor (#3749) (Dunqing) +- 9ea30c4 isolated-declarations: Treat AssignmentPattern as optional (#3748) (Dunqing) + +### Bug Fixes + +- 2766594 codegen: Print type parameters for MethodDefinition (#3922) (Dunqing) +- 27f0531 isolated-declarations: Private constructor reaching unreachable (#3921) (Dunqing) +- 59ce38b isolated-declarations: Inferring of UnrayExpression incorrectly (#3920) (Dunqing) +- 58e54f4 isolated-declarations: Report an error for parameters if they are ObjectPattern or ArrayPattern without an explicit type (#3810) (Dunqing) +- cb8a272 isolated-declarations: Cannot infer nested `as const` (#3807) (Dunqing) +- d8ecce5 isolated-declarations: Infer BigInt number as `bigint` type (#3806) (Dunqing) +- 4e241fc isolated-declarations: Missing `const` after transformed const enum (#3805) (Dunqing) +- 683c7b0 isolated-declarations: Shouldn’t add declare in declaration with export default (#3804) (Dunqing) +- 7d47fc3 isolated-declarations: Should stripe async and generator keyword after transformed (#3790) (Dunqing) +- 8ce794d isolated-declarations: Inferring an incorrect return type when there is an arrow function inside a function (#3768) (Dunqing) +- d29316a isolated-declarations: Transform incorrectly when there are multiple functions with the same name (#3753) (Dunqing) +- bf1c250 isolated-declarations: False positives for non-exported binding elements (#3751) (Dunqing) + +### Performance +- 4f7ff7e Do not pass `&Atom` to functions (#3818) (overlookmotel) + +### Refactor + +- 363d3d5 ast: Add span field to the `BindingPattern` type. (#3855) (rzvxa) +- 2f5d50e isolated-declarations: Remove `Modifiers` (#3847) (Boshen) + ## [0.15.0] - 2024-06-18 - 5c38a0f codegen: [**BREAKING**] New code gen API (#3740) (Boshen) diff --git a/crates/oxc_isolated_declarations/Cargo.toml b/crates/oxc_isolated_declarations/Cargo.toml index cc331943da9fa..18532fbf5c338 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.15.0" +version = "0.16.0" publish = true authors.workspace = true description.workspace = true diff --git a/crates/oxc_minifier/CHANGELOG.md b/crates/oxc_minifier/CHANGELOG.md index 070bb04b2dd71..dc4fe50f97135 100644 --- a/crates/oxc_minifier/CHANGELOG.md +++ b/crates/oxc_minifier/CHANGELOG.md @@ -4,6 +4,22 @@ 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.0] - 2024-06-26 + +- 6796891 ast: [**BREAKING**] Rename all instances of `BigintLiteral` to `BigIntLiteral`. (#3898) (rzvxa) + +### Features + +- dd540c8 minifier: Add skeleton for ReplaceGlobalDefines ast pass (#3803) (Boshen) +- f3c3970 minifier: Add skeleton for RemoveDeadCode ast pass (#3802) (Boshen) + +### Bug Fixes + + +### Refactor + +- 8027b1e minifier: Change prepass to ast_passes::remove_parens (#3801) (Boshen) + ## [0.15.0] - 2024-06-18 - 5c38a0f codegen: [**BREAKING**] New code gen API (#3740) (Boshen) diff --git a/crates/oxc_minifier/Cargo.toml b/crates/oxc_minifier/Cargo.toml index 8a167cf25e837..2c375b7a28bfb 100644 --- a/crates/oxc_minifier/Cargo.toml +++ b/crates/oxc_minifier/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_minifier" -version = "0.15.0" +version = "0.16.0" 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 3e64014d6932a..fad5565cc56f3 100644 --- a/crates/oxc_module_lexer/CHANGELOG.md +++ b/crates/oxc_module_lexer/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.0] - 2024-06-26 + +- 4456034 ast: [**BREAKING**] Add `IdentifierReference` to `ExportSpecifier` (#3820) (Boshen) + +### Features + + ## [0.13.2] - 2024-06-03 ### Bug Fixes diff --git a/crates/oxc_module_lexer/Cargo.toml b/crates/oxc_module_lexer/Cargo.toml index 5a2465670a1de..44b3c3206e80e 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.15.0" +version = "0.16.0" publish = true authors.workspace = true description.workspace = true diff --git a/crates/oxc_parser/CHANGELOG.md b/crates/oxc_parser/CHANGELOG.md index 38006952bb397..198099f6575dc 100644 --- a/crates/oxc_parser/CHANGELOG.md +++ b/crates/oxc_parser/CHANGELOG.md @@ -4,6 +4,50 @@ 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.0] - 2024-06-26 + +- 6796891 ast: [**BREAKING**] Rename all instances of `BigintLiteral` to `BigIntLiteral`. (#3898) (rzvxa) + +- 1f85f1a ast: [**BREAKING**] Revert adding `span` field to the `BindingPattern` type. (#3899) (rzvxa) + +- ae09a97 ast: [**BREAKING**] Remove `Modifiers` from ts nodes (#3846) (Boshen) + +- 1af5ed3 ast: [**BREAKING**] Replace `Modifiers` with `declare` and `const` on `EnumDeclaration` (#3845) (Boshen) + +- 0673677 ast: [**BREAKING**] Replace `Modifiers` with `declare` on `Function` (#3844) (Boshen) + +- ee6ec4e ast: [**BREAKING**] Replace `Modifiers` with `declare` and `abstract` on `Class` (#3841) (Boshen) + +- 9b38119 ast: [**BREAKING**] Replace `Modifiers` with `declare` on `VariableDeclaration` (#3839) (Boshen) + +- cfcef24 ast: [**BREAKING**] Add `directives` field to `TSModuleBlock` (#3830) (Boshen) + +- 4456034 ast: [**BREAKING**] Add `IdentifierReference` to `ExportSpecifier` (#3820) (Boshen) + +### Features + +- 5847e16 ast,parser: Add `intrinsic` keyword (#3767) (Boshen) +- dd540c8 minifier: Add skeleton for ReplaceGlobalDefines ast pass (#3803) (Boshen) + +### Bug Fixes + +- 275349a parser: Parse function type parameter name `accessor` (#3926) (Boshen) +- ef82c78 parser: Trailing comma is not allowed in ParenthesizedExpression (#3885) (Dunqing) +- 13754cb parser: Change diagnostic to "modifier cannot be used here" (#3853) (Boshen) + +### Performance + +- 4bf405d parser: Add a few more inline hints to cursor functions (#3894) (Boshen)- 4f7ff7e Do not pass `&Atom` to functions (#3818) (overlookmotel) + +### Refactor + +- 363d3d5 ast: Add span field to the `BindingPattern` type. (#3855) (rzvxa) +- a471e62 parser: Clean up `try_parse` (#3925) (Boshen) +- 3db2553 parser: Improve parsing of TypeScript type arguments (#3923) (Boshen) +- 4cf3c76 parser: Improve parsing of TypeScript types (#3903) (Boshen) +- 187f078 parser: Improve parsing of `parse_function_or_constructor_type` (#3892) (Boshen) +- 97d59fc parser: Move code around for parsing `Modifiers` (#3849) (Boshen)- d6437fe Clean up some usages of `with_labels` (#3854) (Boshen) + ## [0.15.0] - 2024-06-18 ### Features diff --git a/crates/oxc_parser/Cargo.toml b/crates/oxc_parser/Cargo.toml index a86248b42013c..3de897c1f2b3e 100644 --- a/crates/oxc_parser/Cargo.toml +++ b/crates/oxc_parser/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_parser" -version = "0.15.0" +version = "0.16.0" authors.workspace = true description.workspace = true edition.workspace = true diff --git a/crates/oxc_semantic/CHANGELOG.md b/crates/oxc_semantic/CHANGELOG.md index d55091a4957bd..83ec77c937188 100644 --- a/crates/oxc_semantic/CHANGELOG.md +++ b/crates/oxc_semantic/CHANGELOG.md @@ -4,6 +4,40 @@ 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.0] - 2024-06-26 + +- 6796891 ast: [**BREAKING**] Rename all instances of `BigintLiteral` to `BigIntLiteral`. (#3898) (rzvxa) + +- ae09a97 ast: [**BREAKING**] Remove `Modifiers` from ts nodes (#3846) (Boshen) + +- 1af5ed3 ast: [**BREAKING**] Replace `Modifiers` with `declare` and `const` on `EnumDeclaration` (#3845) (Boshen) + +- 0673677 ast: [**BREAKING**] Replace `Modifiers` with `declare` on `Function` (#3844) (Boshen) + +- ee6ec4e ast: [**BREAKING**] Replace `Modifiers` with `declare` and `abstract` on `Class` (#3841) (Boshen) + +- 9b38119 ast: [**BREAKING**] Replace `Modifiers` with `declare` on `VariableDeclaration` (#3839) (Boshen) + +- 4456034 ast: [**BREAKING**] Add `IdentifierReference` to `ExportSpecifier` (#3820) (Boshen) + +### Features + +- d5f6aeb semantic: Check for illegal symbol modifiers (#3838) (Don Isaac) + +### Bug Fixes + +- 8c9fc63 semantic: Apply strict mode scope flag for strict mode TS Modules (#3861) (overlookmotel) +- 99a40ce semantic: `export default foo` should have `ExportLocalName::Default(NameSpan)` entry (#3823) (Boshen) +- 17ad8f7 transformer: Create new scopes for new blocks in TS transform (#3908) (overlookmotel) + +### Performance + +- 10d1de5 semantic: Remove uneccessary allocation in builder (#3867) (DonIsaac)- 4f7ff7e Do not pass `&Atom` to functions (#3818) (overlookmotel) + +### Refactor + +- 187f078 parser: Improve parsing of `parse_function_or_constructor_type` (#3892) (Boshen)- d6437fe Clean up some usages of `with_labels` (#3854) (Boshen) + ## [0.15.0] - 2024-06-18 - 0537d29 cfg: [**BREAKING**] Move control flow to its own crate. (#3728) (rzvxa) diff --git a/crates/oxc_semantic/Cargo.toml b/crates/oxc_semantic/Cargo.toml index e174bfe10814d..3758014340286 100644 --- a/crates/oxc_semantic/Cargo.toml +++ b/crates/oxc_semantic/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_semantic" -version = "0.15.0" +version = "0.16.0" authors.workspace = true description.workspace = true edition.workspace = true diff --git a/crates/oxc_sourcemap/CHANGELOG.md b/crates/oxc_sourcemap/CHANGELOG.md index 78fd793b1b221..9dd1448724f75 100644 --- a/crates/oxc_sourcemap/CHANGELOG.md +++ b/crates/oxc_sourcemap/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.0] - 2024-06-26 + +### Features + +- 01572f0 sourcemap: Impl `std::fmt::Display` for `Error` (#3902) (DonIsaac)- d3cd3ea Oxc transform binding (#3896) (underfin) + ## [0.13.1] - 2024-05-22 ### Features diff --git a/crates/oxc_sourcemap/Cargo.toml b/crates/oxc_sourcemap/Cargo.toml index 6c46c2d6d2a3b..5254faf59e8ff 100644 --- a/crates/oxc_sourcemap/Cargo.toml +++ b/crates/oxc_sourcemap/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_sourcemap" -version = "0.15.0" +version = "0.16.0" authors.workspace = true description.workspace = true edition.workspace = true diff --git a/crates/oxc_span/Cargo.toml b/crates/oxc_span/Cargo.toml index f6e2416e50ad8..01e0e40809c11 100644 --- a/crates/oxc_span/Cargo.toml +++ b/crates/oxc_span/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_span" -version = "0.15.0" +version = "0.16.0" publish = true authors.workspace = true description.workspace = true diff --git a/crates/oxc_syntax/CHANGELOG.md b/crates/oxc_syntax/CHANGELOG.md index 4c59c562e600d..4d3752e9146c9 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.0] - 2024-06-26 + +### Bug Fixes + +- 99a40ce semantic: `export default foo` should have `ExportLocalName::Default(NameSpan)` entry (#3823) (Boshen) + ## [0.13.4] - 2024-06-07 ### Bug Fixes diff --git a/crates/oxc_syntax/Cargo.toml b/crates/oxc_syntax/Cargo.toml index 21c230fe81c72..868f757245fd7 100644 --- a/crates/oxc_syntax/Cargo.toml +++ b/crates/oxc_syntax/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_syntax" -version = "0.15.0" +version = "0.16.0" publish = true authors.workspace = true description.workspace = true diff --git a/crates/oxc_transformer/CHANGELOG.md b/crates/oxc_transformer/CHANGELOG.md index a3fb698e57b08..0567dad000054 100644 --- a/crates/oxc_transformer/CHANGELOG.md +++ b/crates/oxc_transformer/CHANGELOG.md @@ -4,6 +4,53 @@ 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.0] - 2024-06-26 + +- 1f85f1a ast: [**BREAKING**] Revert adding `span` field to the `BindingPattern` type. (#3899) (rzvxa) + +- ae09a97 ast: [**BREAKING**] Remove `Modifiers` from ts nodes (#3846) (Boshen) + +- 1af5ed3 ast: [**BREAKING**] Replace `Modifiers` with `declare` and `const` on `EnumDeclaration` (#3845) (Boshen) + +- 0673677 ast: [**BREAKING**] Replace `Modifiers` with `declare` on `Function` (#3844) (Boshen) + +- ee6ec4e ast: [**BREAKING**] Replace `Modifiers` with `declare` and `abstract` on `Class` (#3841) (Boshen) + +- 9b38119 ast: [**BREAKING**] Replace `Modifiers` with `declare` on `VariableDeclaration` (#3839) (Boshen) + +- cfcef24 ast: [**BREAKING**] Add `directives` field to `TSModuleBlock` (#3830) (Boshen) + +- 4456034 ast: [**BREAKING**] Add `IdentifierReference` to `ExportSpecifier` (#3820) (Boshen) + +### Features + +- 5501d5c transformer/typescript: Transform `import {} from "mod"` to import `"mod"` (#3866) (Dunqing) + +### Bug Fixes + +- 08fcfb3 transformer: Fix spans and scopes in TS enum transform (#3911) (overlookmotel) +- 17ad8f7 transformer: Create new scopes for new blocks in TS transform (#3908) (overlookmotel) +- d76f34b transformer: TODO comments for missing scopes (#3837) (overlookmotel) +- e470731 transformer: TS transform handle when type exports first (#3833) (overlookmotel) +- d774e54 transformer: TS transform generate do not copy statements (#3832) (overlookmotel) +- ff1da27 transformer: Correct comment in example (#3831) (overlookmotel) +- 6dcc3f4 transformer: Fix TS annotation transform scopes (#3816) (overlookmotel) +- aea3e9a transformer: Correct spans for TS annotations transform (#3782) (overlookmotel) + +### Performance +- 4f7ff7e Do not pass `&Atom` to functions (#3818) (overlookmotel) + +### Refactor + +- 363d3d5 ast: Add span field to the `BindingPattern` type. (#3855) (rzvxa) +- 5ef28b7 transformer: Shorten code (#3912) (overlookmotel) +- d9f268d transformer: Shorten TS transform code (#3836) (overlookmotel) +- 21b0d01 transformer: Pass ref to function (#3781) (overlookmotel) +- 7c44703 transformer: Remove needless `pub` on TS enum transform methods (#3774) (overlookmotel) +- 22c56d7 transformer: Move TSImportEqualsDeclaration transform code (#3764) (overlookmotel) +- cd56aa9 transformer: Simplify TS export assignment transform (#3762) (overlookmotel) +- 512740d transformer: Move and simplify TS enum transform entry point (#3760) (overlookmotel) + ## [0.15.0] - 2024-06-18 - 5c38a0f codegen: [**BREAKING**] New code gen API (#3740) (Boshen) diff --git a/crates/oxc_transformer/Cargo.toml b/crates/oxc_transformer/Cargo.toml index a377a24c39fb4..63b9ad58a589d 100644 --- a/crates/oxc_transformer/Cargo.toml +++ b/crates/oxc_transformer/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_transformer" -version = "0.15.0" +version = "0.16.0" publish = true authors.workspace = true description.workspace = true diff --git a/crates/oxc_traverse/CHANGELOG.md b/crates/oxc_traverse/CHANGELOG.md index 76ffcdaafbf95..d39dd1ab24578 100644 --- a/crates/oxc_traverse/CHANGELOG.md +++ b/crates/oxc_traverse/CHANGELOG.md @@ -4,6 +4,45 @@ 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.0] - 2024-06-26 + +- 6796891 ast: [**BREAKING**] Rename all instances of `BigintLiteral` to `BigIntLiteral`. (#3898) (rzvxa) + +- 1f85f1a ast: [**BREAKING**] Revert adding `span` field to the `BindingPattern` type. (#3899) (rzvxa) + +- ae09a97 ast: [**BREAKING**] Remove `Modifiers` from ts nodes (#3846) (Boshen) + +- 1af5ed3 ast: [**BREAKING**] Replace `Modifiers` with `declare` and `const` on `EnumDeclaration` (#3845) (Boshen) + +- 0673677 ast: [**BREAKING**] Replace `Modifiers` with `declare` on `Function` (#3844) (Boshen) + +- ee6ec4e ast: [**BREAKING**] Replace `Modifiers` with `declare` and `abstract` on `Class` (#3841) (Boshen) + +- 9b38119 ast: [**BREAKING**] Replace `Modifiers` with `declare` on `VariableDeclaration` (#3839) (Boshen) + +- cfcef24 ast: [**BREAKING**] Add `directives` field to `TSModuleBlock` (#3830) (Boshen) + +- 4456034 ast: [**BREAKING**] Add `IdentifierReference` to `ExportSpecifier` (#3820) (Boshen) + +### Features + +- 5847e16 ast,parser: Add `intrinsic` keyword (#3767) (Boshen) +- 2a16ce0 traverse: Disable syntax check and disable build module record (#3794) (Boshen) + +### Bug Fixes + +- 08fcfb3 transformer: Fix spans and scopes in TS enum transform (#3911) (overlookmotel) +- 17ad8f7 transformer: Create new scopes for new blocks in TS transform (#3908) (overlookmotel) + +### Refactor + +- 363d3d5 ast: Add span field to the `BindingPattern` type. (#3855) (rzvxa) +- 4cf3c76 parser: Improve parsing of TypeScript types (#3903) (Boshen) +- 1061baa traverse: Separate `#[scope]` attr (#3901) (overlookmotel) +- fcd21a6 traverse: Indicate scope entry point with `scope(enter_before)` attr (#3882) (overlookmotel) +- 24979c9 traverse: Use camel case props internally (#3880) (overlookmotel) +- 2045c92 traverse: Improve parsing attrs in traverse codegen (#3879) (overlookmotel) + ## [0.15.0] - 2024-06-18 - 0578ece ast: [**BREAKING**] Remove `ExportDefaultDeclarationKind::TSEnumDeclaration` (#3666) (Dunqing) diff --git a/crates/oxc_traverse/Cargo.toml b/crates/oxc_traverse/Cargo.toml index 326fe44ddb61f..1045aca1c6a0b 100644 --- a/crates/oxc_traverse/Cargo.toml +++ b/crates/oxc_traverse/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_traverse" -version = "0.15.0" +version = "0.16.0" publish = true authors.workspace = true description.workspace = true diff --git a/npm/oxc-parser/package.json b/npm/oxc-parser/package.json index da6e3e9c7f84f..b495ab1db9191 100644 --- a/npm/oxc-parser/package.json +++ b/npm/oxc-parser/package.json @@ -1,6 +1,6 @@ { "name": "oxc-parser", - "version": "0.15.0", + "version": "0.16.0", "description": "Oxc Parser Node API", "keywords": [ "Parser" diff --git a/npm/oxc-transform/package.json b/npm/oxc-transform/package.json index f76495ef9f00e..02a12f967d799 100644 --- a/npm/oxc-transform/package.json +++ b/npm/oxc-transform/package.json @@ -1,6 +1,6 @@ { "name": "oxc-transform", - "version": "0.15.1", + "version": "0.16.0", "description": "Oxc transform Node API", "keywords": [ "transform" @@ -22,4 +22,4 @@ "index.d.ts", "index.js" ] -} +} \ No newline at end of file diff --git a/wasm/parser/package.json b/wasm/parser/package.json index 7160478a7e5c0..11d1cc4dec618 100644 --- a/wasm/parser/package.json +++ b/wasm/parser/package.json @@ -1,6 +1,6 @@ { "name": "@oxc-parser/wasm", - "version": "0.15.0", + "version": "0.16.0", "description": "Wasm target for the oxc parser.", "keywords": [ "JavaScript",