Releases
v0.7.0
Compare
Sorry, something went wrong.
No results found
💥 Upgrade with Breaking Changes
Rename @swc-next/codegen to @swc-next/generator
Rename printSync to generateSync
Replace CodegenOptions with GenerateApiOptions (an alias of GeneratorConfig), and rename CodegenOutput to GenerateOutput
Replace ParserOptions with ParseApiOptions
Rename parser comment mode "flat" to "all"
Remove all AstMeta imports and re-exports. Remove meta from ParseResult destructuring, application types, wrappers, and mocks.
🚀 Features
(minifier) Optimize scopes that eval and with cannot reach (#1538 )
(core) [breaking ] Move JavaScript configuration and APIs into core (#1513 )
(formatter) Extend the document core for generic formatting (#1180 )
(minifier) Shorten property names (#1537 )
(bridge/transform) Add transformSync and transformer package (#1535 )
(formatter) Add SWCFMT Prettier plugin (#754 )
(protocol) Enable npm publishing (#1573 )
🐛 Bug Fixes
(parser) Reject in at the start of generic arrow type parameters (#1533 )
(parser) Require a body for identifier-named namespace and module declarations (#1549 )
(codec) Preserve AST metadata across encode/decode roundtrips (#1552 )
(transformer) Support JSX spread children (#1558 )
(benchmark) Use a separate arena for each semantic iteration (#1560 )
(parser) Preserve hashbang lengths beyond 64 KiB (#1563 )
(transformer) Track enum initialization independently of spans (#1554 )
(transformer) Preserve enum member write references (#1555 )
(transformer) Retain enum values per declaration (#1556 )
🚜 Refactor
(ast) [breaking ] Reapply diagnostic lifetime removal (#1530 )
(semantic) Record node scopes when created (#1539 )
(core) [breaking ] Remove JavaScript AST metadata (#1542 )
(transformer) Migrate regressions to compile snapshots (#1544 )
(npm) [breaking ] Bundle internal protocols at build time (#1568 )
📚 Documentation
Require priority and effort fields on swc-next-issues issues (#1541 )
Update parser benchmark links and speedups (#1548 )
Sync overview benchmark links and speedups (#1550 )
Clarify internal binary protocol compatibility (#1566 )
⚡ Performance
(semantic) Avoid quadratic named capture validation (#1525 )
(parser) Reject non-generic arrow prefixes before speculation (#1531 )
(parser) Compact optional token storage (#1534 )
(parser) Classify identifier continuation bytes in SIMD lanes (#1532 )
(parser) Avoid an indirect branch per token (#1545 )
(core) Reduce JavaScript transfer allocations (#1546 )
(semantic) Skip scopes without bindings in JavaScript name lookup (#1547 )
(ast) [breaking ] Pack extra data into four-byte units (#1551 )
(minifier) Use dense bitsets for node and symbol sets (#1565 )
(minifier) Reuse buffers in statement and value removal (#1571 )
(minifier) Avoid hash lookups for symbol tables and reads (#1570 )
(parser) Read comments on the lexer fast path (#1575 )
(parser) Look up keywords from the identifier scan batch (#1574 )
⚙️ Miscellaneous Tasks
(benchmark) Improve transformer benchmark coverage (#1553 )
You can’t perform that action at this time.