chore(deps): bump esbuild from 0.20.0 to 0.20.1
Bumps esbuild from 0.20.0 to 0.20.1.
Release notes
Sourced from esbuild's releases.
v0.20.1
Fix a bug with the CSS nesting transform (#3648)
This release fixes a bug with the CSS nesting transform for older browsers where the generated CSS could be incorrect if a selector list contained a pseudo element followed by another selector. The bug was caused by incorrectly mutating the parent rule's selector list when filtering out pseudo elements for the child rules:
/* Original code */ .foo { &:after, & .bar { color: red; } }/* Old output (with --supported:nesting=false) */ .foo .bar, .foo .bar { color: red; }
/* New output (with --supported:nesting=false) */ .foo:after, .foo .bar { color: red; }
Constant folding for JavaScript inequality operators (#3645)
This release introduces constant folding for the
< > <= >=operators. The minifier will now replace these operators withtrueorfalsewhen both sides are compile-time numeric or string constants:// Original code console.log(1 < 2, '🍕' > '🧀')// Old output (with --minify) console.log(1<2,"🍕">"🧀");
// New output (with --minify) console.log(!0,!1);
Better handling of
__proto__edge cases (#3651)JavaScript object literal syntax contains a special case where a non-computed property with a key of
__proto__sets the prototype of the object. This does not apply to computed properties or to properties that use the shorthand property syntax introduced in ES6. Previously esbuild didn't correctly preserve the "sets the prototype" status of properties inside an object literal, meaning a property that sets the prototype could accidentally be transformed into one that doesn't and vice versa. This has now been fixed:// Original code function foo(__proto__) { return { __proto__: __proto__ } // Note: sets the prototype
... (truncated)
Changelog
Sourced from esbuild's changelog.
0.20.1
Fix a bug with the CSS nesting transform (#3648)
This release fixes a bug with the CSS nesting transform for older browsers where the generated CSS could be incorrect if a selector list contained a pseudo element followed by another selector. The bug was caused by incorrectly mutating the parent rule's selector list when filtering out pseudo elements for the child rules:
/* Original code */ .foo { &:after, & .bar { color: red; } }/* Old output (with --supported:nesting=false) */ .foo .bar, .foo .bar { color: red; }
/* New output (with --supported:nesting=false) */ .foo:after, .foo .bar { color: red; }
Constant folding for JavaScript inequality operators (#3645)
This release introduces constant folding for the
< > <= >=operators. The minifier will now replace these operators withtrueorfalsewhen both sides are compile-time numeric or string constants:// Original code console.log(1 < 2, '🍕' > '🧀')// Old output (with --minify) console.log(1<2,"🍕">"🧀");
// New output (with --minify) console.log(!0,!1);
Better handling of
__proto__edge cases (#3651)JavaScript object literal syntax contains a special case where a non-computed property with a key of
__proto__sets the prototype of the object. This does not apply to computed properties or to properties that use the shorthand property syntax introduced in ES6. Previously esbuild didn't correctly preserve the "sets the prototype" status of properties inside an object literal, meaning a property that sets the prototype could accidentally be transformed into one that doesn't and vice versa. This has now been fixed:// Original code function foo(__proto__) {
... (truncated)
Commits
9f9e4f8publish 0.20.1 to npmac36537fix #3651: handle__proto__edge cases better555db48fix #3645: constant folding for\< > \<= >=5650831fix #3650: add a wrapper for float64 mathd086889fix some lintsad3d8c6fix #3648: copy selectors before checking childrena08f30dfix #3634: crash if resolving with bad source dir- See full diff in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore <dependency name> major versionwill close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)@dependabot ignore <dependency name> minor versionwill close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)@dependabot ignore <dependency name>will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)@dependabot unignore <dependency name>will remove all of the ignore conditions of the specified dependency@dependabot unignore <dependency name> <ignore condition>will remove the ignore condition of the specified dependency and ignore conditions
Quality Gate passed
Issues
0 New issues
Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code