This repository was archived by the owner on Jul 24, 2025. It is now read-only.
Update all non-major dependencies #7
Merged
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.3.10->^1.3.21^18.11.9->^18.11.10^18.0.25->^18.0.26^0.15.15->^0.15.18^4.0.0-alpha.5->^4.0.0-alpha.6Release Notes
swc-project/swc
v1.3.21Compare Source
Bug Fixes
(ci) Fix publish action for binaries (#6517) (2ac3201)
(es/minifier) Don't drop used variables from sequential inliner (#6520) (b394f9f)
(es/minifier) Make sequential inliner respect resolution order (#6509) (27ae59e)
(es/minifier) Use unsafe option for arrow => method (#6521) (9752b43)
(es/minifier) Don't convert a signed integer literal key to a numeric literal (#6529) (81224b5)
(html/parser) Fix parsing of cdata (#6534) (e3cbe7e)
Features
(common) Add contexts to the error messages (#6526) (b8fe04f)
(es/parser) Make error message helpful (#6535) (cb15721)
(es/preset-env) Update data (#6538) (ae63220)
(xml/parser) Parse cdata section (#6531) (7f8c4e0)
Miscellaneous Tasks
(bindings) Fix jemalloc on aarch64 (#6541) (d56b5a8)
(swc_core) Reexport more modules (#6548) (9b58cce)
Performance
Refactor
Testing
(es/minifier) Add tests for preserving top-level directives (#6545) (8d8f150)
(es/transforms) Add tests about preserving top-level directives (#6518) (5ff87af)
(es/typescript) Migrate inline tests to fixture tests (#6546) (cddbc41)
(ts/compat) Migrate inline tests to fixture testing (#6475) (cc4646a)- general: Use correct extensions for fixture tests (#6539) (7ee86d1)
Build
browerslist-rs(#6547) (d730186)v1.3.20Compare Source
Bug Fixes
(es/codegen) Preserve parens for
newin optional chaining (#6484) (1ca281a)(es/minifier) Preserve classes with side effects in static fields (#6480) (8d906b4)
(es/react) Allow spread children (#6505) (90aa6c8)
(es/visit) Visit TypeScript satisfies expressions (#6511) (0cee0e1)
Features
Miscellaneous Tasks
(ci) Reduce trigger scope for PRs (#6486) (7fe091a)
(ci) Skip benchmark for forks (#6489) (78af96e)
Performance
Refactor
(binding/wasm) Use binding_macro (#6487) (d957aac)
(es) Remove settings related to
privateInObject(#6468) (c57307d)Build
v1.3.19Compare Source
Bug Fixes
(es/compat) Fix consecutive optional call (#6461) (f7072db)
(es/lints) Revert check for reassignment to classes (#6472) (ca20d94)
(es/minifier) Preserve unused imported specifiers (#6458) (dabea71)
(es/minifier) Abort inliner on fn declarations used multiple time (#6473) (15ad2c2)
(es/minifier) Avoid dropping statements which has side-effects (#6476) (9154bbc)
(es/modules) Remove wrong check for
jsc.paths(#6470) (072bd13)(es/parser) Fix parsing of regexp (#6469) (3e702b9)
(xml/parser) Fix parsing of comments (#6449) (3a0d98b)
Features
(es/minifier) Support script fully (#6455) (4d7b920)
(html/minifier) Remove empty script and style tags with attributes (#6447) (7441721)
(html/minifier) Use the latest
EsVersion(#6453) (7f6bf59)Refactor
jsvalue::*_serde(#6462) (dd4b9e8)v1.3.18Compare Source
Bug Fixes
(es/minifier) Fix code for dropping unreachable statements (#6429) (bb544ba)
(es/modules) Fix
jsc.paths(#6454) (05d185d)(es/plugins/proxy) Adjust import with compile time flags (#6451) (f14b156)
(html/minifier) Fix script/style merging (#6443) (1dfd8ce)
(xml/parser) Fix parsing of pi (#6450) (6388920)
Features
parse_string_input(#6441) (9600308)v1.3.17Compare Source
Bug Fixes
(bindings) Revert #6436 (#6444) (948e35b)
(css/parser) Fix a bug with scope in block (#6402) (3d7545d)
(es/compat) Improve
destructuringpass (#6412) (6728603)(es/compat) Fix span hygiene of function naming pass (#6345) (81a4bb3)
(es/minifier) Preserve op of the op-assignments in seq inliner (#6428) (5fd7ab8)
(es/minifier) Change the default of
mangle.toplevelto false (#6439) (99934b0)(es/modules) Fix
jsc.pathsof.tsimports (#6431) (9c9c3eb)Miscellaneous Tasks
Refactor
(bindings) Deprecate
JsValue::*_serde(#6436) (1dd8b3d)(es/plugins) Simplify
read_result_*(#6426) (7a1c2a1)v1.3.16Compare Source
Bug Fixes
v1.3.15Compare Source
Bug Fixes
(css/parser) Fix parsing of
supports()(#6333) (f483224)(css/parser) Fix parsing of
<general-enclosed>(#6380) (d18eaf1)(es) Use
unresolved_markfor preset-env (#6386) (156f370)(es/compat) Fix chained op-assignment of super properties (#6319) (064baa3)
(es/compat) Handle super access in a private static property (#6361) (6cc9e90)
(es/compat) Handle a nullish coalescing in a switch case (#6363) (2de45fb)
(es/compat) Fix
thisin computed class method names (#6364) (9820122)(es/fixer) Handle more expressions in postfix operator (#6359) (8123bf0)
(es/helpers) Fix import
_typeofin__decorate(#6377) (25333b9)(es/lints) Disallow reassignment to a class (#6362) (3793e83)
(es/modules) Preserve extensions (#6339) (91e863c)
(es/parser) Fix parsing of
await(#6316) (28af15e)(es/parser) Fix parsing of TS
satisfiesexpressions (#6354) (f6faeb3)(es/plugin) Print more details on pointer conversion failures (#6378) (b6c1cc4)
(es/resolver) Resolve interfaces correctly (#6387) (6b876c4)
(html/minifier) Fix merging of scripts (#6393) (a923e52)
Documentation
Features
(css/parser) Improve error recovery (#6336) (0bc682f)
(css/parser) Support new nesting spec (#6337) (e0967ef)
(es/utils) Use more unique names for aliases (#6399) (574502a)
(html/minifier) Improve merging of group elements (#6349) (34b3710)
(swc_core) Expose
swc_css_modules(#6394) (26b21b1)Miscellaneous Tasks
Performance
(css) Reduce size of tokens (#6384) (bea6cce)
(css/ast) Use
Atomforrawvalues (#6401) (ec2c021)Refactor
(css/parser) Avoid unnecessary checks (#6383) (4d49b9f)
(css/parser) Union input types (#6385) (434a765)
(css/parser) Skip whitespaces in correct places (#6382) (56bc6b8)
(css/parser) Refactor parser (#6395) (983ab91)
Testing
v1.3.14Compare Source
Bug Fixes
(common) Remove
&mutfrombuild_source_map_from(#6276) (47d7fca)(css/parser) Fix parsing of colors (#6260) (c3944ba)
(css/parser) Fix various issues (#6281) (2813acc)
(es/codegen) Preserve more parens (#6268) (c318446)
(es/compat) Fix
new.targetin a nested scope (#6296) (aa18612)(es/compat) Fix destructuring of an empty array (#6314) (3bea6f7)
(es/helpers) Fix
toArray(#6318) (e34c25e)(es/lints) Fix
const-assignin function expressions (#6294) (a27392a)(es/minifier) Don't ignore nullish coalescing (#6272) (8c1ac68)
(es/minifier) Don't inline regex for IIFEs (#6283) (4eab2ed)
(es/minifier) Fix infinite loop (#6300) (655f674)
(es/minifier) Don't drop an inlined parameter as a duplicate (#6293) (dd797f7)
(es/resolver) Change order for switch cases (#6317) (2737aea)
(es/typescript) Fix stack overflow (#6250) (28ec6e8)
(html/minifier) Merge style blocks (#6264) (028951c)
Features
(css/parser) Improve error reporting (#6274) (956d574)
(es) Support trailing commas in
.swcrc(#6289) (244b0af)(es/minfiier) Compute more with sequential inliner (#6169) (743a1aa)
(es/minifier) Implement trivial optimizations (#6256) (5d52ae9)
(html/minifier) Handle
crossorigin(#6261) (782da5c)(html/minifier) Merge
scripttags (#6273) (02f8d31)Miscellaneous Tasks
(ci) Enforce clippy for all targets (#6299) (0967e8f)
(ci) Fix publish action (2737143)
(ci) Fix publish action (13b4d31)
(common) Switch to
new_debug_unreachable(#6265) (2f61332)Performance
Refactor
(css/parser) Refactor more (#6251) (a0e4684)
(css/parser) Refactor even more (#6288) (6cafeb2)
(es) Accept custom instance of
Comments(#6290) (1024a55)(html/parser) Refactor (#6267) (c255cfd)
Testing
(css/minifier) Fix fixture tester (#6222) (cd1319d)
(css/parser) Add tests for refactoring (#6262) (4c293f9)
(es) Enable tests for fixed issues (#6311) (5b02e24)
(es/compat) Add execution tests (#6312) (0f9d930)
(es/minifier) Add a test for
??operator (#6282) (0376da7)v1.3.13Compare Source
v1.3.11Compare Source
Bug Fixes
(css/parser) Add more error recovery (#6240) (6341554)
(es/minifier) Preserve
thisin more cases (#6226) (e9d421b)(es/minifier) Fix
collapse_vars(#6235) (48bb0cc)Features
(css/minifier) Merge rules (#6220) (8b6b9c0)
(es) Expose
unresolved_mark(#6236) (0b267ed)(es/minifier) Respect options (#6245) (ec9a80a)
(es/minifier) Support more statements in seqential inliner (#6248) (86e265a)
(es/minifier) Inline a lazily initialized var if it's used once (#6237) (1cd7f61)
Miscellaneous Tasks
(bindings) Fix type (#6184) (2bafd53)
(ci) Fix publish action (3916886)
(es/minifier) Configure fuzzer (#6246) (d454488)
(es/parser) Typo (#6228) (61e63df)- general: Fix publish action (83c9850)
Refactor
(css/parser) Use new approach for parsing invalid tokens (#6224) (ac619e8)
(css/parser) Fix parsing of declarations (#6234) (e4fe840)
Testing
(es/minifier) Organize terser tests (#6247) (01edb4f)
(es/preset-env) Ensure custom transforms are working (#6227) (de03675)
Build
evanw/esbuild
v0.15.18Compare Source
Performance improvements for both JS and CSS
This release brings noticeable performance improvements for JS parsing and for CSS parsing and printing. Here's an example benchmark for using esbuild to pretty-print a single large minified CSS file and JS file:
The performance improvements were very straightforward:
Identifiers were being scanned using a generic character advancement function instead of using custom inline code. Advancing past each character involved UTF-8 decoding as well as updating multiple member variables. This was sped up using loop that skips UTF-8 decoding entirely and that only updates member variables once at the end. This is faster because identifiers are plain ASCII in the vast majority of cases, so Unicode decoding is almost always unnecessary.
CSS identifiers and CSS strings were still being printed one character at a time. Apparently I forgot to move this part of esbuild's CSS infrastructure beyond the proof-of-concept stage. These were both very obvious in the profiler, so I think maybe I have just never profiled esbuild's CSS printing before?
There was unnecessary work being done that was related to source maps when source map output was disabled. I likely haven't observed this before because esbuild's benchmarks always have source maps enabled. This work is now disabled when it's not going to be used.
I definitely should have caught these performance issues earlier. Better late than never I suppose.
v0.15.17Compare Source
Search for missing source map code on the file system (#2711)
Source maps are JSON files that map from compiled code back to the original code. They provide the original source code using two arrays:
sources(required) andsourcesContent(optional). When bundling is enabled, esbuild is able to bundle code with source maps that was compiled by other tools (e.g. with Webpack) and emit source maps that map all the way back to the original code (e.g. before Webpack compiled it).Previously if the input source maps omitted the optional
sourcesContentarray, esbuild would usenullfor the source content in the source map that it generates (since the source content isn't available). However, sometimes the original source code is actually still present on the file system. With this release, esbuild will now try to find the original source code using the path in thesourcesarray and will use that instead ofnullif it was found.Fix parsing bug with TypeScript
inferandextends(#2712)This release fixes a bug where esbuild incorrectly failed to parse valid TypeScript code that nests
extendsinsideinferinsideextends, such as in the example below:TypeScript code that does this should now be parsed correctly.
Use
WebAssembly.instantiateStreamingif available (#1036, #1900)Currently the WebAssembly version of esbuild uses
fetchto downloadesbuild.wasmand thenWebAssembly.instantiateto compile it. There is a newer API calledWebAssembly.instantiateStreamingthat both downloads and compiles at the same time, which can be a performance improvement if both downloading and compiling are slow. With this release, esbuild now attempts to useWebAssembly.instantiateStreamingand falls back to the original approach if that fails.The implementation for this builds on a PR by @lbwa.
Preserve Webpack comments inside constructor calls (#2439)
This improves the use of esbuild as a faster TypeScript-to-JavaScript frontend for Webpack, which has special magic comments inside
new Worker()expressions that affect Webpack's behavior.v0.15.16Compare Source
Add a package alias feature (#2191)
With this release, you can now easily substitute one package for another at build time with the new
aliasfeature. For example,--alias:oldpkg=newpkgreplaces all imports ofoldpkgwithnewpkg. One use case for this is easily replacing a node-only package with a browser-friendly package in 3rd-party code that you don't control. These new substitutions happen first before all of esbuild's existing path resolution logic.Note that when an import path is substituted using an alias, the resulting import path is resolved in the working directory instead of in the directory containing the source file with the import path. If needed, the working directory can be set with the
cdcommand when using the CLI or with theabsWorkingDirsetting when using the JS or Go APIs.Fix crash when pretty-printing minified JSX with object spread of object literal with computed property (#2697)
JSX elements are translated to JavaScript function calls and JSX element attributes are translated to properties on a JavaScript object literal. These properties are always either strings (e.g. in
<x y />,yis a string) or an object spread (e.g. in<x {...y} />,yis an object spread) because JSX doesn't provide syntax for directly passing a computed property as a JSX attribute. However, esbuild's minifier has a rule that tries to inline object spread with an inline object literal in JavaScript. For example,x = { ...{ y } }is minified tox={y}when minification is enabled. This means that there is a way to generate a non-string non-spread JSX attribute in esbuild's internal representation. One example is with<x {...{ [y]: z }} />. When minification is enabled, esbuild's internal representation of this is something like<x [y]={z} />due to object spread inlining, which is not valid JSX syntax. If this internal representation is then pretty-printed as JSX using--minify --jsx=preserve, esbuild previously crashed when trying to print this invalid syntax. With this release, esbuild will now print<x {...{[y]:z}}/>in this scenario instead of crashing.vitejs/vite
v4.0.0-alpha.6Compare Source
safari14by default for wider ES2020 compatibility (#9063) (3cc65d7), closes #9063NODE_ENVmore predictable (#10996) (8148af7), closes #10996transformIndexHtmlhook (#9669) (1db52bf), closes #9669Configuration
📅 Schedule: Branch creation - "before 3am on Monday" (UTC), 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 has been generated by Mend Renovate. View repository job log here.