Skip to content

Commit

Permalink
chore(deps): update dependency esbuild to ^0.16.14 (#1329)
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.16.13` ->
`^0.16.14`](https://renovatebot.com/diffs/npm/esbuild/0.16.13/0.16.14) |
[![age](https://badges.renovateapi.com/packages/npm/esbuild/0.16.14/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/npm/esbuild/0.16.14/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/npm/esbuild/0.16.14/compatibility-slim/0.16.13)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/npm/esbuild/0.16.14/confidence-slim/0.16.13)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>evanw/esbuild</summary>

###
[`v0.16.14`](https://togithub.com/evanw/esbuild/blob/HEAD/CHANGELOG.md#&#8203;01614)

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

- Preserve some comments in expressions
([#&#8203;2721](https://togithub.com/evanw/esbuild/issues/2721))

Various tools give semantic meaning to comments embedded inside of
expressions. For example, Webpack and Vite have special "magic comments"
that can be used to affect code splitting behavior:

    ```js
    import(/* webpackChunkName: "foo" */ '../foo');
    import(/* @&#8203;vite-ignore */ dynamicVar);
new Worker(/* webpackChunkName: "bar" */ new URL("../bar.ts",
import.meta.url));
new Worker(new URL('./path', import.meta.url), /* @&#8203;vite-ignore */
dynamicOptions);
    ```

Since esbuild can be used as a preprocessor for these tools (e.g. to
strip TypeScript types), it can be problematic if esbuild doesn't do
additional work to try to retain these comments. Previously esbuild
special-cased Webpack comments in these specific locations in the AST.
But Vite would now like to use similar comments, and likely other tools
as well.

So with this release, esbuild now will attempt to preserve some comments
inside of expressions in more situations than before. This behavior is
mainly intended to preserve these special "magic comments" that are
meant for other tools to consume, although esbuild will no longer only
preserve Webpack-specific comments so it should now be tool-agnostic.
There is no guarantee that all such comments will be preserved
(especially when `--minify-syntax` is enabled). So this change does
*not* mean that esbuild is now usable as a code formatter. In particular
comment preservation is more likely to happen with leading comments than
with trailing comments. You should put comments that you want to be
preserved *before* the relevant expression instead of after it. Also
note that this change does not retain any more statement-level comments
than before (i.e. comments not embedded inside of expressions). Comment
preservation is not enabled when `--minify-whitespace` is enabled (which
is automatically enabled when you use `--minify`).

</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://app.renovatebot.com/dashboard#github/fwouts/previewjs).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC44MS4wIiwidXBkYXRlZEluVmVyIjoiMzQuODEuMCJ9-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
  • Loading branch information
renovate[bot] committed Jan 5, 2023
1 parent 2729180 commit 2e74a95
Show file tree
Hide file tree
Showing 4 changed files with 80 additions and 103 deletions.
2 changes: 1 addition & 1 deletion integrations/cli/package.json
Expand Up @@ -30,7 +30,7 @@
"chalk": "^5.2.0",
"commander": "^9.4.1",
"cross-env": "^7.0.3",
"esbuild": "^0.16.13",
"esbuild": "^0.16.14",
"open": "^8.4.0",
"rimraf": "^3.0.2",
"shx": "^0.3.4",
Expand Down
2 changes: 1 addition & 1 deletion integrations/intellij/daemon/package.json
Expand Up @@ -18,7 +18,7 @@
},
"devDependencies": {
"@previewjs/daemon": "workspace:*",
"esbuild": "^0.16.13",
"esbuild": "^0.16.14",
"rimraf": "^3.0.2",
"shx": "^0.3.4",
"ts-node-dev": "^2.0.0",
Expand Down
2 changes: 1 addition & 1 deletion integrations/vscode/package.json
Expand Up @@ -97,7 +97,7 @@
"@previewjs/daemon": "workspace:*",
"@types/vscode": "^1.74.0",
"cross-env": "^7.0.3",
"esbuild": "^0.16.13",
"esbuild": "^0.16.14",
"exclusive-promises": "^1.0.3",
"execa": "^5.1.1",
"ovsx": "^0.7.1",
Expand Down

0 comments on commit 2e74a95

Please sign in to comment.