mirror of
https://github.com/danbulant/oxc
synced 2026-05-24 12:21:58 +00:00
## [0.23.1] - 2024-08-06 ### Features -fd2d9daast: Improve `AstKind::debug_name` (#4553) (DonIsaac) -b3b7028ast: Implement missing Clone, Hash, and Display traits for literals (#4552) (DonIsaac) -54047e0ast: `GetSpanMut` trait (#4609) (overlookmotel) -eae401cast, ast_macros: Apply stable repr to all `#[ast]` enums (#4373) (rzvxa) -0c52c0dast_codegen: Add alignment and size data to the schema. (#4615) (rzvxa) -229a0e9minifier: Implement dot define for member expressions (#3959) (camc314) -e42ac3asourcemap: Add `ConcatSourceMapBuilder::from_sourcemaps` (#4639) (overlookmotel) ### Bug Fixes -4a56954codegen: Print raw if value is number is Infinity (#4676) (Boshen) -bf48c7fminifier: Fix `keep_var` keeping vars from arrow functions (#4680) (Boshen) -9be29afminifier: Temporarily fix shadowed `undefined` variable (#4678) (Boshen) -e8b662aminifier: Various fixes to pass minifier conformance (#4667) (Boshen) -a40a217parser: Parse `assert` keyword in `TSImportAttributes` (#4610) (Boshen) -03c643asemantic: Incorrect `scope_id` for catch parameter symbols (#4659) (Dunqing) -6c612d1semantic/jsdoc: Handle whitespace absence (#4642) (leaysgur) -0d2c41asemantic/jsdoc: Panic on parsing `type_name_comment`. (#4632) (rzvxa) -9f8f299syntax: Prevent creating invalid u32 IDs (#4675) (overlookmotel) -5327acdtransformer/react: The `require` IdentifierReference does not have a `reference_id` (#4658) (Dunqing) -3987665transformer/typescript: Incorrect enum-related `symbol_id`/`reference_id` (#4660) (Dunqing) -4efd54btransformer/typescript: Incorrect `SymbolFlags` for jsx imports (#4549) (Dunqing) ### Performance -8dd76e4codegen: Reduce size of `LineOffsetTable` (#4643) (overlookmotel) -b8e6753codegen: `u32` indexes in `LineOffsetTable` for source maps (#4641) (overlookmotel) -6ff200dlinter: Change react rules and utils to use `Cow` and `CompactStr` instead of `String` (#4603) (DonIsaac) -0f5e982minifier: Only visit arrow expression after dropping `console.log` (#4677) (Boshen) -ff43dffsourcemap: Speed up VLQ encoding (#4633) (overlookmotel) -a330773sourcemap: Reduce string copying in `ConcatSourceMapBuilder` (#4638) (overlookmotel) -372316bsourcemap: `ConcatSourceMapBuilder` extend `source_contents` in separate loop (#4634) (overlookmotel) -c7f1d48sourcemap: Keep local copy of previous token in VLQ encode (#4596) (overlookmotel) -590d795sourcemap: Shorten main loop encoding VLQ (#4586) (overlookmotel) ### Documentation -c69ada4ast: Improve AST node documentation (#4051) (Rintaro Itokawa) ### Refactor -ba70001ast: Put `assert_layouts.rs` behind `debug_assertions` (#4621) (rzvxa) -3f53b6fast: Make AST structs `repr(C)`. (#4614) (rzvxa) -452e0eeast: Remove defunct `visit_as` + `visit_args` attrs from `#[ast]` macro (#4599) (overlookmotel) -e78cba6minifier: Ast passes infrastructure (#4625) (Boshen) -d25dea7parser: Use `ast_builder` in more places. (#4612) (rzvxa) -09d9822semantic: Simplify setting scope flags (#4674) (overlookmotel) -6e453dbsemantic: Simplify inherit scope flags from parent scope (#4664) (Dunqing)-9b51e04Overhaul napi transformer package (#4592) (DonIsaac) ### Testing -49d5196ast: Fix `assert_layouts.rs` offset tests on 32bit platforms. (#4620) (rzvxa) Co-authored-by: Boshen <1430279+Boshen@users.noreply.github.com>
7.7 KiB
7.7 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.23.1] - 2024-08-06
Features
229a0e9minifier: Implement dot define for member expressions (#3959) (camc314)
Bug Fixes
bf48c7fminifier: Fixkeep_varkeeping vars from arrow functions (#4680) (Boshen)9be29afminifier: Temporarily fix shadowedundefinedvariable (#4678) (Boshen)e8b662aminifier: Various fixes to pass minifier conformance (#4667) (Boshen)
Performance
0f5e982minifier: Only visit arrow expression after droppingconsole.log(#4677) (Boshen)
Refactor
e78cba6minifier: Ast passes infrastructure (#4625) (Boshen)
[0.23.0] - 2024-08-01
Features
a558492codegen: ImplementBinaryExpressionVisitor(#4548) (Boshen)
Bug Fixes
6a94e3fcodegen: Fixes for esbuild test cases (#4503) (Boshen)
[0.22.0] - 2024-07-23
Features
0deb027minfier: Dceif (xxx) else if (false) { REMOVE }(#4407) (Boshen)e33ec18minifier: Compresstypeof foo == "undefined"intotypeof foo > "u"(#4412) (Boshen)
Bug Fixes
267f7c4minifier: SkipObject.defineProperty(exports, ...)forcjs-module-lexer(#4409) (Boshen)
[0.21.0] - 2024-07-18
Features
83c2c62codegen: Add option for choosing quotes; remove slowchoose_quotmethod (#4219) (Boshen)5d17675mangler: Add debug mode (#4314) (Boshen)e3e663bmangler: Initialize crate and integrate into minifier (#4197) (Boshen)c818472minifier: Dce conditional expression&&or||(#4190) (Boshen)
Bug Fixes
e167ef7codegen: Print parenthesis properly (#4245) (Boshen)f144082minifier: RemoveDeadCode should visit nested expression (#4268) (underfin)
Refactor
2c7bb9fast: Pass finalScopeFlagsintovisit_function(#4283) (overlookmotel)
[0.20.0] - 2024-07-11
Features
54cd04aminifier: Implement dce with var hoisting (#4160) (Boshen)44a894aminifier: Implement return statement dce (#4155) (Boshen)
[0.19.0] - 2024-07-09
b936162ast/ast_builder: [BREAKING] Shorter allocator utility method names. (#4122) (rzvxa)
Refactor
[0.18.0] - 2024-07-09
d347aedast: [BREAKING] Generateast_builder.rs. (#3890) (rzvxa)
Features
c6c16a5minifier: Dce all conditional expressions (#4135) (Boshen)
[0.17.1] - 2024-07-06
Bug Fixes
719fb96minifier: Omit dceundefinedwhich can be a shadowed variable (#4073) (Boshen)
[0.17.0] - 2024-07-05
Features
0da9dfbminifier: Add constant folding to remove dead code (#4058) (Boshen)
Bug Fixes
aaac2d8codegen: Preserve parentheses from AST instead calculating from operator precedence (#4055) (Boshen)
Refactor
edb557cminifier: Add a folder struct for constant folding (#4057) (Boshen)
[0.16.2] - 2024-06-30
Performance
1eac3d2semantic: UseAtom<'a>forReferences (#3972) (Don Isaac)
[0.16.0] - 2024-06-26
6796891ast: [BREAKING] Rename all instances ofBigintLiteraltoBigIntLiteral. (#3898) (rzvxa)
Features
dd540c8minifier: Add skeleton for ReplaceGlobalDefines ast pass (#3803) (Boshen)f3c3970minifier: Add skeleton for RemoveDeadCode ast pass (#3802) (Boshen)
Bug Fixes
Refactor
8027b1eminifier: Change prepass to ast_passes::remove_parens (#3801) (Boshen)
[0.15.0] - 2024-06-18
-
5c38a0fcodegen: [BREAKING] New code gen API (#3740) (Boshen) -
534242acodegen: [BREAKING] RemoveCodegenOptions::enable_typescript(#3674) (Boshen)
Features
38a75e5coverage: Improve codegen (#3729) (Boshen)
Bug Fixes
8f64d99minifier: Respectjoin_vars: falseoption (#3724) (mysteryven)
[0.14.0] - 2024-06-12
Refactor
e90e6a2minifier: MakePrepassCopy(#3603) (overlookmotel)
[0.13.4] - 2024-06-07
Bug Fixes
affb2c8codegen: Print indentation before directive (#3512) (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)
[0.13.0] - 2024-05-14
Refactor
7e1fe36ast: Squash nested enums (#3115) (overlookmotel)a8af5desyntax: Move number related functions to number module (#3130) (Boshen)
[0.11.0] - 2024-03-30
Refactor
fc38783ast: Add walk_mut functions (#2776) (Ali Rezvani)d9b77d8sourcemap: Change sourcemap name to take a reference (#2779) (underfin)
[0.10.0] - 2024-03-14
Features
4f9dd98span: RemoveFrom<String>andFrom<Cow>API because they create memory leak (#2628) (Boshen)
Refactor
cbc2f5fRemove unused dependencies (#2718) (Boshen)-8001b2fMakeCompactStrimmutable (#2620) (overlookmotel)-0646bf3RenameCompactStringtoCompactStr(#2619) (overlookmotel)
[0.9.0] - 2024-03-05
Refactor
ef932a3codegen: Clean up API around building sourcemaps (#2602) (Boshen)903f17cspan: Move base54 method to mangler (#2523) (Boshen)
[0.8.0] - 2024-02-26
Features
6b3b260Codegen: Improve codegen (#2460) (Andrew McClenaghan)e6d536ccodegen: Configurable typescript codegen (#2443) (Andrew McClenaghan)
Refactor
d08abc6ast: S/NumberLiteral/NumericLiteral to align with estree (Boshen)e6b391aast: S/ArrowExpression/ArrowFunctionExpression to align estree (Boshen)-a2c173dRemovepanic!from examples (#2454) (Boshen)-70a0076Remove global allocator from non-user facing apps (#2401) (Boshen)
[0.7.0] - 2024-02-09
Refactor
1822cfeast: Fix BigInt memory leak by removing it (#2293) (Boshen)
[0.6.0] - 2024-02-03
Features
1ee6d8ccodegen: Move string test to codegen (#2150) (Wenzhe Wang)18a58d4minifier: Handle more expressions for side effects (#2062) (Bradley Farias)
Bug Fixes
29dc5e6codegen: Add parenthesis in binary expression by precedence (#2067) (Wenzhe Wang)
[0.4.0] - 2023-12-08
Features
c6ad660semantic: Support scope descendents starting from a certain scope. (#1629) (Miles Johnson)
Refactor
1a576f6rust: Move to workspace lint table (#1444) (Boshen)
[0.3.0] - 2023-11-06
Features
e0ca09bcodegen: Implement the basics of non-minifying codegen (#987) (Boshen)809f050codegen: Move minifying printer to codegen crate (#985) (Boshen)ef8aaa7minifier: Re-enable mangler (#972) (Boshen)14e1dacminifier: Reenable minifier tests (#969) (Boshen)f0029d5minifier: Reenable mangler (Boshen)55b2f03minifier: Partially re-enable minifier (#963) (Boshen)5b1e1e5parser: TypeScript 5.2 (#811) (Cameron)2e2b758playground: Add transform and minify (#993) (Boshen)ce79bc1transform_conformance: Move Formatter to codegen (#986) (Boshen)678db1dtransformer: ES2020 Nullish Coalescing Operator (#1004) (Boshen)0f72066transformer: Finish 2016 exponentiation operator (#996) (Boshen)-0e91044Adjust the order of print semicolon (#1003) (Wenzhe Wang)
Refactor
4787220ast: Clean up some methods (Boshen)903854dast: Fix the lifetime annotations around Vist and VisitMut (#973) (Boshen)db5417fclippy: Allow clippy::too_many_lines (Boshen)eaeb630clippy: Allow struct_excessive_bools (Boshen)801d78aminifier: Make the minifier api only accept an ast (#990) (Boshen)110059frust: ChangeRefCell.clone().into_inner()toRefCell.get()(Boshen)
[0.2.0] - 2023-09-14
Features
027a67dminifier: Constant addition expression folding (#882) (Don Isaac)e090b56minifier: Initialize conditions folding (#658) (阿良仔)c5ff534semantic: Addnode_idtoReference(#689) (Makoto Tateno)
Refactor
3516759ast: UseatomforDirectiveandHashbang(#701) (Yunfei He)