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

fix(deps-dev): bump esbuild from 0.14.25 to 0.14.27 #533

Merged
merged 3 commits into from
Mar 15, 2022

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Mar 15, 2022

Bumps esbuild from 0.14.25 to 0.14.27.

Release notes

Sourced from esbuild's releases.

v0.14.27

  • Avoid generating an enumerable default import for CommonJS files in Babel mode (#2097)

    Importing a CommonJS module into an ES module can be done in two different ways. In node mode the default import is always set to module.exports, while in Babel mode the default import passes through to module.exports.default instead. Node mode is triggered when the importing file ends in .mjs, has type: "module" in its package.json file, or the imported module does not have a __esModule marker.

    Previously esbuild always created the forwarding default import in Babel mode, even if module.exports had no property called default. This was problematic because the getter named default still showed up as a property on the imported namespace object, and could potentially interfere with code that iterated over the properties of the imported namespace object. With this release the getter named default will now only be added in Babel mode if the default property exists at the time of the import.

  • Fix a circular import edge case regarding ESM-to-CommonJS conversion (#1894, #2059)

    This fixes a regression that was introduced in version 0.14.5 of esbuild. Ever since that version, esbuild now creates two separate export objects when you convert an ES module file into a CommonJS module: one for ES modules and one for CommonJS modules. The one for CommonJS modules is written to module.exports and exported from the file, and the one for ES modules is internal and can be accessed by bundling code that imports the entry point (for example, the entry point might import itself to be able to inspect its own exports).

    The reason for these two separate export objects is that CommonJS modules are supposed to see a special export called __esModule which indicates that the module used to be an ES module, while ES modules are not supposed to see any automatically-added export named __esModule. This matters for real-world code both because people sometimes iterate over the properties of ES module export namespace objects and because some people write ES module code containing their own exports named __esModule that they expect other ES module code to be able to read.

    However, this change to split exports into two separate objects broke ES module re-exports in the edge case where the imported module is involved in an import cycle. This happened because the CommonJS module.exports object was no longer mutated as exports were added. Instead it was being initialized at the end of the generated file after the import statements to other modules (which are converted into require() calls). This release changes module.exports initialization to happen earlier in the file and then double-writes further exports to both the ES module and CommonJS module export objects.

    This fix was contributed by @​indutny.

v0.14.26

  • Fix a tree shaking regression regarding var declarations (#2080, #2085, #2098, #2099)

    Version 0.14.8 of esbuild enabled removal of duplicate function declarations when minification is enabled (see #610):

    // Original code
    function x() { return 1 }
    console.log(x())
    function x() { return 2 }
    // Output (with --minify-syntax)
    console.log(x());
    function x() {
    return 2;
    }

    This transformation is safe because function declarations are "hoisted" in JavaScript, which means they are all done first before any other code is evaluted. This means the last function declaration will overwrite all previous function declarations with the same name.

    However, this introduced an unintentional regression for var declarations in which all but the last declaration was dropped if tree-shaking was enabled. This only happens for top-level var declarations that re-declare the same variable multiple times. This regression has now been fixed:

    // Original code
    var x = 1
    console.log(x)
    var x = 2
    // Old output (with --tree-shaking=true)
    console.log(x);
    var x = 2;
    // New output (with --tree-shaking=true)

... (truncated)

Changelog

Sourced from esbuild's changelog.

0.14.27

  • Avoid generating an enumerable default import for CommonJS files in Babel mode (#2097)

    Importing a CommonJS module into an ES module can be done in two different ways. In node mode the default import is always set to module.exports, while in Babel mode the default import passes through to module.exports.default instead. Node mode is triggered when the importing file ends in .mjs, has type: "module" in its package.json file, or the imported module does not have a __esModule marker.

    Previously esbuild always created the forwarding default import in Babel mode, even if module.exports had no property called default. This was problematic because the getter named default still showed up as a property on the imported namespace object, and could potentially interfere with code that iterated over the properties of the imported namespace object. With this release the getter named default will now only be added in Babel mode if the default property exists at the time of the import.

  • Fix a circular import edge case regarding ESM-to-CommonJS conversion (#1894, #2059)

    This fixes a regression that was introduced in version 0.14.5 of esbuild. Ever since that version, esbuild now creates two separate export objects when you convert an ES module file into a CommonJS module: one for ES modules and one for CommonJS modules. The one for CommonJS modules is written to module.exports and exported from the file, and the one for ES modules is internal and can be accessed by bundling code that imports the entry point (for example, the entry point might import itself to be able to inspect its own exports).

    The reason for these two separate export objects is that CommonJS modules are supposed to see a special export called __esModule which indicates that the module used to be an ES module, while ES modules are not supposed to see any automatically-added export named __esModule. This matters for real-world code both because people sometimes iterate over the properties of ES module export namespace objects and because some people write ES module code containing their own exports named __esModule that they expect other ES module code to be able to read.

    However, this change to split exports into two separate objects broke ES module re-exports in the edge case where the imported module is involved in an import cycle. This happened because the CommonJS module.exports object was no longer mutated as exports were added. Instead it was being initialized at the end of the generated file after the import statements to other modules (which are converted into require() calls). This release changes module.exports initialization to happen earlier in the file and then double-writes further exports to both the ES module and CommonJS module export objects.

    This fix was contributed by @​indutny.

0.14.26

  • Fix a tree shaking regression regarding var declarations (#2080, #2085, #2098, #2099)

    Version 0.14.8 of esbuild enabled removal of duplicate function declarations when minification is enabled (see #610):

    // Original code
    function x() { return 1 }
    console.log(x())
    function x() { return 2 }
    // Output (with --minify-syntax)
    console.log(x());
    function x() {
    return 2;
    }

    This transformation is safe because function declarations are "hoisted" in JavaScript, which means they are all done first before any other code is evaluted. This means the last function declaration will overwrite all previous function declarations with the same name.

    However, this introduced an unintentional regression for var declarations in which all but the last declaration was dropped if tree-shaking was enabled. This only happens for top-level var declarations that re-declare the same variable multiple times. This regression has now been fixed:

    // Original code
    var x = 1
    console.log(x)
    var x = 2
    // Old output (with --tree-shaking=true)
    console.log(x);
    var x = 2;

... (truncated)

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 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.14.25 to 0.14.27.
- [Release notes](https://github.com/evanw/esbuild/releases)
- [Changelog](https://github.com/evanw/esbuild/blob/master/CHANGELOG.md)
- [Commits](evanw/esbuild@v0.14.25...v0.14.27)

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

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 Mar 15, 2022
@ybiquitous ybiquitous self-assigned this Mar 15, 2022
@github-actions
Copy link
Contributor

npm diff --diff=esbuild@0.14.25 --diff=esbuild@0.14.27 --diff-unified=2
diff --git a/bin/esbuild b/bin/esbuild
index v0.14.25..v0.14.27 100755
--- a/bin/esbuild
+++ b/bin/esbuild
@@ -6,16 +6,13 @@
 var __getProtoOf = Object.getPrototypeOf;
 var __hasOwnProp = Object.prototype.hasOwnProperty;
-var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
-var __reExport = (target, module2, copyDefault, desc) => {
-  if (module2 && typeof module2 === "object" || typeof module2 === "function") {
-    for (let key of __getOwnPropNames(module2))
-      if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
-        __defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
+var __copyProps = (to, from, except, desc) => {
+  if (from && typeof from === "object" || typeof from === "function") {
+    for (let key of __getOwnPropNames(from))
+      if (!__hasOwnProp.call(to, key) && key !== except)
+        __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
   }
-  return target;
+  return to;
 };
-var __toESM = (module2, isNodeMode) => {
-  return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
-};
+var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
 
 // lib/npm/node-platform.ts
diff --git a/install.js b/install.js
index v0.14.25..v0.14.27 100644
--- a/install.js
+++ b/install.js
@@ -22,16 +22,13 @@
 };
 var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
-var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
-var __reExport = (target, module2, copyDefault, desc) => {
-  if (module2 && typeof module2 === "object" || typeof module2 === "function") {
-    for (let key of __getOwnPropNames(module2))
-      if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
-        __defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
+var __copyProps = (to, from, except, desc) => {
+  if (from && typeof from === "object" || typeof from === "function") {
+    for (let key of __getOwnPropNames(from))
+      if (!__hasOwnProp.call(to, key) && key !== except)
+        __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
   }
-  return target;
+  return to;
 };
-var __toESM = (module2, isNodeMode) => {
-  return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
-};
+var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
 
 // lib/npm/node-platform.ts
@@ -105,6 +102,6 @@
     stdio: "pipe"
   }).toString().trim();
-  if (stdout !== "0.14.25") {
-    throw new Error(`Expected ${JSON.stringify("0.14.25")} but got ${JSON.stringify(stdout)}`);
+  if (stdout !== "0.14.27") {
+    throw new Error(`Expected ${JSON.stringify("0.14.27")} but got ${JSON.stringify(stdout)}`);
   }
 }
@@ -157,5 +154,5 @@
   try {
     fs2.writeFileSync(path2.join(installDir, "package.json"), "{}");
-    child_process.execSync(`npm install --loglevel=error --prefer-offline --no-audit --progress=false ${pkg}@${"0.14.25"}`, { cwd: installDir, stdio: "pipe", env });
+    child_process.execSync(`npm install --loglevel=error --prefer-offline --no-audit --progress=false ${pkg}@${"0.14.27"}`, { cwd: installDir, stdio: "pipe", env });
     const installedBinPath = path2.join(installDir, "node_modules", pkg, subpath);
     fs2.renameSync(installedBinPath, binPath);
@@ -206,5 +203,5 @@
 }
 async function downloadDirectlyFromNPM(pkg, subpath, binPath) {
-  const url = `https://registry.npmjs.org/${pkg}/-/${pkg}-${"0.14.25"}.tgz`;
+  const url = `https://registry.npmjs.org/${pkg}/-/${pkg}-${"0.14.27"}.tgz`;
   console.error(`[esbuild] Trying to download ${JSON.stringify(url)}`);
   try {
diff --git a/lib/main.js b/lib/main.js
index v0.14.25..v0.14.27 100644
--- a/lib/main.js
+++ b/lib/main.js
@@ -22,25 +22,18 @@
 };
 var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
-var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
 var __export = (target, all) => {
   for (var name in all)
     __defProp(target, name, { get: all[name], enumerable: true });
 };
-var __reExport = (target, module2, copyDefault, desc) => {
-  if (module2 && typeof module2 === "object" || typeof module2 === "function") {
-    for (let key of __getOwnPropNames(module2))
-      if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
-        __defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
+var __copyProps = (to, from, except, desc) => {
+  if (from && typeof from === "object" || typeof from === "function") {
+    for (let key of __getOwnPropNames(from))
+      if (!__hasOwnProp.call(to, key) && key !== except)
+        __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
   }
-  return target;
+  return to;
 };
-var __toESM = (module2, isNodeMode) => {
-  return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
-};
-var __toCommonJS = /* @__PURE__ */ ((cache) => {
-  return (module2, temp) => {
-    return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
-  };
-})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
+var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
+var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
 
 // lib/npm/node.ts
@@ -60,4 +53,5 @@
   version: () => version
 });
+module.exports = __toCommonJS(node_exports);
 
 // lib/shared/stdio_protocol.ts
@@ -749,6 +743,6 @@
       isFirstPacket = false;
       let binaryVersion = String.fromCharCode(...bytes);
-      if (binaryVersion !== "0.14.25") {
-        throw new Error(`Cannot start service: Host version "${"0.14.25"}" does not match binary version ${JSON.stringify(binaryVersion)}`);
+      if (binaryVersion !== "0.14.27") {
+        throw new Error(`Cannot start service: Host version "${"0.14.27"}" does not match binary version ${JSON.stringify(binaryVersion)}`);
       }
       return;
@@ -1862,5 +1856,5 @@
 }
 var _a;
-var isInternalWorkerThread = ((_a = worker_threads == null ? void 0 : worker_threads.workerData) == null ? void 0 : _a.esbuildVersion) === "0.14.25";
+var isInternalWorkerThread = ((_a = worker_threads == null ? void 0 : worker_threads.workerData) == null ? void 0 : _a.esbuildVersion) === "0.14.27";
 var esbuildCommandAndArgs = () => {
   if ((!ESBUILD_BINARY_PATH || false) && (path2.basename(__filename) !== "main.js" || path2.basename(__dirname) !== "lib")) {
@@ -1926,5 +1920,5 @@
   }
 };
-var version = "0.14.25";
+var version = "0.14.27";
 var build = (options) => ensureServiceIsRunning().build(options);
 var serve = (serveOptions, buildOptions) => ensureServiceIsRunning().serve(serveOptions, buildOptions);
@@ -2035,5 +2029,5 @@
     return longLivedService;
   let [command, args] = esbuildCommandAndArgs();
-  let child = child_process.spawn(command, args.concat(`--service=${"0.14.25"}`, "--ping"), {
+  let child = child_process.spawn(command, args.concat(`--service=${"0.14.27"}`, "--ping"), {
     windowsHide: true,
     stdio: ["pipe", "pipe", "inherit"],
@@ -2148,5 +2142,5 @@
   });
   callback(service);
-  let stdout = child_process.execFileSync(command, args.concat(`--service=${"0.14.25"}`), {
+  let stdout = child_process.execFileSync(command, args.concat(`--service=${"0.14.27"}`), {
     cwd: defaultWD,
     windowsHide: true,
@@ -2164,5 +2158,5 @@
   let { port1: mainPort, port2: workerPort } = new worker_threads2.MessageChannel();
   let worker = new worker_threads2.Worker(__filename, {
-    workerData: { workerPort, defaultWD, esbuildVersion: "0.14.25" },
+    workerData: { workerPort, defaultWD, esbuildVersion: "0.14.27" },
     transferList: [workerPort],
     execArgv: []
@@ -2280,5 +2274,4 @@
 }
 var node_default = node_exports;
-module.exports = __toCommonJS(node_exports);
 // Annotate the CommonJS export names for ESM import in node:
 0 && (module.exports = {
diff --git a/package.json b/package.json
index v0.14.25..v0.14.27 100644
--- a/package.json
+++ b/package.json
@@ -1,5 +1,5 @@
 {
   "name": "esbuild",
-  "version": "0.14.25",
+  "version": "0.14.27",
   "description": "An extremely fast JavaScript and CSS bundler and minifier.",
   "repository": "https://github.com/evanw/esbuild",
@@ -16,24 +16,24 @@
   },
   "optionalDependencies": {
-    "esbuild-android-64": "0.14.25",
-    "esbuild-android-arm64": "0.14.25",
-    "esbuild-darwin-64": "0.14.25",
-    "esbuild-darwin-arm64": "0.14.25",
-    "esbuild-freebsd-64": "0.14.25",
-    "esbuild-freebsd-arm64": "0.14.25",
-    "esbuild-linux-32": "0.14.25",
-    "esbuild-linux-64": "0.14.25",
-    "esbuild-linux-arm": "0.14.25",
-    "esbuild-linux-arm64": "0.14.25",
-    "esbuild-linux-mips64le": "0.14.25",
-    "esbuild-linux-ppc64le": "0.14.25",
-    "esbuild-linux-riscv64": "0.14.25",
-    "esbuild-linux-s390x": "0.14.25",
-    "esbuild-netbsd-64": "0.14.25",
-    "esbuild-openbsd-64": "0.14.25",
-    "esbuild-sunos-64": "0.14.25",
-    "esbuild-windows-32": "0.14.25",
-    "esbuild-windows-64": "0.14.25",
-    "esbuild-windows-arm64": "0.14.25"
+    "esbuild-android-64": "0.14.27",
+    "esbuild-android-arm64": "0.14.27",
+    "esbuild-darwin-64": "0.14.27",
+    "esbuild-darwin-arm64": "0.14.27",
+    "esbuild-freebsd-64": "0.14.27",
+    "esbuild-freebsd-arm64": "0.14.27",
+    "esbuild-linux-32": "0.14.27",
+    "esbuild-linux-64": "0.14.27",
+    "esbuild-linux-arm": "0.14.27",
+    "esbuild-linux-arm64": "0.14.27",
+    "esbuild-linux-mips64le": "0.14.27",
+    "esbuild-linux-ppc64le": "0.14.27",
+    "esbuild-linux-riscv64": "0.14.27",
+    "esbuild-linux-s390x": "0.14.27",
+    "esbuild-netbsd-64": "0.14.27",
+    "esbuild-openbsd-64": "0.14.27",
+    "esbuild-sunos-64": "0.14.27",
+    "esbuild-windows-32": "0.14.27",
+    "esbuild-windows-64": "0.14.27",
+    "esbuild-windows-arm64": "0.14.27"
   },
   "license": "MIT"
  • Size: 114.8 KB → 114.0 KB (-845 B)
  • Files: 6 → 6 (±0)

Posted by ybiquitous/npm-diff-action

@ybiquitous ybiquitous assigned ybiquitous and unassigned ybiquitous Mar 15, 2022
@github-actions
Copy link
Contributor

npm diff --diff=esbuild@0.14.25 --diff=esbuild@0.14.27 --diff-unified=2
diff --git a/bin/esbuild b/bin/esbuild
index v0.14.25..v0.14.27 100755
--- a/bin/esbuild
+++ b/bin/esbuild
@@ -6,16 +6,13 @@
 var __getProtoOf = Object.getPrototypeOf;
 var __hasOwnProp = Object.prototype.hasOwnProperty;
-var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
-var __reExport = (target, module2, copyDefault, desc) => {
-  if (module2 && typeof module2 === "object" || typeof module2 === "function") {
-    for (let key of __getOwnPropNames(module2))
-      if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
-        __defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
+var __copyProps = (to, from, except, desc) => {
+  if (from && typeof from === "object" || typeof from === "function") {
+    for (let key of __getOwnPropNames(from))
+      if (!__hasOwnProp.call(to, key) && key !== except)
+        __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
   }
-  return target;
+  return to;
 };
-var __toESM = (module2, isNodeMode) => {
-  return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
-};
+var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
 
 // lib/npm/node-platform.ts
diff --git a/install.js b/install.js
index v0.14.25..v0.14.27 100644
--- a/install.js
+++ b/install.js
@@ -22,16 +22,13 @@
 };
 var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
-var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
-var __reExport = (target, module2, copyDefault, desc) => {
-  if (module2 && typeof module2 === "object" || typeof module2 === "function") {
-    for (let key of __getOwnPropNames(module2))
-      if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
-        __defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
+var __copyProps = (to, from, except, desc) => {
+  if (from && typeof from === "object" || typeof from === "function") {
+    for (let key of __getOwnPropNames(from))
+      if (!__hasOwnProp.call(to, key) && key !== except)
+        __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
   }
-  return target;
+  return to;
 };
-var __toESM = (module2, isNodeMode) => {
-  return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
-};
+var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
 
 // lib/npm/node-platform.ts
@@ -105,6 +102,6 @@
     stdio: "pipe"
   }).toString().trim();
-  if (stdout !== "0.14.25") {
-    throw new Error(`Expected ${JSON.stringify("0.14.25")} but got ${JSON.stringify(stdout)}`);
+  if (stdout !== "0.14.27") {
+    throw new Error(`Expected ${JSON.stringify("0.14.27")} but got ${JSON.stringify(stdout)}`);
   }
 }
@@ -157,5 +154,5 @@
   try {
     fs2.writeFileSync(path2.join(installDir, "package.json"), "{}");
-    child_process.execSync(`npm install --loglevel=error --prefer-offline --no-audit --progress=false ${pkg}@${"0.14.25"}`, { cwd: installDir, stdio: "pipe", env });
+    child_process.execSync(`npm install --loglevel=error --prefer-offline --no-audit --progress=false ${pkg}@${"0.14.27"}`, { cwd: installDir, stdio: "pipe", env });
     const installedBinPath = path2.join(installDir, "node_modules", pkg, subpath);
     fs2.renameSync(installedBinPath, binPath);
@@ -206,5 +203,5 @@
 }
 async function downloadDirectlyFromNPM(pkg, subpath, binPath) {
-  const url = `https://registry.npmjs.org/${pkg}/-/${pkg}-${"0.14.25"}.tgz`;
+  const url = `https://registry.npmjs.org/${pkg}/-/${pkg}-${"0.14.27"}.tgz`;
   console.error(`[esbuild] Trying to download ${JSON.stringify(url)}`);
   try {
diff --git a/lib/main.js b/lib/main.js
index v0.14.25..v0.14.27 100644
--- a/lib/main.js
+++ b/lib/main.js
@@ -22,25 +22,18 @@
 };
 var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
-var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
 var __export = (target, all) => {
   for (var name in all)
     __defProp(target, name, { get: all[name], enumerable: true });
 };
-var __reExport = (target, module2, copyDefault, desc) => {
-  if (module2 && typeof module2 === "object" || typeof module2 === "function") {
-    for (let key of __getOwnPropNames(module2))
-      if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
-        __defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
+var __copyProps = (to, from, except, desc) => {
+  if (from && typeof from === "object" || typeof from === "function") {
+    for (let key of __getOwnPropNames(from))
+      if (!__hasOwnProp.call(to, key) && key !== except)
+        __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
   }
-  return target;
+  return to;
 };
-var __toESM = (module2, isNodeMode) => {
-  return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
-};
-var __toCommonJS = /* @__PURE__ */ ((cache) => {
-  return (module2, temp) => {
-    return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
-  };
-})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
+var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
+var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
 
 // lib/npm/node.ts
@@ -60,4 +53,5 @@
   version: () => version
 });
+module.exports = __toCommonJS(node_exports);
 
 // lib/shared/stdio_protocol.ts
@@ -749,6 +743,6 @@
       isFirstPacket = false;
       let binaryVersion = String.fromCharCode(...bytes);
-      if (binaryVersion !== "0.14.25") {
-        throw new Error(`Cannot start service: Host version "${"0.14.25"}" does not match binary version ${JSON.stringify(binaryVersion)}`);
+      if (binaryVersion !== "0.14.27") {
+        throw new Error(`Cannot start service: Host version "${"0.14.27"}" does not match binary version ${JSON.stringify(binaryVersion)}`);
       }
       return;
@@ -1862,5 +1856,5 @@
 }
 var _a;
-var isInternalWorkerThread = ((_a = worker_threads == null ? void 0 : worker_threads.workerData) == null ? void 0 : _a.esbuildVersion) === "0.14.25";
+var isInternalWorkerThread = ((_a = worker_threads == null ? void 0 : worker_threads.workerData) == null ? void 0 : _a.esbuildVersion) === "0.14.27";
 var esbuildCommandAndArgs = () => {
   if ((!ESBUILD_BINARY_PATH || false) && (path2.basename(__filename) !== "main.js" || path2.basename(__dirname) !== "lib")) {
@@ -1926,5 +1920,5 @@
   }
 };
-var version = "0.14.25";
+var version = "0.14.27";
 var build = (options) => ensureServiceIsRunning().build(options);
 var serve = (serveOptions, buildOptions) => ensureServiceIsRunning().serve(serveOptions, buildOptions);
@@ -2035,5 +2029,5 @@
     return longLivedService;
   let [command, args] = esbuildCommandAndArgs();
-  let child = child_process.spawn(command, args.concat(`--service=${"0.14.25"}`, "--ping"), {
+  let child = child_process.spawn(command, args.concat(`--service=${"0.14.27"}`, "--ping"), {
     windowsHide: true,
     stdio: ["pipe", "pipe", "inherit"],
@@ -2148,5 +2142,5 @@
   });
   callback(service);
-  let stdout = child_process.execFileSync(command, args.concat(`--service=${"0.14.25"}`), {
+  let stdout = child_process.execFileSync(command, args.concat(`--service=${"0.14.27"}`), {
     cwd: defaultWD,
     windowsHide: true,
@@ -2164,5 +2158,5 @@
   let { port1: mainPort, port2: workerPort } = new worker_threads2.MessageChannel();
   let worker = new worker_threads2.Worker(__filename, {
-    workerData: { workerPort, defaultWD, esbuildVersion: "0.14.25" },
+    workerData: { workerPort, defaultWD, esbuildVersion: "0.14.27" },
     transferList: [workerPort],
     execArgv: []
@@ -2280,5 +2274,4 @@
 }
 var node_default = node_exports;
-module.exports = __toCommonJS(node_exports);
 // Annotate the CommonJS export names for ESM import in node:
 0 && (module.exports = {
diff --git a/package.json b/package.json
index v0.14.25..v0.14.27 100644
--- a/package.json
+++ b/package.json
@@ -1,5 +1,5 @@
 {
   "name": "esbuild",
-  "version": "0.14.25",
+  "version": "0.14.27",
   "description": "An extremely fast JavaScript and CSS bundler and minifier.",
   "repository": "https://github.com/evanw/esbuild",
@@ -16,24 +16,24 @@
   },
   "optionalDependencies": {
-    "esbuild-android-64": "0.14.25",
-    "esbuild-android-arm64": "0.14.25",
-    "esbuild-darwin-64": "0.14.25",
-    "esbuild-darwin-arm64": "0.14.25",
-    "esbuild-freebsd-64": "0.14.25",
-    "esbuild-freebsd-arm64": "0.14.25",
-    "esbuild-linux-32": "0.14.25",
-    "esbuild-linux-64": "0.14.25",
-    "esbuild-linux-arm": "0.14.25",
-    "esbuild-linux-arm64": "0.14.25",
-    "esbuild-linux-mips64le": "0.14.25",
-    "esbuild-linux-ppc64le": "0.14.25",
-    "esbuild-linux-riscv64": "0.14.25",
-    "esbuild-linux-s390x": "0.14.25",
-    "esbuild-netbsd-64": "0.14.25",
-    "esbuild-openbsd-64": "0.14.25",
-    "esbuild-sunos-64": "0.14.25",
-    "esbuild-windows-32": "0.14.25",
-    "esbuild-windows-64": "0.14.25",
-    "esbuild-windows-arm64": "0.14.25"
+    "esbuild-android-64": "0.14.27",
+    "esbuild-android-arm64": "0.14.27",
+    "esbuild-darwin-64": "0.14.27",
+    "esbuild-darwin-arm64": "0.14.27",
+    "esbuild-freebsd-64": "0.14.27",
+    "esbuild-freebsd-arm64": "0.14.27",
+    "esbuild-linux-32": "0.14.27",
+    "esbuild-linux-64": "0.14.27",
+    "esbuild-linux-arm": "0.14.27",
+    "esbuild-linux-arm64": "0.14.27",
+    "esbuild-linux-mips64le": "0.14.27",
+    "esbuild-linux-ppc64le": "0.14.27",
+    "esbuild-linux-riscv64": "0.14.27",
+    "esbuild-linux-s390x": "0.14.27",
+    "esbuild-netbsd-64": "0.14.27",
+    "esbuild-openbsd-64": "0.14.27",
+    "esbuild-sunos-64": "0.14.27",
+    "esbuild-windows-32": "0.14.27",
+    "esbuild-windows-64": "0.14.27",
+    "esbuild-windows-arm64": "0.14.27"
   },
   "license": "MIT"
  • Size: 114.8 KB → 114.0 KB (-845 B)
  • Files: 6 → 6 (±0)

Posted by ybiquitous/npm-diff-action

@ybiquitous ybiquitous changed the title build(deps-dev): bump esbuild from 0.14.25 to 0.14.27 fix(deps-dev): bump esbuild from 0.14.25 to 0.14.27 Mar 15, 2022
@ybiquitous ybiquitous merged commit d335bad into main Mar 15, 2022
@ybiquitous ybiquitous deleted the dependabot/npm_and_yarn/esbuild-0.14.27 branch March 15, 2022 01:19
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.

1 participant