esbuild 0.14.22 → 0.14.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/install.js +4 -4
  2. package/lib/main.js +7 -7
  3. package/package.json +20 -20
package/install.js CHANGED
@@ -96,8 +96,8 @@ function validateBinaryVersion(...command) {
96
96
  const stdout = child_process.execFileSync(command.shift(), command, {
97
97
  stdio: "pipe"
98
98
  }).toString().trim();
99
- if (stdout !== "0.14.22") {
100
- throw new Error(`Expected ${JSON.stringify("0.14.22")} but got ${JSON.stringify(stdout)}`);
99
+ if (stdout !== "0.14.23") {
100
+ throw new Error(`Expected ${JSON.stringify("0.14.23")} but got ${JSON.stringify(stdout)}`);
101
101
  }
102
102
  }
103
103
  function isYarn() {
@@ -148,7 +148,7 @@ function installUsingNPM(pkg, subpath, binPath) {
148
148
  fs2.mkdirSync(installDir);
149
149
  try {
150
150
  fs2.writeFileSync(path2.join(installDir, "package.json"), "{}");
151
- child_process.execSync(`npm install --loglevel=error --prefer-offline --no-audit --progress=false ${pkg}@${"0.14.22"}`, { cwd: installDir, stdio: "pipe", env });
151
+ child_process.execSync(`npm install --loglevel=error --prefer-offline --no-audit --progress=false ${pkg}@${"0.14.23"}`, { cwd: installDir, stdio: "pipe", env });
152
152
  const installedBinPath = path2.join(installDir, "node_modules", pkg, subpath);
153
153
  fs2.renameSync(installedBinPath, binPath);
154
154
  } finally {
@@ -197,7 +197,7 @@ function maybeOptimizePackage(binPath) {
197
197
  }
198
198
  }
199
199
  async function downloadDirectlyFromNPM(pkg, subpath, binPath) {
200
- const url = `https://registry.npmjs.org/${pkg}/-/${pkg}-${"0.14.22"}.tgz`;
200
+ const url = `https://registry.npmjs.org/${pkg}/-/${pkg}-${"0.14.23"}.tgz`;
201
201
  console.error(`[esbuild] Trying to download ${JSON.stringify(url)}`);
202
202
  try {
203
203
  fs2.writeFileSync(binPath, extractFileFromTarGzip(await fetch(url), subpath));
package/lib/main.js CHANGED
@@ -745,8 +745,8 @@ function createChannel(streamIn) {
745
745
  if (isFirstPacket) {
746
746
  isFirstPacket = false;
747
747
  let binaryVersion = String.fromCharCode(...bytes);
748
- if (binaryVersion !== "0.14.22") {
749
- throw new Error(`Cannot start service: Host version "${"0.14.22"}" does not match binary version ${JSON.stringify(binaryVersion)}`);
748
+ if (binaryVersion !== "0.14.23") {
749
+ throw new Error(`Cannot start service: Host version "${"0.14.23"}" does not match binary version ${JSON.stringify(binaryVersion)}`);
750
750
  }
751
751
  return;
752
752
  }
@@ -1850,7 +1850,7 @@ if (process.env.ESBUILD_WORKER_THREADS !== "0") {
1850
1850
  }
1851
1851
  }
1852
1852
  var _a;
1853
- var isInternalWorkerThread = ((_a = worker_threads == null ? void 0 : worker_threads.workerData) == null ? void 0 : _a.esbuildVersion) === "0.14.22";
1853
+ var isInternalWorkerThread = ((_a = worker_threads == null ? void 0 : worker_threads.workerData) == null ? void 0 : _a.esbuildVersion) === "0.14.23";
1854
1854
  var esbuildCommandAndArgs = () => {
1855
1855
  if ((!ESBUILD_BINARY_PATH || false) && (path2.basename(__filename) !== "main.js" || path2.basename(__dirname) !== "lib")) {
1856
1856
  throw new Error(`The esbuild JavaScript API cannot be bundled. Please mark the "esbuild" package as external so it's not included in the bundle.
@@ -1909,7 +1909,7 @@ var fsAsync = {
1909
1909
  }
1910
1910
  }
1911
1911
  };
1912
- var version = "0.14.22";
1912
+ var version = "0.14.23";
1913
1913
  var build = (options) => ensureServiceIsRunning().build(options);
1914
1914
  var serve = (serveOptions, buildOptions) => ensureServiceIsRunning().serve(serveOptions, buildOptions);
1915
1915
  var transform = (input, options) => ensureServiceIsRunning().transform(input, options);
@@ -2018,7 +2018,7 @@ var ensureServiceIsRunning = () => {
2018
2018
  if (longLivedService)
2019
2019
  return longLivedService;
2020
2020
  let [command, args] = esbuildCommandAndArgs();
2021
- let child = child_process.spawn(command, args.concat(`--service=${"0.14.22"}`, "--ping"), {
2021
+ let child = child_process.spawn(command, args.concat(`--service=${"0.14.23"}`, "--ping"), {
2022
2022
  windowsHide: true,
2023
2023
  stdio: ["pipe", "pipe", "inherit"],
2024
2024
  cwd: defaultWD
@@ -2131,7 +2131,7 @@ var runServiceSync = (callback) => {
2131
2131
  esbuild: node_exports
2132
2132
  });
2133
2133
  callback(service);
2134
- let stdout = child_process.execFileSync(command, args.concat(`--service=${"0.14.22"}`), {
2134
+ let stdout = child_process.execFileSync(command, args.concat(`--service=${"0.14.23"}`), {
2135
2135
  cwd: defaultWD,
2136
2136
  windowsHide: true,
2137
2137
  input: stdin,
@@ -2147,7 +2147,7 @@ var workerThreadService = null;
2147
2147
  var startWorkerThreadService = (worker_threads2) => {
2148
2148
  let { port1: mainPort, port2: workerPort } = new worker_threads2.MessageChannel();
2149
2149
  let worker = new worker_threads2.Worker(__filename, {
2150
- workerData: { workerPort, defaultWD, esbuildVersion: "0.14.22" },
2150
+ workerData: { workerPort, defaultWD, esbuildVersion: "0.14.23" },
2151
2151
  transferList: [workerPort],
2152
2152
  execArgv: []
2153
2153
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "esbuild",
3
- "version": "0.14.22",
3
+ "version": "0.14.23",
4
4
  "description": "An extremely fast JavaScript and CSS bundler and minifier.",
5
5
  "repository": "https://github.com/evanw/esbuild",
6
6
  "scripts": {
@@ -15,25 +15,25 @@
15
15
  "esbuild": "bin/esbuild"
16
16
  },
17
17
  "optionalDependencies": {
18
- "esbuild-android-arm64": "0.14.22",
19
- "esbuild-darwin-64": "0.14.22",
20
- "esbuild-darwin-arm64": "0.14.22",
21
- "esbuild-freebsd-64": "0.14.22",
22
- "esbuild-freebsd-arm64": "0.14.22",
23
- "esbuild-linux-32": "0.14.22",
24
- "esbuild-linux-64": "0.14.22",
25
- "esbuild-linux-arm": "0.14.22",
26
- "esbuild-linux-arm64": "0.14.22",
27
- "esbuild-linux-mips64le": "0.14.22",
28
- "esbuild-linux-ppc64le": "0.14.22",
29
- "esbuild-linux-riscv64": "0.14.22",
30
- "esbuild-linux-s390x": "0.14.22",
31
- "esbuild-netbsd-64": "0.14.22",
32
- "esbuild-openbsd-64": "0.14.22",
33
- "esbuild-sunos-64": "0.14.22",
34
- "esbuild-windows-32": "0.14.22",
35
- "esbuild-windows-64": "0.14.22",
36
- "esbuild-windows-arm64": "0.14.22"
18
+ "esbuild-android-arm64": "0.14.23",
19
+ "esbuild-darwin-64": "0.14.23",
20
+ "esbuild-darwin-arm64": "0.14.23",
21
+ "esbuild-freebsd-64": "0.14.23",
22
+ "esbuild-freebsd-arm64": "0.14.23",
23
+ "esbuild-linux-32": "0.14.23",
24
+ "esbuild-linux-64": "0.14.23",
25
+ "esbuild-linux-arm": "0.14.23",
26
+ "esbuild-linux-arm64": "0.14.23",
27
+ "esbuild-linux-mips64le": "0.14.23",
28
+ "esbuild-linux-ppc64le": "0.14.23",
29
+ "esbuild-linux-riscv64": "0.14.23",
30
+ "esbuild-linux-s390x": "0.14.23",
31
+ "esbuild-netbsd-64": "0.14.23",
32
+ "esbuild-openbsd-64": "0.14.23",
33
+ "esbuild-sunos-64": "0.14.23",
34
+ "esbuild-windows-32": "0.14.23",
35
+ "esbuild-windows-64": "0.14.23",
36
+ "esbuild-windows-arm64": "0.14.23"
37
37
  },
38
38
  "license": "MIT"
39
39
  }