build: update all non-major dependencies #21640
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:
3.16.2->3.16.30.12.22->0.12.232.24.1->2.24.27.0.1->7.0.25.7.1->5.7.2Release Notes
zloirock/core-js
v3.16.3Compare Source
CreateAsyncFromSyncIteratorsemantic inAsyncIterator.from, related to #765Object.prototype, #973evanw/esbuild
v0.12.23Compare Source
Parsing of rest arguments in certain TypeScript types (#1553)
This release implements parsing of rest arguments inside object destructuring inside arrow functions inside TypeScript type declarations. Support for rest arguments in this specific syntax was not previously implemented. The following code was incorrectly considered a syntax error before this release, but is no longer considered a syntax error:
Fix error message for
watch: trueandbuildSync(#1552)Watch mode currently only works with the
buildAPI. Previously using watch mode with thebuildSyncAPI caused a confusing error message. This release explicitly disallows doing this, so the error message is now more clear.Fix an minification bug with the
--keep-namesoption (#1552)This release fixes a subtle bug that happens with
--keep-names --minifyand nested function declarations in strict mode code. It can be triggered by the following code, which was being compiled incorrectly under those flags:The bug was caused by an unfortunate interaction between a few of esbuild's behaviors:
Function declarations inside of nested scopes behave differently in different situations, so esbuild rewrites this function declaration to a local variable initialized to a function expression instead so that it behaves the same in all situations.
More specifically, the interpretation of such function declarations depends on whether or not it currently exists in a strict mode context:
The bundling process sometimes erases strict mode context. For example, different files may have different strict mode status but may be merged into a single file which all shares the same strict mode status. Also, files in ESM format are automatically in strict mode but a bundle output file in IIFE format may not be executed in strict mode. Transforming the nested
functionto aletin strict mode and avarin non-strict mode means esbuild's output will behave reliably in different environments.The "keep names" feature adds automatic calls to the built-in
__namehelper function to assign the original name to the.nameproperty of the minified function object at run-time. That transforms the code into this:This injected helper call does not count as a use of the associated function object so that dead-code elimination will still remove the function object as dead code if nothing else uses it. Otherwise dead-code elimination would stop working when the "keep names" feature is enabled.
Minification enables an optimization where an initialized variable with a single use immediately following that variable is transformed by inlining the initializer into the use. So for example
var a = 1; return ais transformed intoreturn 1. This code matches this pattern (initialized single-use variable + use immediately following that variable) so the optimization does the inlining, which transforms the code into this:The code is now incorrect because
inneractually has two uses, although only one was actually counted.This inlining optimization will now be avoided in this specific case, which fixes the bug without regressing dead-code elimination or initialized variable inlining in any other cases.
import-js/eslint-plugin-import
v2.24.2Compare Source
Fixed
named], [namespace]: properly handle ExportAllDeclarations ([#2199], thanks [@ljharb])typicode/husky
v7.0.2Compare Source
Fix pre-commit hook in WebStorm (#1023)
terser/terser
v5.7.2Compare Source
global_defsoption (#1036)??and?.(#1045)packageno longer require you to disable strict mode to be used as names.inoperator in some for loops (it breaks parsing because of for..in loops)Configuration
📅 Schedule: "after 10pm every weekday,before 4am every weekday,every weekend" in timezone America/Tijuana.
🚦 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 WhiteSource Renovate. View repository job log here.