crates_v0.147.0
oxc crates_v0.147.0
Added 1
- Minifier now folds switch statements whose parent is not a block statement
Changed 9
- Codegen performance improved by removing node param from write and markMap functions in sourcemap builds
- Codegen performance improved by passing start and end to write and mark functions
- Codegen performance improved by replacing write calls with writeIdent
- Codegen performance improved by removing last param from writeWithMapNamed
- Codegen performance improved by eagerly initializing mapNames
- Codegen performance improved by splitting recording mappings into multiple functions
- Codegen performance improved by reducing property lookups
- Minifier now avoids allocations for single comment anchors
- Minifier now does not rebuild expression when substituting void to null
Fixed 9
- Codegen now requires sourcemap for example
- Estree now includes decorators in FormalParameterRest spans
- Minifier now avoids merging if to for in sloppy mode when containing function declaration
- Address nightly deprecations in Rust code
- Codegen now only adds mapping names for PrivateIdentifiers which have changed
- Parser now tracks irregular line terminators in trivia
- Minifier now avoids merging if to for when the body contains a function declaration
- Codegen now prints # before private identifier in TS signature key
- Minifier now keeps unary + when the other operand has side effects
From Oxc
🚀 Features
- b6e9e5e minifier: Fold switch stmt whose parent is not block stmt (#25403) (Armano)
🐛 Bug Fixes
- 8db1053 codegen: Require sourcemap for example (#26047) (camc314)
- 8a9bdbd estree: Include decorators in
FormalParameterRestspans (#26021) (camc314) - 6f0c7cf minifier: Avoid merging
iftoforin sloppy mode when containing function declaration (#25638) (sapphi-red) - 2cde1f6 rust: Address nightly deprecations (#25998) (Boshen)
- 6c5ad1b codegen: Only add mapping names for
PrivateIdentifiers which have changed (#25958) (overlookmotel) - 2dad1e0 parser: Track irregular line terminators in trivia (#25947) (camc314)
- 58ba651 minifier: Avoid merging
iftoforwhen the body contains a function declaration (#25637) (sapphi-red) - a185ac3 codegen: Print
#before private identifier in TS signature key (#25938) (overlookmotel) - af82a07 minifier: Keep unary
+when the other operand has side effects (#25645) (Kotaro Chikuba)
⚡ Performance
- 20711f4 packages/codegen: Remove
nodeparam fromwriteandmarkMapfunctions in sourcemap builds (#25989) (overlookmotel) - 29a7749 packages/codegen: Pass
startandendtowriteandmarkfunctions (#25986) (overlookmotel) - 8ae741b packages/codegen: Replace
writecalls withwriteIdent(#25984) (overlookmotel) - a78ed30 packages/codegen: Remove
lastparam fromwriteWithMapNamed(#25983) (overlookmotel) - 53f6270 packages/codegen: Eagerly initialize
mapNames(#25979) (overlookmotel) - 5b43c60 packages/codegen: Split recording mappings into multiple functions (#25978) (overlookmotel)
- cc947b5 packages/codegen: Reduce property lookups (#25977) (overlookmotel)
- c22a9cc packages/codegen: Combine condition checks (#25976) (overlookmotel)
- 215a6a5 packages/codegen: Add functions for writing/marking unnamed mappings (#25975) (overlookmotel)
- fe444cc codegen: Avoid allocations for single comment anchors (#25598) (camc314)
- a0aee81 minifier: Do not rebuild expression when substituting void to null (#25964) (Armano)
- 1004439 packages/codegen: Merge
markandwritecalls inprintImportAttributes(#25972) (overlookmotel) - 94c8a34 packages/codegen: Remove
nodeparam fromprintStringandprintNonNegativeFloat(#25971) (overlookmotel) - 7e2b4b3 packages/codegen:
printNonNegativeFloatwrite mapping directly (#25968) (overlookmotel) - f09c8ab minifier: Avoid creation of unnecessary conditional expressions (#25931) (Armano)
- 53ff080 packages/codegen: Remove
lastWasPostfixClose(#25888) (overlookmotel)
📚 Documentation
- 07de646 packages/codegen: Fix JSDoc comments on
write*methods (#25966) (overlookmotel) - 3b09c04 packages/codegen: Clarify comment (#25959) (overlookmotel)