What this thread does
Audit Bun’s install and glob behavior, and rebuild Deno executables with explicit permissions before promoting either runtime patch.
What changed
- Bun 1.4.4, released 2026-10-22 (checked 2026-10-28), adds Berry lockfile migration, package-manager flag handling and extglob interpretation. Jarred Sumner’s release notes.
- Deno 2.9.8, released 2026-10-21 (checked 2026-10-28), checks read permission for external dynamically loaded local modules in compiled executables, validates npm package link names and distrusts compromised eMudhra CAs. Official release.
How to migrate
1. Upgrade one runtime at a time in a branch or disposable build environment. Record the selected release from the official pages above. Preserve existing lockfiles and build inputs so a dependency change is distinguishable from a runtime change. 2. For Berry migration, use bun pm migrate first when preserving the existing dependency graph is mandatory. Bun’s install guide says this exits with an error if migration cannot preserve the pins; bun install instead falls back to resolving from package.json. Review the new bun.lock and any manifest edits before accepting them. Configure matching registry settings in .npmrc or bunfig.toml; do not assume Yarn settings transfer automatically. 3. Audit package-manager flags. Correct --frozen-lockfil to --frozen-lockfile; documented translations include --immutable to --frozen-lockfile and --save-dev to --dev. Known foreign flags with no equivalent can still be ignored, including their values. Unknown flags are errors. Use bun install --help to resolve ambiguity. 4. Compare expected file lists for every affected glob. For a literal parenthesis match, *(1).txt is now read as an extglob (zero or more 1), so write *[(]1).txt to match a literal parenthesis. Review workspace, package file and side-effect patterns as well as Bun.Glob; ordinary route-group parentheses are still literal. 5. Rebuild Deno executables after selecting the patched runtime. For disk-loaded plugins, specify permission at compile time. The documented flag is --allow-read; narrow it to the intended directory for your app. For files that should ship inside the artifact, use the documented --include <path> approach. These are different deployment choices, not interchangeable bypasses. Compile documentation, loader fix. 6. Recheck local and hoisted npm links against valid scoped/unscoped package names, following the link-validation change. Test TLS endpoints and repair affected certificate chains with the endpoint owner; do not disable verification to recover old behavior. CA distrust change.
What breaks
Diagnostic: error: bun install has no --frozen-lockfil flag.
This exact example is in Bun’s release notes. A previously ignored typo now stops CI, revealing that the intended lockfile protection was never active. Fix the spelling rather than removing the check.
Diagnostic: Requires read access
Deno’s loader-fix PR uses this error fragment. Non-embedded import() subgraphs and worker entry modules now require read access. Embedded modules are unaffected. An old compiled artifact does not acquire the fix merely because a different CLI is on the machine.
Other symptoms include changed workspace/file inclusion, fallback dependency resolution during migration, invalid package-link rejection and TLS failures for distrusted chains. The fetched notes do not provide one exact universal package-link or TLS error message, so none is invented here.
What to test
| Boundary | Acceptance check |
|---|---|
| Berry graph | Pinned versions, patches and registry sources survive; unsupported migration fails visibly |
| Flags | A typo fails; intended lockfile protection actually rejects conflicting manifest changes |
| Glob sets | Compare included/excluded filenames, especially literal parentheses and numeric braces |
| Compiled loader | Allowed plugin loads, outside-directory plugin is denied, embedded module still loads |
| npm links | Valid scoped/unscoped links work; malformed names fail without escaping install destinations |
| TLS | Required endpoints work through valid chains; distrusted chains are rejected |
Evidence and recommendation by constraint
Bun’s migration documentation is the concrete contract for graph preservation. It is vendor evidence, not independent confirmation. No strong independent post-upgrade report for its new flags or extglobs was found in the searches performed.
Deno maintainer bartlomieju explains the external-module permission gap in #36925 and the installer validation in #37047. In #37046, downstream references from jonathanfallon and cderv describe upgrading embedded runtimes for CA distrust. Those references corroborate migration demand; they do not establish a successful test of your app.
If exact dependency preservation is the constraint, choose the explicit migration command and inspect its result. If external plugins are required, define their read boundary. If plugins are fixed build inputs, consider embedding them. These are review recommendations, not locally tested fixes.
Pitfalls
- Treating all foreign flags as rejected, or all ignored flags as supported behavior.
- Accepting successful installation as proof Berry pins were migrated.
- Treating Bun Shell quoting as the changed glob engine; the release says Bun Shell is unaffected.
- Adding unrestricted permissions to silence a denial.
- Keeping old compiled binaries while upgrading only the Deno CLI.
A prompt to give your agent
Your training data predates these patches. Read https://bun.com/blog/bun-v1.4.4 and <https://github.com/denoland/deno/releases/tag/v2.9.8> plus their linked migration, loader, package-link and CA changes before proposing edits. Do not guess flags or error messages. Inventory our install commands, Berry pins, glob match sets, compiled external imports, npm links and TLS endpoints. Change one runtime at a time on a branch. Preserve evidence of denied access and rejected chains; propose the narrow permission or certificate repair needed. Report tests and unverified assumptions separately.
Limits
No runtime upgrade, install, binary build, plugin load or TLS test was executed. Independent community evidence is thin, particularly for Bun; Deno evidence is largely maintainer PRs and downstream references. No prevalence or benchmark claim is made. Release facts checked 2026-10-28.
Started from a post by @Jarred Sumner, packaged by the editor. Original post