From 2232e763896aadcecab82c2e5d0ad0da1c6e9cfd Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Wed, 19 Feb 2025 23:42:37 -0800
Subject: [PATCH] Bump esbuild from 0.18.2 to 0.25.0 in /src/ui (#2117)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Bumps [esbuild](https://github.com/evanw/esbuild) from 0.18.2 to 0.25.0.
Release notes
Sourced from esbuild's
releases.
v0.25.0
This release deliberately contains backwards-incompatible
changes. To avoid automatically picking up releases like this,
you should either be pinning the exact version of esbuild
in your package.json
file (recommended) or be using a
version range syntax that only accepts patch upgrades such as
^0.24.0
or ~0.24.0
. See npm's documentation
about semver for
more information.
-
Restrict access to esbuild's development server (GHSA-67mh-4wv8-2f99)
This change addresses esbuild's first security vulnerability report.
Previously esbuild set the Access-Control-Allow-Origin
header to *
to allow esbuild's development server to be
flexible in how it's used for development. However, this allows the
websites you visit to make HTTP requests to esbuild's local development
server, which gives read-only access to your source code if the website
were to fetch your source code's specific URL. You can read more
information in the
report.
Starting with this release, CORS
will now be disabled, and requests will now be denied if the host does
not match the one provided to --serve=
. The default host is
0.0.0.0
, which refers to all of the IP addresses that
represent the local machine (e.g. both 127.0.0.1
and
192.168.0.1
). If you want to customize anything about
esbuild's development server, you can put a proxy in front
of esbuild and modify the incoming and/or outgoing requests.
In addition, the serve()
API call has been changed to
return an array of hosts
instead of a single
host
string. This makes it possible to determine all of the
hosts that esbuild's development server will accept.
Thanks to @sapphi-red
for
reporting this issue.
-
Delete output files when a build fails in watch mode (#3643)
It has been requested for esbuild to delete files when a build fails
in watch mode. Previously esbuild left the old files in place, which
could cause people to not immediately realize that the most recent build
failed. With this release, esbuild will now delete all output files if a
rebuild fails. Fixing the build error and triggering another rebuild
will restore all output files again.
-
Fix correctness issues with the CSS nesting transform (#3620,
#3877,
#3933,
#3997,
#4005,
#4037,
#4038)
This release fixes the following problems:
-
Naive expansion of CSS nesting can result in an exponential blow-up
of generated CSS if each nesting level has multiple selectors.
Previously esbuild sometimes collapsed individual nesting levels using
:is()
to limit expansion. However, this collapsing wasn't
correct in some cases, so it has been removed to fix correctness
issues.
/* Original code */
.parent {
> .a,
> .b1 > .b2 {
color: red;
}
}
/* Old output (with --supported:nesting=false) */
.parent > :is(.a, .b1 > .b2) {
color: red;
}
/* New output (with --supported:nesting=false) */
.parent > .a,
.parent > .b1 > .b2 {
color: red;
}
Thanks to @tim-we
for working
on a fix.
The &
CSS nesting selector can be repeated multiple
times to increase CSS specificity. Previously esbuild ignored this
possibility and incorrectly considered &&
to have
the same specificity as &
. With this release, this
should now work correctly:
/* Original code (color should be red) */
... (truncated)
Changelog
Sourced from esbuild's
changelog.
Changelog: 2023
This changelog documents all esbuild versions published in the year
2023 (versions 0.16.13 through 0.19.11).
0.19.11
-
Fix TypeScript-specific class transform edge case (#3559)
The previous release introduced an optimization that avoided
transforming super()
in the class constructor for
TypeScript code compiled with useDefineForClassFields
set
to false
if all class instance fields have no initializers.
The rationale was that in this case, all class instance fields are
omitted in the output so no changes to the constructor are needed.
However, if all of this is the case and there are
#private
instance fields with initializers, those private
instance field initializers were still being moved into the constructor.
This was problematic because they were being inserted before the call to
super()
(since super()
is now no longer
transformed in that case). This release introduces an additional
optimization that avoids moving the private instance field initializers
into the constructor in this edge case, which generates smaller code,
matches the TypeScript compiler's output more closely, and avoids this
bug:
// Original code
class Foo extends Bar {
#private = 1;
public: any;
constructor() {
super();
}
}
// Old output (with esbuild v0.19.9)
class Foo extends Bar {
constructor() {
super();
this.#private = 1;
}
#private;
}
// Old output (with esbuild v0.19.10)
class Foo extends Bar {
constructor() {
this.#private = 1;
super();
}
#private;
}
// New output
class Foo extends Bar {
#private = 1;
constructor() {
super();
}
}
-
Minifier: allow reording a primitive past a side-effect (#3568)
The minifier previously allowed reordering a side-effect past a
primitive, but didn't handle the case of reordering a primitive past a
side-effect. This additional case is now handled:
... (truncated)
Commits
e9174d6
publish 0.25.0 to npm
c27dbeb
fix hosts
in plugin-tests.js
6794f60
fix hosts
in node-unref-tests.js
de85afd
Merge commit from fork
da1de1b
fix #4065:
bitwise operators can return bigints
f4e9d19
switch case liveness: default
is always last
7aa47c3
fix #4028:
minify live/dead switch
cases better
22ecd30
minify: more constant folding for strict equality
4cdf03c
fix #4053:
reordering of .tsx
in node_modules
dc71977
fix #3692:
0
now picks a random ephemeral port
- Additional commits viewable in compare
view
[](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)
Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.
[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)
---
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)
You can disable automated security fix PRs for this repo from the
[Security Alerts
page](https://github.com/pixie-io/pixie/network/alerts).
Signed-off-by: dependabot[bot]
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
---
src/ui/package.json | 2 +-
src/ui/yarn.lock | 218 +++++++++++++++++++++++++-------------------
2 files changed, 125 insertions(+), 95 deletions(-)
diff --git a/src/ui/package.json b/src/ui/package.json
index 072b87fd2f3..11798ecec1e 100644
--- a/src/ui/package.json
+++ b/src/ui/package.json
@@ -39,7 +39,7 @@
"concurrently": "^6.2.0",
"css-loader": "^5.2.6",
"cypress": "^12.17.2",
- "esbuild": "^0.18.2",
+ "esbuild": "^0.25.0",
"esbuild-jest": "^0.5.0",
"esbuild-loader": "^3.0.1",
"eslint": "^8.42.0",
diff --git a/src/ui/yarn.lock b/src/ui/yarn.lock
index 8ace87d8e0f..5ccb0982a13 100644
--- a/src/ui/yarn.lock
+++ b/src/ui/yarn.lock
@@ -1751,6 +1751,13 @@ __metadata:
languageName: node
linkType: hard
+"@esbuild/aix-ppc64@npm:0.25.0":
+ version: 0.25.0
+ resolution: "@esbuild/aix-ppc64@npm:0.25.0"
+ conditions: os=aix & cpu=ppc64
+ languageName: node
+ linkType: hard
+
"@esbuild/android-arm64@npm:0.17.19":
version: 0.17.19
resolution: "@esbuild/android-arm64@npm:0.17.19"
@@ -1758,9 +1765,9 @@ __metadata:
languageName: node
linkType: hard
-"@esbuild/android-arm64@npm:0.18.2":
- version: 0.18.2
- resolution: "@esbuild/android-arm64@npm:0.18.2"
+"@esbuild/android-arm64@npm:0.25.0":
+ version: 0.25.0
+ resolution: "@esbuild/android-arm64@npm:0.25.0"
conditions: os=android & cpu=arm64
languageName: node
linkType: hard
@@ -1772,9 +1779,9 @@ __metadata:
languageName: node
linkType: hard
-"@esbuild/android-arm@npm:0.18.2":
- version: 0.18.2
- resolution: "@esbuild/android-arm@npm:0.18.2"
+"@esbuild/android-arm@npm:0.25.0":
+ version: 0.25.0
+ resolution: "@esbuild/android-arm@npm:0.25.0"
conditions: os=android & cpu=arm
languageName: node
linkType: hard
@@ -1786,9 +1793,9 @@ __metadata:
languageName: node
linkType: hard
-"@esbuild/android-x64@npm:0.18.2":
- version: 0.18.2
- resolution: "@esbuild/android-x64@npm:0.18.2"
+"@esbuild/android-x64@npm:0.25.0":
+ version: 0.25.0
+ resolution: "@esbuild/android-x64@npm:0.25.0"
conditions: os=android & cpu=x64
languageName: node
linkType: hard
@@ -1800,9 +1807,9 @@ __metadata:
languageName: node
linkType: hard
-"@esbuild/darwin-arm64@npm:0.18.2":
- version: 0.18.2
- resolution: "@esbuild/darwin-arm64@npm:0.18.2"
+"@esbuild/darwin-arm64@npm:0.25.0":
+ version: 0.25.0
+ resolution: "@esbuild/darwin-arm64@npm:0.25.0"
conditions: os=darwin & cpu=arm64
languageName: node
linkType: hard
@@ -1814,9 +1821,9 @@ __metadata:
languageName: node
linkType: hard
-"@esbuild/darwin-x64@npm:0.18.2":
- version: 0.18.2
- resolution: "@esbuild/darwin-x64@npm:0.18.2"
+"@esbuild/darwin-x64@npm:0.25.0":
+ version: 0.25.0
+ resolution: "@esbuild/darwin-x64@npm:0.25.0"
conditions: os=darwin & cpu=x64
languageName: node
linkType: hard
@@ -1828,9 +1835,9 @@ __metadata:
languageName: node
linkType: hard
-"@esbuild/freebsd-arm64@npm:0.18.2":
- version: 0.18.2
- resolution: "@esbuild/freebsd-arm64@npm:0.18.2"
+"@esbuild/freebsd-arm64@npm:0.25.0":
+ version: 0.25.0
+ resolution: "@esbuild/freebsd-arm64@npm:0.25.0"
conditions: os=freebsd & cpu=arm64
languageName: node
linkType: hard
@@ -1842,9 +1849,9 @@ __metadata:
languageName: node
linkType: hard
-"@esbuild/freebsd-x64@npm:0.18.2":
- version: 0.18.2
- resolution: "@esbuild/freebsd-x64@npm:0.18.2"
+"@esbuild/freebsd-x64@npm:0.25.0":
+ version: 0.25.0
+ resolution: "@esbuild/freebsd-x64@npm:0.25.0"
conditions: os=freebsd & cpu=x64
languageName: node
linkType: hard
@@ -1856,9 +1863,9 @@ __metadata:
languageName: node
linkType: hard
-"@esbuild/linux-arm64@npm:0.18.2":
- version: 0.18.2
- resolution: "@esbuild/linux-arm64@npm:0.18.2"
+"@esbuild/linux-arm64@npm:0.25.0":
+ version: 0.25.0
+ resolution: "@esbuild/linux-arm64@npm:0.25.0"
conditions: os=linux & cpu=arm64
languageName: node
linkType: hard
@@ -1870,9 +1877,9 @@ __metadata:
languageName: node
linkType: hard
-"@esbuild/linux-arm@npm:0.18.2":
- version: 0.18.2
- resolution: "@esbuild/linux-arm@npm:0.18.2"
+"@esbuild/linux-arm@npm:0.25.0":
+ version: 0.25.0
+ resolution: "@esbuild/linux-arm@npm:0.25.0"
conditions: os=linux & cpu=arm
languageName: node
linkType: hard
@@ -1884,9 +1891,9 @@ __metadata:
languageName: node
linkType: hard
-"@esbuild/linux-ia32@npm:0.18.2":
- version: 0.18.2
- resolution: "@esbuild/linux-ia32@npm:0.18.2"
+"@esbuild/linux-ia32@npm:0.25.0":
+ version: 0.25.0
+ resolution: "@esbuild/linux-ia32@npm:0.25.0"
conditions: os=linux & cpu=ia32
languageName: node
linkType: hard
@@ -1898,9 +1905,9 @@ __metadata:
languageName: node
linkType: hard
-"@esbuild/linux-loong64@npm:0.18.2":
- version: 0.18.2
- resolution: "@esbuild/linux-loong64@npm:0.18.2"
+"@esbuild/linux-loong64@npm:0.25.0":
+ version: 0.25.0
+ resolution: "@esbuild/linux-loong64@npm:0.25.0"
conditions: os=linux & cpu=loong64
languageName: node
linkType: hard
@@ -1912,9 +1919,9 @@ __metadata:
languageName: node
linkType: hard
-"@esbuild/linux-mips64el@npm:0.18.2":
- version: 0.18.2
- resolution: "@esbuild/linux-mips64el@npm:0.18.2"
+"@esbuild/linux-mips64el@npm:0.25.0":
+ version: 0.25.0
+ resolution: "@esbuild/linux-mips64el@npm:0.25.0"
conditions: os=linux & cpu=mips64el
languageName: node
linkType: hard
@@ -1926,9 +1933,9 @@ __metadata:
languageName: node
linkType: hard
-"@esbuild/linux-ppc64@npm:0.18.2":
- version: 0.18.2
- resolution: "@esbuild/linux-ppc64@npm:0.18.2"
+"@esbuild/linux-ppc64@npm:0.25.0":
+ version: 0.25.0
+ resolution: "@esbuild/linux-ppc64@npm:0.25.0"
conditions: os=linux & cpu=ppc64
languageName: node
linkType: hard
@@ -1940,9 +1947,9 @@ __metadata:
languageName: node
linkType: hard
-"@esbuild/linux-riscv64@npm:0.18.2":
- version: 0.18.2
- resolution: "@esbuild/linux-riscv64@npm:0.18.2"
+"@esbuild/linux-riscv64@npm:0.25.0":
+ version: 0.25.0
+ resolution: "@esbuild/linux-riscv64@npm:0.25.0"
conditions: os=linux & cpu=riscv64
languageName: node
linkType: hard
@@ -1954,9 +1961,9 @@ __metadata:
languageName: node
linkType: hard
-"@esbuild/linux-s390x@npm:0.18.2":
- version: 0.18.2
- resolution: "@esbuild/linux-s390x@npm:0.18.2"
+"@esbuild/linux-s390x@npm:0.25.0":
+ version: 0.25.0
+ resolution: "@esbuild/linux-s390x@npm:0.25.0"
conditions: os=linux & cpu=s390x
languageName: node
linkType: hard
@@ -1968,13 +1975,20 @@ __metadata:
languageName: node
linkType: hard
-"@esbuild/linux-x64@npm:0.18.2":
- version: 0.18.2
- resolution: "@esbuild/linux-x64@npm:0.18.2"
+"@esbuild/linux-x64@npm:0.25.0":
+ version: 0.25.0
+ resolution: "@esbuild/linux-x64@npm:0.25.0"
conditions: os=linux & cpu=x64
languageName: node
linkType: hard
+"@esbuild/netbsd-arm64@npm:0.25.0":
+ version: 0.25.0
+ resolution: "@esbuild/netbsd-arm64@npm:0.25.0"
+ conditions: os=netbsd & cpu=arm64
+ languageName: node
+ linkType: hard
+
"@esbuild/netbsd-x64@npm:0.17.19":
version: 0.17.19
resolution: "@esbuild/netbsd-x64@npm:0.17.19"
@@ -1982,13 +1996,20 @@ __metadata:
languageName: node
linkType: hard
-"@esbuild/netbsd-x64@npm:0.18.2":
- version: 0.18.2
- resolution: "@esbuild/netbsd-x64@npm:0.18.2"
+"@esbuild/netbsd-x64@npm:0.25.0":
+ version: 0.25.0
+ resolution: "@esbuild/netbsd-x64@npm:0.25.0"
conditions: os=netbsd & cpu=x64
languageName: node
linkType: hard
+"@esbuild/openbsd-arm64@npm:0.25.0":
+ version: 0.25.0
+ resolution: "@esbuild/openbsd-arm64@npm:0.25.0"
+ conditions: os=openbsd & cpu=arm64
+ languageName: node
+ linkType: hard
+
"@esbuild/openbsd-x64@npm:0.17.19":
version: 0.17.19
resolution: "@esbuild/openbsd-x64@npm:0.17.19"
@@ -1996,9 +2017,9 @@ __metadata:
languageName: node
linkType: hard
-"@esbuild/openbsd-x64@npm:0.18.2":
- version: 0.18.2
- resolution: "@esbuild/openbsd-x64@npm:0.18.2"
+"@esbuild/openbsd-x64@npm:0.25.0":
+ version: 0.25.0
+ resolution: "@esbuild/openbsd-x64@npm:0.25.0"
conditions: os=openbsd & cpu=x64
languageName: node
linkType: hard
@@ -2010,9 +2031,9 @@ __metadata:
languageName: node
linkType: hard
-"@esbuild/sunos-x64@npm:0.18.2":
- version: 0.18.2
- resolution: "@esbuild/sunos-x64@npm:0.18.2"
+"@esbuild/sunos-x64@npm:0.25.0":
+ version: 0.25.0
+ resolution: "@esbuild/sunos-x64@npm:0.25.0"
conditions: os=sunos & cpu=x64
languageName: node
linkType: hard
@@ -2024,9 +2045,9 @@ __metadata:
languageName: node
linkType: hard
-"@esbuild/win32-arm64@npm:0.18.2":
- version: 0.18.2
- resolution: "@esbuild/win32-arm64@npm:0.18.2"
+"@esbuild/win32-arm64@npm:0.25.0":
+ version: 0.25.0
+ resolution: "@esbuild/win32-arm64@npm:0.25.0"
conditions: os=win32 & cpu=arm64
languageName: node
linkType: hard
@@ -2038,9 +2059,9 @@ __metadata:
languageName: node
linkType: hard
-"@esbuild/win32-ia32@npm:0.18.2":
- version: 0.18.2
- resolution: "@esbuild/win32-ia32@npm:0.18.2"
+"@esbuild/win32-ia32@npm:0.25.0":
+ version: 0.25.0
+ resolution: "@esbuild/win32-ia32@npm:0.25.0"
conditions: os=win32 & cpu=ia32
languageName: node
linkType: hard
@@ -2052,9 +2073,9 @@ __metadata:
languageName: node
linkType: hard
-"@esbuild/win32-x64@npm:0.18.2":
- version: 0.18.2
- resolution: "@esbuild/win32-x64@npm:0.18.2"
+"@esbuild/win32-x64@npm:0.25.0":
+ version: 0.25.0
+ resolution: "@esbuild/win32-x64@npm:0.25.0"
conditions: os=win32 & cpu=x64
languageName: node
linkType: hard
@@ -2772,7 +2793,7 @@ __metadata:
css-loader: ^5.2.6
cypress: ^12.17.2
date-fns: ^2.29.3
- esbuild: ^0.18.2
+ esbuild: ^0.25.0
esbuild-jest: ^0.5.0
esbuild-loader: ^3.0.1
eslint: ^8.42.0
@@ -7040,33 +7061,38 @@ __metadata:
languageName: node
linkType: hard
-"esbuild@npm:^0.18.2":
- version: 0.18.2
- resolution: "esbuild@npm:0.18.2"
- dependencies:
- "@esbuild/android-arm": 0.18.2
- "@esbuild/android-arm64": 0.18.2
- "@esbuild/android-x64": 0.18.2
- "@esbuild/darwin-arm64": 0.18.2
- "@esbuild/darwin-x64": 0.18.2
- "@esbuild/freebsd-arm64": 0.18.2
- "@esbuild/freebsd-x64": 0.18.2
- "@esbuild/linux-arm": 0.18.2
- "@esbuild/linux-arm64": 0.18.2
- "@esbuild/linux-ia32": 0.18.2
- "@esbuild/linux-loong64": 0.18.2
- "@esbuild/linux-mips64el": 0.18.2
- "@esbuild/linux-ppc64": 0.18.2
- "@esbuild/linux-riscv64": 0.18.2
- "@esbuild/linux-s390x": 0.18.2
- "@esbuild/linux-x64": 0.18.2
- "@esbuild/netbsd-x64": 0.18.2
- "@esbuild/openbsd-x64": 0.18.2
- "@esbuild/sunos-x64": 0.18.2
- "@esbuild/win32-arm64": 0.18.2
- "@esbuild/win32-ia32": 0.18.2
- "@esbuild/win32-x64": 0.18.2
+"esbuild@npm:^0.25.0":
+ version: 0.25.0
+ resolution: "esbuild@npm:0.25.0"
+ dependencies:
+ "@esbuild/aix-ppc64": 0.25.0
+ "@esbuild/android-arm": 0.25.0
+ "@esbuild/android-arm64": 0.25.0
+ "@esbuild/android-x64": 0.25.0
+ "@esbuild/darwin-arm64": 0.25.0
+ "@esbuild/darwin-x64": 0.25.0
+ "@esbuild/freebsd-arm64": 0.25.0
+ "@esbuild/freebsd-x64": 0.25.0
+ "@esbuild/linux-arm": 0.25.0
+ "@esbuild/linux-arm64": 0.25.0
+ "@esbuild/linux-ia32": 0.25.0
+ "@esbuild/linux-loong64": 0.25.0
+ "@esbuild/linux-mips64el": 0.25.0
+ "@esbuild/linux-ppc64": 0.25.0
+ "@esbuild/linux-riscv64": 0.25.0
+ "@esbuild/linux-s390x": 0.25.0
+ "@esbuild/linux-x64": 0.25.0
+ "@esbuild/netbsd-arm64": 0.25.0
+ "@esbuild/netbsd-x64": 0.25.0
+ "@esbuild/openbsd-arm64": 0.25.0
+ "@esbuild/openbsd-x64": 0.25.0
+ "@esbuild/sunos-x64": 0.25.0
+ "@esbuild/win32-arm64": 0.25.0
+ "@esbuild/win32-ia32": 0.25.0
+ "@esbuild/win32-x64": 0.25.0
dependenciesMeta:
+ "@esbuild/aix-ppc64":
+ optional: true
"@esbuild/android-arm":
optional: true
"@esbuild/android-arm64":
@@ -7099,8 +7125,12 @@ __metadata:
optional: true
"@esbuild/linux-x64":
optional: true
+ "@esbuild/netbsd-arm64":
+ optional: true
"@esbuild/netbsd-x64":
optional: true
+ "@esbuild/openbsd-arm64":
+ optional: true
"@esbuild/openbsd-x64":
optional: true
"@esbuild/sunos-x64":
@@ -7113,7 +7143,7 @@ __metadata:
optional: true
bin:
esbuild: bin/esbuild
- checksum: 64d82cc5fa1280f1730f96fdb9a74a23effb01de63d020c99f9090ea792fe78199daf083e842eccd3a55ccbad3d1bafb2f4b86280b6c8ce203fa309f06312597
+ checksum: 4d1e0cb7c059a373ea3edb20ca5efcea29efada03e4ea82b2b8ab1f2f062e4791e9744213308775d26e07a0225a7d8250da93da5c8e07ef61bb93d58caab8cf9
languageName: node
linkType: hard