esbuild 0.17.3 → 0.17.5

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.
package/bin/esbuild CHANGED
@@ -198,7 +198,7 @@ for your current platform.`);
198
198
  "node_modules",
199
199
  ".cache",
200
200
  "esbuild",
201
- `pnpapi-${pkg.replace("/", "-")}-${"0.17.3"}-${path.basename(subpath)}`
201
+ `pnpapi-${pkg.replace("/", "-")}-${"0.17.5"}-${path.basename(subpath)}`
202
202
  );
203
203
  if (!fs.existsSync(binTargetPath)) {
204
204
  fs.mkdirSync(path.dirname(binTargetPath), { recursive: true });
package/install.js CHANGED
@@ -126,8 +126,8 @@ which means the "esbuild" binary executable can't be run. You can either:
126
126
  }
127
127
  throw err;
128
128
  }
129
- if (stdout !== "0.17.3") {
130
- throw new Error(`Expected ${JSON.stringify("0.17.3")} but got ${JSON.stringify(stdout)}`);
129
+ if (stdout !== "0.17.5") {
130
+ throw new Error(`Expected ${JSON.stringify("0.17.5")} but got ${JSON.stringify(stdout)}`);
131
131
  }
132
132
  }
133
133
  function isYarn() {
@@ -179,7 +179,7 @@ function installUsingNPM(pkg, subpath, binPath) {
179
179
  try {
180
180
  fs2.writeFileSync(path2.join(installDir, "package.json"), "{}");
181
181
  child_process.execSync(
182
- `npm install --loglevel=error --prefer-offline --no-audit --progress=false ${pkg}@${"0.17.3"}`,
182
+ `npm install --loglevel=error --prefer-offline --no-audit --progress=false ${pkg}@${"0.17.5"}`,
183
183
  { cwd: installDir, stdio: "pipe", env }
184
184
  );
185
185
  const installedBinPath = path2.join(installDir, "node_modules", pkg, subpath);
@@ -230,7 +230,7 @@ function maybeOptimizePackage(binPath) {
230
230
  }
231
231
  }
232
232
  async function downloadDirectlyFromNPM(pkg, subpath, binPath) {
233
- const url = `https://registry.npmjs.org/${pkg}/-/${pkg.replace("@esbuild/", "")}-${"0.17.3"}.tgz`;
233
+ const url = `https://registry.npmjs.org/${pkg}/-/${pkg.replace("@esbuild/", "")}-${"0.17.5"}.tgz`;
234
234
  console.error(`[esbuild] Trying to download ${JSON.stringify(url)}`);
235
235
  try {
236
236
  fs2.writeFileSync(binPath, extractFileFromTarGzip(await fetch(url), subpath));
package/lib/main.js CHANGED
@@ -735,8 +735,8 @@ function createChannel(streamIn) {
735
735
  if (isFirstPacket) {
736
736
  isFirstPacket = false;
737
737
  let binaryVersion = String.fromCharCode(...bytes);
738
- if (binaryVersion !== "0.17.3") {
739
- throw new Error(`Cannot start service: Host version "${"0.17.3"}" does not match binary version ${quote(binaryVersion)}`);
738
+ if (binaryVersion !== "0.17.5") {
739
+ throw new Error(`Cannot start service: Host version "${"0.17.5"}" does not match binary version ${quote(binaryVersion)}`);
740
740
  }
741
741
  return;
742
742
  }
@@ -1904,7 +1904,7 @@ for your current platform.`);
1904
1904
  "node_modules",
1905
1905
  ".cache",
1906
1906
  "esbuild",
1907
- `pnpapi-${pkg.replace("/", "-")}-${"0.17.3"}-${path.basename(subpath)}`
1907
+ `pnpapi-${pkg.replace("/", "-")}-${"0.17.5"}-${path.basename(subpath)}`
1908
1908
  );
1909
1909
  if (!fs.existsSync(binTargetPath)) {
1910
1910
  fs.mkdirSync(path.dirname(binTargetPath), { recursive: true });
@@ -1939,7 +1939,7 @@ if (process.env.ESBUILD_WORKER_THREADS !== "0") {
1939
1939
  }
1940
1940
  }
1941
1941
  var _a;
1942
- var isInternalWorkerThread = ((_a = worker_threads == null ? void 0 : worker_threads.workerData) == null ? void 0 : _a.esbuildVersion) === "0.17.3";
1942
+ var isInternalWorkerThread = ((_a = worker_threads == null ? void 0 : worker_threads.workerData) == null ? void 0 : _a.esbuildVersion) === "0.17.5";
1943
1943
  var esbuildCommandAndArgs = () => {
1944
1944
  if ((!ESBUILD_BINARY_PATH || false) && (path2.basename(__filename) !== "main.js" || path2.basename(__dirname) !== "lib")) {
1945
1945
  throw new Error(
@@ -2006,7 +2006,7 @@ var fsAsync = {
2006
2006
  }
2007
2007
  }
2008
2008
  };
2009
- var version = "0.17.3";
2009
+ var version = "0.17.5";
2010
2010
  var build = (options) => ensureServiceIsRunning().build(options);
2011
2011
  var context = (buildOptions) => ensureServiceIsRunning().context(buildOptions);
2012
2012
  var transform = (input, options) => ensureServiceIsRunning().transform(input, options);
@@ -2116,7 +2116,7 @@ var ensureServiceIsRunning = () => {
2116
2116
  if (longLivedService)
2117
2117
  return longLivedService;
2118
2118
  let [command, args] = esbuildCommandAndArgs();
2119
- let child = child_process.spawn(command, args.concat(`--service=${"0.17.3"}`, "--ping"), {
2119
+ let child = child_process.spawn(command, args.concat(`--service=${"0.17.5"}`, "--ping"), {
2120
2120
  windowsHide: true,
2121
2121
  stdio: ["pipe", "pipe", "inherit"],
2122
2122
  cwd: defaultWD
@@ -2216,7 +2216,7 @@ var runServiceSync = (callback) => {
2216
2216
  esbuild: node_exports
2217
2217
  });
2218
2218
  callback(service);
2219
- let stdout = child_process.execFileSync(command, args.concat(`--service=${"0.17.3"}`), {
2219
+ let stdout = child_process.execFileSync(command, args.concat(`--service=${"0.17.5"}`), {
2220
2220
  cwd: defaultWD,
2221
2221
  windowsHide: true,
2222
2222
  input: stdin,
@@ -2236,7 +2236,7 @@ var workerThreadService = null;
2236
2236
  var startWorkerThreadService = (worker_threads2) => {
2237
2237
  let { port1: mainPort, port2: workerPort } = new worker_threads2.MessageChannel();
2238
2238
  let worker = new worker_threads2.Worker(__filename, {
2239
- workerData: { workerPort, defaultWD, esbuildVersion: "0.17.3" },
2239
+ workerData: { workerPort, defaultWD, esbuildVersion: "0.17.5" },
2240
2240
  transferList: [workerPort],
2241
2241
  // From node's documentation: https://nodejs.org/api/worker_threads.html
2242
2242
  //
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "esbuild",
3
- "version": "0.17.3",
3
+ "version": "0.17.5",
4
4
  "description": "An extremely fast JavaScript and CSS bundler and minifier.",
5
5
  "repository": "https://github.com/evanw/esbuild",
6
6
  "scripts": {
@@ -15,28 +15,28 @@
15
15
  "esbuild": "bin/esbuild"
16
16
  },
17
17
  "optionalDependencies": {
18
- "@esbuild/android-arm": "0.17.3",
19
- "@esbuild/android-arm64": "0.17.3",
20
- "@esbuild/android-x64": "0.17.3",
21
- "@esbuild/darwin-arm64": "0.17.3",
22
- "@esbuild/darwin-x64": "0.17.3",
23
- "@esbuild/freebsd-arm64": "0.17.3",
24
- "@esbuild/freebsd-x64": "0.17.3",
25
- "@esbuild/linux-arm": "0.17.3",
26
- "@esbuild/linux-arm64": "0.17.3",
27
- "@esbuild/linux-ia32": "0.17.3",
28
- "@esbuild/linux-loong64": "0.17.3",
29
- "@esbuild/linux-mips64el": "0.17.3",
30
- "@esbuild/linux-ppc64": "0.17.3",
31
- "@esbuild/linux-riscv64": "0.17.3",
32
- "@esbuild/linux-s390x": "0.17.3",
33
- "@esbuild/linux-x64": "0.17.3",
34
- "@esbuild/netbsd-x64": "0.17.3",
35
- "@esbuild/openbsd-x64": "0.17.3",
36
- "@esbuild/sunos-x64": "0.17.3",
37
- "@esbuild/win32-arm64": "0.17.3",
38
- "@esbuild/win32-ia32": "0.17.3",
39
- "@esbuild/win32-x64": "0.17.3"
18
+ "@esbuild/android-arm": "0.17.5",
19
+ "@esbuild/android-arm64": "0.17.5",
20
+ "@esbuild/android-x64": "0.17.5",
21
+ "@esbuild/darwin-arm64": "0.17.5",
22
+ "@esbuild/darwin-x64": "0.17.5",
23
+ "@esbuild/freebsd-arm64": "0.17.5",
24
+ "@esbuild/freebsd-x64": "0.17.5",
25
+ "@esbuild/linux-arm": "0.17.5",
26
+ "@esbuild/linux-arm64": "0.17.5",
27
+ "@esbuild/linux-ia32": "0.17.5",
28
+ "@esbuild/linux-loong64": "0.17.5",
29
+ "@esbuild/linux-mips64el": "0.17.5",
30
+ "@esbuild/linux-ppc64": "0.17.5",
31
+ "@esbuild/linux-riscv64": "0.17.5",
32
+ "@esbuild/linux-s390x": "0.17.5",
33
+ "@esbuild/linux-x64": "0.17.5",
34
+ "@esbuild/netbsd-x64": "0.17.5",
35
+ "@esbuild/openbsd-x64": "0.17.5",
36
+ "@esbuild/sunos-x64": "0.17.5",
37
+ "@esbuild/win32-arm64": "0.17.5",
38
+ "@esbuild/win32-ia32": "0.17.5",
39
+ "@esbuild/win32-x64": "0.17.5"
40
40
  },
41
41
  "license": "MIT"
42
42
  }