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 dependencies group with 13 updates:
4.8.2
4.9.1
16.18.39
20.5.0
5.62.0
6.3.0
5.62.0
6.3.0
2.3.3
2.3.4
2.19.0
2.20.1
0.18.16
0.19.2
8.45.0
8.47.0
8.8.0
9.0.0
35.0.0
37.0.0
2.27.5
2.28.0
15.7.0
16.0.1
2.8.8
3.0.1
Updates
tslog
from 4.8.2 to 4.9.1Release notes
Sourced from tslog's releases.
... (truncated)
Commits
a080998
4.9.14bb3465
Move runtime into BaseLogger, fix #256aeb3620
4.9.07743ccb
Support errors with multiple properties, Fix #2275c211b1
Add URL support, improve testef3dd47
Add URL support, fix #2474073f60
4.8.7306d4e1
Prettiera7ed0e7
Fix #2546886660
PrettierUpdates
@types/node
from 16.18.39 to 20.5.0Commits
Updates
@typescript-eslint/eslint-plugin
from 5.62.0 to 6.3.0Release notes
Sourced from
@typescript-eslint/eslint-plugin
's releases.... (truncated)
Changelog
Sourced from
@typescript-eslint/eslint-plugin
's changelog.... (truncated)
Commits
0a1de14
chore: publish v6.3.07891a06
Revert "chore(deps): update dependency marked to v6" (#7429)6a1437d
chore(deps): update dependency marked to v6 (#7422)38e5e4e
fix(eslint-plugin): [no-extra-parens] keep parens around call expression argu...56919e4
docs: explain return-await's name and existence in its docs (#7392)cc9a46d
fix(eslint-plugin): [no-restricted-imports] allow inline type qualifiers when...4087f48
chore: enable consistent-indexed-object-style and lint (#7353)8b17a25
docs: fix incorrect prefer-nullish-coercing documentation (#7408)dfcafae
feat(eslint-plugin): [prefer-nullish-coalescing] allowignorePrimitives
opt...948b061
chore: publish v6.2.1Updates
@typescript-eslint/parser
from 5.62.0 to 6.3.0Release notes
Sourced from
@typescript-eslint/parser
's releases.... (truncated)
Changelog
Sourced from
@typescript-eslint/parser
's changelog.... (truncated)
Commits
0a1de14
chore: publish v6.3.0948b061
chore: publish v6.2.1c869aa1
chore: publish v6.2.0d98f1e8
chore: publish v6.1.06d3d162
feat(typescript-estree): add EXPERIMENTAL_useProjectService option to use Typ...2e30379
chore: bump dependency versions (#7191)6ae1fa7
chore: publish v6.0.0980bda3
Merge branch 'main' (I swear this had better be the last onec233652
Merge branch 'main'3cdf5c9
chore: enable sort-type-constituents internally (#7028)Updates
@vscode/test-electron
from 2.3.3 to 2.3.4Changelog
Sourced from
@vscode/test-electron
's changelog.Commits
Updates
@vscode/vsce
from 2.19.0 to 2.20.1Commits
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)9af9022
npm audit fix (#881)8ef9b97
fixes --skipDuplicate ignoring target platforms(#868) (#873)701a450
Add support for misspelled license name (#879)11dd270
build(deps): bump semver from 5.6.0 to 7.5.2 (#874)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.47.0Release notes
Sourced from eslint's releases.
... (truncated)
Changelog
Sourced from eslint's changelog.
... (truncated)
Commits
Superseded by #191.