Skip to content

chore(deps): update dependency @swc-next/parser to ^0.7.0 - #140

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/swc-monorepo
Open

renovate[bot] wants to merge 1 commit into
mainfrom
renovate/swc-monorepo

Conversation

@renovate

@renovate renovate Bot commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
@swc-next/parser (source) ^0.5.0 → ^0.7.0 age confidence

Release Notes

swc-project/swc-next (@​swc-next/parser)

v0.7.0

Compare Source

💥 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)

v0.6.1

Compare Source

🚜 Refactor
  • (ast) [breaking] Remove diagnostic lifetimes (#​1524)
⚡ Performance
  • (parser) Reduce initial token reservation (#​1523)
⚙️ Miscellaneous Tasks
  • Build x64 GNU bindings on Ubuntu 22.04 (#​1527)

v0.6.0

Compare Source

🚀 Features
  • (minifier) Remove branches with constant conditions (#​1371)
  • (minifier) Mangle local binding names (#​1432)
  • (formatter) Add JavaScript and TypeScript formatting (#​736)
  • (minifier) Join adjacent statements and remove unneeded blocks (#​1434)
  • (transformer) Add JSX and React transforms (#​607)
  • (minifier) Remove unused values without side effects (#​1493)
  • (minifier) Rewrite conditionals, returns, and comparisons (#​1494)
  • (minifier) Inline local constants and remove unused chains (#​1495)
  • (transformer) Add optional catch binding transform (#​356)
🐛 Bug Fixes
  • (parser) Parse decorated declare classes (#​1414)
  • (type-strip) Erase decorators before exported declare classes (#​1415)
  • (parser) Reject non-null assertions after postfix updates (#​1421)
  • (type-strip) Preserve logical not in variable initializers (#​1442)
  • (type-strip) Preserve vertical tabs in erased spans (#​1449)
  • (website) Support minifier conformance snapshots (#​1451)
  • (parser) Diagnose exponentiation operands hidden by assertions (#​1490)
  • Correct JS parser benchmark configuration (#​1502)
  • (type-strip) Diagnose unsafe erasure (#​1444)
  • (parser) Accept keyword qualified types after line breaks (#​1508)
  • (parser) Accept escaped binary-keyword class fields (#​1509)
  • (parser) Respect import type argument line breaks (#​1510)
  • (parser) [breaking] Support import attributes on ambient modules (#​1507)
  • (parser) Reject unparenthesized assertions as assignment targets (#​1519)
  • (parser) Keep pending comments leading before trailing line comments (#​1518)
  • (ast) [breaking] Enforce Rust AST safety boundaries (#​1517)
🚜 Refactor
  • (parser) Replace JSX lexer modes with explicit scanning (#​1491)
  • (semantic) [breaking] Move regexp validation into the semantic builder (#​1506)
📚 Documentation
  • (ci) Explain Clang cross-build setup (#​1411)
  • (npm) Add package readmes (#​1501)
  • File bulk static-analysis issues in swc-next-issues (#​1511)
⚡ Performance
  • (parser) Return bare postfix expressions outside new callees (#​1417)
  • (simd) Use SWAR in the scalar backend (#​1419)
  • (parser) Detect TypeScript const enums after advancing past const (#​1428)
  • (simd) Force-inline vector and mask operations (#​1426)
  • (benchmark) Measure type stripping in paired wall time (#​1433)
  • (benchmark) Measure minification in paired wall time (#​1435)
  • (parser) Bound binding-pattern lookahead (#​1412)
  • (ffi) Simplify FFI position mapping (#​1437)
  • (decoder) Slice source-backed strings (#​1438)
  • (ffi) Reduce FFI serialization bounds checks (#​1439)
  • (type-strip) Read tokens on demand instead of collecting them (#​1422)
  • (type-strip) Shorten the eraser traversal (#​1424)
  • (simd) Avoid out-of-line calls in vector loads and the scalar backend (#​1443)
  • (simd) Build scalar lanes from one u128 (#​1445)
  • (codegen) Batch short ASCII runs in source maps (#​1496)
  • (minifier) Group symbols by scope before sorting (#​1497)
  • (codegen) Reuse the previous source mapping line (#​1500)
  • (parser) Avoid quadratic assignment target validation (#​1492)
🧪 Testing
  • (minifier) Update dead-code fixtures for current codegen output (#​1430)
  • (minifier) Add terser and SWC minifier conformance suites (#​1450)
  • (testsuite) Adapt to SWC compiler fixtures (#​1498)
⚙️ Miscellaneous Tasks
  • (minifier) Comment on minified output size changes (#​1431)
  • (benchmark) Measure only affected wall-time targets (#​1436)
  • Compare pull requests with the merge commit parent (#​1441)
  • (skills) Mark breaking changes in PR titles (#​1504)
  • (skills) Clarify code review guidance (#​1512)
  • (skills) Default code review to English (#​1514)

Configuration

📅 Schedule: (UTC)

  • Branch creation
    • Between 12:00 AM and 03:59 AM, only on Monday (* 0-3 * * 1)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants