esbuild 0.14.36 → 0.14.39

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