## [0.16.0] - 2024-06-26 -6796891ast: [**BREAKING**] Rename all instances of `BigintLiteral` to `BigIntLiteral`. (#3898) (rzvxa) -1f85f1aast: [**BREAKING**] Revert adding `span` field to the `BindingPattern` type. (#3899) (rzvxa) -ae09a97ast: [**BREAKING**] Remove `Modifiers` from ts nodes (#3846) (Boshen) -1af5ed3ast: [**BREAKING**] Replace `Modifiers` with `declare` and `const` on `EnumDeclaration` (#3845) (Boshen) -0673677ast: [**BREAKING**] Replace `Modifiers` with `declare` on `Function` (#3844) (Boshen) -ee6ec4east: [**BREAKING**] Replace `Modifiers` with `declare` and `abstract` on `Class` (#3841) (Boshen) -9b38119ast: [**BREAKING**] Replace `Modifiers` with `declare` on `VariableDeclaration` (#3839) (Boshen) -cfcef24ast: [**BREAKING**] Add `directives` field to `TSModuleBlock` (#3830) (Boshen) -4456034ast: [**BREAKING**] Add `IdentifierReference` to `ExportSpecifier` (#3820) (Boshen) ### Features -497769cast: Add some visitor functions (#3785) (Dunqing) -4b06dc7ast: Add TSType::TSIntrinsicKeyword to is_keyword (#3775) (Dunqing) -5847e16ast,parser: Add `intrinsic` keyword (#3767) (Boshen) -2e026e1ast_codegen: Generate `ast_kind.rs`. (#3888) (rzvxa) -09f4d3cast_codegen: Add `ImplGetSpanGenerator`. (#3852) (rzvxa) -3e78f98cfg: Add depth first search with hash sets. (#3771) (rzvxa) -01da2f7codegen: Print TSThisParameter for TSCallSignatureDeclaration and TSMethodSignature (#3792) (Dunqing) -2821e0ecodegen: Print readonly keyword for TSIndexSignature (#3791) (Dunqing) -97575d8codegen: Print TSClassImplements and TSThisParameter (#3786) (Dunqing) -5e2baf3isolated-declarations: Report error for expando functions (#3872) (Dunqing) -2cdb34fisolated-declarations: Support for class function overloads (#3811) (Dunqing) -231b8f0isolated-declarations: Support for export default function overloads (#3809) (Dunqing) -a37138fisolated-declarations: Improve the inference template literal (#3797) (Dunqing) -b0d7355isolated-declarations: Transform const expression correctly (#3793) (Dunqing) -b38c34disolated-declarations: Support inferring ParenthesizedExpression (#3769) (Dunqing) -4134de8isolated-declarations: Add ts error code to the error message (#3755) (Dunqing) -94202deisolated-declarations: Add `export {}` when needed (#3754) (Dunqing) -e95d8e3isolated-declarations: Shrink span for arrow function that needs an explicit return type (#3752) (Dunqing) -df9971disolated-declarations: Improve inferring the return type from function (#3750) (Dunqing) -4aea2b1isolated-declarations: Improve inferring the type of accessor (#3749) (Dunqing) -9ea30c4isolated-declarations: Treat AssignmentPattern as optional (#3748) (Dunqing) -dd540c8minifier: Add skeleton for ReplaceGlobalDefines ast pass (#3803) (Boshen) -f3c3970minifier: Add skeleton for RemoveDeadCode ast pass (#3802) (Boshen) -4fb90eboxc: Export isolated-declarations (#3765) (Boshen) -d5f6aebsemantic: Check for illegal symbol modifiers (#3838) (Don Isaac) -01572f0sourcemap: Impl `std::fmt::Display` for `Error` (#3902) (DonIsaac) -5501d5ctransformer/typescript: Transform `import {} from "mod"` to import `"mod"` (#3866) (Dunqing) -2a16ce0traverse: Disable syntax check and disable build module record (#3794) (Boshen)-d3cd3eaOxc transform binding (#3896) (underfin) ### Bug Fixes -063cfdeast: Correct JSON serialization of `TSModuleBlock` (#3858) (overlookmotel) -66f404cast: Fix JSON serialization of `BindingPattern` (#3856) (overlookmotel) -2766594codegen: Print type parameters for MethodDefinition (#3922) (Dunqing) -27f0531isolated-declarations: Private constructor reaching unreachable (#3921) (Dunqing) -59ce38bisolated-declarations: Inferring of UnrayExpression incorrectly (#3920) (Dunqing) -58e54f4isolated-declarations: Report an error for parameters if they are ObjectPattern or ArrayPattern without an explicit type (#3810) (Dunqing) -cb8a272isolated-declarations: Cannot infer nested `as const` (#3807) (Dunqing) -d8ecce5isolated-declarations: Infer BigInt number as `bigint` type (#3806) (Dunqing) -4e241fcisolated-declarations: Missing `const` after transformed const enum (#3805) (Dunqing) -683c7b0isolated-declarations: Shouldn’t add declare in declaration with export default (#3804) (Dunqing) -7d47fc3isolated-declarations: Should stripe async and generator keyword after transformed (#3790) (Dunqing) -8ce794disolated-declarations: Inferring an incorrect return type when there is an arrow function inside a function (#3768) (Dunqing) -d29316aisolated-declarations: Transform incorrectly when there are multiple functions with the same name (#3753) (Dunqing) -bf1c250isolated-declarations: False positives for non-exported binding elements (#3751) (Dunqing) -275349aparser: Parse function type parameter name `accessor` (#3926) (Boshen) -ef82c78parser: Trailing comma is not allowed in ParenthesizedExpression (#3885) (Dunqing) -13754cbparser: Change diagnostic to "modifier cannot be used here" (#3853) (Boshen) -8c9fc63semantic: Apply strict mode scope flag for strict mode TS Modules (#3861) (overlookmotel) -99a40cesemantic: `export default foo` should have `ExportLocalName::Default(NameSpan)` entry (#3823) (Boshen) -08fcfb3transformer: Fix spans and scopes in TS enum transform (#3911) (overlookmotel) -17ad8f7transformer: Create new scopes for new blocks in TS transform (#3908) (overlookmotel) -d76f34btransformer: TODO comments for missing scopes (#3837) (overlookmotel) -e470731transformer: TS transform handle when type exports first (#3833) (overlookmotel) -d774e54transformer: TS transform generate do not copy statements (#3832) (overlookmotel) -ff1da27transformer: Correct comment in example (#3831) (overlookmotel) -6dcc3f4transformer: Fix TS annotation transform scopes (#3816) (overlookmotel) -aea3e9atransformer: Correct spans for TS annotations transform (#3782) (overlookmotel) ### Performance -92c21b2diagnostics: Optimize string-buffer reallocations (#3897) (Luca Bruno) -4bf405dparser: Add a few more inline hints to cursor functions (#3894) (Boshen) -10d1de5semantic: Remove uneccessary allocation in builder (#3867) (DonIsaac)-4f7ff7eDo not pass `&Atom` to functions (#3818) (overlookmotel) ### Refactor -6f26087ast: Add comment about alternatives to `AstBuilder::copy` (#3905) (overlookmotel) -442aca3ast: Add comment not to use `AstBuilder::copy` (#3891) (overlookmotel) -acf69faast: Refactor custom `Serialize` impls (#3859) (overlookmotel) -9e148e9ast: Add line breaks (#3860) (overlookmotel) -363d3d5ast: Add span field to the `BindingPattern` type. (#3855) (rzvxa) -a648748ast: Shorten code in AST builder (#3835) (overlookmotel) -1206967ast: Reduce allocations in AST builder (#3834) (overlookmotel) -2f5d50eisolated-declarations: Remove `Modifiers` (#3847) (Boshen) -8027b1eminifier: Change prepass to ast_passes::remove_parens (#3801) (Boshen) -a471e62parser: Clean up `try_parse` (#3925) (Boshen) -3db2553parser: Improve parsing of TypeScript type arguments (#3923) (Boshen) -4cf3c76parser: Improve parsing of TypeScript types (#3903) (Boshen) -187f078parser: Improve parsing of `parse_function_or_constructor_type` (#3892) (Boshen) -97d59fcparser: Move code around for parsing `Modifiers` (#3849) (Boshen) -5ef28b7transformer: Shorten code (#3912) (overlookmotel) -d9f268dtransformer: Shorten TS transform code (#3836) (overlookmotel) -21b0d01transformer: Pass ref to function (#3781) (overlookmotel) -7c44703transformer: Remove needless `pub` on TS enum transform methods (#3774) (overlookmotel) -22c56d7transformer: Move TSImportEqualsDeclaration transform code (#3764) (overlookmotel) -cd56aa9transformer: Simplify TS export assignment transform (#3762) (overlookmotel) -512740dtransformer: Move and simplify TS enum transform entry point (#3760) (overlookmotel) -1061baatraverse: Separate `#[scope]` attr (#3901) (overlookmotel) -fcd21a6traverse: Indicate scope entry point with `scope(enter_before)` attr (#3882) (overlookmotel) -24979c9traverse: Use camel case props internally (#3880) (overlookmotel) -2045c92traverse: Improve parsing attrs in traverse codegen (#3879) (overlookmotel)-d6437feClean up some usages of `with_labels` (#3854) (Boshen) Co-authored-by: Boshen <Boshen@users.noreply.github.com>
10 KiB
Changelog
All notable changes to this package will be documented in this file.
The format is based on Keep a Changelog, and this project does not adhere to Semantic Versioning until v1.0.0.
[0.16.0] - 2024-06-26
-
6796891ast: [BREAKING] Rename all instances ofBigintLiteraltoBigIntLiteral. (#3898) (rzvxa) -
ae09a97ast: [BREAKING] RemoveModifiersfrom ts nodes (#3846) (Boshen) -
1af5ed3ast: [BREAKING] ReplaceModifierswithdeclareandconstonEnumDeclaration(#3845) (Boshen) -
0673677ast: [BREAKING] ReplaceModifierswithdeclareonFunction(#3844) (Boshen) -
ee6ec4east: [BREAKING] ReplaceModifierswithdeclareandabstractonClass(#3841) (Boshen) -
9b38119ast: [BREAKING] ReplaceModifierswithdeclareonVariableDeclaration(#3839) (Boshen) -
cfcef24ast: [BREAKING] Adddirectivesfield toTSModuleBlock(#3830) (Boshen) -
4456034ast: [BREAKING] AddIdentifierReferencetoExportSpecifier(#3820) (Boshen)
Features
5847e16ast,parser: Addintrinsickeyword (#3767) (Boshen)01da2f7codegen: Print TSThisParameter for TSCallSignatureDeclaration and TSMethodSignature (#3792) (Dunqing)2821e0ecodegen: Print readonly keyword for TSIndexSignature (#3791) (Dunqing)97575d8codegen: Print TSClassImplements and TSThisParameter (#3786) (Dunqing)
Bug Fixes
2766594codegen: Print type parameters for MethodDefinition (#3922) (Dunqing)
Performance
4f7ff7eDo not pass&Atomto functions (#3818) (overlookmotel)
Refactor
4cf3c76parser: Improve parsing of TypeScript types (#3903) (Boshen)
[0.15.0] - 2024-06-18
-
5c38a0fcodegen: [BREAKING] New code gen API (#3740) (Boshen) -
534242acodegen: [BREAKING] RemoveCodegenOptions::enable_typescript(#3674) (Boshen) -
0578eceast: [BREAKING] RemoveExportDefaultDeclarationKind::TSEnumDeclaration(#3666) (Dunqing)
Features
5a99d30codegen: Improve codegen formatting (#3735) (Boshen)bf9b38acodegen: Improve codegen formatting (#3731) (Boshen)4a004e2codegen: Print TSImport remaining fields (#3695) (Dunqing)a56cb1bcodegen: Print accessibility for MethodDefinition (#3690) (Dunqing)38a75e5coverage: Improve codegen (#3729) (Boshen)4f2db46transformer-dts:--isolatedDeclarationsdts transform (#3664) (Dunqing)
Bug Fixes
da1e2d0codegen: Improve typescript codegen (#3708) (Boshen)
Refactor
fa7a6bacodegen: Addgenmethod to ast nodes (#3687) (Boshen)09b92b6codegen: Movegen_tsintogento make searching things easier (#3680) (Boshen)815260eisolated-declarations: Decouple codegen (#3715) (Boshen)4f16664transformer_dts: Create aProgramfor codegen (#3679) (Boshen)
[0.14.0] - 2024-06-12
Refactor
f98f777linter: Add rule fixer (#3589) (Don Isaac)
[0.13.4] - 2024-06-07
Features
5c8e16ccoverage: Second transformer build does not print typescript (#3561) (Dunqing)
Bug Fixes
affb2c8codegen: Print indentation before directive (#3512) (Dunqing)
[0.13.3] - 2024-06-04
Bug Fixes
98c9029codegen: Should be double quote for jsx attribute value (#3516) (Dunqing)d8063b6codegen: Wrong escape string (#3514) (Dunqing)
Refactor
ddac2a0codegen: Reduce allocation for print_unquoted_str (#3525) (Dunqing)
[0.13.2] - 2024-06-03
Features
0cdb45aoxc_codegen: Preserve annotate comment (#3465) (IWANABETHATGUY)
[0.13.1] - 2024-05-22
Features
e2dd8acsyntax: Exportis_reserved_keywordandis_global_objectmethod (#3384) (Boshen)
Bug Fixes
a12ed0fcodegen: Using declaration in for statement (#3285) (Don Isaac)
Refactor
9ced605parser: Start porting arrow function parsing from tsc (#3340) (Boshen)e879685sourcemap: Using binary search to search original position (#3360) (underfin)
[0.13.0] - 2024-05-14
Features
eefb66fast: Add type to AccessorProperty to support TSAbractAccessorProperty (#3256) (Dunqing)
Bug Fixes
0ba7778parser: Correctly parse cls.fn = x (#3208) (Dunqing)
Refactor
7e1fe36ast: Squash nested enums (#3115) (overlookmotel)0185eb2ast: Remove duplicateTSNamedTupleMemberrepresentation (#3101) (overlookmotel)a8af5desyntax: Move number related functions to number module (#3130) (Boshen)
[0.12.5] - 2024-04-22
Features
92d709bast: AddCatchParameternode (#3049) (Boshen)
[0.12.4] - 2024-04-19
Features
fd5002bcodegen: Correctly print type-only imports/exports (#2993) (Dunqing)
[0.12.1] - 2024-04-03
Bug Fixes
28fae2esourcemap: Using serde_json::to_string to quote sourcemap string (#2889) (underfin)
Refactor
114f68ecodegen: Make codegen sourcemap builder clearer (#2894) (underfin)
[0.11.0] - 2024-03-30
Features
243131dtransformer: Numeric separator plugin. (#2795) (Ali Rezvani)-b199cb8Add oxc sourcemap crate (#2825) (underfin)-a2cfc86SourcemapVisualizer (#2773) (underfin)
Bug Fixes
6177c2fcodegen: Sourcemap token name should be original name (#2843) (underfin)b76b02dparser: Add support for empty module declaration (#2834) (Ali Rezvani)
Performance
2be5f9dcodegen: Avoid unnecessary copy (#2727) (underfin)d7004dasourcemap: Remove unnecessary binary search (#2728) (underfin)
Refactor
d9b77d8sourcemap: Change sourcemap name to take a reference (#2779) (underfin)
[0.10.0] - 2024-03-14
c3477deast: [BREAKING] Rename BigintLiteral to BigIntLiteral (#2659) (Arnaud Barré)
Bug Fixes
9609c34codegen:CallExpressionsourcemap (#2717) (underfin)b453a07parser: Parse named rest element in type tuple (#2655) (Arnaud Barré)
[0.9.0] - 2024-03-05
f66059east: [BREAKING] Align TSImportType with ESTree (#2578) (Arnaud Barré)
Features
20c7bf7ast: AddAssignmentTargetRest(#2601) (Boshen)3efbbb2ast: Add "abstract" type toMethodDefinitionandPropertyDefinition(#2536) (Boshen)8bb1084codegen: Add sourcemap (#2565) (Boshen)
Bug Fixes
ea30fd5codegen: Fix adding mapping to sourcemaps (#2590) (overlookmotel)fe29fa4codegen: Correct sourcemaps when Windows line breaks + unicode (#2584) (overlookmotel)517026bcodegen: Correct sourcemaps when unicode chars (#2583) (overlookmotel)
Performance
b7f5c63codegen: Speed up generating sourcemap mappings (#2597) (overlookmotel)42fa8ebcodegen: Speed up building sourcemap line tables (#2591) (overlookmotel)
Refactor
ef932a3codegen: Clean up API around building sourcemaps (#2602) (Boshen)
[0.8.0] - 2024-02-26
Features
6b3b260Codegen: Improve codegen (#2460) (Andrew McClenaghan)e6d536ccodegen: Configurable typescript codegen (#2443) (Andrew McClenaghan)
Bug Fixes
4327916codegen: Remove redundant semicolon in PropertyDefinition (#2511) (Dunqing)b5deb9acodegen: Whenasyncis on the left-hand side of a for-of, wrap it in parentheses (#2407) (Dunqing)384d5accodegen: Lower the level of precedence in TaggedTemplateExpression (#2391) (Wenzhe Wang)
Refactor
540f917ast: RemoveTSEnumBody(#2509) (Boshen)9087f71ast: S/TSThisKeyword/TSThisType to align with estree (Boshen)d08abc6ast: S/NumberLiteral/NumericLiteral to align with estree (Boshen)e6b391aast: S/ArrowExpression/ArrowFunctionExpression to align estree (Boshen)-a2c173dRemovepanic!from examples (#2454) (Boshen)
[0.7.0] - 2024-02-09
Features
55011e2codegen: Avoid printing comma in ArrayAssignmentTarget if the elements is empty (#2331) (Dunqing)
Bug Fixes
2eb489ecodegen: Format new expession + import expression with the correct parentheses (#2346) (Dunqing)721f6cbcodegen: Format new expression + call expression with the correct parentheses (#2330) (Boshen)
Refactor
1822cfeast: Fix BigInt memory leak by removing it (#2293) (Boshen)
[0.6.0] - 2024-02-03
Features
8ac0202codegen: Keep shorthand in ObjectPattern and ObjectProperty (#2265) (Dunqing)fa555cecodegen: Change back to read raw (#2222) (Wenzhe Wang)9333264codegen: Print TemplateLiteral withprint_str(#2207) (Wenzhe Wang)1ee6d8ccodegen: Move string test to codegen (#2150) (Wenzhe Wang)
Bug Fixes
0c225a4codegen: Print space before with clause in import (#2278) (Wenzhe Wang)d34650acodegen: Print necessary spaces forExportAllDeclaration(#2190) (Yunfei He)989ab88codegen: PrintDirectiveoriginal string (#2157) (underfin)29dc5e6codegen: Add parenthesis in binary expression by precedence (#2067) (Wenzhe Wang)
Refactor
766ca63ast: Rename RestElement to BindingRestElement (#2116) (Dunqing)
[0.5.0] - 2024-01-12
Refactor
a6717dbformatter,linter,codegen: Remove oxc_formatter (#1968) (Boshen)
[0.4.0] - 2023-12-08
Features
9ff0ffcast: Implement new proposal-import-attributes (#1476) (magic-akari)
Refactor
1a576f6rust: Move to workspace lint table (#1444) (Boshen)
[0.3.0] - 2023-11-06
Features
cef78accodegen: Indent inner class (#1085) (Wenzhe Wang)854b55acodegen: Json strings proposal (#1039) (Boshen)6c18b3ecodegen: Beauty class print (#995) (Wenzhe Wang)e0ca09bcodegen: Implement the basics of non-minifying codegen (#987) (Boshen)809f050codegen: Move minifying printer to codegen crate (#985) (Boshen)f28d96ccodegen: Initialize the codegen crate and struct (#983) (Boshen)2e2b758playground: Add transform and minify (#993) (Boshen)e8a4e81transformer: Implement some of jsx decode entities (#1086) (Boshen)af1a76btransformer: Implement some of needs_explicit_esm for typescript (#1047) (Boshen)dfee853transformer: Add utils to make logical_assignment_operators pass (#1017) (Boshen)678db1dtransformer: ES2020 Nullish Coalescing Operator (#1004) (Boshen)-094dfa5Support filter exec snap (#1084) (Wenzhe Wang)-0e91044Adjust the order of print semicolon (#1003) (Wenzhe Wang)
Bug Fixes
6295f9cast: Jsx attribute value and text child should be jsx string (#1089) (Boshen)f32bf27codegen: Fix some typescript codegen problems (#989) (Boshen)a455c81linter: Revert changes to JSX attribute strings (#1101) (Boshen)