build: update all non-major dependencies #22407
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:
7.16.5
->7.16.7
7.16.5
->7.16.7
7.16.0
->7.16.7
7.16.5
->7.16.7
7.16.5
->7.16.7
7.16.5
->7.16.7
7.16.5
->7.16.7
7.16.5
->7.16.7
7.16.0
->7.16.7
4.4.6
->4.6.0
4.4.6
->4.6.0
7.1.17
->7.1.18
5.7.0
->5.9.1
5.7.0
->5.9.1
4.4.6
->4.6.0
3.20.0
->3.20.2
0.14.5
->0.14.11
0.14.5
->0.14.11
8.4.1
->8.6.0
2.25.3
->2.25.4
2.4.5
->2.4.6
13.0.0
->13.0.1
1.20.0
->1.21.0
~7.4.0
->~7.5.0
1.45.0
->1.47.0
3.0.0
->3.0.1
0.55.0
->0.56.0
5.3.2
->5.4.0
4.6.0
->4.7.2
Release Notes
babel/babel
v7.16.7
Compare Source
👓 Spec Compliance
babel-parser
🐛 Bug Fix
babel-plugin-transform-runtime
,babel-runtime-corejs2
,babel-runtime-corejs3
,babel-runtime
./typeof.js
helper in@babel/runtime
(@exb)babel-helpers
babel-helper-function-name
,babel-plugin-transform-function-name
💅 Polish
babel-core
$schema
property in json config files (@The-x-Theorist)bazelbuild/rules_nodejs
v4.6.0
Compare Source
Bug Fixes
Features
4.5.1 (2021-12-16)
v4.5.0
Compare Source
Bug Fixes
js_library
(2b4e903)minify
shorthand attribute is disabled (#3106) (af70835)Features
4.4.6 (2021-11-23)
Bug Fixes
4.4.5 (2021-11-11)
Bug Fixes
Features
4.4.4 (2021-11-08)
Bug Fixes
4.4.3 (2021-11-04)
Bug Fixes
4.4.2 (2021-10-28)
Bug Fixes
4.4.1 (2021-10-13)
Bug Fixes
typescript-eslint/typescript-eslint (@typescript-eslint/eslint-plugin)
v5.9.1
Compare Source
Note: Version bump only for package @typescript-eslint/eslint-plugin
v5.9.0
Compare Source
Features
5.8.1 (2021-12-27)
Bug Fixes
v5.8.1
Compare Source
Bug Fixes
v5.8.0
Compare Source
Bug Fixes
type
StatementTypes can't differenciate from variable (#4270) (bfc4324)array-type
markAST_NODE_TYPES.TSBigIntKeyword
as simple (#4274) (74e544e)semi
(#4318) (3b87b49)Features
any
/unknown
(#4207) (ff0adf9)typescript-eslint/typescript-eslint (@typescript-eslint/parser)
v5.9.1
Compare Source
Note: Version bump only for package @typescript-eslint/parser
v5.9.0
Compare Source
Note: Version bump only for package @typescript-eslint/parser
5.8.1 (2021-12-27)
Note: Version bump only for package @typescript-eslint/parser
v5.8.1
Compare Source
Note: Version bump only for package @typescript-eslint/parser
v5.8.0
Compare Source
Note: Version bump only for package @typescript-eslint/parser
zloirock/core-js
v3.20.2
Compare Source
Object.{ defineProperty, defineProperties }
bug, Babel issue%TypedArray%.prototype.set
bugs, affects modern engines (like Chrome < 95 or Safari < 14.1)v3.20.1
Compare Source
Promise.prototype.then
, #1026evanw/esbuild
v0.14.11
Compare Source
Fix a bug with enum inlining (#1903)
The new TypeScript enum inlining behavior had a bug where it worked correctly if you used
export enum Foo
but not if you usedenum Foo
and then laterexport { Foo }
. This release fixes the bug so enum inlining now works correctly in this case.Warn about
module.exports.foo = ...
in ESM (#1907)The
module
variable is treated as a global variable reference instead of as a CommonJS module reference in ESM code, which can cause problems for people that try to use both CommonJS and ESM exports in the same file. There has been a warning about this since version 0.14.9. However, the warning only covered cases likeexports.foo = bar
andmodule.exports = bar
but notmodule.exports.foo = bar
. This last case is now handled;Enable esbuild's CLI with Deno (#1913)
This release allows you to use Deno as an esbuild installer, without also needing to use esbuild's JavaScript API. You can now use esbuild's CLI with Deno:
v0.14.10
Compare Source
Enable tree shaking of classes with lowered static fields (#175)
If the configured target environment doesn't support static class fields, they are converted into a call to esbuild's
__publicField
function instead. However, esbuild's tree-shaking pass treated this call as a side effect, which meant that all classes with static fields were ineligible for tree shaking. This release fixes the problem by explicitly ignoring calls to the__publicField
function during tree shaking side-effect determination. Tree shaking is now enabled for these classes:Treat
--define:foo=undefined
as an undefined literal instead of an identifier (#1407)References to the global variable
undefined
are automatically replaced with the literal value for undefined, which appears asvoid 0
when printed. This allows for additional optimizations such as collapsingundefined ?? bar
into justbar
. However, this substitution was not done for values specified via--define:
. As a result, esbuild could potentially miss out on certain optimizations in these cases. With this release, it's now possible to use--define:
to substitute something with an undefined literal:Add the
--drop:debugger
flag (#1809)Passing this flag causes all
debugger;
statements to be removed from the output. This is similar to thedrop_debugger: true
flag available in the popular UglifyJS and Terser JavaScript minifiers.Add the
--drop:console
flag (#28)Passing this flag causes all
console.xyz()
API calls to be removed from the output. This is similar to thedrop_console: true
flag available in the popular UglifyJS and Terser JavaScript minifiers.WARNING: Using this flag can introduce bugs into your code! This flag removes the entire call expression including all call arguments. If any of those arguments had important side effects, using this flag will change the behavior of your code. Be very careful when using this flag. If you want to remove console API calls without removing arguments with side effects (which does not introduce bugs), you should mark the relevant API calls as pure instead like this:
--pure:console.log --minify
.Inline calls to certain no-op functions when minifying (#290, #907)
This release makes esbuild inline two types of no-op functions: empty functions and identity functions. These most commonly arise when most of the function body is eliminated as dead code. In the examples below, this happens because we use
--define:window.DEBUG=false
to cause dead code elimination inside the function body of the resultingif (false)
statement. This inlining is a small code size and performance win but, more importantly, it allows for people to use these features to add useful abstractions that improve the development experience without needing to worry about the run-time performance impact.An identity function is a function that just returns its argument. Here's an example of inlining an identity function:
An empty function is a function with an empty body. Here's an example of inlining an empty function:
To get this behavior you'll need to use the
function
keyword to define your function since that causes the definition to be hoisted, which eliminates concerns around initialization order. These features also work across modules, so functions are still inlined even if the definition of the function is in a separate module from the call to the function. To get cross-module function inlining to work, you'll need to have bundling enabled and use theimport
andexport
keywords to access the function so that esbuild can see which functions are called. And all of this has been added without an observable impact to compile times.I previously wasn't able to add this to esbuild easily because of esbuild's low-pass compilation approach. The compiler only does three full passes over the data for speed. The passes are roughly for parsing, binding, and printing. It's only possible to inline something after binding but it needs to be inlined before printing. Also the way module linking was done made it difficult to roll back uses of symbols that were inlined, so the symbol definitions were not tree shaken even when they became unused due to inlining.
The linking issue was somewhat resolved when I fixed #128 in the previous release. To implement cross-module inlining of TypeScript enums, I came up with a hack to defer certain symbol uses until the linking phase, which happens after binding but before printing. Another hack is that inlining of TypeScript enums is done directly in the printer to avoid needing another pass.
The possibility of these two hacks has unblocked these simple function inlining use cases that are now handled. This isn't a fully general approach because optimal inlining is recursive. Inlining something may open up further inlining opportunities, which either requires multiple iterations or a worklist algorithm, both of which don't work when doing late-stage inlining in the printer. But the function inlining that esbuild now implements is still useful even though it's one level deep, and so I believe it's still worth adding.
v0.14.9
Compare Source
Implement cross-module tree shaking of TypeScript enum values (#128)
If your bundle uses TypeScript enums across multiple files, esbuild is able to inline the enum values as long as you export and import the enum using the ES module
export
andimport
keywords. However, this previously still left the definition of the enum in the bundle even when it wasn't used anymore. This was because esbuild's tree shaking (i.e. dead code elimination) is based on information recorded during parsing, and at that point we don't know which imported symbols are inlined enum values and which aren't.With this release, esbuild will now remove enum definitions that become unused due to cross-module enum value inlining. Property accesses off of imported symbols are now tracked separately during parsing and then resolved during linking once all inlined enum values are known. This behavior change means esbuild's support for cross-module inlining of TypeScript enums is now finally complete. Here's an example:
Bundling the example code above now results in the enum definition being completely removed from the bundle:
Fix a regression with
export {} from
and CommonJS (#1890)This release fixes a regression that was introduced by the change in 0.14.7 that avoids calling the
__toESM
wrapper for import statements that are converted torequire
calls and that don't use thedefault
or__esModule
export names. The previous change was correct for theimport {} from
syntax but not for theexport {} from
syntax, which meant that in certain cases with re-exported values, the value of thedefault
import could be different than expected. This release fixes the regression.Warn about using
module
orexports
in ESM code (#1887)CommonJS export variables cannot be referenced in ESM code. If you do this, they are treated as global variables instead. This release includes a warning for people that try to use both CommonJS and ES module export styles in the same file. Here's an example:
Running esbuild on that code now generates a warning that looks like this:
v0.14.8
Compare Source
Add a
resolve
API for plugins (#641, #1652)Plugins now have access to a new API called
resolve
that runs esbuild's path resolution logic and returns the result to the caller. This lets you write plugins that can reuse esbuild's complex built-in path resolution logic to change the inputs and/or adjust the outputs. Here's an example:This plugin intercepts imports to the path
example
, tells esbuild to resolve the import./foo
in the directory/bar
, and then forces whatever path esbuild returns to be considered external. Here are some additional details:If you don't pass the optional
resolveDir
parameter, esbuild will still runonResolve
plugin callbacks but will not attempt any path resolution itself. All of esbuild's path resolution logic depends on theresolveDir
parameter including looking for packages innode_modules
directories (since it needs to know where thosenode_modules
directories might be).If you want to resolve a file name in a specific directory, make sure the input path starts with
./
. Otherwise the input path will be treated as a package path instead of a relative path. This behavior is identical to esbuild's normal path resolution logic.If path resolution fails, the
errors
property on the returned object will be a non-empty array containing the error information. This function does not always throw an error when it fails. You need to check for errors after calling it.The behavior of this function depends on the build configuration. That's why it's a property of the
build
object instead of being a top-level API call. This also means you can't call it until all pluginsetup
functions have finished since these give plugins the opportunity to adjust the build configuration before it's frozen at the start of the build. So the newresolve
function is going to be most useful inside youronResolve
and/oronLoad
callbacks.There is currently no attempt made to detect infinite path resolution loops. Calling
resolve
from withinonResolve
with the same parameters is almost certainly a bad idea.Avoid the CJS-to-ESM wrapper in some cases (#1831)
Import statements are converted into
require()
calls when the output format is set to CommonJS. To convert from CommonJS semantics to ES module semantics, esbuild wraps the return value in a call to esbuild's__toESM()
helper function. However, the conversion is only needed if it's possible that the exports nameddefault
or__esModule
could be accessed.This release avoids calling this helper function in cases where esbuild knows it's impossible for the
default
or__esModule
exports to be accessed, which results in smaller and faster code. To get this behavior, you have to use theimport {} from
import syntax:Strip overwritten function declarations when minifying (#610)
JavaScript allows functions to be re-declared, with each declaration overwriting the previous declaration. This type of code can sometimes be emitted by automatic code generators. With this release,
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: Renovate will not automatically rebase this PR, because other commits have been found.
👻 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.