Update dependency esbuild to v0.12.7 #23
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:
0.12.6
->0.12.7
Release Notes
evanw/esbuild
v0.12.7
Compare Source
Quote object properties that are modern Unicode identifiers (#1349)
In ES6 and above, an identifier is a character sequence starting with a character in the
ID_Start
Unicode category and followed by zero or more characters in theID_Continue
Unicode category, and these categories must be drawn from Unicode version 5.1 or above.But in ES5, an identifier is a character sequence starting with a character in one of the
Lu, Ll, Lt, Lm, Lo, Nl
Unicode categories and followed by zero or more characters in theLu, Ll, Lt, Lm, Lo, Nl, Mn, Mc, Nd, Pc
Unicode categories, and these categories must be drawn from Unicode version 3.0 or above.Previously esbuild always used the ES6+ identifier validation test when deciding whether to use an identifier or a quoted string to encode an object property but with this release, it will use the ES5 validation test instead:
This approach should ensure maximum compatibility with all JavaScript environments that support ES5 and above. Note that this means minified files containing Unicode properties may be slightly larger than before.
Ignore
tsconfig.json
files insidenode_modules
(#1355)Package authors often publish their
tsconfig.json
files to npm because of npm's default-include publishing model and because these authors probably don't know about.npmignore
files. People trying to use these packages with esbuild have historically complained that esbuild is respectingtsconfig.json
in these cases. The assumption is that the package author published these files by accident.With this release, esbuild will no longer respect
tsconfig.json
files when the source file is inside anode_modules
folder. Note thattsconfig.json
files insidenode_modules
are still parsed, and extendingtsconfig.json
files from inside a package is still supported.Fix missing
--metafile
when using--watch
(#1357)Due to an oversight, the
--metafile
setting didn't work when--watch
was also specified. This only affected the command-line interface. With this release, the--metafile
setting should now work in this case.Add a hidden
__esModule
property to modules in ESM format (#1338)Module namespace objects from ESM files will now have a hidden
__esModule
property. This improves compatibility with code that has been converted from ESM syntax to CommonJS by Babel or TypeScript. For example:If the object returned by
require("y")
doesn't have an__esModule
property, theny_1
will be the object{ "default": require("y") }
. If the file"y"
is in ESM format and has a default export of, say, the valuenull
, that meansy_1
will now be{ "default": { "default": null } }
and you will need to usey_1.default.default
to access the default value. Adding an automatically-generated__esModule
property when converting files in ESM format to CommonJS is required to make this code work correctly (i.e. for the value to be accessible via justy_1.default
instead).With this release, code in ESM format will now have an automatically-generated
__esModule
property to satisfy this convention. The property is non-enumerable so it shouldn't show up when iterating over the properties of the object. As a result, the export name__esModule
is now reserved for use with esbuild. It's now an error to create an export with the name__esModule
.This fix was contributed by @lbwa.
Configuration
📅 Schedule: "on the 7 day of the month" (UTC).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by WhiteSource Renovate. View repository job log here.