esbuild 0.25.6 → 0.25.7

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
@@ -201,7 +201,7 @@ for your current platform.`);
201
201
  "node_modules",
202
202
  ".cache",
203
203
  "esbuild",
204
- `pnpapi-${pkg.replace("/", "-")}-${"0.25.6"}-${path.basename(subpath)}`
204
+ `pnpapi-${pkg.replace("/", "-")}-${"0.25.7"}-${path.basename(subpath)}`
205
205
  );
206
206
  if (!fs.existsSync(binTargetPath)) {
207
207
  fs.mkdirSync(path.dirname(binTargetPath), { recursive: true });
package/lib/main.d.ts CHANGED
@@ -4,6 +4,7 @@ export type Loader = 'base64' | 'binary' | 'copy' | 'css' | 'dataurl' | 'default
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'
7
+ export type AbsPaths = 'code' | 'log' | 'metafile'
7
8
 
8
9
  interface CommonOptions {
9
10
  /** Documentation: https://esbuild.github.io/api/#sourcemap */
@@ -75,6 +76,8 @@ interface CommonOptions {
75
76
  /** Documentation: https://esbuild.github.io/api/#keep-names */
76
77
  keepNames?: boolean
77
78
 
79
+ /** Documentation: https://esbuild.github.io/api/#abs-paths */
80
+ absPaths?: AbsPaths[]
78
81
  /** Documentation: https://esbuild.github.io/api/#color */
79
82
  color?: boolean
80
83
  /** Documentation: https://esbuild.github.io/api/#log-level */
package/lib/main.js CHANGED
@@ -335,6 +335,7 @@ function pushCommonFlags(flags, options, keys) {
335
335
  let keepNames = getFlag(options, keys, "keepNames", mustBeBoolean);
336
336
  let platform = getFlag(options, keys, "platform", mustBeString);
337
337
  let tsconfigRaw = getFlag(options, keys, "tsconfigRaw", mustBeStringOrObject);
338
+ let absPaths = getFlag(options, keys, "absPaths", mustBeArrayOfStrings);
338
339
  if (legalComments) flags.push(`--legal-comments=${legalComments}`);
339
340
  if (sourceRoot !== void 0) flags.push(`--source-root=${sourceRoot}`);
340
341
  if (sourcesContent !== void 0) flags.push(`--sources-content=${sourcesContent}`);
@@ -353,6 +354,7 @@ function pushCommonFlags(flags, options, keys) {
353
354
  if (ignoreAnnotations) flags.push(`--ignore-annotations`);
354
355
  if (drop) for (let what of drop) flags.push(`--drop:${validateStringValue(what, "drop")}`);
355
356
  if (dropLabels) flags.push(`--drop-labels=${validateAndJoinStringArray(dropLabels, "drop label")}`);
357
+ if (absPaths) flags.push(`--abs-paths=${validateAndJoinStringArray(absPaths, "abs paths")}`);
356
358
  if (mangleProps) flags.push(`--mangle-props=${jsRegExpToGoRegExp(mangleProps)}`);
357
359
  if (reserveProps) flags.push(`--reserve-props=${jsRegExpToGoRegExp(reserveProps)}`);
358
360
  if (mangleQuoted !== void 0) flags.push(`--mangle-quoted=${mangleQuoted}`);
@@ -641,8 +643,8 @@ function createChannel(streamIn) {
641
643
  if (isFirstPacket) {
642
644
  isFirstPacket = false;
643
645
  let binaryVersion = String.fromCharCode(...bytes);
644
- if (binaryVersion !== "0.25.6") {
645
- throw new Error(`Cannot start service: Host version "${"0.25.6"}" does not match binary version ${quote(binaryVersion)}`);
646
+ if (binaryVersion !== "0.25.7") {
647
+ throw new Error(`Cannot start service: Host version "${"0.25.7"}" does not match binary version ${quote(binaryVersion)}`);
646
648
  }
647
649
  return;
648
650
  }
@@ -1768,7 +1770,7 @@ for your current platform.`);
1768
1770
  "node_modules",
1769
1771
  ".cache",
1770
1772
  "esbuild",
1771
- `pnpapi-${pkg.replace("/", "-")}-${"0.25.6"}-${path.basename(subpath)}`
1773
+ `pnpapi-${pkg.replace("/", "-")}-${"0.25.7"}-${path.basename(subpath)}`
1772
1774
  );
1773
1775
  if (!fs.existsSync(binTargetPath)) {
1774
1776
  fs.mkdirSync(path.dirname(binTargetPath), { recursive: true });
@@ -1803,7 +1805,7 @@ if (process.env.ESBUILD_WORKER_THREADS !== "0") {
1803
1805
  }
1804
1806
  }
1805
1807
  var _a;
1806
- var isInternalWorkerThread = ((_a = worker_threads == null ? void 0 : worker_threads.workerData) == null ? void 0 : _a.esbuildVersion) === "0.25.6";
1808
+ var isInternalWorkerThread = ((_a = worker_threads == null ? void 0 : worker_threads.workerData) == null ? void 0 : _a.esbuildVersion) === "0.25.7";
1807
1809
  var esbuildCommandAndArgs = () => {
1808
1810
  if ((!ESBUILD_BINARY_PATH || false) && (path2.basename(__filename) !== "main.js" || path2.basename(__dirname) !== "lib")) {
1809
1811
  throw new Error(
@@ -1870,7 +1872,7 @@ var fsAsync = {
1870
1872
  }
1871
1873
  }
1872
1874
  };
1873
- var version = "0.25.6";
1875
+ var version = "0.25.7";
1874
1876
  var build = (options) => ensureServiceIsRunning().build(options);
1875
1877
  var context = (buildOptions) => ensureServiceIsRunning().context(buildOptions);
1876
1878
  var transform = (input, options) => ensureServiceIsRunning().transform(input, options);
@@ -1973,7 +1975,7 @@ var stopService;
1973
1975
  var ensureServiceIsRunning = () => {
1974
1976
  if (longLivedService) return longLivedService;
1975
1977
  let [command, args] = esbuildCommandAndArgs();
1976
- let child = child_process.spawn(command, args.concat(`--service=${"0.25.6"}`, "--ping"), {
1978
+ let child = child_process.spawn(command, args.concat(`--service=${"0.25.7"}`, "--ping"), {
1977
1979
  windowsHide: true,
1978
1980
  stdio: ["pipe", "pipe", "inherit"],
1979
1981
  cwd: defaultWD
@@ -2077,7 +2079,7 @@ var runServiceSync = (callback) => {
2077
2079
  esbuild: node_exports
2078
2080
  });
2079
2081
  callback(service);
2080
- let stdout = child_process.execFileSync(command, args.concat(`--service=${"0.25.6"}`), {
2082
+ let stdout = child_process.execFileSync(command, args.concat(`--service=${"0.25.7"}`), {
2081
2083
  cwd: defaultWD,
2082
2084
  windowsHide: true,
2083
2085
  input: stdin,
@@ -2097,7 +2099,7 @@ var workerThreadService = null;
2097
2099
  var startWorkerThreadService = (worker_threads2) => {
2098
2100
  let { port1: mainPort, port2: workerPort } = new worker_threads2.MessageChannel();
2099
2101
  let worker = new worker_threads2.Worker(__filename, {
2100
- workerData: { workerPort, defaultWD, esbuildVersion: "0.25.6" },
2102
+ workerData: { workerPort, defaultWD, esbuildVersion: "0.25.7" },
2101
2103
  transferList: [workerPort],
2102
2104
  // From node's documentation: https://nodejs.org/api/worker_threads.html
2103
2105
  //
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "esbuild",
3
- "version": "0.25.6",
3
+ "version": "0.25.7",
4
4
  "description": "An extremely fast JavaScript and CSS bundler and minifier.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -18,32 +18,32 @@
18
18
  "esbuild": "bin/esbuild"
19
19
  },
20
20
  "optionalDependencies": {
21
- "@esbuild/aix-ppc64": "0.25.6",
22
- "@esbuild/android-arm": "0.25.6",
23
- "@esbuild/android-arm64": "0.25.6",
24
- "@esbuild/android-x64": "0.25.6",
25
- "@esbuild/darwin-arm64": "0.25.6",
26
- "@esbuild/darwin-x64": "0.25.6",
27
- "@esbuild/freebsd-arm64": "0.25.6",
28
- "@esbuild/freebsd-x64": "0.25.6",
29
- "@esbuild/linux-arm": "0.25.6",
30
- "@esbuild/linux-arm64": "0.25.6",
31
- "@esbuild/linux-ia32": "0.25.6",
32
- "@esbuild/linux-loong64": "0.25.6",
33
- "@esbuild/linux-mips64el": "0.25.6",
34
- "@esbuild/linux-ppc64": "0.25.6",
35
- "@esbuild/linux-riscv64": "0.25.6",
36
- "@esbuild/linux-s390x": "0.25.6",
37
- "@esbuild/linux-x64": "0.25.6",
38
- "@esbuild/netbsd-arm64": "0.25.6",
39
- "@esbuild/netbsd-x64": "0.25.6",
40
- "@esbuild/openbsd-arm64": "0.25.6",
41
- "@esbuild/openbsd-x64": "0.25.6",
42
- "@esbuild/openharmony-arm64": "0.25.6",
43
- "@esbuild/sunos-x64": "0.25.6",
44
- "@esbuild/win32-arm64": "0.25.6",
45
- "@esbuild/win32-ia32": "0.25.6",
46
- "@esbuild/win32-x64": "0.25.6"
21
+ "@esbuild/aix-ppc64": "0.25.7",
22
+ "@esbuild/android-arm": "0.25.7",
23
+ "@esbuild/android-arm64": "0.25.7",
24
+ "@esbuild/android-x64": "0.25.7",
25
+ "@esbuild/darwin-arm64": "0.25.7",
26
+ "@esbuild/darwin-x64": "0.25.7",
27
+ "@esbuild/freebsd-arm64": "0.25.7",
28
+ "@esbuild/freebsd-x64": "0.25.7",
29
+ "@esbuild/linux-arm": "0.25.7",
30
+ "@esbuild/linux-arm64": "0.25.7",
31
+ "@esbuild/linux-ia32": "0.25.7",
32
+ "@esbuild/linux-loong64": "0.25.7",
33
+ "@esbuild/linux-mips64el": "0.25.7",
34
+ "@esbuild/linux-ppc64": "0.25.7",
35
+ "@esbuild/linux-riscv64": "0.25.7",
36
+ "@esbuild/linux-s390x": "0.25.7",
37
+ "@esbuild/linux-x64": "0.25.7",
38
+ "@esbuild/netbsd-arm64": "0.25.7",
39
+ "@esbuild/netbsd-x64": "0.25.7",
40
+ "@esbuild/openbsd-arm64": "0.25.7",
41
+ "@esbuild/openbsd-x64": "0.25.7",
42
+ "@esbuild/openharmony-arm64": "0.25.7",
43
+ "@esbuild/sunos-x64": "0.25.7",
44
+ "@esbuild/win32-arm64": "0.25.7",
45
+ "@esbuild/win32-ia32": "0.25.7",
46
+ "@esbuild/win32-x64": "0.25.7"
47
47
  },
48
48
  "license": "MIT"
49
49
  }