Merged
Conversation
0ecc316 to
9c90dc1
Compare
9c90dc1 to
6fb9e4f
Compare
Contributor
Author
Edited/Blocked NotificationRenovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR. You can manually request rebase by checking the rebase/retry box above. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
1.15.3β1.15.11^2.24.7β^2.24.8^1.3.2β^1.3.8^0.27.0β^0.27.3^0.98.0β^0.112.0^5.44.1β^5.46.0Release Notes
swc-project/swc (@βswc/core)
v1.15.11Compare 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
modulefeature (#β11509) (b94a178)(es/regexp) Implement unicode property escape transpilation (#β11472) (a2e0ba0)
(es/transformer) Merge ES3 hooks into swc_ecma_transformer (#β11503) (5efcac9)
Miscellaneous Tasks
Performance
(bindings) Optimize string handling by avoiding unnecessary clones (#β11490) (81daaaa)
(es/codegen) Make
commit_pending_semiexplicit inwrite_punct(#β11492) (5a27fc0)(es/es2015) Port ES2015 transforms to hook-based visitors (#β11484) (a54eb0e)
(es/es3) Use hooks pattern for single AST traversal (#β11483) (a139fba)
(es/minifier) Use combined AST traversal (#β11471) (c611663)
(es/transformer) Add inline hint (#β11508) (d72c9df)
Refactor
Testing
(es/minifier) Add test case for
merge_importsorder 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_binfunction withcargo_bin!macro (#β11461) (73f77b6)v1.15.10Compare 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
thisin arrow functions during async-to-generator (#β11450) (a993da6)Features
(bindings/wasm) Enable ecma_lints feature to support semantic error detection (#β11414) (1faa4a5)
(es/hooks) Implement VisitMutHook for Either type (#β11428) (395c85e)
(es/hooks) Implement VisitMutHook for Option (#β11429) (0bf1954)
(es/hooks) Add VisitHook trait for immutable AST visitors (#β11437) (3efb41d)
(es/minifier) Improve nested template literal evaluation (#β11411) (147df2f)
(es/minifier) Remove inlined IIFE arg and param (#β11436) (2bc5d40)
(es/minifier) Remove inlined IIFE arg and param (#β11446) (baa1ae3)
Miscellaneous Tasks
(deps) Update
rkyv(#β11419) (432197b)(deps) Update lru to 0.16.3 (#β11438) (67c2d75)
(deps) Update browserslist-data to v0.1.5 (#β11454) (e9f78f0)
(helpers) Replace MagicString with ast-grep's built-in edit API (#β11410) (a3f0d33)
(hstr/wtf8) Address legacy FIXME comments by switching to derives (#β11416) (f03bfd8)
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
(es) Improve TypeScript transform configuration structure (#β11434) (f33a975)
(es/minifier) Migrate MinifierPass to Pass trait (#β11442) (a41e631)
(es/minifier) Improve tpl to str (#β11415) (0239523)
(es/react) Port to VisitMutHook (#β11418) (9604d9c)
(es/transformer) Remove OptionalHook wrapper in favor of Option (#β11430) (72da6bd)
(es/transforms) Migrate TypeScript transform to Pass trait (#β11439) (dd007c6)
Testing
(es) Enable benchmark for
swc(#β11420) (3a50a25)Disable LTO for benchmarks (#β11421) (af3c2d3)
Use rstest as the test framework (#β11417) (fae258f)
Ci
claude[bot]PR review comments (affb6a2)v1.15.8Compare 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
(es/minifier) Support BinaryExpression for Evaluator (#β11390) (6c76f0a)
(es/transformer) Merge
static_blocks(#β11403) (55a5083)Performance
(es/parser) Remove
Iteratorimplementation forLexer(#β11393) (5941018)(es/parser) Optimize
do_outside_of_contextanddo_inside_of_context(#β11394) (4210cf1)(es/parser) Remove
is_firstin lexer state (#β11395) (97d903b)(es/parser) Use
byte_searchto optimizescan_jsx_token(#β11398) (f9b4da2)Reduce binary size with panic=abort and ICU optimizations (#β11401) (18088b2)
Refactor
(es/compiler) Drop the crate (#β11407) (8faa14e)
(es/minifier) Move drop_console and unsafes from Pure to Optimizer (#β11388) (ee40804)
(es/parser) Distinguish JsxText from Str (#β11387) (63c4c44)
v1.15.7Compare 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_extensionhelper code (#β11382) (1ec444e)Features
private_properties_in_object(#β11378) (769c9d2)Performance
ProgramData(#β11374) (3639523)Refactor
v1.15.6Compare Source
Bug Fixes
Performance
raws inTokenValue(#β11373) (78a5327)v1.15.5Compare Source
Bug Fixes
(es/parser) Fix
bumplength (#β11372) (ec5c1bc)(es/transforms) Adjust import rewriter pass before inject helpers pass (#β11371) (8516991)
v1.15.4Compare 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
debugcargo feature (#β11325) (be86fad)(es/minifier) Fix optimization pass for
merge_imports(#β11331) (ca2f7ed)(es/parser) Don't call
bump_bytesin thecontinue_ifofbyte_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_exprimplementation (#β11361) (58c4067)(es/transformer) Fix pass order (#β11370) (373048a)
Features
(es/minifier) Optimize
typeof x == "undefined"totypeof x > "u"(#β11367) (a5e144b)(es/parser) Support
no_parenparser option (#β11359) (5b9d77c)(es/parser) Revert
no_parenparser option (#β11362) (57a8731)(es/transfomer) Add modules to prepare porting (#β11347) (68d740c)
(es/transform) Add common fields (#β11346) (1a8759f)
(es/transformer) Merge
async-to-generator(#β11355) (c388e87)(es/transformer) Merge
async_to_generator(#β11358) (25f3a47)(es/transformer) Merge
object_rest_spread(#β11357) (752188e)(es/transformer) Merge
nullish_coalescing(#β11365) (5fb686a)(es/transformer) Merge
logical_assignment_operators(#β11369) (94946fa)Performance
(es/compat) Merge
exponentation_operator(#β11310) (0ef3637)(es/compat) Merge
optional_catch_binding(#β11313) (468d20c)(es/compat) Use merged transformer (#β11366) (c4a5e79)
(es/parser) Optimize
byte_search!(#β11323) (67f67c1)(es/parser) Small optimization after byte-based lexer (#β11340) (c92ea4e)
(es/parser) Use
slicerather than matching keywords (#β11341) (b6ad2cb)(parser) Make all parsers work by byte instead of char (#β11318) (725efd1)
tdewolff/minify (@βtdewolff/minify)
v2.24.8Compare Source
oven-sh/bun (bun)
v1.3.8: Bun v1.3.8Compare Source
To install Bun v1.3.8
Windows:
powershell -c "irm bun.sh/install.ps1|iex"To upgrade to Bun v1.3.8:
Read Bun v1.3.8's release notes on Bun's blog
Thanks to 4 contributors!
v1.3.7: Bun v1.3.7Compare Source
To install Bun v1.3.7
Windows:
powershell -c "irm bun.sh/install.ps1|iex"To upgrade to Bun v1.3.7:
Read Bun v1.3.7's release notes on Bun's blog
Thanks to 11 contributors!
v1.3.6: Bun v1.3.6Compare Source
To install Bun v1.3.6
Windows:
powershell -c "irm bun.sh/install.ps1|iex"To upgrade to Bun v1.3.6:
Read Bun v1.3.6's release notes on Bun's blog
Thanks to 23 contributors!
v1.3.5: Bun v1.3.5Compare Source
To install Bun v1.3.5
Windows:
powershell -c "irm bun.sh/install.ps1|iex"To upgrade to Bun v1.3.5:
Read Bun v1.3.5's release notes on Bun's blog
Thanks to 10 contributors!
v1.3.4: Bun v1.3.4Compare Source
To install Bun v1.3.4
Windows:
powershell -c "irm bun.sh/install.ps1|iex"To upgrade to Bun v1.3.4:
Read Bun v1.3.4's release notes on Bun's blog
Thanks to 14 contributors!
v1.3.3: Bun v1.3.3Compare Source
To install Bun v1.3.3
Windows:
powershell -c "irm bun.sh/install.ps1|iex"To upgrade to Bun v1.3.3:
Read Bun v1.3.3's release notes on Bun's blog
Thanks to 19 contributors!
evanw/esbuild (esbuild)
v0.27.3Compare Source
Preserve URL fragments in data URLs (#β4370)
Consider the following HTML, CSS, and SVG:
index.html:icons.css:triangle.svg:The CSS uses a URL fragment (the
#x) to reference theclipPathelement in the SVG file. Previously esbuild's CSS bundler didn't preserve the URL fragment when bundling the SVG using thedataurlloader, which broke the bundled CSS. With this release, esbuild will now preserve the URL fragment in the bundled CSS:Parse and print CSS
@scoperules (#β4322)This release includes dedicated support for parsing
@scoperules in CSS. These rules include optional "start" and "end" selector lists. One important consequence of this is that the local/global status of names in selector lists is now respected, which improves the correctness of esbuild's support for CSS modules. Minification of selectors inside@scoperules has also improved slightly.Here's an example:
Fix a minification bug with lowering of
for await(#β4378, #β4385)This release fixes a bug where the minifier would incorrectly strip the variable in the automatically-generated
catchclause of loweredfor awaitloops. The code that generated the loop previously failed to mark the internal variable references as used.Update the Go compiler from v1.25.5 to v1.25.7 (#β4383, #β4388)
This PR was contributed by @βMikeWillCook.
v0.27.2Compare Source
Allow import path specifiers starting with
#/(#β4361)Previously the specification for
package.jsondisallowed import path specifiers starting with#/, but this restriction has recently been relaxed and support for it is being added across the JavaScript ecosystem. One use case is using it for a wildcard pattern such as mapping#/*to./src/*(previously you had to use another character such as#_*instead, which was more confusing). There is some more context in nodejs/node#49182.This change was contributed by @βhybrist.
Automatically add the
-webkit-maskprefix (#β4357, #β4358)This release automatically adds the
-webkit-vendor prefix for themaskCSS shorthand property:This change was contributed by @βBPJEnnova.
Additional minification of
switchstatements (#β4176, #β4359)This release contains additional minification patterns for reducing
switchstatements. Here is an example:Forbid
usingdeclarations insideswitchclauses (#β4323)This is a rare change to remove something that was previously possible. The Explicit Resource Management proposal introduced
usingdeclarations. These were previously allowed insidecaseanddefaultclauses inswitchstatements. This had well-defined semantics and was already widely implemented (by V8, SpiderMonkey, TypeScript, esbuild, and others). However, it was considered to be too confusing because of how scope works in switch statements, so it has been removed from the specification. This edge case will now be a syntax error. See tc39/proposal-explicit-resource-management#215 and rbuckton/ecma262#14 for details.Here is an example of code that is no longer allowed:
That code will now have to be modified to look like this instead (note the additional
{and}block statements around each case body):This is not being released in one of esbuild's breaking change releases since this feature hasn't been finalized yet, and esbuild always tracks the current state of the specification (so esbuild's previous behavior was arguably incorrect).
v0.27.1Compare Source
Fix bundler bug with
varnested insideif(#β4348)This release fixes a bug with the bundler that happens when importing an ES module using
require(which causes it to be wrapped) and there's a top-levelvarinside anifstatement without being wrapped in a{ ... }block (and a few other conditions). The bundling transform needed to hoist thesevardeclarations outside of the lazy ES module wrapper for correctness. See the issue for details.Fix minifier bug with
forinsidetryinside label (#β4351)This fixes an old regression from version v0.21.4. Some code was introduced to move the label inside the
trystatement to address a problem with transforming labeledfor awaitloops to avoid theawait(the transformation involves converting thefor awaitloop into aforloop and wrapping it in atrystatement). However, it introduces problems for cross-compiled JVM code that uses all three of these features heavily. This release restricts this transform to only apply toforloops that esbuild itself generates internally as part of thefor awaittransform. Here is an example of some affected code:Inline IIFEs containing a single expression (#β4354)
Previously inlining of IIFEs (immediately-invoked function expressions) only worked if the body contained a single
returnstatement. Now it should also work if the body contains a single expression statement instead:The minifier now strips empty
finallyclauses (#β4353)This improvement means that
finallyclauses containing dead code can potentially cause the associatedtrystatement to be removed from the output entirely in minified builds:Allow tree-shaking of the
SymbolconstructorWith this release, calling
Symbolis now considered to be side-effect free when the argument is known to be a primitive value. This means esbuild can now tree-shake module-level symbol variables:oxc-project/oxc (oxc-minify)
v0.111.0π₯ BREAKING CHANGES
af0ca46span: [BREAKING] UseModuleKind::CommonJSforSourceType::cjs()(#β18276) (sapphi-red)π Documentation
8ccd853npm: Update package homepage URLs and add keywords (#β18509) (Boshen)v0.106.0π Features
e031056codegen: Addsourcemapfeature flag (#β17305) (Boshen)8e4409aminifier: Addinvalid_import_side_effectsoption (#β17300) (sapphi-red)v0.102.0π₯ BREAKING CHANGES
083fea9napi/parser: [BREAKING] Represent empty optional fields on JS side asnull(#β16411) (overlookmotel)terser/terser (terser)
v5.46.0Compare Source
Temporalrelated) suggested in #β1652v5.45.0Compare Source
void 0instead ofundefined, which is more safeConfiguration
π 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.
This PR was generated by Mend Renovate. View the repository job log.