bun-types 1.3.2 → 1.3.3-canary.20251110T140631
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/docs/bundler/html-static.mdx +6 -6
- package/docs/guides/ecosystem/nuxt.mdx +1 -1
- package/docs/guides/install/add-peer.mdx +2 -2
- package/docs/guides/install/from-npm-install-to-bun-install.mdx +1 -1
- package/docs/guides/test/snapshot.mdx +2 -2
- package/docs/guides/util/version.mdx +1 -1
- package/docs/installation.mdx +3 -3
- package/docs/pm/cli/pm.mdx +1 -1
- package/docs/pm/cli/publish.mdx +1 -1
- package/docs/runtime/child-process.mdx +1 -1
- package/docs/runtime/debugger.mdx +3 -3
- package/docs/runtime/networking/fetch.mdx +1 -1
- package/docs/test/dom.mdx +1 -1
- package/package.json +1 -1
|
@@ -25,7 +25,7 @@ bun ./index.html
|
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
```
|
|
28
|
-
Bun v1.2
|
|
28
|
+
Bun v1.3.2
|
|
29
29
|
ready in 6.62ms
|
|
30
30
|
→ http://localhost:3000/
|
|
31
31
|
Press h + Enter to show shortcuts
|
|
@@ -51,7 +51,7 @@ bun index.html
|
|
|
51
51
|
```
|
|
52
52
|
|
|
53
53
|
```
|
|
54
|
-
Bun v1.2
|
|
54
|
+
Bun v1.3.2
|
|
55
55
|
ready in 6.62ms
|
|
56
56
|
→ http://localhost:3000/
|
|
57
57
|
Press h + Enter to show shortcuts
|
|
@@ -81,7 +81,7 @@ bun ./index.html ./about.html
|
|
|
81
81
|
```
|
|
82
82
|
|
|
83
83
|
```txt
|
|
84
|
-
Bun v1.2
|
|
84
|
+
Bun v1.3.2
|
|
85
85
|
ready in 6.62ms
|
|
86
86
|
→ http://localhost:3000/
|
|
87
87
|
Routes:
|
|
@@ -104,7 +104,7 @@ bun ./**/*.html
|
|
|
104
104
|
```
|
|
105
105
|
|
|
106
106
|
```
|
|
107
|
-
Bun v1.2
|
|
107
|
+
Bun v1.3.2
|
|
108
108
|
ready in 6.62ms
|
|
109
109
|
→ http://localhost:3000/
|
|
110
110
|
Routes:
|
|
@@ -122,7 +122,7 @@ bun ./index.html ./about/index.html ./about/foo/index.html
|
|
|
122
122
|
```
|
|
123
123
|
|
|
124
124
|
```
|
|
125
|
-
Bun v1.2
|
|
125
|
+
Bun v1.3.2
|
|
126
126
|
ready in 6.62ms
|
|
127
127
|
→ http://localhost:3000/
|
|
128
128
|
Routes:
|
|
@@ -259,7 +259,7 @@ bun ./index.html --console
|
|
|
259
259
|
```
|
|
260
260
|
|
|
261
261
|
```
|
|
262
|
-
Bun v1.2
|
|
262
|
+
Bun v1.3.2
|
|
263
263
|
ready in 6.62ms
|
|
264
264
|
→ http://localhost:3000/
|
|
265
265
|
Press h + Enter to show shortcuts
|
|
@@ -17,7 +17,7 @@ This will add the package to `peerDependencies` in `package.json`.
|
|
|
17
17
|
```json package.json icon="file-json"
|
|
18
18
|
{
|
|
19
19
|
"peerDependencies": {
|
|
20
|
-
"@types/bun": "^1.3.
|
|
20
|
+
"@types/bun": "^1.3.2" // [!code ++]
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
```
|
|
@@ -29,7 +29,7 @@ Running `bun install` will install peer dependencies by default, unless marked o
|
|
|
29
29
|
```json package.json icon="file-json"
|
|
30
30
|
{
|
|
31
31
|
"peerDependencies": {
|
|
32
|
-
"@types/bun": "^1.3.
|
|
32
|
+
"@types/bun": "^1.3.2"
|
|
33
33
|
},
|
|
34
34
|
"peerDependenciesMeta": {
|
|
35
35
|
"@types/bun": {
|
|
@@ -64,7 +64,7 @@ Later, when this test file is executed again, Bun will read the snapshot file an
|
|
|
64
64
|
|
|
65
65
|
```sh terminal icon="terminal"
|
|
66
66
|
bun test
|
|
67
|
-
bun test v1.3.
|
|
67
|
+
bun test v1.3.2 (9c68abdb)
|
|
68
68
|
```
|
|
69
69
|
|
|
70
70
|
```txt
|
|
@@ -83,7 +83,7 @@ To update snapshots, use the `--update-snapshots` flag.
|
|
|
83
83
|
|
|
84
84
|
```sh terminal icon="terminal"
|
|
85
85
|
bun test --update-snapshots
|
|
86
|
-
bun test v1.3.
|
|
86
|
+
bun test v1.3.2 (9c68abdb)
|
|
87
87
|
```
|
|
88
88
|
|
|
89
89
|
```txt
|
package/docs/installation.mdx
CHANGED
|
@@ -38,7 +38,7 @@ Bun ships as a single, dependency-free executable. You can install it via script
|
|
|
38
38
|
</Warning>
|
|
39
39
|
|
|
40
40
|
|
|
41
|
-
For support and discussion, please join the **#windows** channel on our [Discord](https://
|
|
41
|
+
For support and discussion, please join the **#windows** channel on our [Discord](https://bun.com/discord).
|
|
42
42
|
|
|
43
43
|
</Tab>
|
|
44
44
|
|
|
@@ -209,7 +209,7 @@ Since Bun is a single binary, you can install older versions by re-running the i
|
|
|
209
209
|
To install a specific version, pass the git tag to the install script:
|
|
210
210
|
|
|
211
211
|
```bash terminal icon="terminal"
|
|
212
|
-
curl -fsSL https://bun.com/install | bash -s "bun-v1.3.
|
|
212
|
+
curl -fsSL https://bun.com/install | bash -s "bun-v1.3.2"
|
|
213
213
|
```
|
|
214
214
|
|
|
215
215
|
</Tab>
|
|
@@ -217,7 +217,7 @@ Since Bun is a single binary, you can install older versions by re-running the i
|
|
|
217
217
|
On Windows, pass the version number to the PowerShell install script:
|
|
218
218
|
|
|
219
219
|
```powershell PowerShell icon="windows"
|
|
220
|
-
iex "& {$(irm https://bun.com/install.ps1)} -Version 1.3.
|
|
220
|
+
iex "& {$(irm https://bun.com/install.ps1)} -Version 1.3.2"
|
|
221
221
|
```
|
|
222
222
|
|
|
223
223
|
</Tab>
|
package/docs/pm/cli/pm.mdx
CHANGED
package/docs/pm/cli/publish.mdx
CHANGED
|
@@ -100,7 +100,7 @@ You can read results from the subprocess via the `stdout` and `stderr` propertie
|
|
|
100
100
|
```ts
|
|
101
101
|
const proc = Bun.spawn(["bun", "--version"]);
|
|
102
102
|
const text = await proc.stdout.text();
|
|
103
|
-
console.log(text); // => "1.3.
|
|
103
|
+
console.log(text); // => "1.3.2\n"
|
|
104
104
|
```
|
|
105
105
|
|
|
106
106
|
Configure the output stream by passing one of the following values to `stdout/stderr`:
|
|
@@ -146,11 +146,11 @@ await fetch("https://example.com", {
|
|
|
146
146
|
```
|
|
147
147
|
|
|
148
148
|
```txt
|
|
149
|
-
[fetch] $ curl --http1.1 "https://example.com/" -X POST -H "content-type: application/json" -H "Connection: keep-alive" -H "User-Agent: Bun/1.3.
|
|
149
|
+
[fetch] $ curl --http1.1 "https://example.com/" -X POST -H "content-type: application/json" -H "Connection: keep-alive" -H "User-Agent: Bun/1.3.2" -H "Accept: */*" -H "Host: example.com" -H "Accept-Encoding: gzip, deflate, br" --compressed -H "Content-Length: 13" --data-raw "{\"foo\":\"bar\"}"
|
|
150
150
|
[fetch] > HTTP/1.1 POST https://example.com/
|
|
151
151
|
[fetch] > content-type: application/json
|
|
152
152
|
[fetch] > Connection: keep-alive
|
|
153
|
-
[fetch] > User-Agent: Bun/1.3.
|
|
153
|
+
[fetch] > User-Agent: Bun/1.3.2
|
|
154
154
|
[fetch] > Accept: */*
|
|
155
155
|
[fetch] > Host: example.com
|
|
156
156
|
[fetch] > Accept-Encoding: gzip, deflate, br
|
|
@@ -190,7 +190,7 @@ await fetch("https://example.com", {
|
|
|
190
190
|
[fetch] > HTTP/1.1 POST https://example.com/
|
|
191
191
|
[fetch] > content-type: application/json
|
|
192
192
|
[fetch] > Connection: keep-alive
|
|
193
|
-
[fetch] > User-Agent: Bun/1.3.
|
|
193
|
+
[fetch] > User-Agent: Bun/1.3.2
|
|
194
194
|
[fetch] > Accept: */*
|
|
195
195
|
[fetch] > Host: example.com
|
|
196
196
|
[fetch] > Accept-Encoding: gzip, deflate, br
|
|
@@ -342,7 +342,7 @@ This will print the request and response headers to your terminal:
|
|
|
342
342
|
```sh
|
|
343
343
|
[fetch] > HTTP/1.1 GET http://example.com/
|
|
344
344
|
[fetch] > Connection: keep-alive
|
|
345
|
-
[fetch] > User-Agent: Bun/1.3.
|
|
345
|
+
[fetch] > User-Agent: Bun/1.3.2
|
|
346
346
|
[fetch] > Accept: */*
|
|
347
347
|
[fetch] > Host: example.com
|
|
348
348
|
[fetch] > Accept-Encoding: gzip, deflate, br, zstd
|
package/docs/test/dom.mdx
CHANGED
package/package.json
CHANGED