esbuild 0.14.27 → 0.14.28

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.27") {
105
- throw new Error(`Expected ${JSON.stringify("0.14.27")} but got ${JSON.stringify(stdout)}`);
104
+ if (stdout !== "0.14.28") {
105
+ throw new Error(`Expected ${JSON.stringify("0.14.28")} 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.27"}`, { cwd: installDir, stdio: "pipe", env });
156
+ child_process.execSync(`npm install --loglevel=error --prefer-offline --no-audit --progress=false ${pkg}@${"0.14.28"}`, { 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.27"}.tgz`;
205
+ const url = `https://registry.npmjs.org/${pkg}/-/${pkg}-${"0.14.28"}.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
@@ -742,8 +742,8 @@ function createChannel(streamIn) {
742
742
  if (isFirstPacket) {
743
743
  isFirstPacket = false;
744
744
  let binaryVersion = String.fromCharCode(...bytes);
745
- if (binaryVersion !== "0.14.27") {
746
- throw new Error(`Cannot start service: Host version "${"0.14.27"}" does not match binary version ${JSON.stringify(binaryVersion)}`);
745
+ if (binaryVersion !== "0.14.28") {
746
+ throw new Error(`Cannot start service: Host version "${"0.14.28"}" does not match binary version ${JSON.stringify(binaryVersion)}`);
747
747
  }
748
748
  return;
749
749
  }
@@ -1855,7 +1855,7 @@ if (process.env.ESBUILD_WORKER_THREADS !== "0") {
1855
1855
  }
1856
1856
  }
1857
1857
  var _a;
1858
- var isInternalWorkerThread = ((_a = worker_threads == null ? void 0 : worker_threads.workerData) == null ? void 0 : _a.esbuildVersion) === "0.14.27";
1858
+ var isInternalWorkerThread = ((_a = worker_threads == null ? void 0 : worker_threads.workerData) == null ? void 0 : _a.esbuildVersion) === "0.14.28";
1859
1859
  var esbuildCommandAndArgs = () => {
1860
1860
  if ((!ESBUILD_BINARY_PATH || false) && (path2.basename(__filename) !== "main.js" || path2.basename(__dirname) !== "lib")) {
1861
1861
  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.
@@ -1919,7 +1919,7 @@ var fsAsync = {
1919
1919
  }
1920
1920
  }
1921
1921
  };
1922
- var version = "0.14.27";
1922
+ var version = "0.14.28";
1923
1923
  var build = (options) => ensureServiceIsRunning().build(options);
1924
1924
  var serve = (serveOptions, buildOptions) => ensureServiceIsRunning().serve(serveOptions, buildOptions);
1925
1925
  var transform = (input, options) => ensureServiceIsRunning().transform(input, options);
@@ -2028,7 +2028,7 @@ var ensureServiceIsRunning = () => {
2028
2028
  if (longLivedService)
2029
2029
  return longLivedService;
2030
2030
  let [command, args] = esbuildCommandAndArgs();
2031
- let child = child_process.spawn(command, args.concat(`--service=${"0.14.27"}`, "--ping"), {
2031
+ let child = child_process.spawn(command, args.concat(`--service=${"0.14.28"}`, "--ping"), {
2032
2032
  windowsHide: true,
2033
2033
  stdio: ["pipe", "pipe", "inherit"],
2034
2034
  cwd: defaultWD
@@ -2141,7 +2141,7 @@ var runServiceSync = (callback) => {
2141
2141
  esbuild: node_exports
2142
2142
  });
2143
2143
  callback(service);
2144
- let stdout = child_process.execFileSync(command, args.concat(`--service=${"0.14.27"}`), {
2144
+ let stdout = child_process.execFileSync(command, args.concat(`--service=${"0.14.28"}`), {
2145
2145
  cwd: defaultWD,
2146
2146
  windowsHide: true,
2147
2147
  input: stdin,
@@ -2157,7 +2157,7 @@ var workerThreadService = null;
2157
2157
  var startWorkerThreadService = (worker_threads2) => {
2158
2158
  let { port1: mainPort, port2: workerPort } = new worker_threads2.MessageChannel();
2159
2159
  let worker = new worker_threads2.Worker(__filename, {
2160
- workerData: { workerPort, defaultWD, esbuildVersion: "0.14.27" },
2160
+ workerData: { workerPort, defaultWD, esbuildVersion: "0.14.28" },
2161
2161
  transferList: [workerPort],
2162
2162
  execArgv: []
2163
2163
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "esbuild",
3
- "version": "0.14.27",
3
+ "version": "0.14.28",
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.27",
19
- "esbuild-android-arm64": "0.14.27",
20
- "esbuild-darwin-64": "0.14.27",
21
- "esbuild-darwin-arm64": "0.14.27",
22
- "esbuild-freebsd-64": "0.14.27",
23
- "esbuild-freebsd-arm64": "0.14.27",
24
- "esbuild-linux-32": "0.14.27",
25
- "esbuild-linux-64": "0.14.27",
26
- "esbuild-linux-arm": "0.14.27",
27
- "esbuild-linux-arm64": "0.14.27",
28
- "esbuild-linux-mips64le": "0.14.27",
29
- "esbuild-linux-ppc64le": "0.14.27",
30
- "esbuild-linux-riscv64": "0.14.27",
31
- "esbuild-linux-s390x": "0.14.27",
32
- "esbuild-netbsd-64": "0.14.27",
33
- "esbuild-openbsd-64": "0.14.27",
34
- "esbuild-sunos-64": "0.14.27",
35
- "esbuild-windows-32": "0.14.27",
36
- "esbuild-windows-64": "0.14.27",
37
- "esbuild-windows-arm64": "0.14.27"
18
+ "esbuild-android-64": "0.14.28",
19
+ "esbuild-android-arm64": "0.14.28",
20
+ "esbuild-darwin-64": "0.14.28",
21
+ "esbuild-darwin-arm64": "0.14.28",
22
+ "esbuild-freebsd-64": "0.14.28",
23
+ "esbuild-freebsd-arm64": "0.14.28",
24
+ "esbuild-linux-32": "0.14.28",
25
+ "esbuild-linux-64": "0.14.28",
26
+ "esbuild-linux-arm": "0.14.28",
27
+ "esbuild-linux-arm64": "0.14.28",
28
+ "esbuild-linux-mips64le": "0.14.28",
29
+ "esbuild-linux-ppc64le": "0.14.28",
30
+ "esbuild-linux-riscv64": "0.14.28",
31
+ "esbuild-linux-s390x": "0.14.28",
32
+ "esbuild-netbsd-64": "0.14.28",
33
+ "esbuild-openbsd-64": "0.14.28",
34
+ "esbuild-sunos-64": "0.14.28",
35
+ "esbuild-windows-32": "0.14.28",
36
+ "esbuild-windows-64": "0.14.28",
37
+ "esbuild-windows-arm64": "0.14.28"
38
38
  },
39
39
  "license": "MIT"
40
40
  }