bun-types 1.1.38 → 1.1.39-canary.20241130T140507
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/bun.d.ts +4 -1
- package/docs/installation.md +6 -1
- package/package.json +1 -1
package/bun.d.ts
CHANGED
|
@@ -4035,7 +4035,6 @@ declare module "bun" {
|
|
|
4035
4035
|
* The default loader for this file extension
|
|
4036
4036
|
*/
|
|
4037
4037
|
loader: Loader;
|
|
4038
|
-
|
|
4039
4038
|
/**
|
|
4040
4039
|
* Defer the execution of this callback until all other modules have been parsed.
|
|
4041
4040
|
*
|
|
@@ -4063,6 +4062,10 @@ declare module "bun" {
|
|
|
4063
4062
|
* The namespace of the importer.
|
|
4064
4063
|
*/
|
|
4065
4064
|
namespace: string;
|
|
4065
|
+
/**
|
|
4066
|
+
* The directory to perform file-based resolutions in.
|
|
4067
|
+
*/
|
|
4068
|
+
resolveDir: string;
|
|
4066
4069
|
/**
|
|
4067
4070
|
* The kind of import this resolve is for.
|
|
4068
4071
|
*/
|
package/docs/installation.md
CHANGED
|
@@ -189,14 +189,19 @@ For convenience, here are download links for the latest version:
|
|
|
189
189
|
|
|
190
190
|
- [`bun-linux-x64.zip`](https://github.com/oven-sh/bun/releases/latest/download/bun-linux-x64.zip)
|
|
191
191
|
- [`bun-linux-x64-baseline.zip`](https://github.com/oven-sh/bun/releases/latest/download/bun-linux-x64-baseline.zip)
|
|
192
|
+
- [`bun-linux-x64-musl.zip`](https://github.com/oven-sh/bun/releases/latest/download/bun-linux-x64-musl.zip)
|
|
193
|
+
- [`bun-linux-x64-musl-baseline.zip`](https://github.com/oven-sh/bun/releases/latest/download/bun-linux-x64-musl-baseline.zip)
|
|
192
194
|
- [`bun-windows-x64.zip`](https://github.com/oven-sh/bun/releases/latest/download/bun-windows-x64.zip)
|
|
193
195
|
- [`bun-windows-x64-baseline.zip`](https://github.com/oven-sh/bun/releases/latest/download/bun-windows-x64-baseline.zip)
|
|
194
196
|
- [`bun-darwin-aarch64.zip`](https://github.com/oven-sh/bun/releases/latest/download/bun-darwin-aarch64.zip)
|
|
195
197
|
- [`bun-linux-aarch64.zip`](https://github.com/oven-sh/bun/releases/latest/download/bun-linux-aarch64.zip)
|
|
198
|
+
- [`bun-linux-aarch64-musl.zip`](https://github.com/oven-sh/bun/releases/latest/download/bun-linux-aarch64-musl.zip)
|
|
196
199
|
- [`bun-darwin-x64.zip`](https://github.com/oven-sh/bun/releases/latest/download/bun-darwin-x64.zip)
|
|
197
200
|
- [`bun-darwin-x64-baseline.zip`](https://github.com/oven-sh/bun/releases/latest/download/bun-darwin-x64-baseline.zip)
|
|
198
201
|
|
|
199
|
-
The `
|
|
202
|
+
The `musl` binaries are built for distributions that do not ship with the glibc libraries by default, instead relying on musl. The two most popular distros are Void Linux and Alpine Linux, with the latter is used heavily in Docker containers. If you encounter an error like the following: `bun: /lib/x86_64-linux-gnu/libm.so.6: version GLIBC_2.29' not found (required by bun)`, try using the musl binary. Bun's install script automatically chooses the correct binary for your system.
|
|
203
|
+
|
|
204
|
+
The `baseline` binaries are built for older CPUs which may not support AVX2 instructions. If you run into an "Illegal Instruction" error when running Bun, try using the `baseline` binaries instead. Bun's install scripts automatically chooses the correct binary for your system which helps avoid this issue. Baseline builds are slower than regular builds, so use them only if necessary.
|
|
200
205
|
|
|
201
206
|
<!--
|
|
202
207
|
## Native
|
package/package.json
CHANGED