esbuild 0.12.20 → 0.12.24

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
@@ -23,7 +23,7 @@ const path = require("path");
23
23
  const zlib = require("zlib");
24
24
  const https = require("https");
25
25
  const child_process = require("child_process");
26
- const version = "0.12.20";
26
+ const version = "0.12.24";
27
27
  const binPath = path.join(__dirname, "bin", "esbuild");
28
28
  async function installBinaryFromPackage(name, fromPath, toPath) {
29
29
  const cachePath = getCachePath(name);
@@ -229,6 +229,7 @@ function installOnWindows(name) {
229
229
  }
230
230
  const platformKey = `${process.platform} ${os.arch()} ${os.endianness()}`;
231
231
  const knownWindowsPackages = {
232
+ "win32 arm64 LE": "esbuild-windows-arm64",
232
233
  "win32 ia32 LE": "esbuild-windows-32",
233
234
  "win32 x64 LE": "esbuild-windows-64"
234
235
  };
package/lib/main.js CHANGED
@@ -689,8 +689,8 @@ function createChannel(streamIn) {
689
689
  if (isFirstPacket) {
690
690
  isFirstPacket = false;
691
691
  let binaryVersion = String.fromCharCode(...bytes);
692
- if (binaryVersion !== "0.12.20") {
693
- throw new Error(`Cannot start service: Host version "${"0.12.20"}" does not match binary version ${JSON.stringify(binaryVersion)}`);
692
+ if (binaryVersion !== "0.12.24") {
693
+ throw new Error(`Cannot start service: Host version "${"0.12.24"}" does not match binary version ${JSON.stringify(binaryVersion)}`);
694
694
  }
695
695
  return;
696
696
  }
@@ -1210,6 +1210,8 @@ function createChannel(streamIn) {
1210
1210
  throw new Error(`Cannot enable "write" in the browser`);
1211
1211
  if (incremental && streamIn.isSync)
1212
1212
  throw new Error(`Cannot use "incremental" with a synchronous build`);
1213
+ if (watch && streamIn.isSync)
1214
+ throw new Error(`Cannot use "watch" with a synchronous build`);
1213
1215
  sendRequest(refs, request, (error, response) => {
1214
1216
  if (error)
1215
1217
  return callback(new Error(error), null);
@@ -1556,7 +1558,7 @@ if (process.env.ESBUILD_WORKER_THREADS !== "0") {
1556
1558
  }
1557
1559
  }
1558
1560
  var _a;
1559
- var isInternalWorkerThread = ((_a = worker_threads == null ? void 0 : worker_threads.workerData) == null ? void 0 : _a.esbuildVersion) === "0.12.20";
1561
+ var isInternalWorkerThread = ((_a = worker_threads == null ? void 0 : worker_threads.workerData) == null ? void 0 : _a.esbuildVersion) === "0.12.24";
1560
1562
  var esbuildCommandAndArgs = () => {
1561
1563
  if (process.env.ESBUILD_BINARY_PATH) {
1562
1564
  return [path.resolve(process.env.ESBUILD_BINARY_PATH), []];
@@ -1625,7 +1627,7 @@ var fsAsync = {
1625
1627
  }
1626
1628
  }
1627
1629
  };
1628
- var version = "0.12.20";
1630
+ var version = "0.12.24";
1629
1631
  var build = (options) => ensureServiceIsRunning().build(options);
1630
1632
  var serve = (serveOptions, buildOptions) => ensureServiceIsRunning().serve(serveOptions, buildOptions);
1631
1633
  var transform = (input, options) => ensureServiceIsRunning().transform(input, options);
@@ -1713,7 +1715,7 @@ var ensureServiceIsRunning = () => {
1713
1715
  if (longLivedService)
1714
1716
  return longLivedService;
1715
1717
  let [command, args] = esbuildCommandAndArgs();
1716
- let child = child_process.spawn(command, args.concat(`--service=${"0.12.20"}`, "--ping"), {
1718
+ let child = child_process.spawn(command, args.concat(`--service=${"0.12.24"}`, "--ping"), {
1717
1719
  windowsHide: true,
1718
1720
  stdio: ["pipe", "pipe", "inherit"],
1719
1721
  cwd: defaultWD
@@ -1811,7 +1813,7 @@ var runServiceSync = (callback) => {
1811
1813
  isBrowser: false
1812
1814
  });
1813
1815
  callback(service);
1814
- let stdout = child_process.execFileSync(command, args.concat(`--service=${"0.12.20"}`), {
1816
+ let stdout = child_process.execFileSync(command, args.concat(`--service=${"0.12.24"}`), {
1815
1817
  cwd: defaultWD,
1816
1818
  windowsHide: true,
1817
1819
  input: stdin,
@@ -1827,7 +1829,7 @@ var workerThreadService = null;
1827
1829
  var startWorkerThreadService = (worker_threads2) => {
1828
1830
  let { port1: mainPort, port2: workerPort } = new worker_threads2.MessageChannel();
1829
1831
  let worker = new worker_threads2.Worker(__filename, {
1830
- workerData: { workerPort, defaultWD, esbuildVersion: "0.12.20" },
1832
+ workerData: { workerPort, defaultWD, esbuildVersion: "0.12.24" },
1831
1833
  transferList: [workerPort],
1832
1834
  execArgv: []
1833
1835
  });
@@ -1846,10 +1848,13 @@ error: ${text}`);
1846
1848
  return;
1847
1849
  let plugins = options.plugins;
1848
1850
  let incremental = options.incremental;
1851
+ let watch = options.watch;
1849
1852
  if (plugins && plugins.length > 0)
1850
1853
  throw fakeBuildError(`Cannot use plugins in synchronous API calls`);
1851
1854
  if (incremental)
1852
1855
  throw fakeBuildError(`Cannot use "incremental" with a synchronous build`);
1856
+ if (watch)
1857
+ throw fakeBuildError(`Cannot use "watch" with a synchronous build`);
1853
1858
  };
1854
1859
  let applyProperties = (object, properties) => {
1855
1860
  for (let key in properties) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "esbuild",
3
- "version": "0.12.20",
3
+ "version": "0.12.24",
4
4
  "description": "An extremely fast JavaScript bundler and minifier.",
5
5
  "repository": "https://github.com/evanw/esbuild",
6
6
  "scripts": {