esbuild 0.21.4 → 0.22.0

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
@@ -53,6 +53,7 @@ var knownUnixlikePackages = {
53
53
  "linux x64 LE": "@esbuild/linux-x64",
54
54
  "linux loong64 LE": "@esbuild/linux-loong64",
55
55
  "netbsd x64 LE": "@esbuild/netbsd-x64",
56
+ "openbsd arm64 LE": "@esbuild/openbsd-arm64",
56
57
  "openbsd x64 LE": "@esbuild/openbsd-x64",
57
58
  "sunos x64 LE": "@esbuild/sunos-x64"
58
59
  };
@@ -198,7 +199,7 @@ for your current platform.`);
198
199
  "node_modules",
199
200
  ".cache",
200
201
  "esbuild",
201
- `pnpapi-${pkg.replace("/", "-")}-${"0.21.4"}-${path.basename(subpath)}`
202
+ `pnpapi-${pkg.replace("/", "-")}-${"0.22.0"}-${path.basename(subpath)}`
202
203
  );
203
204
  if (!fs.existsSync(binTargetPath)) {
204
205
  fs.mkdirSync(path.dirname(binTargetPath), { recursive: true });
package/install.js CHANGED
@@ -50,6 +50,7 @@ var knownUnixlikePackages = {
50
50
  "linux x64 LE": "@esbuild/linux-x64",
51
51
  "linux loong64 LE": "@esbuild/linux-loong64",
52
52
  "netbsd x64 LE": "@esbuild/netbsd-x64",
53
+ "openbsd arm64 LE": "@esbuild/openbsd-arm64",
53
54
  "openbsd x64 LE": "@esbuild/openbsd-x64",
54
55
  "sunos x64 LE": "@esbuild/sunos-x64"
55
56
  };
package/lib/main.d.ts CHANGED
@@ -125,7 +125,7 @@ export interface BuildOptions extends CommonOptions {
125
125
  /** Documentation: https://esbuild.github.io/api/#external */
126
126
  external?: string[]
127
127
  /** Documentation: https://esbuild.github.io/api/#packages */
128
- packages?: 'external'
128
+ packages?: 'bundle' | 'external'
129
129
  /** Documentation: https://esbuild.github.io/api/#alias */
130
130
  alias?: Record<string, string>
131
131
  /** Documentation: https://esbuild.github.io/api/#loader */
package/lib/main.js CHANGED
@@ -662,8 +662,8 @@ function createChannel(streamIn) {
662
662
  if (isFirstPacket) {
663
663
  isFirstPacket = false;
664
664
  let binaryVersion = String.fromCharCode(...bytes);
665
- if (binaryVersion !== "0.21.4") {
666
- throw new Error(`Cannot start service: Host version "${"0.21.4"}" does not match binary version ${quote(binaryVersion)}`);
665
+ if (binaryVersion !== "0.22.0") {
666
+ throw new Error(`Cannot start service: Host version "${"0.22.0"}" does not match binary version ${quote(binaryVersion)}`);
667
667
  }
668
668
  return;
669
669
  }
@@ -1622,6 +1622,7 @@ var knownUnixlikePackages = {
1622
1622
  "linux x64 LE": "@esbuild/linux-x64",
1623
1623
  "linux loong64 LE": "@esbuild/linux-loong64",
1624
1624
  "netbsd x64 LE": "@esbuild/netbsd-x64",
1625
+ "openbsd arm64 LE": "@esbuild/openbsd-arm64",
1625
1626
  "openbsd x64 LE": "@esbuild/openbsd-x64",
1626
1627
  "sunos x64 LE": "@esbuild/sunos-x64"
1627
1628
  };
@@ -1767,7 +1768,7 @@ for your current platform.`);
1767
1768
  "node_modules",
1768
1769
  ".cache",
1769
1770
  "esbuild",
1770
- `pnpapi-${pkg.replace("/", "-")}-${"0.21.4"}-${path.basename(subpath)}`
1771
+ `pnpapi-${pkg.replace("/", "-")}-${"0.22.0"}-${path.basename(subpath)}`
1771
1772
  );
1772
1773
  if (!fs.existsSync(binTargetPath)) {
1773
1774
  fs.mkdirSync(path.dirname(binTargetPath), { recursive: true });
@@ -1802,7 +1803,7 @@ if (process.env.ESBUILD_WORKER_THREADS !== "0") {
1802
1803
  }
1803
1804
  }
1804
1805
  var _a;
1805
- var isInternalWorkerThread = ((_a = worker_threads == null ? void 0 : worker_threads.workerData) == null ? void 0 : _a.esbuildVersion) === "0.21.4";
1806
+ var isInternalWorkerThread = ((_a = worker_threads == null ? void 0 : worker_threads.workerData) == null ? void 0 : _a.esbuildVersion) === "0.22.0";
1806
1807
  var esbuildCommandAndArgs = () => {
1807
1808
  if ((!ESBUILD_BINARY_PATH || false) && (path2.basename(__filename) !== "main.js" || path2.basename(__dirname) !== "lib")) {
1808
1809
  throw new Error(
@@ -1869,7 +1870,7 @@ var fsAsync = {
1869
1870
  }
1870
1871
  }
1871
1872
  };
1872
- var version = "0.21.4";
1873
+ var version = "0.22.0";
1873
1874
  var build = (options) => ensureServiceIsRunning().build(options);
1874
1875
  var context = (buildOptions) => ensureServiceIsRunning().context(buildOptions);
1875
1876
  var transform = (input, options) => ensureServiceIsRunning().transform(input, options);
@@ -1972,7 +1973,7 @@ var stopService;
1972
1973
  var ensureServiceIsRunning = () => {
1973
1974
  if (longLivedService) return longLivedService;
1974
1975
  let [command, args] = esbuildCommandAndArgs();
1975
- let child = child_process.spawn(command, args.concat(`--service=${"0.21.4"}`, "--ping"), {
1976
+ let child = child_process.spawn(command, args.concat(`--service=${"0.22.0"}`, "--ping"), {
1976
1977
  windowsHide: true,
1977
1978
  stdio: ["pipe", "pipe", "inherit"],
1978
1979
  cwd: defaultWD
@@ -2076,7 +2077,7 @@ var runServiceSync = (callback) => {
2076
2077
  esbuild: node_exports
2077
2078
  });
2078
2079
  callback(service);
2079
- let stdout = child_process.execFileSync(command, args.concat(`--service=${"0.21.4"}`), {
2080
+ let stdout = child_process.execFileSync(command, args.concat(`--service=${"0.22.0"}`), {
2080
2081
  cwd: defaultWD,
2081
2082
  windowsHide: true,
2082
2083
  input: stdin,
@@ -2096,7 +2097,7 @@ var workerThreadService = null;
2096
2097
  var startWorkerThreadService = (worker_threads2) => {
2097
2098
  let { port1: mainPort, port2: workerPort } = new worker_threads2.MessageChannel();
2098
2099
  let worker = new worker_threads2.Worker(__filename, {
2099
- workerData: { workerPort, defaultWD, esbuildVersion: "0.21.4" },
2100
+ workerData: { workerPort, defaultWD, esbuildVersion: "0.22.0" },
2100
2101
  transferList: [workerPort],
2101
2102
  // From node's documentation: https://nodejs.org/api/worker_threads.html
2102
2103
  //
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "esbuild",
3
- "version": "0.21.4",
3
+ "version": "0.22.0",
4
4
  "description": "An extremely fast JavaScript and CSS bundler and minifier.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -12,35 +12,36 @@
12
12
  "main": "lib/main.js",
13
13
  "types": "lib/main.d.ts",
14
14
  "engines": {
15
- "node": ">=12"
15
+ "node": ">=18"
16
16
  },
17
17
  "bin": {
18
18
  "esbuild": "bin/esbuild"
19
19
  },
20
20
  "optionalDependencies": {
21
- "@esbuild/aix-ppc64": "0.21.4",
22
- "@esbuild/android-arm": "0.21.4",
23
- "@esbuild/android-arm64": "0.21.4",
24
- "@esbuild/android-x64": "0.21.4",
25
- "@esbuild/darwin-arm64": "0.21.4",
26
- "@esbuild/darwin-x64": "0.21.4",
27
- "@esbuild/freebsd-arm64": "0.21.4",
28
- "@esbuild/freebsd-x64": "0.21.4",
29
- "@esbuild/linux-arm": "0.21.4",
30
- "@esbuild/linux-arm64": "0.21.4",
31
- "@esbuild/linux-ia32": "0.21.4",
32
- "@esbuild/linux-loong64": "0.21.4",
33
- "@esbuild/linux-mips64el": "0.21.4",
34
- "@esbuild/linux-ppc64": "0.21.4",
35
- "@esbuild/linux-riscv64": "0.21.4",
36
- "@esbuild/linux-s390x": "0.21.4",
37
- "@esbuild/linux-x64": "0.21.4",
38
- "@esbuild/netbsd-x64": "0.21.4",
39
- "@esbuild/openbsd-x64": "0.21.4",
40
- "@esbuild/sunos-x64": "0.21.4",
41
- "@esbuild/win32-arm64": "0.21.4",
42
- "@esbuild/win32-ia32": "0.21.4",
43
- "@esbuild/win32-x64": "0.21.4"
21
+ "@esbuild/aix-ppc64": "0.22.0",
22
+ "@esbuild/android-arm": "0.22.0",
23
+ "@esbuild/android-arm64": "0.22.0",
24
+ "@esbuild/android-x64": "0.22.0",
25
+ "@esbuild/darwin-arm64": "0.22.0",
26
+ "@esbuild/darwin-x64": "0.22.0",
27
+ "@esbuild/freebsd-arm64": "0.22.0",
28
+ "@esbuild/freebsd-x64": "0.22.0",
29
+ "@esbuild/linux-arm": "0.22.0",
30
+ "@esbuild/linux-arm64": "0.22.0",
31
+ "@esbuild/linux-ia32": "0.22.0",
32
+ "@esbuild/linux-loong64": "0.22.0",
33
+ "@esbuild/linux-mips64el": "0.22.0",
34
+ "@esbuild/linux-ppc64": "0.22.0",
35
+ "@esbuild/linux-riscv64": "0.22.0",
36
+ "@esbuild/linux-s390x": "0.22.0",
37
+ "@esbuild/linux-x64": "0.22.0",
38
+ "@esbuild/netbsd-x64": "0.22.0",
39
+ "@esbuild/openbsd-arm64": "0.22.0",
40
+ "@esbuild/openbsd-x64": "0.22.0",
41
+ "@esbuild/sunos-x64": "0.22.0",
42
+ "@esbuild/win32-arm64": "0.22.0",
43
+ "@esbuild/win32-ia32": "0.22.0",
44
+ "@esbuild/win32-x64": "0.22.0"
44
45
  },
45
46
  "license": "MIT"
46
47
  }