From 57fa6986da1c9b2cd607616f8c0b9f09973b61c9 Mon Sep 17 00:00:00 2001 From: Luke Parker <10430890+Hona@users.noreply.github.com> Date: Fri, 16 Jan 2026 21:39:25 +1000 Subject: [PATCH] chore: bump bun to v1.3.6 --- bun.lock | 6 +++--- package.json | 4 ++-- packages/opencode/src/skill/skill.ts | 3 +-- packages/opencode/src/storage/storage.ts | 4 ++-- packages/opencode/src/util/filesystem.ts | 5 ++--- 5 files changed, 10 insertions(+), 12 deletions(-) diff --git a/bun.lock b/bun.lock index 73feecbbfa81..637c50b6e67f 100644 --- a/bun.lock +++ b/bun.lock @@ -500,7 +500,7 @@ "@tailwindcss/vite": "4.1.11", "@tsconfig/bun": "1.0.9", "@tsconfig/node22": "22.0.2", - "@types/bun": "1.3.4", + "@types/bun": "1.3.6", "@types/luxon": "3.7.1", "@types/node": "22.13.9", "@typescript/native-preview": "7.0.0-dev.20251207.1", @@ -1755,7 +1755,7 @@ "@types/braces": ["@types/braces@3.0.5", "", {}, "sha512-SQFof9H+LXeWNz8wDe7oN5zu7ket0qwMu5vZubW4GCJ8Kkeh6nBWUz87+KTz/G3Kqsrp0j/W253XJb3KMEeg3w=="], - "@types/bun": ["@types/bun@1.3.4", "", { "dependencies": { "bun-types": "1.3.4" } }, "sha512-EEPTKXHP+zKGPkhRLv+HI0UEX8/o+65hqARxLy8Ov5rIxMBPNTjeZww00CIihrIQGEQBYg+0roO5qOnS/7boGA=="], + "@types/bun": ["@types/bun@1.3.6", "", { "dependencies": { "bun-types": "1.3.6" } }, "sha512-uWCv6FO/8LcpREhenN1d1b6fcspAB+cefwD7uti8C8VffIv0Um08TKMn98FynpTiU38+y2dUO55T11NgDt8VAA=="], "@types/chai": ["@types/chai@5.2.3", "", { "dependencies": { "@types/deep-eql": "*", "assertion-error": "^2.0.1" } }, "sha512-Mw558oeA9fFbv65/y4mHtXDs9bPnFMZAL/jxdPFUpOHHIXX91mcgEHbS5Lahr+pwZFR8A7GQleRWeI6cGFC2UA=="], @@ -2055,7 +2055,7 @@ "bun-pty": ["bun-pty@0.4.4", "", {}, "sha512-WK4G6uWsZgu1v4hKIlw6G1q2AOf8Rbga2Yr7RnxArVjjyb+mtVa/CFc9GOJf+OYSJSH8k7LonAtQOVeNAddRyg=="], - "bun-types": ["bun-types@1.3.4", "", { "dependencies": { "@types/node": "*" } }, "sha512-5ua817+BZPZOlNaRgGBpZJOSAQ9RQ17pkwPD0yR7CfJg+r8DgIILByFifDTa+IPDDxzf5VNhtNlcKqFzDgJvlQ=="], + "bun-types": ["bun-types@1.3.6", "", { "dependencies": { "@types/node": "*" } }, "sha512-OlFwHcnNV99r//9v5IIOgQ9Uk37gZqrNMCcqEaExdkVq3Avwqok1bJFmvGMCkCE0FqzdY8VMOZpfpR3lwI+CsQ=="], "bun-webgpu": ["bun-webgpu@0.1.4", "", { "dependencies": { "@webgpu/types": "^0.1.60" }, "optionalDependencies": { "bun-webgpu-darwin-arm64": "^0.1.4", "bun-webgpu-darwin-x64": "^0.1.4", "bun-webgpu-linux-x64": "^0.1.4", "bun-webgpu-win32-x64": "^0.1.4" } }, "sha512-Kw+HoXl1PMWJTh9wvh63SSRofTA8vYBFCw0XEP1V1fFdQEDhI8Sgf73sdndE/oDpN/7CMx0Yv/q8FCvO39ROMQ=="], diff --git a/package.json b/package.json index 66d2523652dd..e023999077c6 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "description": "AI-powered development tool", "private": true, "type": "module", - "packageManager": "bun@1.3.5", + "packageManager": "bun@1.3.6", "scripts": { "dev": "bun run --cwd packages/opencode --conditions=browser src/index.ts", "typecheck": "bun turbo typecheck", @@ -21,7 +21,7 @@ "packages/slack" ], "catalog": { - "@types/bun": "1.3.4", + "@types/bun": "1.3.6", "@octokit/rest": "22.0.0", "@hono/zod-validator": "0.4.2", "ulid": "3.0.1", diff --git a/packages/opencode/src/skill/skill.ts b/packages/opencode/src/skill/skill.ts index 9d45f16882eb..e1dfa8c53056 100644 --- a/packages/opencode/src/skill/skill.ts +++ b/packages/opencode/src/skill/skill.ts @@ -6,7 +6,6 @@ import { ConfigMarkdown } from "../config/markdown" import { Log } from "../util/log" import { Global } from "@/global" import { Filesystem } from "@/util/filesystem" -import { exists } from "fs/promises" export namespace Skill { const log = Log.create({ service: "skill" }) @@ -76,7 +75,7 @@ export namespace Skill { ) // Also include global ~/.claude/skills/ const globalClaude = `${Global.Path.home}/.claude` - if (await exists(globalClaude)) { + if (await Bun.file(globalClaude).exists()) { claudeDirs.push(globalClaude) } diff --git a/packages/opencode/src/storage/storage.ts b/packages/opencode/src/storage/storage.ts index 8b4042ea13f2..59ee41dae90a 100644 --- a/packages/opencode/src/storage/storage.ts +++ b/packages/opencode/src/storage/storage.ts @@ -23,7 +23,7 @@ export namespace Storage { const MIGRATIONS: Migration[] = [ async (dir) => { const project = path.resolve(dir, "../project") - if (!fs.exists(project)) return + if (!(await Bun.file(project).exists())) return for await (const projectDir of new Bun.Glob("*").scan({ cwd: project, onlyFiles: false, @@ -43,7 +43,7 @@ export namespace Storage { if (worktree) break } if (!worktree) continue - if (!(await fs.exists(worktree))) continue + if (!(await Bun.file(worktree).exists())) continue const [id] = await $`git rev-list --max-parents=0 --all` .quiet() .nothrow() diff --git a/packages/opencode/src/util/filesystem.ts b/packages/opencode/src/util/filesystem.ts index 472bff83dd3c..cd65b846fa6e 100644 --- a/packages/opencode/src/util/filesystem.ts +++ b/packages/opencode/src/util/filesystem.ts @@ -1,5 +1,4 @@ import { realpathSync } from "fs" -import { exists } from "fs/promises" import { dirname, join, relative } from "path" export namespace Filesystem { @@ -31,7 +30,7 @@ export namespace Filesystem { const result = [] while (true) { const search = join(current, target) - if (await exists(search).catch(() => false)) result.push(search) + if (await Bun.file(search).exists()) result.push(search) if (stop === current) break const parent = dirname(current) if (parent === current) break @@ -46,7 +45,7 @@ export namespace Filesystem { while (true) { for (const target of targets) { const search = join(current, target) - if (await exists(search).catch(() => false)) yield search + if (await Bun.file(search).exists()) yield search } if (stop === current) break const parent = dirname(current)