Skip to content

Update swc monorepo#21

Open
ghost wants to merge 1 commit intomainfrom
whitesource-remediate/swc-monorepo
Open

Update swc monorepo#21
ghost wants to merge 1 commit intomainfrom
whitesource-remediate/swc-monorepo

Conversation

@ghost
Copy link
Copy Markdown

@ghost ghost commented Apr 21, 2025

Note: This PR body was truncated due to platform limits.

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@swc/core (source) ^1.2.218 -> ^1.15.17 age adoption passing confidence
@swc/jest (source) ^0.2.22 -> ^0.2.39 age adoption passing confidence

Release Notes

swc-project/swc (@​swc/core)

v1.15.17

Compare Source

Documentation
Features

v1.15.13

Compare Source

Bug Fixes
  • (errors) Avoid panic on invalid diagnostic spans (#​11561) (b24b8e0)

  • (es/helpers) Fix _object_without_properties crash on primitive values (#​11571) (4f35904)

  • (es/jsx) Preserve whitespace before HTML entities (#​11521) (64be077)

  • (es/minifier) Do not merge if statements with different local variable values (#​11518) (3e63627)

  • (es/minifier) Prevent convert_tpl_to_str when there's emoji under es5 (#​11529) (ff6cf88)

  • (es/minifier) Inline before merge if (#​11526) (aa5a9ac)

  • (es/minifier) Preserve array join("") nullish semantics (#​11558) (d477f61)

  • (es/minifier) Inline side-effect-free default params (#​11564) (1babda7)

  • (es/parser) Fix generic arrow function in TSX mode (#​11549) (366a16b)

  • (es/react) Preserve first-line leading whitespace with entities (#​11568) (fc62617)

  • (es/regexp) Transpile unicode property escapes in RegExp constructor (#​11554) (476d544)

Documentation
Features
Refactor
  • (es/parser) Compare token kind rather than strings (#​11531) (5872ffa)

  • (es/typescript) Run typescript transform in two passes (#​11532) (b069558)

  • (es/typescript) Precompute namespace import-equals usage in semantic pass (#​11534) (b7e87c7)

Testing
Ci

v1.15.11

Compare Source

Bug Fixes
  • (es/codegen) Emit leading comments for JSX elements, fragments, and empty expressions (#​11488) (1520633)

  • (es/decorators) Invoke addInitializer callbacks for decorated fields (#​11495) (11cfe4d)

  • (es/es3) Visit export decl body even if name is not reserved (#​11473) (9113fff)

  • (es/es3) Remove duplicate code (#​11499) (fbee775)

  • (es/minifier) Treat new expression with empty class as side-effect free (#​11455) (a33a45e)

  • (es/minifier) Escape control characters when converting strings to template literals (#​11464) (028551f)

  • (es/minifier) Handle unused parameters with default values (#​11494) (6ed1ee9)

  • (es/module) Preserve ./ prefix for hidden directory imports (#​11489) (a005391)

  • (es/parser) Validate dynamic import argument count (#​11462) (2f67591)

  • (es/parser) Allow compilation with --no-default-features (#​11460) (b70c5f8)

  • (es/parser) Skip emitting TS1102 in TypeScript mode (#​11463) (e6f5b06)

  • (es/parser) Reject ambiguous generic arrow functions in TSX mode (#​11491) (ac00915)

  • (es/parser) Disallow NumericLiteralSeparator with BigInts (#​11510) (6b3644b)

  • (es/react) Preserve HTML entity-encoded whitespace in JSX (#​11474) (7d433a9)

  • (es/renamer) Prevent duplicate parameter names with destructuring patterns (#​11456) (e25a2c8)

  • (es/testing) Skip update when expected output has invalid code (#​11469) (2be6b8a)

  • (es/typescript) Don't mark enums with opaque members as pure (#​11452) (b713fae)

  • (preset-env) Distinguish unknown browser vs empty config (#​11457) (1310957)

Documentation
Features
  • (cli) Add --root-mode argument for .swcrc resolution (#​11501) (b53a0e2)

  • (es/module) Make module transforms optional via module feature (#​11509) (b94a178)

  • (es/regexp) Implement unicode property escape transpilation (#​11472) (a2e0ba0)

  • (es/transformer) Merge ES3 hooks into swc_ecma_transformer (#​11503) (5efcac9)

Miscellaneous Tasks
  • (es/minifier) Extend OrderedChain to support more node types (#​11477) (aa9d789)
Performance
Refactor
Testing
  • (es/minifier) Add test case for merge_imports order preservation (#​11458) (b874a05)

  • (es/parser) Add error tests for import.source and import.defer with too many args (#​11466) (7313462)

  • (es/parser) Check handler.has_errors() in test error parsing (#​11487) (fade647)

  • Replace deprecated cargo_bin function with cargo_bin! macro (#​11461) (73f77b6)

v1.15.10

Compare Source

Bug Fixes
  • (ci) Handle merged PRs separately in milestone manager (#​11409) (3554268)

  • (es/compat) Preserve this context in nested arrow functions (#​11423) (f2bdaf2)

  • (es/es2017) Replace this in arrow functions during async-to-generator (#​11450) (a993da6)

Features
Miscellaneous Tasks
Performance
  • (es/codegen, es/utils) Migrate to dragonbox_ecma for faster Number::toString (#​11412) (b7978cc)

  • (es/react) Optimize JSX transforms to reduce allocations (#​11425) (2a20cb6)

Refactor
Testing
Ci
  • Collapse preivous claude[bot] PR review comments (affb6a2)

v1.15.8

Compare Source

Bug Fixes
  • (es/minifier) Remove unused webpack-related code (#​11397) (8e4eab4)

  • (es/minifier) Evaluate TemplateLiteral in BinaryExpression (#​11406) (8d1b6f6)

  • (es/minifier) More strict check if cannot add ident when invoking IIFE (#​11399) (03642aa)

Features
Performance
Refactor

v1.15.7

Compare Source

Bug Fixes
  • (es/minifier) Prevent unsafe sequence merging in super() calls (#​11381) (eb02780)

  • (es/transformer) Fix variable declaration for nullish coalescing in else-if branches (#​11384) (6746002)

  • (es/transforms) Update _ts_rewrite_relative_import_extension helper code (#​11382) (1ec444e)

Features
Performance
Refactor

v1.15.6

Compare Source

Bug Fixes
  • (es/transformer) Fix missing var declaration in nullish coalescing with spreads (#​11377) (686d154)
Performance

v1.15.5

Compare Source

Bug Fixes

v1.15.4

Compare Source

Bug Fixes
  • (es/compat) Preserve return value for single-property object destructuring (#​11334) (847ad22)

  • (es/compat) Fix generator transform for compound assignments, for-in, and labeled break (#​11339) (9b6bedd)

  • (es/compat) Destructuring evaluation order (#​11337) (49d04c7)

  • (es/compat) Fix parameter default value evaluation order with object rest (#​11352) (2ebb261)

  • (es/fixer) Preserve parens around IFFE in binary expressions within sequences (#​11324) (a4c84ea)

  • (es/helpers) Avoid extra trap calls on excluded keys in object rest spread (#​11338) (4662caf)

  • (es/minifier) Fix debug cargo feature (#​11325) (be86fad)

  • (es/minifier) Fix optimization pass for merge_imports (#​11331) (ca2f7ed)

  • (es/parser) Don't call bump_bytes in the continue_if of byte_search! (#​11328) (583619d)

  • (es/parser) Support type-only string literal in import specifiers (#​11333) (07762f1)

  • (es/parser) Handle TypeScript expressions in destructuring patterns (#​11353) (160ec34)

  • (es/transformer) Complete replace_this_in_expr implementation (#​11361) (58c4067)

  • (es/transformer) Fix pass order (#​11370) (373048a)

Features
Performance

v1.15.3

Compare Source

Bug Fixes
  • (es/codegen) Restore missing top-level comments (#​11302) (0998c93)

  • (es/codegen) Emit comments of all nodes (#​11314) (387ee0f)

  • (es/minifier) Prevent compress.comparisons from transforming expressions with side effects (#​11256) (58a9d81)

  • (es/minifier) Remove unused arrow functions in dead code elimination (#​11319) (88c6ac7)

  • (es/parser) Make the span of Program start at input start (#​11199) (b56e008)

  • (es/plugin) Use #[cfg] to avoid compilation error (#​11316) (f615cdb)

  • (es/quote) Replace usage of swc_atoms with swc_core::atoms (#​11299) (c1e32fa)

Miscellaneous Tasks
Performance
Refactor

v1.15.2

Compare Source

Bug Fixes
Features
Performance
  • (es/parser) Inline skip_space (afb824a)

  • (es/parser) Eliminate the outer loop of skip_block_comment (#​11261) (e41c0ac)

  • (es/plugin) Use shared tokio runtime to avoid creation overhead (#​11267) (707026b)

v1.15.1

Compare Source

Bug Fixes
  • (es/codegen) Emit leading comments for JSX elements, fragments, and empty expressions (#​11488) (1520633)

  • (es/decorators) Invoke addInitializer callbacks for decorated fields (#​11495) (11cfe4d)

  • (es/es3) Visit export decl body even if name is not reserved (#​11473) (9113fff)

  • (es/es3) Remove duplicate code (#​11499) (fbee775)

  • (es/minifier) Treat new expression with empty class as side-effect free (#​11455) (a33a45e)

  • (es/minifier) Escape control characters when converting strings to template literals (#​11464) (028551f)

  • (es/minifier) Handle unused parameters with default values (#​11494) (6ed1ee9)

  • (es/module) Preserve ./ prefix for hidden directory imports (#​11489) (a005391)

  • (es/parser) Validate dynamic import argument count (#​11462) (2f67591)

  • (es/parser) Allow compilation with --no-default-features (#​11460) (b70c5f8)

  • (es/parser) Skip emitting TS1102 in TypeScript mode (#​11463) (e6f5b06)

  • (es/parser) Reject ambiguous generic arrow functions in TSX mode (#​11491) (ac00915)

  • (es/parser) Disallow NumericLiteralSeparator with BigInts (#​11510) (6b3644b)

  • (es/react) Preserve HTML entity-encoded whitespace in JSX (#​11474) (7d433a9)

  • (es/renamer) Prevent duplicate parameter names with destructuring patterns (#​11456) (e25a2c8)

  • (es/testing) Skip update when expected output has invalid code (#​11469) (2be6b8a)

  • (es/typescript) Don't mark enums with opaque members as pure (#​11452) (b713fae)

  • (preset-env) Distinguish unknown browser vs empty config (#​11457) (1310957)

Documentation
Features
  • (cli) Add --root-mode argument for .swcrc resolution (#​11501) (b53a0e2)

  • (es/module) Make module transforms optional via module feature (#​11509) (b94a178)

  • (es/regexp) Implement unicode property escape transpilation (#​11472) (a2e0ba0)

  • (es/transformer) Merge ES3 hooks into swc_ecma_transformer (#​11503) (5efcac9)

Miscellaneous Tasks
  • (es/minifier) Extend OrderedChain to support more node types (#​11477) (aa9d789)
Performance
Refactor
Testing
  • (es/minifier) Add test case for merge_imports order preservation (#​11458) (b874a05)

  • (es/parser) Add error tests for import.source and import.defer with too many args (#​11466) (7313462)

  • (es/parser) Check handler.has_errors() in test error parsing (#​11487) (fade647)

  • Replace deprecated cargo_bin function with cargo_bin! macro (#​11461) (73f77b6)

v1.15.0

Compare Source

Bug Fixes
Features
Performance
Refactor
Testing

v1.14.0

Compare Source

Bug Fixes
Features
Miscellaneous Tasks
Performance
Refactor

v1.13.21

Compare Source

Bug Fixes

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), 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.

👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.


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

@ghost ghost force-pushed the whitesource-remediate/swc-monorepo branch from fef9432 to b75f516 Compare April 21, 2025 08:28
@ghost ghost changed the title Update dependency @swc/core to ^1.11.21 Update swc monorepo Apr 21, 2025
@ghost ghost force-pushed the whitesource-remediate/swc-monorepo branch 3 times, most recently from 26f0a41 to 289f70f Compare April 30, 2025 06:01
@ghost ghost force-pushed the whitesource-remediate/swc-monorepo branch from 289f70f to 88c6870 Compare May 22, 2025 17:11
@ghost ghost force-pushed the whitesource-remediate/swc-monorepo branch 3 times, most recently from 93f23dd to 7687767 Compare June 13, 2025 04:06
@ghost ghost force-pushed the whitesource-remediate/swc-monorepo branch 3 times, most recently from 7610462 to 8c6f112 Compare June 24, 2025 01:53
@ghost ghost force-pushed the whitesource-remediate/swc-monorepo branch 2 times, most recently from 0a53b35 to be184d6 Compare July 2, 2025 07:35
@ghost ghost force-pushed the whitesource-remediate/swc-monorepo branch 3 times, most recently from 4868fa3 to 877056c Compare July 15, 2025 01:10
@ghost ghost force-pushed the whitesource-remediate/swc-monorepo branch 3 times, most recently from 870daea to a83320d Compare July 23, 2025 01:16
@ghost ghost force-pushed the whitesource-remediate/swc-monorepo branch from a83320d to af31b46 Compare July 30, 2025 01:09
@ghost ghost force-pushed the whitesource-remediate/swc-monorepo branch 2 times, most recently from 72bad1e to 80b57b9 Compare August 25, 2025 01:10
@ghost ghost force-pushed the whitesource-remediate/swc-monorepo branch from 80b57b9 to a6171cb Compare September 2, 2025 01:16
@ghost ghost force-pushed the whitesource-remediate/swc-monorepo branch 2 times, most recently from a62ad61 to ea47726 Compare September 26, 2025 01:50
@ghost ghost force-pushed the whitesource-remediate/swc-monorepo branch 2 times, most recently from 7e3f8b0 to a8bd6df Compare September 30, 2025 01:21
@ghost ghost force-pushed the whitesource-remediate/swc-monorepo branch 2 times, most recently from 4b5a9b2 to 1eeb2f1 Compare October 28, 2025 09:42
@ghost ghost force-pushed the whitesource-remediate/swc-monorepo branch 2 times, most recently from b028b2c to e34f395 Compare November 5, 2025 01:11
@ghost ghost force-pushed the whitesource-remediate/swc-monorepo branch 2 times, most recently from 6b9bf83 to ab05a05 Compare November 15, 2025 01:10
@ghost ghost force-pushed the whitesource-remediate/swc-monorepo branch from ab05a05 to c776345 Compare November 21, 2025 01:28
@ghost ghost force-pushed the whitesource-remediate/swc-monorepo branch 3 times, most recently from 014e6fe to 9dc5f08 Compare December 19, 2025 01:14
@ghost ghost force-pushed the whitesource-remediate/swc-monorepo branch from 9dc5f08 to c149c96 Compare December 31, 2025 01:10
@ghost ghost force-pushed the whitesource-remediate/swc-monorepo branch from c149c96 to b1b83e0 Compare January 20, 2026 01:09
@ghost ghost force-pushed the whitesource-remediate/swc-monorepo branch 2 times, most recently from 62650fb to 0334cf1 Compare January 29, 2026 01:32
@ghost ghost force-pushed the whitesource-remediate/swc-monorepo branch from 0334cf1 to 135c4c2 Compare February 24, 2026 01:08
@ghost ghost force-pushed the whitesource-remediate/swc-monorepo branch from 135c4c2 to abf04f9 Compare February 27, 2026 01:28
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