esbuild 0.14.10 → 0.14.11

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/install.js CHANGED
@@ -93,8 +93,8 @@ var isToPathJS = true;
93
93
  function validateBinaryVersion(...command) {
94
94
  command.push("--version");
95
95
  const stdout = child_process.execFileSync(command.shift(), command).toString().trim();
96
- if (stdout !== "0.14.10") {
97
- throw new Error(`Expected ${JSON.stringify("0.14.10")} but got ${JSON.stringify(stdout)}`);
96
+ if (stdout !== "0.14.11") {
97
+ throw new Error(`Expected ${JSON.stringify("0.14.11")} but got ${JSON.stringify(stdout)}`);
98
98
  }
99
99
  }
100
100
  function isYarn() {
@@ -145,7 +145,7 @@ function installUsingNPM(pkg, subpath, binPath) {
145
145
  fs2.mkdirSync(installDir);
146
146
  try {
147
147
  fs2.writeFileSync(path2.join(installDir, "package.json"), "{}");
148
- child_process.execSync(`npm install --loglevel=error --prefer-offline --no-audit --progress=false ${pkg}@${"0.14.10"}`, { cwd: installDir, stdio: "pipe", env });
148
+ child_process.execSync(`npm install --loglevel=error --prefer-offline --no-audit --progress=false ${pkg}@${"0.14.11"}`, { cwd: installDir, stdio: "pipe", env });
149
149
  const installedBinPath = path2.join(installDir, "node_modules", pkg, subpath);
150
150
  fs2.renameSync(installedBinPath, binPath);
151
151
  } finally {
@@ -194,7 +194,7 @@ function maybeOptimizePackage(binPath) {
194
194
  }
195
195
  }
196
196
  async function downloadDirectlyFromNPM(pkg, subpath, binPath) {
197
- const url = `https://registry.npmjs.org/${pkg}/-/${pkg}-${"0.14.10"}.tgz`;
197
+ const url = `https://registry.npmjs.org/${pkg}/-/${pkg}-${"0.14.11"}.tgz`;
198
198
  console.error(`[esbuild] Trying to download ${JSON.stringify(url)}`);
199
199
  try {
200
200
  fs2.writeFileSync(binPath, extractFileFromTarGzip(await fetch(url), subpath));
package/lib/main.d.ts CHANGED
@@ -449,7 +449,9 @@ export interface AnalyzeMetafileOptions {
449
449
  * Documentation: https://esbuild.github.io/api/#build-api
450
450
  */
451
451
  export declare function build(options: BuildOptions & { write: false }): Promise<BuildResult & { outputFiles: OutputFile[] }>;
452
+ export declare function build(options: BuildOptions & { incremental: true, metafile: true }): Promise<BuildIncremental & { metafile: Metafile }>;
452
453
  export declare function build(options: BuildOptions & { incremental: true }): Promise<BuildIncremental>;
454
+ export declare function build(options: BuildOptions & { metafile: true }): Promise<BuildResult & { metafile: Metafile }>;
453
455
  export declare function build(options: BuildOptions): Promise<BuildResult>;
454
456
 
455
457
  /**
package/lib/main.js CHANGED
@@ -717,8 +717,8 @@ function createChannel(streamIn) {
717
717
  if (isFirstPacket) {
718
718
  isFirstPacket = false;
719
719
  let binaryVersion = String.fromCharCode(...bytes);
720
- if (binaryVersion !== "0.14.10") {
721
- throw new Error(`Cannot start service: Host version "${"0.14.10"}" does not match binary version ${JSON.stringify(binaryVersion)}`);
720
+ if (binaryVersion !== "0.14.11") {
721
+ throw new Error(`Cannot start service: Host version "${"0.14.11"}" does not match binary version ${JSON.stringify(binaryVersion)}`);
722
722
  }
723
723
  return;
724
724
  }
@@ -1751,7 +1751,7 @@ if (process.env.ESBUILD_WORKER_THREADS !== "0") {
1751
1751
  }
1752
1752
  }
1753
1753
  var _a;
1754
- var isInternalWorkerThread = ((_a = worker_threads == null ? void 0 : worker_threads.workerData) == null ? void 0 : _a.esbuildVersion) === "0.14.10";
1754
+ var isInternalWorkerThread = ((_a = worker_threads == null ? void 0 : worker_threads.workerData) == null ? void 0 : _a.esbuildVersion) === "0.14.11";
1755
1755
  var esbuildCommandAndArgs = () => {
1756
1756
  if ((!ESBUILD_BINARY_PATH || false) && (path2.basename(__filename) !== "main.js" || path2.basename(__dirname) !== "lib")) {
1757
1757
  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.
@@ -1810,7 +1810,7 @@ var fsAsync = {
1810
1810
  }
1811
1811
  }
1812
1812
  };
1813
- var version = "0.14.10";
1813
+ var version = "0.14.11";
1814
1814
  var build = (options) => ensureServiceIsRunning().build(options);
1815
1815
  var serve = (serveOptions, buildOptions) => ensureServiceIsRunning().serve(serveOptions, buildOptions);
1816
1816
  var transform = (input, options) => ensureServiceIsRunning().transform(input, options);
@@ -1919,7 +1919,7 @@ var ensureServiceIsRunning = () => {
1919
1919
  if (longLivedService)
1920
1920
  return longLivedService;
1921
1921
  let [command, args] = esbuildCommandAndArgs();
1922
- let child = child_process.spawn(command, args.concat(`--service=${"0.14.10"}`, "--ping"), {
1922
+ let child = child_process.spawn(command, args.concat(`--service=${"0.14.11"}`, "--ping"), {
1923
1923
  windowsHide: true,
1924
1924
  stdio: ["pipe", "pipe", "inherit"],
1925
1925
  cwd: defaultWD
@@ -2028,7 +2028,7 @@ var runServiceSync = (callback) => {
2028
2028
  esbuild: node_exports
2029
2029
  });
2030
2030
  callback(service);
2031
- let stdout = child_process.execFileSync(command, args.concat(`--service=${"0.14.10"}`), {
2031
+ let stdout = child_process.execFileSync(command, args.concat(`--service=${"0.14.11"}`), {
2032
2032
  cwd: defaultWD,
2033
2033
  windowsHide: true,
2034
2034
  input: stdin,
@@ -2044,7 +2044,7 @@ var workerThreadService = null;
2044
2044
  var startWorkerThreadService = (worker_threads2) => {
2045
2045
  let { port1: mainPort, port2: workerPort } = new worker_threads2.MessageChannel();
2046
2046
  let worker = new worker_threads2.Worker(__filename, {
2047
- workerData: { workerPort, defaultWD, esbuildVersion: "0.14.10" },
2047
+ workerData: { workerPort, defaultWD, esbuildVersion: "0.14.11" },
2048
2048
  transferList: [workerPort],
2049
2049
  execArgv: []
2050
2050
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "esbuild",
3
- "version": "0.14.10",
3
+ "version": "0.14.11",
4
4
  "description": "An extremely fast JavaScript and CSS bundler and minifier.",
5
5
  "repository": "https://github.com/evanw/esbuild",
6
6
  "scripts": {
@@ -12,24 +12,24 @@
12
12
  "esbuild": "bin/esbuild"
13
13
  },
14
14
  "optionalDependencies": {
15
- "esbuild-android-arm64": "0.14.10",
16
- "esbuild-darwin-64": "0.14.10",
17
- "esbuild-darwin-arm64": "0.14.10",
18
- "esbuild-freebsd-64": "0.14.10",
19
- "esbuild-freebsd-arm64": "0.14.10",
20
- "esbuild-linux-32": "0.14.10",
21
- "esbuild-linux-64": "0.14.10",
22
- "esbuild-linux-arm": "0.14.10",
23
- "esbuild-linux-arm64": "0.14.10",
24
- "esbuild-linux-mips64le": "0.14.10",
25
- "esbuild-linux-ppc64le": "0.14.10",
26
- "esbuild-linux-s390x": "0.14.10",
27
- "esbuild-netbsd-64": "0.14.10",
28
- "esbuild-openbsd-64": "0.14.10",
29
- "esbuild-sunos-64": "0.14.10",
30
- "esbuild-windows-32": "0.14.10",
31
- "esbuild-windows-64": "0.14.10",
32
- "esbuild-windows-arm64": "0.14.10"
15
+ "esbuild-android-arm64": "0.14.11",
16
+ "esbuild-darwin-64": "0.14.11",
17
+ "esbuild-darwin-arm64": "0.14.11",
18
+ "esbuild-freebsd-64": "0.14.11",
19
+ "esbuild-freebsd-arm64": "0.14.11",
20
+ "esbuild-linux-32": "0.14.11",
21
+ "esbuild-linux-64": "0.14.11",
22
+ "esbuild-linux-arm": "0.14.11",
23
+ "esbuild-linux-arm64": "0.14.11",
24
+ "esbuild-linux-mips64le": "0.14.11",
25
+ "esbuild-linux-ppc64le": "0.14.11",
26
+ "esbuild-linux-s390x": "0.14.11",
27
+ "esbuild-netbsd-64": "0.14.11",
28
+ "esbuild-openbsd-64": "0.14.11",
29
+ "esbuild-sunos-64": "0.14.11",
30
+ "esbuild-windows-32": "0.14.11",
31
+ "esbuild-windows-64": "0.14.11",
32
+ "esbuild-windows-arm64": "0.14.11"
33
33
  },
34
34
  "license": "MIT"
35
35
  }