bun-types
Advanced tools
Comparing version 1.2.3-canary.20250217T140554 to 1.2.3-canary.20250218T140705
@@ -340,3 +340,3 @@ Bun implements the WHATWG `fetch` standard, with some extensions to meet the needs of server-side JavaScript. | ||
[fetch] > Connection: keep-alive | ||
[fetch] > User-Agent: Bun/1.2.3-canary.20250217T140554 | ||
[fetch] > User-Agent: Bun/1.2.3-canary.20250218T140705 | ||
[fetch] > Accept: */* | ||
@@ -343,0 +343,0 @@ [fetch] > Host: example.com |
@@ -113,3 +113,3 @@ Spawn child processes with `Bun.spawn` or `Bun.spawnSync`. | ||
const text = await new Response(proc.stdout).text(); | ||
console.log(text); // => "1.2.3-canary.20250217T140554" | ||
console.log(text); // => "1.2.3-canary.20250218T140705" | ||
``` | ||
@@ -116,0 +116,0 @@ |
@@ -523,2 +523,3 @@ Bun provides native bindings for working with PostgreSQL databases with a modern, Promise-based API. The interface is designed to be simple and performant, using tagged template literals for queries and offering features like connection pooling, transactions, and prepared statements. | ||
| `ERR_POSTGRES_QUERY_CANCELLED` | Query was cancelled | | ||
| `ERR_POSTGRES_NOT_TAGGED_CALL` | Query was called without a tagged call | | ||
@@ -525,0 +526,0 @@ ### Data Type Errors |
@@ -10,3 +10,3 @@ Use `bun publish` to publish a package to the npm registry. | ||
## Output | ||
bun publish v1.2.3-canary.20250217T140554 (ca7428e9) | ||
bun publish v1.2.3-canary.20250218T140705 (ca7428e9) | ||
@@ -13,0 +13,0 @@ packed 203B package.json |
@@ -12,3 +12,3 @@ --- | ||
◐ Installing dependencies... | ||
bun install v1.2.3-canary.20250217T140554 (16b4bf34) | ||
bun install v1.2.3-canary.20250218T140705 (16b4bf34) | ||
+ @nuxt/devtools@0.8.2 | ||
@@ -15,0 +15,0 @@ + nuxt@3.7.0 |
@@ -73,3 +73,3 @@ --- | ||
| **Build Command** | `bun install` | | ||
| **Start Command** | `bun app.js` | | ||
| **Start Command** | `bun app.ts` | | ||
@@ -76,0 +76,0 @@ --- |
@@ -19,3 +19,3 @@ --- | ||
"peerDependencies": { | ||
+ "@types/bun": "^1.2.3-canary.20250217T140554" | ||
+ "@types/bun": "^1.2.3-canary.20250218T140705" | ||
} | ||
@@ -32,3 +32,3 @@ } | ||
"peerDependencies": { | ||
"@types/bun": "^1.2.3-canary.20250217T140554" | ||
"@types/bun": "^1.2.3-canary.20250218T140705" | ||
}, | ||
@@ -35,0 +35,0 @@ "peerDependenciesMeta": { |
@@ -100,3 +100,3 @@ --- | ||
# Update a dependency to a specific version | ||
$ bun update @types/bun@1.2.3-canary.20250217T140554 | ||
$ bun update @types/bun@1.2.3-canary.20250218T140705 | ||
@@ -103,0 +103,0 @@ # Update all dependencies to the latest versions |
@@ -24,3 +24,3 @@ --- | ||
$ bun test | ||
bun test v1.2.3-canary.20250217T140554 (9c68abdb) | ||
bun test v1.2.3-canary.20250218T140705 (9c68abdb) | ||
@@ -51,3 +51,3 @@ test.test.js: | ||
$ bun test test3 | ||
bun test v1.2.3-canary.20250217T140554 (9c68abdb) | ||
bun test v1.2.3-canary.20250218T140705 (9c68abdb) | ||
@@ -90,3 +90,3 @@ test3.test.js: | ||
$ bun test -t add | ||
bun test v1.2.3-canary.20250217T140554 (9c68abdb) | ||
bun test v1.2.3-canary.20250218T140705 (9c68abdb) | ||
@@ -93,0 +93,0 @@ test.test.js: |
@@ -21,3 +21,3 @@ --- | ||
$ bun test test/snap | ||
bun test v1.2.3-canary.20250217T140554 (9c68abdb) | ||
bun test v1.2.3-canary.20250218T140705 (9c68abdb) | ||
@@ -65,3 +65,3 @@ test/snap.test.ts: | ||
$ bun test | ||
bun test v1.2.3-canary.20250217T140554 (9c68abdb) | ||
bun test v1.2.3-canary.20250218T140705 (9c68abdb) | ||
@@ -83,3 +83,3 @@ test/snap.test.ts: | ||
$ bun test --update-snapshots | ||
bun test v1.2.3-canary.20250217T140554 (9c68abdb) | ||
bun test v1.2.3-canary.20250218T140705 (9c68abdb) | ||
@@ -86,0 +86,0 @@ test/snap.test.ts: |
@@ -32,3 +32,3 @@ --- | ||
$ bun test --update-snapshots | ||
bun test v1.2.3-canary.20250217T140554 (9c68abdb) | ||
bun test v1.2.3-canary.20250218T140705 (9c68abdb) | ||
@@ -35,0 +35,0 @@ test/snap.test.ts: |
@@ -8,3 +8,3 @@ --- | ||
```ts#index.ts | ||
Bun.version; // => "1.2.3-canary.20250217T140554" | ||
Bun.version; // => "1.2.3-canary.20250218T140705" | ||
``` | ||
@@ -11,0 +11,0 @@ |
@@ -17,3 +17,3 @@ Bun ships as a single executable with no dependencies that can be installed a few different ways. | ||
# to install a specific version | ||
$ curl -fsSL https://bun.sh/install | bash -s "bun-v1.2.3-canary.20250217T140554" | ||
$ curl -fsSL https://bun.sh/install | bash -s "bun-v1.2.3-canary.20250218T140705" | ||
``` | ||
@@ -151,2 +151,3 @@ | ||
``` | ||
After running the command, restart your terminal and test with `bun --version` | ||
@@ -193,6 +194,6 @@ | ||
To install a specific version of Bun, you can pass the git tag of the version you want to install to the install script, such as `bun-v1.2.0` or `bun-v1.2.3-canary.20250217T140554`. | ||
To install a specific version of Bun, you can pass the git tag of the version you want to install to the install script, such as `bun-v1.2.0` or `bun-v1.2.3-canary.20250218T140705`. | ||
```sh | ||
$ curl -fsSL https://bun.sh/install | bash -s "bun-v1.2.3-canary.20250217T140554" | ||
$ curl -fsSL https://bun.sh/install | bash -s "bun-v1.2.3-canary.20250218T140705" | ||
``` | ||
@@ -206,3 +207,3 @@ | ||
# PowerShell: | ||
$ iex "& {$(irm https://bun.sh/install.ps1)} -Version 1.2.3-canary.20250217T140554" | ||
$ iex "& {$(irm https://bun.sh/install.ps1)} -Version 1.2.3-canary.20250218T140705" | ||
``` | ||
@@ -226,8 +227,9 @@ | ||
- [`bun-darwin-x64.zip`](https://github.com/oven-sh/bun/releases/latest/download/bun-darwin-x64.zip) | ||
- [`bun-darwin-x64-baseline.zip`](https://github.com/oven-sh/bun/releases/latest/download/bun-darwin-x64-baseline.zip) | ||
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. | ||
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. | ||
Bun's `x64` binaries target the Haswell CPU architecture, which means they require AVX and AVX2 instructions. For Linux and Windows, the `x64-baseline` binaries are also available which target the Nehalem architecture. 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. | ||
Bun also publishes `darwin-x64-baseline` binaries, but these are just a copy of the `darwin-x64` ones so they still have the same CPU requirement. We only maintain these since some tools expect them to exist. Bun requires macOS 13.0 or later, which does not support any CPUs that don't meet our requirement. | ||
<!-- | ||
@@ -234,0 +236,0 @@ ## Native |
@@ -127,7 +127,7 @@ --- | ||
```sh | ||
[fetch] $ curl --http1.1 "https://example.com/" -X POST -H "content-type: application/json" -H "Connection: keep-alive" -H "User-Agent: Bun/1.2.3-canary.20250217T140554" -H "Accept: */*" -H "Host: example.com" -H "Accept-Encoding: gzip, deflate, br" --compressed -H "Content-Length: 13" --data-raw "{\"foo\":\"bar\"}" | ||
[fetch] $ curl --http1.1 "https://example.com/" -X POST -H "content-type: application/json" -H "Connection: keep-alive" -H "User-Agent: Bun/1.2.3-canary.20250218T140705" -H "Accept: */*" -H "Host: example.com" -H "Accept-Encoding: gzip, deflate, br" --compressed -H "Content-Length: 13" --data-raw "{\"foo\":\"bar\"}" | ||
[fetch] > HTTP/1.1 POST https://example.com/ | ||
[fetch] > content-type: application/json | ||
[fetch] > Connection: keep-alive | ||
[fetch] > User-Agent: Bun/1.2.3-canary.20250217T140554 | ||
[fetch] > User-Agent: Bun/1.2.3-canary.20250218T140705 | ||
[fetch] > Accept: */* | ||
@@ -174,3 +174,3 @@ [fetch] > Host: example.com | ||
[fetch] > Connection: keep-alive | ||
[fetch] > User-Agent: Bun/1.2.3-canary.20250217T140554 | ||
[fetch] > User-Agent: Bun/1.2.3-canary.20250218T140705 | ||
[fetch] > Accept: */* | ||
@@ -177,0 +177,0 @@ [fetch] > Host: example.com |
@@ -58,3 +58,3 @@ Bun's test runner plays well with existing component and DOM testing libraries, including React Testing Library and [`happy-dom`](https://github.com/capricorn86/happy-dom). | ||
$ bun test | ||
bun test v1.2.3-canary.20250217T140554 | ||
bun test v1.2.3-canary.20250218T140705 | ||
@@ -61,0 +61,0 @@ dom.test.ts: |
{ | ||
"version": "1.2.3-canary.20250217T140554", | ||
"version": "1.2.3-canary.20250218T140705", | ||
"name": "bun-types", | ||
@@ -4,0 +4,0 @@ "license": "MIT", |
1419566
298