This repository has been archived by the owner on Apr 6, 2023. It is now read-only.
chore(deps): update dependency esbuild to ^0.13.14 #1953
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.13.13
->^0.13.14
Release Notes
evanw/esbuild
v0.13.14
Compare Source
Fix dynamic
import()
on node 12.20+ (#1772)When you use flags such as
--target=node12.20
, esbuild uses that version number to see what features the target environment supports. This consults an internal table that stores which target environments are supported for each feature. For example,import(x)
is changed intoPromise.resolve().then(() => require(x))
if dynamicimport
expressions are unsupported.Previously esbuild's internal table only stored one version number, since features are rarely ever removed in newer versions of software. Either the target environment is before that version and the feature is unsupported, or the target environment is after that version and the feature is supported. This approach has work for all relevant features in all cases except for one: dynamic
import
support in node. This feature is supported in node 12.20.0 up to but not including node 13.0.0, and then is also supported in node 13.2.0 up. The feature table implementation has been changed to store an array of potentially discontiguous version ranges instead of one version number.Up until now, esbuild used 13.2.0 as the lowest supported version number to avoid generating dynamic
import
expressions when targeting node versions that don't support it. But with this release, esbuild will now use the more accurate discontiguous version range in this case. This means dynamicimport
expressions can now be generated when targeting versions of node 12.20.0 up to but not including node 13.0.0.Avoid merging certain qualified rules in CSS (#1776)
A change was introduced in the previous release to merge adjacent CSS rules that have the same content:
However, that introduced a regression in cases where the browser considers one selector to be valid and the other selector to be invalid, such as in the following example:
Merging these two rules into one causes the browser to consider the entire merged rule to be invalid, which disables both rules. This is a change in behavior from the original code.
With this release, esbuild will now only merge adjacent duplicate rules together if they are known to work in all browsers (specifically, if they are known to work in IE 7 and up). Adjacent duplicate rules will no longer be merged in all other cases including modern pseudo-class selectors such as
:focus
, HTML5 elements such asvideo
, and combinators such asa + b
.Minify syntax in the CSS
font
,font-family
, andfont-weight
properties (#1756)This release includes size reductions for CSS font syntax when minification is enabled:
Notice how
bold
has been changed to700
and the quotes were removed around"Segoe UI"
since it was safe to do so.This feature was contributed by @sapphi-red.
Configuration
📅 Schedule: 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.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.
This PR has been generated by WhiteSource Renovate. View repository job log here.