Skip to content

v0.9.1

Latest

Choose a tag to compare

@SoonIter SoonIter released this 30 Nov 09:21
· 110 commits to main since this release
fbded68

🚀 Features

  • (transformer) Port legacy SWC transforms into v1 and wire into swc API (#1658)
  • (parser) Add a source-backed Markdown parser (#1653)
  • (formatter) Add Markdown formatting for Rust and Prettier (#1654)
  • (transformer) Expose v1 transformer API to JS packages and playground (#1679)
  • (transformer) Refine v1 transformer options, feature overrides, and validation (#1682)
  • (walker) Add merge API to combine visitors in a single AST traversal (#1684)
  • (loader) Add @swc-next/loader package (#1686)
  • (type-strip) [breaking] Report the kind of non-erasable syntax (#1702)
  • (markdown/parser) Expose a borrowed syntax cursor (#1698)
  • (transformer) Support module shorthand, interop, and dynamicImport options (#1764)

🐛 Bug Fixes

  • (formatter) Preserve control-flow and statement boundaries (#1634)
  • (formatter) Preserve TypeScript token boundaries (#1632)
  • (formatter) Keep comments with their original expressions (#1633)
  • (formatter) Preserve comments at declaration and body boundaries (#1635)
  • (formatter) Fix comment handling in for and switch statements (#1639)
  • (formatter) Preserve comment boundaries in control flow and static blocks (#1640)
  • (formatter) Respect ECMAScript line terminators at token boundaries (#1643)
  • (formatter) Preserve syntax at ambiguous token boundaries (#1644)
  • (formatter) Preserve statement boundaries in as-needed mode (#1645)
  • (formatter) Preserve line comment and diagnostic boundaries (#1646)
  • (formatter) Keep comments and delimiters with verbatim spans (#1647)
  • (formatter) Preserve annotation placement and idempotence (#1648)
  • (transformer) Align v1 transformer options, JSX/CJS behavior, and Wasm build (#1661)
  • (formatter) Preserve switch case comment ownership (#1662)
  • (formatter) Preserve comment and delimiter boundaries (#1663)
  • (formatter) Preserve expression semantics across removed parentheses (#1664)
  • (formatter) Preserve restricted operand comment frames (#1665)
  • (formatter) Preserve TypeScript statement and member separators (#1666)
  • (formatter) Keep line comments within their syntax boundaries (#1667)
  • (formatter) Preserve significant JSX whitespace (#1668)
  • (formatter) Preserve TypeScript type continuations (#1669)
  • (formatter) Preserve constructor parameter property boundaries (#1670)
  • (formatter) Retain ignored type arguments and import attributes (#1671)
  • (formatter) Keep expression closers on covered diagnostic lines (#1672)
  • (formatter) Emit statement suffixes before optimizer annotations (#1673)
  • (formatter) Keep nonportable property keys quoted (#1674)
  • (parser) Do not take type arguments followed by >>, >>> or >= (#1678)
  • (formatter) Preserve display math boundaries when wrapping prose (#1680)
  • (markdown) Resolve reference labels with Unicode case folding (#1689)
  • (formatter) Preserve Markdown inline syntax when reformatting (#1690)
  • (formatter) Preserve Markdown list and footnote boundaries (#1691)
  • (formatter) Preserve Markdown code fences, front matter, and display math (#1692)
  • (formatter) Preserve TypeScript instantiations and statement boundaries (#1703)
  • (formatter) Preserve operand comment targets and statement boundaries (#1707)
  • (formatter) Guard statement heads and preserve ignore targets in as, satisfies, and postfix types (#1708)
  • (formatter) Stop ASI lookahead from looping on ignored member chains (#1709)
  • (formatter) Use printed expression heads for TypeScript semicolons (#1710)
  • (markdown) Fall back to inline and shortcut reference links (#1737)
  • (markdown) Pair emphasis across unresolved reference labels (#1738)
  • (markdown) Apply GFM boundaries to bare URLs and email addresses (#1739)
  • (markdown) Avoid repeated scans for unmatched inline math delimiters (#1740)
  • (release) Keep Rust workspace versions in sync (#1754)
  • (release) Make the v1 transformer crate publishable (#1763)

💼 Other

  • (wasm) [breaking] Enable SIMD128 by default (#1657)

🚜 Refactor

  • (formatter) Simplify initializer and call chain layout (#1642)
  • (simd) [breaking] Share native and Wasm identifier scan operations (#1655)
  • (bridge) Use zero-copy ast for js plugin (experiment) (#1487)
  • (formatter) Consolidate Prettier language plugins (#1681)
  • (transformer) Remove typescript.jsxRuntime option (#1683)
  • (formatter) Consolidate JavaScript syntax boundaries and layout rules (#1704)
  • (formatter) Make expression boundaries explicit for semicolon handling (#1706)
  • (transformer) Remove typescript flow_syntax option (#1755)

📚 Documentation

  • (formatter) Clarify comment boundaries and Prettier compatibility (#1638)
  • (agents) Skip unrealistic issues in static analysis (#1701)

⚡ Performance

  • (bridge) Skip unused Node-API custom GC (#1636)
  • (parser) Accelerate ARM64 identifier scanning with NEON (#1651)
  • (formatter) Defer source comma lookups (#1676)
  • (formatter) Share source comment classification (#1677)
  • (markdown/parser) Share source lines and compact the typed AST (#1697)
  • (markdown/parser) Derive inline marker spans from delimiter widths (#1699)
  • (markdown/parser) Store inline nodes in document-owned buffers (#1700)

🧪 Testing

  • (formatter) Track known Prettier divergences (#1650)

⚙️ Miscellaneous Tasks

  • (bench) Measure x86_64 and arm64 wall time with CodSpeed (#1659)
  • (formatter) Update Prettier baseline to 3.10.1 (#1652)
  • (bench) Profile the JavaScript walker with Gungraun (#1685)
  • (testsuite) Automate conformance fixture updates (#1688)
  • (testsuite) Update conformance fixtures (#1694)
  • (testsuite) Schedule conformance fixture updates (#1695)
  • (testsuite) Update conformance fixtures (#1753)
  • Release v0.9.0 (#1756)