Skip to content

chore: bump Bun to 1.3.14 and add native-API agent rule - #140

Merged
blimmer merged 3 commits into
mainfrom
chore/bun-1.3.14
May 15, 2026
Merged

blimmer merged 3 commits into
mainfrom
chore/bun-1.3.14

Conversation

@blimmer

@blimmer blimmer commented May 15, 2026

Copy link
Copy Markdown
Contributor

Summary

Bumps the pinned Bun toolchain from 1.3.13 → 1.3.14 and adds a Claude Code rule (.claude/rules/bun-native-apis.md) that nudges agents toward Bun.* globals (Bun.Glob, Bun.file, Bun.spawn, Bun.serve, bun:sqlite, macros) instead of the Node-API patterns that show up in their training defaults. The rule's path globs are scoped to packages that run exclusively on Bun, so it stays out of browser/isomorphic code where Bun.* is off-limits. Closes #120.

Review focus

  • Trigger globs in the rule's frontmatter. The rule fires on cli, server, skills, storage, harness, instrumentation/src/node, and packages/*/scripts/. Anything I missed (or misclassified as Bun-only) lands the rule somewhere it shouldn't fire — easy to catch by reading the frontmatter once. packages/context is excluded as a whole because BaseContext and FrontendContext co-exist in one package.
  • Bundling two Bun-related changes. The toolchain bump and the rule arrived on the same branch. Happy to split into two PRs if that's cleaner.

Commits

  • c3ff2a7 — chore: upgrade Bun to 1.3.14
  • 019c606 — docs: add bun details

blimmer added 2 commits May 15, 2026 11:54
Picks up SQLite 3.53.0, shared SSL_CTX cache, ~12% faster ESM loading,
reduced GC overhead for Request/Response/Subprocess, smaller Linux binary,
and node-compat fixes (zlib, TLS, ESM TLA cycles, Bun.serve stream leak).

No code changes needed — none of the v1.3.14 opt-in features (Bun.Image,
HTTP/2/3, `using` no-lower, --no-orphans, bun publish README, globalStore)
apply to this codebase.
@blimmer
blimmer marked this pull request as ready for review May 15, 2026 18:37
@blimmer
blimmer requested a review from jcarver989 as a code owner May 15, 2026 18:37
@blimmer
blimmer enabled auto-merge (squash) May 15, 2026 18:38
@blimmer
blimmer merged commit 99f5c08 into main May 15, 2026
11 checks passed
@blimmer
blimmer deleted the chore/bun-1.3.14 branch May 15, 2026 18:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: agent skill/rule that guides agents toward native Bun APIs

2 participants