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:
Constant folding for JavaScript inequality operators (#3645)
This release introduces constant folding for the < > <= >= operators. The minifier will now replace these operators with true or false when both sides are compile-time numeric or string constants:
// Original code
console.log(1 < 2, '🍕' > '🧀')
// Old output (with --minify)
console.log(1<2,"🍕">"🧀");
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
This changelog documents all esbuild versions published in the year 2021 (versions 0.8.29 through 0.14.10).
0.14.10
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:
// Original code
class Foo { static foo = 'foo' }
class Bar { static bar = 'bar' }
new Bar()
// Old output (with --tree-shaking=true --target=es6)
class Foo {
}
__publicField(Foo, "foo", "foo");
class Bar {
}
__publicField(Bar, "bar", "bar");
new Bar();
// New output (with --tree-shaking=true --target=es6)
class Bar {
}
__publicField(Bar, "bar", "bar");
new Bar();
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 as void 0 when printed. This allows for additional optimizations such as collapsing undefined ?? bar into just bar. 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:
// Original code
let win = typeof window !== 'undefined' ? window : {}
// Old output (with --define:window=undefined --minify)
let win=typeof undefined!="undefined"?undefined:{};
// New output (with --define:window=undefined --minify)
let win={};
Passing this flag causes all debugger; statements to be removed from the output. This is similar to the drop_debugger: true flag available in the popular UglifyJS and Terser JavaScript minifiers.
Added: [unicorn/template-indent], (as a [special rule][unicorn/template-indent-special]). Thanks to Gürgün Dayıoğlu (@gurgunday)!
Changed: All the [formatting rules that were deprecated in ESLint 8.53.0][deprecated-8.53.0] are now excluded if you set the ESLINT_CONFIG_PRETTIER_NO_DEPRECATED environment variable.
Version 9.0.0 (2023-08-05)
Added: The CLI helper tool now works with eslint.config.js (flat config). Just like ESLint itself, the CLI tool automatically first tries eslint.config.js and then eslintrc, and you can force which one to use by setting the [ESLINT_USE_FLAT_CONFIG] environment variable. Note that the config of eslint-config-prettier has always been compatible with eslint.config.js (flat config) – it was just the CLI tool that needed updating. On top of that, the docs have been updated to mention how to use both eslint.config.js (flat config) and eslintrc, and the tests now test both config systems.
Changed: [unicode-bom] is no longer turned off. Prettier preserves the BOM if you have one, and does not add one if missing. It was wrong of eslint-config-prettier to disable that rule. If you get ESLint errors after upgrading, either add "unicode-bom": "off" to your config to disable it again, or run ESLint with --fix to fix all files according to the rule (add or remove BOM). Thanks to Nicolas Stepien (@nstepien)!
Version 8.10.0 (2023-08-03)
Added: [max-statements-per-line]. Thanks to @Zamiell!
Version 8.9.0 (2023-07-27)
Added: [vue/array-element-newline]. Thanks to @xcatliu!
Version 8.8.0 (2023-03-20)
Added: [@typescript-eslint/lines-around-comment]. Thanks to @ttionya!
Version 8.7.0 (2023-03-06)
Added: [@typescript-eslint/block-spacing]. Thanks to @ttionya!
Added: [@typescript-eslint/key-spacing]. Thanks to @ttionya!
Bumps the all-dependencies group with 84 updates:
3.0.5
3.1.0
3.0.2
3.0.5
8.1.0
9.0.1
1.0.0
1.0.2
14.17.34
20.11.19
1.71.0
1.86.0
5.4.0
7.0.2
5.4.0
7.0.2
1.6.2
2.3.9
0.14.5
0.20.1
8.3.0
8.56.0
8.3.0
9.1.0
7.2.0
10.3.10
9.2.2
10.3.0
10.0.0
10.0.6
2.5.1
3.2.5
4.5.2
5.3.3
2.19.0
2.23.0
1.0.4
2.1.4
4.0.6
5.3.1
0.6.0
0.11.14
1.2.1
2.0.2
7.0.9
7.0.15
3.0.5
5.1.2
5.4.0
7.0.2
5.4.0
7.0.2
5.4.0
7.0.2
5.4.0
7.0.2
8.6.0
8.11.3
3.1.2
3.1.3
11.1.0
11.2.0
2.3.7
2.3.8
1.0.2
1.0.7
6.2.1
6.3.0
1.0.0-rc.10
1.0.0-rc.12
1.5.0
2.1.0
4.1.3
5.1.0
5.1.0
6.1.0
4.3.3
4.3.4
2.0.1
2.0.2
1.3.2
2.0.0
2.2.0
2.3.0
4.2.2
5.0.3
2.8.0
3.1.0
3.1.1
3.1.2
5.1.1
7.2.2
4.3.0
5.3.0
2.1.0
3.4.3
9.1.0
9.6.1
1.4.0
1.5.0
3.2.7
3.3.2
1.13.0
1.17.1
3.0.4
3.2.0
3.2.4
3.3.0
2.3.2
2.3.3
2.7.1
3.0.2
1.1.1
1.1.2
1.1.1
1.2.4
13.12.0
13.24.0
11.0.4
11.1.0
1.0.2
1.0.3
4.0.2
4.1.0
6.1.0
8.0.2
5.0.0
5.0.1
3.2.0
3.2.1
4.0.4
4.0.5
1.2.6
1.2.8
3.45.0
3.55.0
2.0.1
2.1.1
1.11.0
1.13.1
6.0.1
7.1.2
6.0.1
7.0.0
2.3.0
2.3.1
9.0.7
11.0.1
2.1.1
2.3.1
6.11.0
6.11.2
1.2.4
1.3.0
1.0.4
1.0.5
1.8.6
1.8.11
1.13.1
1.13.6
8.1.0
8.2.0
3.17.3
3.17.5
3.17.3
3.17.5
6.2.0
6.2.1
Updates
plist
from 3.0.5 to 3.1.0Changelog
Sourced from plist's changelog.
Commits
Updates
@types/plist
from 3.0.2 to 3.0.5Commits
Updates
vscode-languageclient
from 8.1.0 to 9.0.1Commits
4f782ce
New release 3.17.58c81fc8
Update lock files (#1323)300fac4
Prepare new release (#1322)dfdb85d
Fix folding range tests (#1320)4e057d5
Add the workspace/foldingRange/refresh method (#1309)b6e99d8
AddMessageType.Debug
(#1264)c6817d3
Fixes #1313: Capture the exit code of a server process and print it to the lo...c880c61
Move to vscode version 1.82 (#1312)864c8c5
Dbaeumer/frail-salamander-amber (#1311)fb0a3d4
Move to lock file version 3 (#1304)Updates
@types/lcov-parse
from 1.0.0 to 1.0.2Commits
Updates
@types/node
from 14.17.34 to 20.11.19Commits
Updates
@types/vscode
from 1.71.0 to 1.86.0Commits
Updates
@typescript-eslint/eslint-plugin
from 5.4.0 to 7.0.2Release notes
Sourced from
@typescript-eslint/eslint-plugin
's releases.... (truncated)
Changelog
Sourced from
@typescript-eslint/eslint-plugin
's changelog.... (truncated)
Commits
677e7cc
chore(release): publish 7.0.2300d7d2
docs(eslint-plugin): fix typo in prefer-ts-expect-error (#8504)ebd2959
docs: small typo in no-inferrable-types.md (#8492)4f3215f
chore(release): publish 7.0.1422791c
fix(eslint-plugin): update peer dep for parser (#8441)b27de99
chore(release): publish 7.0.0379f742
chore(eslint-plugin): [no-confusing-void-expression] explicitly state default...b636baa
docs: fix restrict-plus-operands example (#8362)1aa393c
chore(deps): update dependency prettier to v3.2.5 (#8401)8ef5f4b
feat: add support for flat configs (#7935)Updates
@typescript-eslint/parser
from 5.4.0 to 7.0.2Release notes
Sourced from
@typescript-eslint/parser
's releases.... (truncated)
Changelog
Sourced from
@typescript-eslint/parser
's changelog.... (truncated)
Commits
677e7cc
chore(release): publish 7.0.24f3215f
chore(release): publish 7.0.1b27de99
chore(release): publish 7.0.01aa393c
chore(deps): update dependency prettier to v3.2.5 (#8401)8ef5f4b
feat: add support for flat configs (#7935)1200b4c
chore(deps): update nx to v17.3.0 (#8317)584db29
feat: bump ESLint, NodeJS, and TS minimum version requirements (#8377)289ee88
chore(release): publish 6.21.0aa5edf7
chore(deps): update dependency prettier to v3.2.4 (#8357)45c0cb2
chore: cleanup test-utils naming/locations (#8341)Updates
@vscode/test-electron
from 1.6.2 to 2.3.9Changelog
Sourced from
@vscode/test-electron
's changelog.... (truncated)
Commits
fdb7ef9
2.3.96d096d4
fix: archive extraction on Windows failing when run under Electrona705c72
remove skip (#250)62881f0
change archive type detection to use content disposition (#248)7bd2c32
2.3.8 (#249)c1a4966
chore(deps): bump get-func-name from 2.0.0 to 2.0.2 (#236)568bf57
Merge pull request #247 from microsoft/connor4312/validate-download3df8dfd
2.3.76a41b27
feat: add length/hash validation for downloads91c7f9c
Update platform support and remove Windows 32-bit archive option (#242)Maintainer changes
This version was pushed to npm by vscode-bot, a new releaser for
@vscode/test-electron
since your current version.Updates
esbuild
from 0.14.5 to 0.20.1Release notes
Sourced from esbuild's releases.
... (truncated)
Changelog
Sourced from esbuild's changelog.
... (truncated)
Commits
9f9e4f8
publish 0.20.1 to npmac36537
fix #3651: handle__proto__
edge cases better555db48
fix #3645: constant folding for\< > \<= >=
5650831
fix #3650: add a wrapper for float64 mathd086889
fix some lintsad3d8c6
fix #3648: copy selectors before checking childrena08f30d
fix #3634: crash if resolving with bad source dir2af5ccf
publish 0.20.0 to npm0bccf08
fix esbuild/deno-esbuild#5931f87d
work around api deprecations in deno 1.40.x (#3609) (#3611)Updates
eslint
from 8.3.0 to 8.56.0Release notes
Sourced from eslint's releases.
... (truncated)
Changelog
Sourced from eslint's changelog.
... (truncated)
Commits
8e8e9f8
8.56.0085978b
Build: changelog update for 8.56.0ba6af85
chore: upgrade@eslint/js
@8
.56.0 (#17864)60a531a
chore: package.json update for@eslint/js
release0dd9704
feat: Support custom severity when reporting unused disable directives (#17212)31a7e3f
feat: fix no-restricted-properties false negatives with unknown objects (#17818)ba87a06
chore: update dependency markdownlint to ^0.32.0 (#17783)7d5e5f6
fix:TypeError: fs.exists is not a function
on read-only file system (#17846)9271d10
chore: add GitHub issue template for docs issues (#17845)70a686b
chore: Convert rule tests to FlatRuleTester (#17819)Updates
eslint-config-prettier
from 8.3.0 to 9.1.0Changelog
Sourced from eslint-config-prettier's changelog.