esbuild 0.14.18 → 0.14.19

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 +19 -19
package/install.js CHANGED
@@ -95,8 +95,8 @@ function validateBinaryVersion(...command) {
95
95
  const stdout = child_process.execFileSync(command.shift(), command, {
96
96
  stdio: "pipe"
97
97
  }).toString().trim();
98
- if (stdout !== "0.14.18") {
99
- throw new Error(`Expected ${JSON.stringify("0.14.18")} but got ${JSON.stringify(stdout)}`);
98
+ if (stdout !== "0.14.19") {
99
+ throw new Error(`Expected ${JSON.stringify("0.14.19")} but got ${JSON.stringify(stdout)}`);
100
100
  }
101
101
  }
102
102
  function isYarn() {
@@ -147,7 +147,7 @@ function installUsingNPM(pkg, subpath, binPath) {
147
147
  fs2.mkdirSync(installDir);
148
148
  try {
149
149
  fs2.writeFileSync(path2.join(installDir, "package.json"), "{}");
150
- child_process.execSync(`npm install --loglevel=error --prefer-offline --no-audit --progress=false ${pkg}@${"0.14.18"}`, { cwd: installDir, stdio: "pipe", env });
150
+ child_process.execSync(`npm install --loglevel=error --prefer-offline --no-audit --progress=false ${pkg}@${"0.14.19"}`, { cwd: installDir, stdio: "pipe", env });
151
151
  const installedBinPath = path2.join(installDir, "node_modules", pkg, subpath);
152
152
  fs2.renameSync(installedBinPath, binPath);
153
153
  } finally {
@@ -196,7 +196,7 @@ function maybeOptimizePackage(binPath) {
196
196
  }
197
197
  }
198
198
  async function downloadDirectlyFromNPM(pkg, subpath, binPath) {
199
- const url = `https://registry.npmjs.org/${pkg}/-/${pkg}-${"0.14.18"}.tgz`;
199
+ const url = `https://registry.npmjs.org/${pkg}/-/${pkg}-${"0.14.19"}.tgz`;
200
200
  console.error(`[esbuild] Trying to download ${JSON.stringify(url)}`);
201
201
  try {
202
202
  fs2.writeFileSync(binPath, extractFileFromTarGzip(await fetch(url), subpath));
package/lib/main.js CHANGED
@@ -744,8 +744,8 @@ function createChannel(streamIn) {
744
744
  if (isFirstPacket) {
745
745
  isFirstPacket = false;
746
746
  let binaryVersion = String.fromCharCode(...bytes);
747
- if (binaryVersion !== "0.14.18") {
748
- throw new Error(`Cannot start service: Host version "${"0.14.18"}" does not match binary version ${JSON.stringify(binaryVersion)}`);
747
+ if (binaryVersion !== "0.14.19") {
748
+ throw new Error(`Cannot start service: Host version "${"0.14.19"}" does not match binary version ${JSON.stringify(binaryVersion)}`);
749
749
  }
750
750
  return;
751
751
  }
@@ -1848,7 +1848,7 @@ if (process.env.ESBUILD_WORKER_THREADS !== "0") {
1848
1848
  }
1849
1849
  }
1850
1850
  var _a;
1851
- var isInternalWorkerThread = ((_a = worker_threads == null ? void 0 : worker_threads.workerData) == null ? void 0 : _a.esbuildVersion) === "0.14.18";
1851
+ var isInternalWorkerThread = ((_a = worker_threads == null ? void 0 : worker_threads.workerData) == null ? void 0 : _a.esbuildVersion) === "0.14.19";
1852
1852
  var esbuildCommandAndArgs = () => {
1853
1853
  if ((!ESBUILD_BINARY_PATH || false) && (path2.basename(__filename) !== "main.js" || path2.basename(__dirname) !== "lib")) {
1854
1854
  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.
@@ -1907,7 +1907,7 @@ var fsAsync = {
1907
1907
  }
1908
1908
  }
1909
1909
  };
1910
- var version = "0.14.18";
1910
+ var version = "0.14.19";
1911
1911
  var build = (options) => ensureServiceIsRunning().build(options);
1912
1912
  var serve = (serveOptions, buildOptions) => ensureServiceIsRunning().serve(serveOptions, buildOptions);
1913
1913
  var transform = (input, options) => ensureServiceIsRunning().transform(input, options);
@@ -2016,7 +2016,7 @@ var ensureServiceIsRunning = () => {
2016
2016
  if (longLivedService)
2017
2017
  return longLivedService;
2018
2018
  let [command, args] = esbuildCommandAndArgs();
2019
- let child = child_process.spawn(command, args.concat(`--service=${"0.14.18"}`, "--ping"), {
2019
+ let child = child_process.spawn(command, args.concat(`--service=${"0.14.19"}`, "--ping"), {
2020
2020
  windowsHide: true,
2021
2021
  stdio: ["pipe", "pipe", "inherit"],
2022
2022
  cwd: defaultWD
@@ -2125,7 +2125,7 @@ var runServiceSync = (callback) => {
2125
2125
  esbuild: node_exports
2126
2126
  });
2127
2127
  callback(service);
2128
- let stdout = child_process.execFileSync(command, args.concat(`--service=${"0.14.18"}`), {
2128
+ let stdout = child_process.execFileSync(command, args.concat(`--service=${"0.14.19"}`), {
2129
2129
  cwd: defaultWD,
2130
2130
  windowsHide: true,
2131
2131
  input: stdin,
@@ -2141,7 +2141,7 @@ var workerThreadService = null;
2141
2141
  var startWorkerThreadService = (worker_threads2) => {
2142
2142
  let { port1: mainPort, port2: workerPort } = new worker_threads2.MessageChannel();
2143
2143
  let worker = new worker_threads2.Worker(__filename, {
2144
- workerData: { workerPort, defaultWD, esbuildVersion: "0.14.18" },
2144
+ workerData: { workerPort, defaultWD, esbuildVersion: "0.14.19" },
2145
2145
  transferList: [workerPort],
2146
2146
  execArgv: []
2147
2147
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "esbuild",
3
- "version": "0.14.18",
3
+ "version": "0.14.19",
4
4
  "description": "An extremely fast JavaScript and CSS bundler and minifier.",
5
5
  "repository": "https://github.com/evanw/esbuild",
6
6
  "scripts": {
@@ -15,24 +15,24 @@
15
15
  "esbuild": "bin/esbuild"
16
16
  },
17
17
  "optionalDependencies": {
18
- "esbuild-android-arm64": "0.14.18",
19
- "esbuild-darwin-64": "0.14.18",
20
- "esbuild-darwin-arm64": "0.14.18",
21
- "esbuild-freebsd-64": "0.14.18",
22
- "esbuild-freebsd-arm64": "0.14.18",
23
- "esbuild-linux-32": "0.14.18",
24
- "esbuild-linux-64": "0.14.18",
25
- "esbuild-linux-arm": "0.14.18",
26
- "esbuild-linux-arm64": "0.14.18",
27
- "esbuild-linux-mips64le": "0.14.18",
28
- "esbuild-linux-ppc64le": "0.14.18",
29
- "esbuild-linux-s390x": "0.14.18",
30
- "esbuild-netbsd-64": "0.14.18",
31
- "esbuild-openbsd-64": "0.14.18",
32
- "esbuild-sunos-64": "0.14.18",
33
- "esbuild-windows-32": "0.14.18",
34
- "esbuild-windows-64": "0.14.18",
35
- "esbuild-windows-arm64": "0.14.18"
18
+ "esbuild-android-arm64": "0.14.19",
19
+ "esbuild-darwin-64": "0.14.19",
20
+ "esbuild-darwin-arm64": "0.14.19",
21
+ "esbuild-freebsd-64": "0.14.19",
22
+ "esbuild-freebsd-arm64": "0.14.19",
23
+ "esbuild-linux-32": "0.14.19",
24
+ "esbuild-linux-64": "0.14.19",
25
+ "esbuild-linux-arm": "0.14.19",
26
+ "esbuild-linux-arm64": "0.14.19",
27
+ "esbuild-linux-mips64le": "0.14.19",
28
+ "esbuild-linux-ppc64le": "0.14.19",
29
+ "esbuild-linux-s390x": "0.14.19",
30
+ "esbuild-netbsd-64": "0.14.19",
31
+ "esbuild-openbsd-64": "0.14.19",
32
+ "esbuild-sunos-64": "0.14.19",
33
+ "esbuild-windows-32": "0.14.19",
34
+ "esbuild-windows-64": "0.14.19",
35
+ "esbuild-windows-arm64": "0.14.19"
36
36
  },
37
37
  "license": "MIT"
38
38
  }