esbuild 0.14.24 → 0.14.25

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 +21 -21
package/install.js CHANGED
@@ -104,8 +104,8 @@ function validateBinaryVersion(...command) {
104
104
  const stdout = child_process.execFileSync(command.shift(), command, {
105
105
  stdio: "pipe"
106
106
  }).toString().trim();
107
- if (stdout !== "0.14.24") {
108
- throw new Error(`Expected ${JSON.stringify("0.14.24")} but got ${JSON.stringify(stdout)}`);
107
+ if (stdout !== "0.14.25") {
108
+ throw new Error(`Expected ${JSON.stringify("0.14.25")} but got ${JSON.stringify(stdout)}`);
109
109
  }
110
110
  }
111
111
  function isYarn() {
@@ -156,7 +156,7 @@ function installUsingNPM(pkg, subpath, binPath) {
156
156
  fs2.mkdirSync(installDir);
157
157
  try {
158
158
  fs2.writeFileSync(path2.join(installDir, "package.json"), "{}");
159
- child_process.execSync(`npm install --loglevel=error --prefer-offline --no-audit --progress=false ${pkg}@${"0.14.24"}`, { cwd: installDir, stdio: "pipe", env });
159
+ child_process.execSync(`npm install --loglevel=error --prefer-offline --no-audit --progress=false ${pkg}@${"0.14.25"}`, { cwd: installDir, stdio: "pipe", env });
160
160
  const installedBinPath = path2.join(installDir, "node_modules", pkg, subpath);
161
161
  fs2.renameSync(installedBinPath, binPath);
162
162
  } finally {
@@ -205,7 +205,7 @@ function maybeOptimizePackage(binPath) {
205
205
  }
206
206
  }
207
207
  async function downloadDirectlyFromNPM(pkg, subpath, binPath) {
208
- const url = `https://registry.npmjs.org/${pkg}/-/${pkg}-${"0.14.24"}.tgz`;
208
+ const url = `https://registry.npmjs.org/${pkg}/-/${pkg}-${"0.14.25"}.tgz`;
209
209
  console.error(`[esbuild] Trying to download ${JSON.stringify(url)}`);
210
210
  try {
211
211
  fs2.writeFileSync(binPath, extractFileFromTarGzip(await fetch(url), subpath));
package/lib/main.js CHANGED
@@ -748,8 +748,8 @@ function createChannel(streamIn) {
748
748
  if (isFirstPacket) {
749
749
  isFirstPacket = false;
750
750
  let binaryVersion = String.fromCharCode(...bytes);
751
- if (binaryVersion !== "0.14.24") {
752
- throw new Error(`Cannot start service: Host version "${"0.14.24"}" does not match binary version ${JSON.stringify(binaryVersion)}`);
751
+ if (binaryVersion !== "0.14.25") {
752
+ throw new Error(`Cannot start service: Host version "${"0.14.25"}" does not match binary version ${JSON.stringify(binaryVersion)}`);
753
753
  }
754
754
  return;
755
755
  }
@@ -1861,7 +1861,7 @@ if (process.env.ESBUILD_WORKER_THREADS !== "0") {
1861
1861
  }
1862
1862
  }
1863
1863
  var _a;
1864
- var isInternalWorkerThread = ((_a = worker_threads == null ? void 0 : worker_threads.workerData) == null ? void 0 : _a.esbuildVersion) === "0.14.24";
1864
+ var isInternalWorkerThread = ((_a = worker_threads == null ? void 0 : worker_threads.workerData) == null ? void 0 : _a.esbuildVersion) === "0.14.25";
1865
1865
  var esbuildCommandAndArgs = () => {
1866
1866
  if ((!ESBUILD_BINARY_PATH || false) && (path2.basename(__filename) !== "main.js" || path2.basename(__dirname) !== "lib")) {
1867
1867
  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.
@@ -1925,7 +1925,7 @@ var fsAsync = {
1925
1925
  }
1926
1926
  }
1927
1927
  };
1928
- var version = "0.14.24";
1928
+ var version = "0.14.25";
1929
1929
  var build = (options) => ensureServiceIsRunning().build(options);
1930
1930
  var serve = (serveOptions, buildOptions) => ensureServiceIsRunning().serve(serveOptions, buildOptions);
1931
1931
  var transform = (input, options) => ensureServiceIsRunning().transform(input, options);
@@ -2034,7 +2034,7 @@ var ensureServiceIsRunning = () => {
2034
2034
  if (longLivedService)
2035
2035
  return longLivedService;
2036
2036
  let [command, args] = esbuildCommandAndArgs();
2037
- let child = child_process.spawn(command, args.concat(`--service=${"0.14.24"}`, "--ping"), {
2037
+ let child = child_process.spawn(command, args.concat(`--service=${"0.14.25"}`, "--ping"), {
2038
2038
  windowsHide: true,
2039
2039
  stdio: ["pipe", "pipe", "inherit"],
2040
2040
  cwd: defaultWD
@@ -2147,7 +2147,7 @@ var runServiceSync = (callback) => {
2147
2147
  esbuild: node_exports
2148
2148
  });
2149
2149
  callback(service);
2150
- let stdout = child_process.execFileSync(command, args.concat(`--service=${"0.14.24"}`), {
2150
+ let stdout = child_process.execFileSync(command, args.concat(`--service=${"0.14.25"}`), {
2151
2151
  cwd: defaultWD,
2152
2152
  windowsHide: true,
2153
2153
  input: stdin,
@@ -2163,7 +2163,7 @@ var workerThreadService = null;
2163
2163
  var startWorkerThreadService = (worker_threads2) => {
2164
2164
  let { port1: mainPort, port2: workerPort } = new worker_threads2.MessageChannel();
2165
2165
  let worker = new worker_threads2.Worker(__filename, {
2166
- workerData: { workerPort, defaultWD, esbuildVersion: "0.14.24" },
2166
+ workerData: { workerPort, defaultWD, esbuildVersion: "0.14.25" },
2167
2167
  transferList: [workerPort],
2168
2168
  execArgv: []
2169
2169
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "esbuild",
3
- "version": "0.14.24",
3
+ "version": "0.14.25",
4
4
  "description": "An extremely fast JavaScript and CSS bundler and minifier.",
5
5
  "repository": "https://github.com/evanw/esbuild",
6
6
  "scripts": {
@@ -15,26 +15,26 @@
15
15
  "esbuild": "bin/esbuild"
16
16
  },
17
17
  "optionalDependencies": {
18
- "esbuild-android-64": "0.14.24",
19
- "esbuild-android-arm64": "0.14.24",
20
- "esbuild-darwin-64": "0.14.24",
21
- "esbuild-darwin-arm64": "0.14.24",
22
- "esbuild-freebsd-64": "0.14.24",
23
- "esbuild-freebsd-arm64": "0.14.24",
24
- "esbuild-linux-32": "0.14.24",
25
- "esbuild-linux-64": "0.14.24",
26
- "esbuild-linux-arm": "0.14.24",
27
- "esbuild-linux-arm64": "0.14.24",
28
- "esbuild-linux-mips64le": "0.14.24",
29
- "esbuild-linux-ppc64le": "0.14.24",
30
- "esbuild-linux-riscv64": "0.14.24",
31
- "esbuild-linux-s390x": "0.14.24",
32
- "esbuild-netbsd-64": "0.14.24",
33
- "esbuild-openbsd-64": "0.14.24",
34
- "esbuild-sunos-64": "0.14.24",
35
- "esbuild-windows-32": "0.14.24",
36
- "esbuild-windows-64": "0.14.24",
37
- "esbuild-windows-arm64": "0.14.24"
18
+ "esbuild-android-64": "0.14.25",
19
+ "esbuild-android-arm64": "0.14.25",
20
+ "esbuild-darwin-64": "0.14.25",
21
+ "esbuild-darwin-arm64": "0.14.25",
22
+ "esbuild-freebsd-64": "0.14.25",
23
+ "esbuild-freebsd-arm64": "0.14.25",
24
+ "esbuild-linux-32": "0.14.25",
25
+ "esbuild-linux-64": "0.14.25",
26
+ "esbuild-linux-arm": "0.14.25",
27
+ "esbuild-linux-arm64": "0.14.25",
28
+ "esbuild-linux-mips64le": "0.14.25",
29
+ "esbuild-linux-ppc64le": "0.14.25",
30
+ "esbuild-linux-riscv64": "0.14.25",
31
+ "esbuild-linux-s390x": "0.14.25",
32
+ "esbuild-netbsd-64": "0.14.25",
33
+ "esbuild-openbsd-64": "0.14.25",
34
+ "esbuild-sunos-64": "0.14.25",
35
+ "esbuild-windows-32": "0.14.25",
36
+ "esbuild-windows-64": "0.14.25",
37
+ "esbuild-windows-arm64": "0.14.25"
38
38
  },
39
39
  "license": "MIT"
40
40
  }