From b4f85c8866c239f26e30e004bcdddaa03184da9e Mon Sep 17 00:00:00 2001 From: robobun Date: Sat, 8 Nov 2025 21:20:04 -0800 Subject: [PATCH] Update docs example versions to 1.3.2 (#24522) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Summary Updated all example version placeholders in documentation from 1.3.1 and 1.2.20 to 1.3.2. ## Changes Updated version examples in: - Installation examples (Linux/macOS and Windows install commands) - Package manager output examples (`bun install`, `bun publish`, `bun pm` commands) - Test runner output examples - Spawn/child process output examples - Fetch User-Agent header examples in debugging docs - `Bun.version` API example ## Notes - Historical version references (e.g., "As of Bun v1.x.x..." or "Bun v1.x.x+ required") were intentionally **preserved** as they document when features were introduced - Generic package.json version examples (non-Bun package versions) were **preserved** - Only example outputs and code snippets showing current Bun version were updated ## Files Changed (13 total) - `docs/installation.mdx` - `docs/guides/install/from-npm-install-to-bun-install.mdx` - `docs/guides/install/add-peer.mdx` - `docs/bundler/html-static.mdx` (6 occurrences) - `docs/test/dom.mdx` - `docs/pm/cli/publish.mdx` - `docs/pm/cli/pm.mdx` - `docs/guides/test/snapshot.mdx` (2 occurrences) - `docs/guides/ecosystem/nuxt.mdx` - `docs/guides/util/version.mdx` - `docs/runtime/debugger.mdx` (3 occurrences) - `docs/runtime/networking/fetch.mdx` - `docs/runtime/child-process.mdx` **Total:** 23 version references updated 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Bot Co-authored-by: Claude Co-authored-by: Michael H --- docs/bundler/html-static.mdx | 12 ++++++------ docs/guides/ecosystem/nuxt.mdx | 2 +- docs/guides/install/add-peer.mdx | 4 ++-- .../install/from-npm-install-to-bun-install.mdx | 2 +- docs/guides/test/snapshot.mdx | 4 ++-- docs/guides/util/version.mdx | 2 +- docs/installation.mdx | 4 ++-- docs/pm/cli/pm.mdx | 2 +- docs/pm/cli/publish.mdx | 2 +- docs/runtime/child-process.mdx | 2 +- docs/runtime/debugger.mdx | 6 +++--- docs/runtime/networking/fetch.mdx | 2 +- docs/test/dom.mdx | 2 +- 13 files changed, 23 insertions(+), 23 deletions(-) diff --git a/docs/bundler/html-static.mdx b/docs/bundler/html-static.mdx index e1a2a3c9b9..8dd8ecb955 100644 --- a/docs/bundler/html-static.mdx +++ b/docs/bundler/html-static.mdx @@ -25,7 +25,7 @@ bun ./index.html ``` ``` -Bun v1.2.20 +Bun v1.3.2 ready in 6.62ms → http://localhost:3000/ Press h + Enter to show shortcuts @@ -51,7 +51,7 @@ bun index.html ``` ``` -Bun v1.2.20 +Bun v1.3.2 ready in 6.62ms → http://localhost:3000/ Press h + Enter to show shortcuts @@ -81,7 +81,7 @@ bun ./index.html ./about.html ``` ```txt -Bun v1.2.20 +Bun v1.3.2 ready in 6.62ms → http://localhost:3000/ Routes: @@ -104,7 +104,7 @@ bun ./**/*.html ``` ``` -Bun v1.2.20 +Bun v1.3.2 ready in 6.62ms → http://localhost:3000/ Routes: @@ -122,7 +122,7 @@ bun ./index.html ./about/index.html ./about/foo/index.html ``` ``` -Bun v1.2.20 +Bun v1.3.2 ready in 6.62ms → http://localhost:3000/ Routes: @@ -259,7 +259,7 @@ bun ./index.html --console ``` ``` -Bun v1.2.20 +Bun v1.3.2 ready in 6.62ms → http://localhost:3000/ Press h + Enter to show shortcuts diff --git a/docs/guides/ecosystem/nuxt.mdx b/docs/guides/ecosystem/nuxt.mdx index 4a7a9b889c..87bc477790 100644 --- a/docs/guides/ecosystem/nuxt.mdx +++ b/docs/guides/ecosystem/nuxt.mdx @@ -14,7 +14,7 @@ bunx nuxi init my-nuxt-app ✔ Which package manager would you like to use? bun ◐ Installing dependencies... -bun install v1.3.1 (16b4bf34) +bun install v1.3.2 (16b4bf34) + @nuxt/devtools@0.8.2 + nuxt@3.7.0 785 packages installed [2.67s] diff --git a/docs/guides/install/add-peer.mdx b/docs/guides/install/add-peer.mdx index 66b15174f2..7ded7f6e38 100644 --- a/docs/guides/install/add-peer.mdx +++ b/docs/guides/install/add-peer.mdx @@ -17,7 +17,7 @@ This will add the package to `peerDependencies` in `package.json`. ```json package.json icon="file-json" { "peerDependencies": { - "@types/bun": "^1.3.1" // [!code ++] + "@types/bun": "^1.3.2" // [!code ++] } } ``` @@ -29,7 +29,7 @@ Running `bun install` will install peer dependencies by default, unless marked o ```json package.json icon="file-json" { "peerDependencies": { - "@types/bun": "^1.3.1" + "@types/bun": "^1.3.2" }, "peerDependenciesMeta": { "@types/bun": { diff --git a/docs/guides/install/from-npm-install-to-bun-install.mdx b/docs/guides/install/from-npm-install-to-bun-install.mdx index 477eaa6c5c..6e1549a667 100644 --- a/docs/guides/install/from-npm-install-to-bun-install.mdx +++ b/docs/guides/install/from-npm-install-to-bun-install.mdx @@ -99,7 +99,7 @@ bun update bun update @types/bun --latest # Update a dependency to a specific version -bun update @types/bun@1.3.1 +bun update @types/bun@1.3.2 # Update all dependencies to the latest versions bun update --latest diff --git a/docs/guides/test/snapshot.mdx b/docs/guides/test/snapshot.mdx index da461952c8..1141c42f21 100644 --- a/docs/guides/test/snapshot.mdx +++ b/docs/guides/test/snapshot.mdx @@ -64,7 +64,7 @@ Later, when this test file is executed again, Bun will read the snapshot file an ```sh terminal icon="terminal" bun test -bun test v1.3.1 (9c68abdb) +bun test v1.3.2 (9c68abdb) ``` ```txt @@ -83,7 +83,7 @@ To update snapshots, use the `--update-snapshots` flag. ```sh terminal icon="terminal" bun test --update-snapshots -bun test v1.3.1 (9c68abdb) +bun test v1.3.2 (9c68abdb) ``` ```txt diff --git a/docs/guides/util/version.mdx b/docs/guides/util/version.mdx index 8120e210bd..73b3942744 100644 --- a/docs/guides/util/version.mdx +++ b/docs/guides/util/version.mdx @@ -7,7 +7,7 @@ mode: center Get the current version of Bun in a semver format. ```ts index.ts icon="/icons/typescript.svg" -Bun.version; // => "1.3.1" +Bun.version; // => "1.3.2" ``` --- diff --git a/docs/installation.mdx b/docs/installation.mdx index bfddfeeb3b..4f518c3033 100644 --- a/docs/installation.mdx +++ b/docs/installation.mdx @@ -209,7 +209,7 @@ Since Bun is a single binary, you can install older versions by re-running the i To install a specific version, pass the git tag to the install script: ```bash terminal icon="terminal" - curl -fsSL https://bun.com/install | bash -s "bun-v1.3.1" + curl -fsSL https://bun.com/install | bash -s "bun-v1.3.2" ``` @@ -217,7 +217,7 @@ Since Bun is a single binary, you can install older versions by re-running the i On Windows, pass the version number to the PowerShell install script: ```powershell PowerShell icon="windows" - iex "& {$(irm https://bun.com/install.ps1)} -Version 1.3.1" + iex "& {$(irm https://bun.com/install.ps1)} -Version 1.3.2" ``` diff --git a/docs/pm/cli/pm.mdx b/docs/pm/cli/pm.mdx index fc297753d3..46e41a03e8 100644 --- a/docs/pm/cli/pm.mdx +++ b/docs/pm/cli/pm.mdx @@ -244,7 +244,7 @@ bun pm version ``` ```txt -bun pm version v1.3.1 (ca7428e9) +bun pm version v1.3.2 (ca7428e9) Current package version: v1.0.0 Increment: diff --git a/docs/pm/cli/publish.mdx b/docs/pm/cli/publish.mdx index 0966cf20f4..af65bdfd96 100644 --- a/docs/pm/cli/publish.mdx +++ b/docs/pm/cli/publish.mdx @@ -13,7 +13,7 @@ bun publish ``` ```txt -bun publish v1.3.1 (ca7428e9) +bun publish v1.3.2 (ca7428e9) packed 203B package.json packed 224B README.md diff --git a/docs/runtime/child-process.mdx b/docs/runtime/child-process.mdx index 0f068ed333..6be68a6f27 100644 --- a/docs/runtime/child-process.mdx +++ b/docs/runtime/child-process.mdx @@ -100,7 +100,7 @@ You can read results from the subprocess via the `stdout` and `stderr` propertie ```ts const proc = Bun.spawn(["bun", "--version"]); const text = await proc.stdout.text(); -console.log(text); // => "1.3.1\n" +console.log(text); // => "1.3.2\n" ``` Configure the output stream by passing one of the following values to `stdout/stderr`: diff --git a/docs/runtime/debugger.mdx b/docs/runtime/debugger.mdx index f2fa05edc9..c718f2632f 100644 --- a/docs/runtime/debugger.mdx +++ b/docs/runtime/debugger.mdx @@ -146,11 +146,11 @@ await fetch("https://example.com", { ``` ```txt -[fetch] $ curl --http1.1 "https://example.com/" -X POST -H "content-type: application/json" -H "Connection: keep-alive" -H "User-Agent: Bun/1.3.1" -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.3.2" -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.3.1 +[fetch] > User-Agent: Bun/1.3.2 [fetch] > Accept: */* [fetch] > Host: example.com [fetch] > Accept-Encoding: gzip, deflate, br @@ -190,7 +190,7 @@ await fetch("https://example.com", { [fetch] > HTTP/1.1 POST https://example.com/ [fetch] > content-type: application/json [fetch] > Connection: keep-alive -[fetch] > User-Agent: Bun/1.3.1 +[fetch] > User-Agent: Bun/1.3.2 [fetch] > Accept: */* [fetch] > Host: example.com [fetch] > Accept-Encoding: gzip, deflate, br diff --git a/docs/runtime/networking/fetch.mdx b/docs/runtime/networking/fetch.mdx index cdc97b5263..27e1aa9b76 100644 --- a/docs/runtime/networking/fetch.mdx +++ b/docs/runtime/networking/fetch.mdx @@ -342,7 +342,7 @@ This will print the request and response headers to your terminal: ```sh [fetch] > HTTP/1.1 GET http://example.com/ [fetch] > Connection: keep-alive -[fetch] > User-Agent: Bun/1.3.1 +[fetch] > User-Agent: Bun/1.3.2 [fetch] > Accept: */* [fetch] > Host: example.com [fetch] > Accept-Encoding: gzip, deflate, br, zstd diff --git a/docs/test/dom.mdx b/docs/test/dom.mdx index 40e26e10fe..8d50113dd0 100644 --- a/docs/test/dom.mdx +++ b/docs/test/dom.mdx @@ -65,7 +65,7 @@ bun test ``` ``` -bun test v1.2.20 +bun test v1.3.2 dom.test.ts: ✓ dom test [0.82ms]