Skip to content

Commit

Permalink
chore(deps): update dependency esbuild to ^0.19.2 (#1931)
Browse files Browse the repository at this point in the history
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [esbuild](https://togithub.com/evanw/esbuild) | [`^0.19.1` ->
`^0.19.2`](https://renovatebot.com/diffs/npm/esbuild/0.19.1/0.19.2) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/esbuild/0.19.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/esbuild/0.19.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/esbuild/0.19.1/0.19.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/esbuild/0.19.1/0.19.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>evanw/esbuild (esbuild)</summary>

###
[`v0.19.2`](https://togithub.com/evanw/esbuild/blob/HEAD/CHANGELOG.md#0192)

[Compare
Source](https://togithub.com/evanw/esbuild/compare/v0.19.1...v0.19.2)

-   Update how CSS nesting is parsed again

CSS nesting syntax has been changed again, and esbuild has been updated
to match. Type selectors may now be used with CSS nesting:

    ```css
    .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=`
([#&#8203;3311](https://togithub.com/evanw/esbuild/issues/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
([#&#8203;3295](https://togithub.com/evanw/esbuild/issues/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:

        /* Original code */
        @&#8203;layer start;
        @&#8203;import "data:text/css,@&#8203;layer inner.start;";
        @&#8203;import "data:text/css,@&#8203;layer inner.end;";
        @&#8203;layer end;

        /* Old output (with --bundle) */
        @&#8203;layer inner.start;
        @&#8203;layer inner.end;
        @&#8203;layer start;
        @&#8203;layer end;

        /* New output (with --bundle) */
        @&#8203;layer start;
        @&#8203;layer inner.start;
        @&#8203;layer inner.end;
        @&#8203;layer end;

- Unwrap nested duplicate `@media` rules
([#&#8203;3226](https://togithub.com/evanw/esbuild/issues/3226))

With this release, esbuild's CSS minifier will now automatically unwrap
duplicate nested `@media` rules:

    ```css
    /* Original code */
    @&#8203;media (min-width: 1024px) {
      .foo { color: red }
      @&#8203;media (min-width: 1024px) {
        .bar { color: blue }
      }
    }

    /* Old output (with --minify) */
@&#8203;media (min-width: 1024px){.foo{color:red}@&#8203;media
(min-width: 1024px){.bar{color:#&#8203;00f}}}

    /* New output (with --minify) */
@&#8203;media (min-width:
1024px){.foo{color:red}.bar{color:#&#8203;00f}}
    ```

These rules are unlikely to be authored manually but may result from
using frameworks such as Tailwind to generate CSS.

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled because a matching PR was automerged
previously.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/fwouts/previewjs).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNi40My4yIiwidXBkYXRlZEluVmVyIjoiMzYuNDMuMiIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
  • Loading branch information
renovate[bot] committed Aug 15, 2023
1 parent 727c86f commit bce9db8
Show file tree
Hide file tree
Showing 4 changed files with 79 additions and 79 deletions.
2 changes: 1 addition & 1 deletion integrations/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"chalk": "^5.3.0",
"commander": "^11.0.0",
"cross-env": "^7.0.3",
"esbuild": "^0.19.1",
"esbuild": "^0.19.2",
"nodemon": "^3.0.1",
"open": "^9.1.0",
"rimraf": "^5.0.1",
Expand Down
2 changes: 1 addition & 1 deletion integrations/intellij/daemon/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"devDependencies": {
"@previewjs/daemon": "workspace:*",
"@previewjs/loader": "workspace:*",
"esbuild": "^0.19.1",
"esbuild": "^0.19.2",
"rimraf": "^5.0.1",
"typescript": "^5.1.6"
}
Expand Down
2 changes: 1 addition & 1 deletion integrations/vscode/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
"@previewjs/loader": "workspace:*",
"@types/vscode": "^1.71.2",
"cross-env": "^7.0.3",
"esbuild": "^0.19.1",
"esbuild": "^0.19.2",
"exclusive-promises": "^1.0.3",
"execa": "^7.2.0",
"ovsx": "^0.8.3",
Expand Down
152 changes: 76 additions & 76 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit bce9db8

Please sign in to comment.