bun 1.3.13 → 1.3.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.
Files changed (2) hide show
  1. package/install.js +33 -3
  2. package/package.json +19 -13
package/install.js CHANGED
@@ -262,7 +262,7 @@ function spawn(cmd, args, options = {}) {
262
262
  __name(spawn, "spawn");
263
263
 
264
264
  // src/platform.ts
265
- var os2 = process.platform, arch = os2 === "darwin" && process.arch === "x64" && isRosetta2() ? "arm64" : process.arch, avx2 = arch === "x64" && (os2 === "linux" && isLinuxAVX2() || os2 === "darwin" && isDarwinAVX2() || os2 === "win32" && isWindowsAVX2()), abi = os2 === "linux" && isLinuxMusl() ? "musl" : void 0, platforms = [
265
+ var os2 = process.platform, arch = os2 === "darwin" && process.arch === "x64" && isRosetta2() ? "arm64" : process.arch, avx2 = arch === "x64" && (os2 === "linux" && isLinuxAVX2() || os2 === "darwin" && isDarwinAVX2() || os2 === "win32" && isWindowsAVX2()), abi = os2 === "android" ? "android" : os2 === "linux" && isLinuxMusl() ? "musl" : void 0, platforms = [
266
266
  {
267
267
  os: "darwin",
268
268
  arch: "arm64",
@@ -323,6 +323,36 @@ var os2 = process.platform, arch = os2 === "darwin" && process.arch === "x64" &&
323
323
  bin: "bun-linux-x64-musl-baseline",
324
324
  exe: "bin/bun"
325
325
  },
326
+ {
327
+ // Node's process.platform is "android" on Android (Termux etc.), not "linux".
328
+ // The release asset is still named bun-linux-* for consistency with the
329
+ // build triplet, but npm's os field must be "android" for optionalDependency
330
+ // resolution to pick it up on-device.
331
+ os: "android",
332
+ arch: "arm64",
333
+ abi: "android",
334
+ bin: "bun-linux-aarch64-android",
335
+ exe: "bin/bun"
336
+ },
337
+ {
338
+ os: "android",
339
+ arch: "x64",
340
+ abi: "android",
341
+ bin: "bun-linux-x64-android",
342
+ exe: "bin/bun"
343
+ },
344
+ {
345
+ os: "freebsd",
346
+ arch: "arm64",
347
+ bin: "bun-freebsd-aarch64",
348
+ exe: "bin/bun"
349
+ },
350
+ {
351
+ os: "freebsd",
352
+ arch: "x64",
353
+ bin: "bun-freebsd-x64",
354
+ exe: "bin/bun"
355
+ },
326
356
  {
327
357
  os: "win32",
328
358
  arch: "x64",
@@ -445,7 +475,7 @@ function installBun(platform, dst) {
445
475
  write(join(cwd, "package.json"), "{}");
446
476
  let { exitCode } = spawn(
447
477
  "npm",
448
- ["install", "--loglevel=error", "--prefer-offline", "--no-audit", "--progress=false", `${module2}@1.3.13`],
478
+ ["install", "--loglevel=error", "--prefer-offline", "--no-audit", "--progress=false", `${module2}@1.3.14`],
449
479
  {
450
480
  cwd,
451
481
  stdio: "pipe",
@@ -466,7 +496,7 @@ function installBun(platform, dst) {
466
496
  __name(installBun, "installBun");
467
497
  function downloadBun(platform, dst) {
468
498
  return __async(this, null, function* () {
469
- let tgz = yield (yield fetch(`https://registry.npmjs.org/@oven/${platform.bin}/-/${platform.bin}-1.3.13.tgz`)).arrayBuffer(), buffer;
499
+ let tgz = yield (yield fetch(`https://registry.npmjs.org/@oven/${platform.bin}/-/${platform.bin}-1.3.14.tgz`)).arrayBuffer(), buffer;
470
500
  try {
471
501
  buffer = (0, import_zlib.unzipSync)(tgz);
472
502
  } catch (cause) {
package/package.json CHANGED
@@ -1,23 +1,27 @@
1
1
  {
2
2
  "name": "bun",
3
3
  "description": "Bun is a fast all-in-one JavaScript runtime.",
4
- "version": "1.3.13",
4
+ "version": "1.3.14",
5
5
  "scripts": {
6
6
  "postinstall": "node install.js"
7
7
  },
8
8
  "optionalDependencies": {
9
- "@oven/bun-darwin-aarch64": "1.3.13",
10
- "@oven/bun-darwin-x64": "1.3.13",
11
- "@oven/bun-darwin-x64-baseline": "1.3.13",
12
- "@oven/bun-linux-aarch64": "1.3.13",
13
- "@oven/bun-linux-x64": "1.3.13",
14
- "@oven/bun-linux-x64-baseline": "1.3.13",
15
- "@oven/bun-linux-aarch64-musl": "1.3.13",
16
- "@oven/bun-linux-x64-musl": "1.3.13",
17
- "@oven/bun-linux-x64-musl-baseline": "1.3.13",
18
- "@oven/bun-windows-x64": "1.3.13",
19
- "@oven/bun-windows-x64-baseline": "1.3.13",
20
- "@oven/bun-windows-aarch64": "1.3.13"
9
+ "@oven/bun-darwin-aarch64": "1.3.14",
10
+ "@oven/bun-darwin-x64": "1.3.14",
11
+ "@oven/bun-darwin-x64-baseline": "1.3.14",
12
+ "@oven/bun-linux-aarch64": "1.3.14",
13
+ "@oven/bun-linux-x64": "1.3.14",
14
+ "@oven/bun-linux-x64-baseline": "1.3.14",
15
+ "@oven/bun-linux-aarch64-musl": "1.3.14",
16
+ "@oven/bun-linux-x64-musl": "1.3.14",
17
+ "@oven/bun-linux-x64-musl-baseline": "1.3.14",
18
+ "@oven/bun-linux-aarch64-android": "1.3.14",
19
+ "@oven/bun-linux-x64-android": "1.3.14",
20
+ "@oven/bun-freebsd-aarch64": "1.3.14",
21
+ "@oven/bun-freebsd-x64": "1.3.14",
22
+ "@oven/bun-windows-x64": "1.3.14",
23
+ "@oven/bun-windows-x64-baseline": "1.3.14",
24
+ "@oven/bun-windows-aarch64": "1.3.14"
21
25
  },
22
26
  "bin": {
23
27
  "bun": "bin/bun.exe",
@@ -26,6 +30,8 @@
26
30
  "os": [
27
31
  "darwin",
28
32
  "linux",
33
+ "android",
34
+ "freebsd",
29
35
  "win32"
30
36
  ],
31
37
  "cpu": [