Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps-dev): bump esbuild from 0.22.0 to 0.23.0 #898

Merged
merged 1 commit into from
Jul 8, 2024

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jul 8, 2024

Bumps esbuild from 0.22.0 to 0.23.0.

Release notes

Sourced from esbuild's releases.

v0.23.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.22.0 or ~0.22.0. See npm's documentation about semver for more information.

  • Revert the recent change to avoid bundling dependencies for node (#3819)

    This release reverts the recent change in version 0.22.0 that made --packages=external the default behavior with --platform=node. The default is now back to --packages=bundle.

    I've just been made aware that Amazon doesn't pin their dependencies in their "AWS CDK" product, which means that whenever esbuild publishes a new release, many people (potentially everyone?) using their SDK around the world instantly starts using it without Amazon checking that it works first. This change in version 0.22.0 happened to break their SDK. I'm amazed that things haven't broken before this point. This revert attempts to avoid these problems for Amazon's customers. Hopefully Amazon will pin their dependencies in the future.

    In addition, this is probably a sign that esbuild is used widely enough that it now needs to switch to a more complicated release model. I may have esbuild use a beta channel model for further development.

  • Fix preserving collapsed JSX whitespace (#3818)

    When transformed, certain whitespace inside JSX elements is ignored completely if it collapses to an empty string. However, the whitespace should only be ignored if the JSX is being transformed, not if it's being preserved. This release fixes a bug where esbuild was previously incorrectly ignoring collapsed whitespace with --jsx=preserve. Here is an example:

    // Original code
    <Foo>
      <Bar />
    </Foo>
    // Old output (with --jsx=preserve)
    <Foo><Bar /></Foo>;
    // New output (with --jsx=preserve)
    <Foo>
    <Bar />
    </Foo>;

Changelog

Sourced from esbuild's changelog.

0.23.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.22.0 or ~0.22.0. See npm's documentation about semver for more information.

  • Revert the recent change to avoid bundling dependencies for node (#3819)

    This release reverts the recent change in version 0.22.0 that made --packages=external the default behavior with --platform=node. The default is now back to --packages=bundle.

    I've just been made aware that Amazon doesn't pin their dependencies in their "AWS CDK" product, which means that whenever esbuild publishes a new release, many people (potentially everyone?) using their SDK around the world instantly starts using it without Amazon checking that it works first. This change in version 0.22.0 happened to break their SDK. I'm amazed that things haven't broken before this point. This revert attempts to avoid these problems for Amazon's customers. Hopefully Amazon will pin their dependencies in the future.

    In addition, this is probably a sign that esbuild is used widely enough that it now needs to switch to a more complicated release model. I may have esbuild use a beta channel model for further development.

  • Fix preserving collapsed JSX whitespace (#3818)

    When transformed, certain whitespace inside JSX elements is ignored completely if it collapses to an empty string. However, the whitespace should only be ignored if the JSX is being transformed, not if it's being preserved. This release fixes a bug where esbuild was previously incorrectly ignoring collapsed whitespace with --jsx=preserve. Here is an example:

    // Original code
    <Foo>
      <Bar />
    </Foo>
    // Old output (with --jsx=preserve)
    <Foo><Bar /></Foo>;
    // New output (with --jsx=preserve)
    <Foo>
    <Bar />
    </Foo>;

Commits

Dependabot compatibility score

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 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 <dependency name> 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)

Bumps [esbuild](https://github.com/evanw/esbuild) from 0.22.0 to 0.23.0.
- [Release notes](https://github.com/evanw/esbuild/releases)
- [Changelog](https://github.com/evanw/esbuild/blob/main/CHANGELOG.md)
- [Commits](evanw/esbuild@v0.22.0...v0.23.0)

---
updated-dependencies:
- dependency-name: esbuild
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Jul 8, 2024
@github-actions github-actions bot enabled auto-merge (squash) July 8, 2024 22:03
Copy link
Contributor

github-actions bot commented Jul 8, 2024

Diff between esbuild 0.22.0 and 0.23.0
diff --git a/bin/esbuild b/bin/esbuild
index v0.22.0..v0.23.0 100755
--- a/bin/esbuild
+++ b/bin/esbuild
@@ -200,5 +200,5 @@
         ".cache",
         "esbuild",
-        `pnpapi-${pkg.replace("/", "-")}-${"0.22.0"}-${path.basename(subpath)}`
+        `pnpapi-${pkg.replace("/", "-")}-${"0.23.0"}-${path.basename(subpath)}`
       );
       if (!fs.existsSync(binTargetPath)) {
diff --git a/lib/main.js b/lib/main.js
index v0.22.0..v0.23.0 100644
--- a/lib/main.js
+++ b/lib/main.js
@@ -663,6 +663,6 @@
       isFirstPacket = false;
       let binaryVersion = String.fromCharCode(...bytes);
-      if (binaryVersion !== "0.22.0") {
-        throw new Error(`Cannot start service: Host version "${"0.22.0"}" does not match binary version ${quote(binaryVersion)}`);
+      if (binaryVersion !== "0.23.0") {
+        throw new Error(`Cannot start service: Host version "${"0.23.0"}" does not match binary version ${quote(binaryVersion)}`);
       }
       return;
@@ -1769,5 +1769,5 @@
         ".cache",
         "esbuild",
-        `pnpapi-${pkg.replace("/", "-")}-${"0.22.0"}-${path.basename(subpath)}`
+        `pnpapi-${pkg.replace("/", "-")}-${"0.23.0"}-${path.basename(subpath)}`
       );
       if (!fs.existsSync(binTargetPath)) {
@@ -1804,5 +1804,5 @@
 }
 var _a;
-var isInternalWorkerThread = ((_a = worker_threads == null ? void 0 : worker_threads.workerData) == null ? void 0 : _a.esbuildVersion) === "0.22.0";
+var isInternalWorkerThread = ((_a = worker_threads == null ? void 0 : worker_threads.workerData) == null ? void 0 : _a.esbuildVersion) === "0.23.0";
 var esbuildCommandAndArgs = () => {
   if ((!ESBUILD_BINARY_PATH || false) && (path2.basename(__filename) !== "main.js" || path2.basename(__dirname) !== "lib")) {
@@ -1871,5 +1871,5 @@
   }
 };
-var version = "0.22.0";
+var version = "0.23.0";
 var build = (options) => ensureServiceIsRunning().build(options);
 var context = (buildOptions) => ensureServiceIsRunning().context(buildOptions);
@@ -1974,5 +1974,5 @@
   if (longLivedService) return longLivedService;
   let [command, args] = esbuildCommandAndArgs();
-  let child = child_process.spawn(command, args.concat(`--service=${"0.22.0"}`, "--ping"), {
+  let child = child_process.spawn(command, args.concat(`--service=${"0.23.0"}`, "--ping"), {
     windowsHide: true,
     stdio: ["pipe", "pipe", "inherit"],
@@ -2078,5 +2078,5 @@
   });
   callback(service);
-  let stdout = child_process.execFileSync(command, args.concat(`--service=${"0.22.0"}`), {
+  let stdout = child_process.execFileSync(command, args.concat(`--service=${"0.23.0"}`), {
     cwd: defaultWD,
     windowsHide: true,
@@ -2098,5 +2098,5 @@
   let { port1: mainPort, port2: workerPort } = new worker_threads2.MessageChannel();
   let worker = new worker_threads2.Worker(__filename, {
-    workerData: { workerPort, defaultWD, esbuildVersion: "0.22.0" },
+    workerData: { workerPort, defaultWD, esbuildVersion: "0.23.0" },
     transferList: [workerPort],
     // From node's documentation: https://nodejs.org/api/worker_threads.html
diff --git a/package.json b/package.json
index v0.22.0..v0.23.0 100644
--- a/package.json
+++ b/package.json
@@ -1,5 +1,5 @@
 {
   "name": "esbuild",
-  "version": "0.22.0",
+  "version": "0.23.0",
   "description": "An extremely fast JavaScript and CSS bundler and minifier.",
   "repository": {
@@ -19,28 +19,28 @@
   },
   "optionalDependencies": {
-    "@esbuild/aix-ppc64": "0.22.0",
-    "@esbuild/android-arm": "0.22.0",
-    "@esbuild/android-arm64": "0.22.0",
-    "@esbuild/android-x64": "0.22.0",
-    "@esbuild/darwin-arm64": "0.22.0",
-    "@esbuild/darwin-x64": "0.22.0",
-    "@esbuild/freebsd-arm64": "0.22.0",
-    "@esbuild/freebsd-x64": "0.22.0",
-    "@esbuild/linux-arm": "0.22.0",
-    "@esbuild/linux-arm64": "0.22.0",
-    "@esbuild/linux-ia32": "0.22.0",
-    "@esbuild/linux-loong64": "0.22.0",
-    "@esbuild/linux-mips64el": "0.22.0",
-    "@esbuild/linux-ppc64": "0.22.0",
-    "@esbuild/linux-riscv64": "0.22.0",
-    "@esbuild/linux-s390x": "0.22.0",
-    "@esbuild/linux-x64": "0.22.0",
-    "@esbuild/netbsd-x64": "0.22.0",
-    "@esbuild/openbsd-arm64": "0.22.0",
-    "@esbuild/openbsd-x64": "0.22.0",
-    "@esbuild/sunos-x64": "0.22.0",
-    "@esbuild/win32-arm64": "0.22.0",
-    "@esbuild/win32-ia32": "0.22.0",
-    "@esbuild/win32-x64": "0.22.0"
+    "@esbuild/aix-ppc64": "0.23.0",
+    "@esbuild/android-arm": "0.23.0",
+    "@esbuild/android-arm64": "0.23.0",
+    "@esbuild/android-x64": "0.23.0",
+    "@esbuild/darwin-arm64": "0.23.0",
+    "@esbuild/darwin-x64": "0.23.0",
+    "@esbuild/freebsd-arm64": "0.23.0",
+    "@esbuild/freebsd-x64": "0.23.0",
+    "@esbuild/linux-arm": "0.23.0",
+    "@esbuild/linux-arm64": "0.23.0",
+    "@esbuild/linux-ia32": "0.23.0",
+    "@esbuild/linux-loong64": "0.23.0",
+    "@esbuild/linux-mips64el": "0.23.0",
+    "@esbuild/linux-ppc64": "0.23.0",
+    "@esbuild/linux-riscv64": "0.23.0",
+    "@esbuild/linux-s390x": "0.23.0",
+    "@esbuild/linux-x64": "0.23.0",
+    "@esbuild/netbsd-x64": "0.23.0",
+    "@esbuild/openbsd-arm64": "0.23.0",
+    "@esbuild/openbsd-x64": "0.23.0",
+    "@esbuild/sunos-x64": "0.23.0",
+    "@esbuild/win32-arm64": "0.23.0",
+    "@esbuild/win32-ia32": "0.23.0",
+    "@esbuild/win32-x64": "0.23.0"
   },
   "license": "MIT"
Size Files
130.4 KB → 130.4 KB (±0 B 🟢) 7 → 7 (±0 🟢)
Command details
npm diff --diff=esbuild@0.22.0 --diff=esbuild@0.23.0 --diff-unified=2

See also the npm diff document.

Reported by ybiquitous/npm-diff-action@v1.6.0 (Node.js 22.4.0 and npm 10.8.1)

@github-actions github-actions bot merged commit df9e2ca into main Jul 8, 2024
5 checks passed
@github-actions github-actions bot deleted the dependabot/npm_and_yarn/esbuild-0.23.0 branch July 8, 2024 22:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants