Skip to content

Commit

Permalink
chore(deps): update dependency esbuild to ^0.19.5 (#2117)
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.4` ->
`^0.19.5`](https://renovatebot.com/diffs/npm/esbuild/0.19.4/0.19.5) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/esbuild/0.19.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/esbuild/0.19.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/esbuild/0.19.4/0.19.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/esbuild/0.19.4/0.19.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

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

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

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

- Fix a regression in 0.19.0 regarding `paths` in `tsconfig.json`
([#&#8203;3354](https://togithub.com/evanw/esbuild/issues/3354))

The fix in esbuild version 0.19.0 to process `tsconfig.json` aliases
before the `--packages=external` setting unintentionally broke an edge
case in esbuild's handling of certain `tsconfig.json` aliases where
there are multiple files with the same name in different directories.
This release adjusts esbuild's behavior for this edge case so that it
passes while still processing aliases before `--packages=external`.
Please read the linked issue for more details.

- Fix a CSS `font` property minification bug
([#&#8203;3452](https://togithub.com/evanw/esbuild/issues/3452))

This release fixes a bug where esbuild's CSS minifier didn't insert a
space between the font size and the font family in the `font` CSS
shorthand property in the edge case where the original source code
didn't already have a space and the leading string token was shortened
to an identifier:

    ```css
    /* Original code */
    .foo { font: 16px"Menlo"; }

    /* Old output (with --minify) */
    .foo{font:16pxMenlo}

    /* New output (with --minify) */
    .foo{font:16px Menlo}
    ```

- Fix bundling CSS with asset names containing spaces
([#&#8203;3410](https://togithub.com/evanw/esbuild/issues/3410))

Assets referenced via CSS `url()` tokens may cause esbuild to generate
invalid output when bundling if the file name contains spaces (e.g.
`url(image 2.png)`). With this release, esbuild will now quote all
bundled asset references in `url()` tokens to avoid this problem. This
only affects assets loaded using the `file` and `copy` loaders.

- Fix invalid CSS `url()` tokens in `@import` rules
([#&#8203;3426](https://togithub.com/evanw/esbuild/issues/3426))

In the future, CSS `url()` tokens may contain additional stuff after the
URL. This is irrelevant today as no CSS specification does this. But
esbuild previously had a bug where using these tokens in an `@import`
rule resulted in malformed output. This bug has been fixed.

- Fix `browser` + `false` + `type: module` in `package.json`
([#&#8203;3367](https://togithub.com/evanw/esbuild/issues/3367))

The `browser` field in `package.json` allows you to map a file to
`false` to have it be treated as an empty file when bundling for the
browser. However, if `package.json` contains `"type": "module"` then all
`.js` files will be considered ESM, not CommonJS. Importing a named
import from an empty CommonJS file gives you undefined, but importing a
named export from an empty ESM file is a build error. This release
changes esbuild's interpretation of these files mapped to `false` in
this situation from ESM to CommonJS to avoid generating build errors for
named imports.

- Fix a bug in top-level await error reporting
([#&#8203;3400](https://togithub.com/evanw/esbuild/issues/3400))

Using `require()` on a file that contains [top-level
await](https://v8.dev/features/top-level-await) is not allowed because
`require()` must return synchronously and top-level await makes that
impossible. You will get a build error if you try to bundle code that
does this with esbuild. This release fixes a bug in esbuild's error
reporting code for complex cases of this situation involving multiple
levels of imports to get to the module containing the top-level await.

-   Update to Unicode 15.1.0

The character tables that determine which characters form valid
JavaScript identifiers have been updated from Unicode version 15.0.0 to
the newly-released Unicode version 15.1.0. I'm not putting an example in
the release notes because all of the new characters will likely just
show up as little squares since fonts haven't been updated yet. But you
can read https://www.unicode.org/versions/Unicode15.1.0/#Summary for
more information about the changes.

This upgrade was contributed by
[@&#8203;JLHwung](https://togithub.com/JLHwung).

</details>

---

### Configuration

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

🚦 **Automerge**: Enabled.

♻ **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:eyJjcmVhdGVkSW5WZXIiOiIzNy4xOS4yIiwidXBkYXRlZEluVmVyIjoiMzcuMTkuMiIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==-->

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: CI bot <[email protected]>
  • Loading branch information
renovate[bot] and ci-bot authored Oct 20, 2023
1 parent e9025c0 commit 24df1dd
Show file tree
Hide file tree
Showing 5 changed files with 128 additions and 170 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.1.0",
"cross-env": "^7.0.3",
"esbuild": "^0.19.4",
"esbuild": "^0.19.5",
"nodemon": "^3.0.1",
"open": "^9.1.0",
"rimraf": "^5.0.5",
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.4",
"esbuild": "^0.19.5",
"rimraf": "^5.0.5",
"typescript": "^5.2.2"
}
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.4",
"esbuild": "^0.19.5",
"exclusive-promises": "^1.0.3",
"execa": "^8.0.1",
"ovsx": "^0.8.3",
Expand Down
Loading

0 comments on commit 24df1dd

Please sign in to comment.