esbuild 0.18.13 → 0.18.14

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
@@ -199,7 +199,7 @@ for your current platform.`);
199
199
  "node_modules",
200
200
  ".cache",
201
201
  "esbuild",
202
- `pnpapi-${pkg.replace("/", "-")}-${"0.18.13"}-${path.basename(subpath)}`
202
+ `pnpapi-${pkg.replace("/", "-")}-${"0.18.14"}-${path.basename(subpath)}`
203
203
  );
204
204
  if (!fs.existsSync(binTargetPath)) {
205
205
  fs.mkdirSync(path.dirname(binTargetPath), { recursive: true });
package/lib/main.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  export type Platform = 'browser' | 'node' | 'neutral'
2
2
  export type Format = 'iife' | 'cjs' | 'esm'
3
- export type Loader = 'base64' | 'binary' | 'copy' | 'css' | 'dataurl' | 'default' | 'empty' | 'file' | 'js' | 'json' | 'jsx' | 'text' | 'ts' | 'tsx'
3
+ export type Loader = 'base64' | 'binary' | 'copy' | 'css' | 'dataurl' | 'default' | 'empty' | 'file' | 'js' | 'json' | 'jsx' | 'local-css' | 'text' | 'ts' | 'tsx'
4
4
  export type LogLevel = 'verbose' | 'debug' | 'info' | 'warning' | 'error' | 'silent'
5
5
  export type Charset = 'ascii' | 'utf8'
6
6
  export type Drop = 'console' | 'debugger'
package/lib/main.js CHANGED
@@ -745,8 +745,8 @@ function createChannel(streamIn) {
745
745
  if (isFirstPacket) {
746
746
  isFirstPacket = false;
747
747
  let binaryVersion = String.fromCharCode(...bytes);
748
- if (binaryVersion !== "0.18.13") {
749
- throw new Error(`Cannot start service: Host version "${"0.18.13"}" does not match binary version ${quote(binaryVersion)}`);
748
+ if (binaryVersion !== "0.18.14") {
749
+ throw new Error(`Cannot start service: Host version "${"0.18.14"}" does not match binary version ${quote(binaryVersion)}`);
750
750
  }
751
751
  return;
752
752
  }
@@ -1915,7 +1915,7 @@ for your current platform.`);
1915
1915
  "node_modules",
1916
1916
  ".cache",
1917
1917
  "esbuild",
1918
- `pnpapi-${pkg.replace("/", "-")}-${"0.18.13"}-${path.basename(subpath)}`
1918
+ `pnpapi-${pkg.replace("/", "-")}-${"0.18.14"}-${path.basename(subpath)}`
1919
1919
  );
1920
1920
  if (!fs.existsSync(binTargetPath)) {
1921
1921
  fs.mkdirSync(path.dirname(binTargetPath), { recursive: true });
@@ -1950,7 +1950,7 @@ if (process.env.ESBUILD_WORKER_THREADS !== "0") {
1950
1950
  }
1951
1951
  }
1952
1952
  var _a;
1953
- var isInternalWorkerThread = ((_a = worker_threads == null ? void 0 : worker_threads.workerData) == null ? void 0 : _a.esbuildVersion) === "0.18.13";
1953
+ var isInternalWorkerThread = ((_a = worker_threads == null ? void 0 : worker_threads.workerData) == null ? void 0 : _a.esbuildVersion) === "0.18.14";
1954
1954
  var esbuildCommandAndArgs = () => {
1955
1955
  if ((!ESBUILD_BINARY_PATH || false) && (path2.basename(__filename) !== "main.js" || path2.basename(__dirname) !== "lib")) {
1956
1956
  throw new Error(
@@ -2017,7 +2017,7 @@ var fsAsync = {
2017
2017
  }
2018
2018
  }
2019
2019
  };
2020
- var version = "0.18.13";
2020
+ var version = "0.18.14";
2021
2021
  var build = (options) => ensureServiceIsRunning().build(options);
2022
2022
  var context = (buildOptions) => ensureServiceIsRunning().context(buildOptions);
2023
2023
  var transform = (input, options) => ensureServiceIsRunning().transform(input, options);
@@ -2127,7 +2127,7 @@ var ensureServiceIsRunning = () => {
2127
2127
  if (longLivedService)
2128
2128
  return longLivedService;
2129
2129
  let [command, args] = esbuildCommandAndArgs();
2130
- let child = child_process.spawn(command, args.concat(`--service=${"0.18.13"}`, "--ping"), {
2130
+ let child = child_process.spawn(command, args.concat(`--service=${"0.18.14"}`, "--ping"), {
2131
2131
  windowsHide: true,
2132
2132
  stdio: ["pipe", "pipe", "inherit"],
2133
2133
  cwd: defaultWD
@@ -2227,7 +2227,7 @@ var runServiceSync = (callback) => {
2227
2227
  esbuild: node_exports
2228
2228
  });
2229
2229
  callback(service);
2230
- let stdout = child_process.execFileSync(command, args.concat(`--service=${"0.18.13"}`), {
2230
+ let stdout = child_process.execFileSync(command, args.concat(`--service=${"0.18.14"}`), {
2231
2231
  cwd: defaultWD,
2232
2232
  windowsHide: true,
2233
2233
  input: stdin,
@@ -2247,7 +2247,7 @@ var workerThreadService = null;
2247
2247
  var startWorkerThreadService = (worker_threads2) => {
2248
2248
  let { port1: mainPort, port2: workerPort } = new worker_threads2.MessageChannel();
2249
2249
  let worker = new worker_threads2.Worker(__filename, {
2250
- workerData: { workerPort, defaultWD, esbuildVersion: "0.18.13" },
2250
+ workerData: { workerPort, defaultWD, esbuildVersion: "0.18.14" },
2251
2251
  transferList: [workerPort],
2252
2252
  // From node's documentation: https://nodejs.org/api/worker_threads.html
2253
2253
  //
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "esbuild",
3
- "version": "0.18.13",
3
+ "version": "0.18.14",
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.18.13",
19
- "@esbuild/android-arm64": "0.18.13",
20
- "@esbuild/android-x64": "0.18.13",
21
- "@esbuild/darwin-arm64": "0.18.13",
22
- "@esbuild/darwin-x64": "0.18.13",
23
- "@esbuild/freebsd-arm64": "0.18.13",
24
- "@esbuild/freebsd-x64": "0.18.13",
25
- "@esbuild/linux-arm": "0.18.13",
26
- "@esbuild/linux-arm64": "0.18.13",
27
- "@esbuild/linux-ia32": "0.18.13",
28
- "@esbuild/linux-loong64": "0.18.13",
29
- "@esbuild/linux-mips64el": "0.18.13",
30
- "@esbuild/linux-ppc64": "0.18.13",
31
- "@esbuild/linux-riscv64": "0.18.13",
32
- "@esbuild/linux-s390x": "0.18.13",
33
- "@esbuild/linux-x64": "0.18.13",
34
- "@esbuild/netbsd-x64": "0.18.13",
35
- "@esbuild/openbsd-x64": "0.18.13",
36
- "@esbuild/sunos-x64": "0.18.13",
37
- "@esbuild/win32-arm64": "0.18.13",
38
- "@esbuild/win32-ia32": "0.18.13",
39
- "@esbuild/win32-x64": "0.18.13"
18
+ "@esbuild/android-arm": "0.18.14",
19
+ "@esbuild/android-arm64": "0.18.14",
20
+ "@esbuild/android-x64": "0.18.14",
21
+ "@esbuild/darwin-arm64": "0.18.14",
22
+ "@esbuild/darwin-x64": "0.18.14",
23
+ "@esbuild/freebsd-arm64": "0.18.14",
24
+ "@esbuild/freebsd-x64": "0.18.14",
25
+ "@esbuild/linux-arm": "0.18.14",
26
+ "@esbuild/linux-arm64": "0.18.14",
27
+ "@esbuild/linux-ia32": "0.18.14",
28
+ "@esbuild/linux-loong64": "0.18.14",
29
+ "@esbuild/linux-mips64el": "0.18.14",
30
+ "@esbuild/linux-ppc64": "0.18.14",
31
+ "@esbuild/linux-riscv64": "0.18.14",
32
+ "@esbuild/linux-s390x": "0.18.14",
33
+ "@esbuild/linux-x64": "0.18.14",
34
+ "@esbuild/netbsd-x64": "0.18.14",
35
+ "@esbuild/openbsd-x64": "0.18.14",
36
+ "@esbuild/sunos-x64": "0.18.14",
37
+ "@esbuild/win32-arm64": "0.18.14",
38
+ "@esbuild/win32-ia32": "0.18.14",
39
+ "@esbuild/win32-x64": "0.18.14"
40
40
  },
41
41
  "license": "MIT"
42
42
  }