CSS nesting syntax has been changed again, and esbuild has been updated to match. Type selectors may now be used with CSS nesting:
.foo {
div {
color: red;
}
}
Previously this was disallowed in the CSS specification because it's ambiguous whether an identifier is a declaration or a nested rule starting with a type selector without requiring unbounded lookahead in the parser. It has now been allowed because the CSS working group has decided that requiring unbounded lookahead is acceptable after all.
Note that this change means esbuild no longer considers any existing browser to support CSS nesting since none of the existing browsers support this new syntax. CSS nesting will now always be transformed when targeting a browser. This situation will change in the future as browsers add support for this new syntax.
Fix a scope-related bug with --drop-labels= (#3311)
The recently-released --drop-labels= feature previously had a bug where esbuild's internal scope stack wasn't being restored properly when a statement with a label was dropped. This could manifest as a tree-shaking issue, although it's possible that this could have also been causing other subtle problems too. The bug has been fixed in this release.
Make renamed CSS names unique across entry points (#3295)
Previously esbuild's generated names for local names in CSS were only unique within a given entry point (or across all entry points when code splitting was enabled). That meant that building multiple entry points with esbuild could result in local names being renamed to the same identifier even when those entry points were built simultaneously within a single esbuild API call. This problem was especially likely to happen with minification enabled. With this release, esbuild will now avoid renaming local names from two separate entry points to the same name if those entry points were built with a single esbuild API call, even when code splitting is disabled.
Fix CSS ordering bug with @layer before @import
CSS lets you put @layer rules before @import rules to define the order of layers in a stylesheet. Previously esbuild's CSS bundler incorrectly ordered these after the imported files because before the introduction of cascade layers to CSS, imported files could be bundled by removing the @import rules and then joining files together in the right order. But with @layer, CSS files may now need to be split apart into multiple pieces in the bundle. For example:
CSS nesting syntax has been changed again, and esbuild has been updated to match. Type selectors may now be used with CSS nesting:
.foo {
div {
color: red;
}
}
Previously this was disallowed in the CSS specification because it's ambiguous whether an identifier is a declaration or a nested rule starting with a type selector without requiring unbounded lookahead in the parser. It has now been allowed because the CSS working group has decided that requiring unbounded lookahead is acceptable after all.
Note that this change means esbuild no longer considers any existing browser to support CSS nesting since none of the existing browsers support this new syntax. CSS nesting will now always be transformed when targeting a browser. This situation will change in the future as browsers add support for this new syntax.
Fix a scope-related bug with --drop-labels= (#3311)
The recently-released --drop-labels= feature previously had a bug where esbuild's internal scope stack wasn't being restored properly when a statement with a label was dropped. This could manifest as a tree-shaking issue, although it's possible that this could have also been causing other subtle problems too. The bug has been fixed in this release.
Make renamed CSS names unique across entry points (#3295)
Previously esbuild's generated names for local names in CSS were only unique within a given entry point (or across all entry points when code splitting was enabled). That meant that building multiple entry points with esbuild could result in local names being renamed to the same identifier even when those entry points were built simultaneously within a single esbuild API call. This problem was especially likely to happen with minification enabled. With this release, esbuild will now avoid renaming local names from two separate entry points to the same name if those entry points were built with a single esbuild API call, even when code splitting is disabled.
Fix CSS ordering bug with @layer before @import
CSS lets you put @layer rules before @import rules to define the order of layers in a stylesheet. Previously esbuild's CSS bundler incorrectly ordered these after the imported files because before the introduction of cascade layers to CSS, imported files could be bundled by removing the @import rules and then joining files together in the right order. But with @layer, CSS files may now need to be split apart into multiple pieces in the bundle. For example:
Bumps the extension-dependencies group with 10 updates:
20.4.4
20.5.9
1.80.0
1.81.0
6.1.0
6.5.0
6.1.0
6.5.0
2.19.0
2.21.0
0.18.16
0.19.2
8.45.0
8.48.0
7.0.2
8.0.0
3.0.0
3.0.3
5.1.6
5.2.2
Updates
@types/node
from 20.4.4 to 20.5.9Commits
Updates
@types/vscode
from 1.80.0 to 1.81.0Commits
Updates
@typescript-eslint/eslint-plugin
from 6.1.0 to 6.5.0Release notes
Sourced from
@typescript-eslint/eslint-plugin
's releases.... (truncated)
Changelog
Sourced from
@typescript-eslint/eslint-plugin
's changelog.... (truncated)
Commits
4f34d0b
chore: publish v6.5.023ac499
fix(eslint-plugin): [consistent-type-assertions] wrap object return value wit...85f34da
docs: add info for no-extra-semi (#7330)ef1367e
chore: publish v6.4.12e1cfd5
chore: upgrade to yarn 3 (#6162)b52658f
fix(eslint-plugin): [no-unnecessary-condition] false positives with branded t...66cc514
chore: enable logical-assignment-operators rule internally (#7484)e1897db
docs: fix typo in member-ordering (#7488)14bea42
chore: publish v6.4.09181252
docs: add note on common misconceptions about type narrowing (#7391)Updates
@typescript-eslint/parser
from 6.1.0 to 6.5.0Release notes
Sourced from
@typescript-eslint/parser
's releases.... (truncated)
Changelog
Sourced from
@typescript-eslint/parser
's changelog.... (truncated)
Commits
4f34d0b
chore: publish v6.5.0ef1367e
chore: publish v6.4.12e1cfd5
chore: upgrade to yarn 3 (#6162)14bea42
chore: publish v6.4.00a1de14
chore: publish v6.3.0948b061
chore: publish v6.2.1c869aa1
chore: publish v6.2.0Updates
@vscode/vsce
from 2.19.0 to 2.21.0Commits
11223c3
support manual release version (#895)e0857ea
feat: add support for packaging and publishing without license file (#887)986df2b
feat: add user-friendly info to --help (#884)a4f0bf3
rephrase error message for mismatched pricing values in manifest (#890)eb0b8b9
Add CodeQL suppression comment (#894)446c1de
add a pack alias for package (#892)a6187b3
Merge pull request #886 from microsoft/roblou/fixPlatCheckaa2113d
Version bump0ef9ec2
Look for an exact match of version+platform when detecting duplicates8deb0f6
2.20.0 (#883)Updates
esbuild
from 0.18.16 to 0.19.2Release notes
Sourced from esbuild's releases.
... (truncated)
Changelog
Sourced from esbuild's changelog.
... (truncated)
Commits
09a1001
publish 0.19.2 to npm4d9b764
fix #3311: pop scope after--drop-labels=
runsf2d23b2
fix some typose76780c
css: further changes to css nesting syntax71f4a5a
update compat-table (note: css nesting changed)eb667c3
css: try to merge adjacent@layer
rules togetherf759693
css: fix ordering with@layer
before@import
c73f0f8
css: extract wrapping logic to a helper functiona05a2f9
css: make source index on compile results optionalbb16fb7
css: parser separates layers pre/post@import
Updates
eslint
from 8.45.0 to 8.48.0Release notes
Sourced from eslint's releases.
... (truncated)
Changelog
Sourced from eslint's changelog.
... (truncated)
Commits
10c4f85
8.48.05013ad7
Build: changelog update for 8.48.08dd3cec
chore: upgrade@eslint/js
@8
.48.0 (#17501)6d0496e
chore: package.json update for@eslint/js
release7a51d77
docs: no-param-reassign mention strict mode (#17494)9cd7ac2
docs: addfetch
script to package.json conventions (#17459)7234f6a
fix: update RuleTester JSDoc and deprecations (#17496)1fbb3b0
feat: correct update direction infor-direction
(#17483)9d4216d
chore: Refactor and document CodePathSegment (#17474)cab21e6
docs: advice for inline disabling of rules (#17458)Updates
patch-package
from 7.0.2 to 8.0.0Release notes
Sourced from patch-package's releases.
Changelog
Sourced from patch-package's changelog.
Commits
Updates
prettier
from 3.0.0 to 3.0.3Release notes
Sourced from prettier's releases.
Changelog
Sourced from prettier's changelog.
... (truncated)
Commits
d5f3171
Release 3.0.3a35008f
Support shared config that forbidsrequire()
(#15233)1ce97d1
Support TypeScript 5.2using
/await using
declaration (#15321)a73cfa0
Fix build script--report
option (#15323)941c6b3
Minor refactor togetSupportedFilesGlob
(#15319)f6c9e9b
Assert uniqueness in language properties (#15320)288ea7e
chore(deps): update dependency webpack to v5.88.2 (#15147)6654451
chore(deps): update dependency webpack to v5.88.2 (#15148)d059644
chore(deps): update dependency fast-glob to v3.3.1 (#15001)423011d
Minor refactor toexpandPatterns
(#15317)Updates
typescript
from 5.1.6 to 5.2.2Release notes
Sourced from typescript's releases.