Skip to content

chore(deps): bun minor and patch group (takes over #2146), one KaTeX, one CodeMirror - #2152

Merged
backnotprop merged 5 commits into
mainfrom
chore/deps-bun-minor-2026-10
Oct 25, 2026
Merged

backnotprop merged 5 commits into
mainfrom
chore/deps-bun-minor-2026-10

Conversation

@backnotprop

@backnotprop backnotprop commented Oct 25, 2026 •

Copy link
Copy Markdown
Owner

Supersedes #2146 (Dependabot, bun-minor-and-patch). Same bumps, done as our own PR, plus the fixes they needed. #2146 is left open for the owner to close.

Bumps

Package From To
@anthropic-ai/claude-agent-sdk 0.3.273 0.3.302
@opencode-ai/sdk 1.18.27 1.19.3
@opencode-ai/plugin 1.18.32 1.19.3
@opencode/plugin 2.0.14 2.0.32
@pierre/diffs 1.3.6 1.5.2
@modelcontextprotocol/client, /server 2.2.0 2.3.1
@agentclientprotocol/sdk 1.8.0 1.9.0
@playwright/test 1.63.0 1.64.1
bun-types / @types/bun 1.4.0 / 1.4.2 1.4.3
react, react-dom (dev / app deps) 19.2.8 19.3.1
@types/react, @types/react-dom 19.2.18 / 19.2.7 19.3.0
wrangler (relay, guides-show, paste, waitlist, telemetry) 4.129.0 4.151.1
vite-plugin-singlefile 2.3.3 2.3.4
astro 7.3.1 7.4.0
@joplin/turndown-plugin-gfm 1.0.67 1.0.68
zod 4.5.4 4.6.7
lucide-react 1.40.0 1.59.0
@base-ui/react 1.7.0 1.9.0
fast-check 4.9.0 4.10.2
@codemirror/commands / language / legacy-modes / state / view 6.11.0 / 6.12.4 / 6.5.4 / 6.7.2 / 6.43.11 6.11.1 / 6.13.1 / 6.5.5 / 6.7.6 / 6.43.14
@lezer/common / highlight 1.5.2 / 1.2.3 1.5.3 / 1.2.5
@viz-js/viz 3.30.0 3.31.0
mermaid 12.0.0 12.2.0
tailwind-merge 3.6.0 3.7.0
katex (@plannotator/ui) ^0.16.47 ^0.18.11 (not in #2146, see below)

bun.lock was regenerated with bun 1.3.14 under minimumReleaseAge (7 days). Not cherry-picked from Dependabot. Every package version new to the lockfile was checked against the npm registry; all are at least 7 days old today, 2026-10-24. The youngest are [email protected] (2026-10-17 22:28Z) and [email protected] (2026-10-17 06:15Z). @pierre/diffs is on the repo's release-age exclude list anyway; 1.5.2 was published 2026-10-05.

What else changed and why

1. One KaTeX (katex → ^0.18.11). mermaid 12.2.0 depends on katex ^0.18, but ui was on ^0.16.47, so the lockfile got a nested mermaid/[email protected]. In the single-file builds, Mermaid's own import("katex") (inlined by inlineDynamicImports) then bundled that second copy. Measured with the KaTeX parse error string, one per KaTeX body:

File main #2146 as-is this PR
apps/hook/dist/index.html (+ opencode plannotator.html, pi plannotator.html) 1 KaTeX 2 (+285,265 B for the 2nd copy) 1
apps/hook/dist/inbox.html 1 2 (+265,486 B) 1
apps/hook/dist/surface.html 1 2 (+265,513 B) 1
review.html / apps/review/dist/index.html (+ opencode/pi copies) 1 1 1
diagram-engine/{engine,mermaid,graphviz}.js 0 0 0 (the build redirects mermaid's katex to mermaid-math-slot)
guides.show viewer 1 chunk — 1 chunk

The fix is bumping ui to katex ^0.18.11, so the tree dedupes to one [email protected]. KaTeX 0.17 changed only the internal __defineFunction API. KaTeX 0.18 prefixed some internal CSS classes (.base became .katex-base, and so on). Plannotator targets only .katex and .katex-display (theme.css, domSelection, belowTitleSlot, useAnnotationHighlighter), and both are unchanged in 0.18. CSS and JS come from the same package, so they stay in step. katexWoff2Only still strips every woff/ttf fallback: the index.html has 33 woff2 data URIs and 0 woff/ttf, and 45 KaTeX faces, the same as main. build/katex-woff2-only.test.ts and tests/entry-assets.test.ts pass. Dependabot's katex ignore moves from >=0.17.0 to >=0.19.0.
⚠️ For the next @plannotator/ui release note: a host that loads katex.min.css itself (CDN or self-hosted; see HANDOFF "Math rendering") has to move that CSS to 0.18 too, because the class names changed.

2. Lockfile: one CodeMirror. An in-place bun install left nested @codemirror/[email protected] / [email protected] / [email protected] (and old @lezer/*) under @codemirror/autocomplete, lang-*, lint, merge and search. Dependabot's lockfile did not have this; ours did on the first pass. The result: two CodeMirror copies, tsc errors in MarkdownEditor/embedPicker.ts, and about +237 KB in index.html. I pruned only the nested entries whose parent's range is satisfied by the hoisted version, then re-resolved. A full-lockfile check (every dependency resolves to a version satisfying its declared range) reports the same 3 peer-only mismatches main already has (claude-agent-sdk → @anthropic-ai/sdk >=0.93, @opencode/client → effect, wrangler → workers-types ^5). No new duplicates of runtime libraries: one react, react-dom, katex, @pierre/diffs, shiki (the app's 4.4.3; astro keeps its own 4.5.0), and codemirror.

3. React peer range. @plannotator/ui's peer stays react/react-dom ^19.2.3, which Dependabot didn't touch. @plannotator/guide-viewer (public, not yet on npm) had its peer raised to ^19.3.1 by Dependabot; kept at ^19.2.8, its old floor. Nothing needs 19.3, and HANDOFF records the same choice from 0.38.1 → 0.40.0. Only dev/app deps move to 19.3.1. @plannotator/core has no React.

4. apps/telemetry wrangler joins the others on ^4.151.1 (it was added after Dependabot opened #2146 and was left on 4.127).

5. Two e2e expectations. @pierre/diffs 1.5 logs repaired hunks: 1.5 repairs a hunk whose declared counts are wrong and now says so with console.error. The shipped fixture FIXTURE_PATCH_TS_JSON has a miscounted hunk (@@ -1,4 +1,6 @@ with 3/5 lines), and fixtures are never edited. So inbox-guides.spec.ts's no-errors check now allows exactly that one line. It failed on this branch and passed on main before the change. Real git diffs are not affected. Separately, the dictation-paste native case skips on Chromium 155–156 on macOS (see Verified).

6. Viewer manifest regenerated. packages/core/guide-viewer-manifest.ts now pins viewer.QlwmHYmZ.js (was viewer.Xt0toQh_.js) and main's viewer.Bl3h9ARd.css. Both pins and their integrities come from one build made after merging main, not from a hand-resolved file. Budgets: viewer JS 360.7 KB gz (main 341.1 KB, budget 400 KB), CSS 54.6 KB gz (budget 64 KB), worker import-free, 242 grammar chunks. check:manifest is in sync.

7. Security overrides (lockfile-only). The root overrides gain sharp 0.35.5, source-map-js 1.2.2 and proxy-addr 2.0.8. All are over 7 days old (published 2026-09-27, 09-30 and 09-15). The lockfile diff touches only those packages and the @img/sharp-* platform packages: nothing else re-resolved, @earendil-works/pi-coding-agent stays 0.84.4, and bun install --frozen-lockfile is clean. This clears 3 Trivy alerts, including the critical one (proxy-addr).

8. HANDOFF. packages/ui/HANDOFF.md gains an unreleased entry for @plannotator/ui 0.54.0 (minor):

  • KaTeX 0.18, with the 21 renamed classes listed; hosts that load their own katex.min.css must move it.
  • @pierre/diffs 1.5.2 logs repaired hunks.
  • mermaid 12.2.0 and @base-ui/react ^1.9.0.
  • The KaTeX bump fixes CVE-2026-103923 (low).

The "Math rendering" pin guidance now names the version.

9. Docs: AGENTS.md now says mermaid 12.2.0 / katex ^0.18, @viz-js/viz 3.31.0 and Playwright 1.64.1; the ui README says @viz-js/viz 3.31.0.

guides.show viewer publish: automatic with the next release tag

There is no manual step. .github/workflows/guides-show-deploy.yml builds dist/viewer, checks budgets and the manifest, and uploads it add-only to R2 bucket guides-show-viewer under /v1/ on every v* release tag. The new viewer therefore goes live with the next release tag. Until then, a guide exported by a build from main names viewer.QlwmHYmZ.js, which guides.show does not serve yet. The same tag that ships a release publishes the viewer, so released builds point at files that exist. The new content-hashed files are v1/viewer.QlwmHYmZ.js, v1/worker.BqPn5q6G.js and their chunks under v1/chunks/; the CSS viewer.Bl3h9ARd.css comes from main.

Byte deltas vs main (raw / gzip -9)

File main this PR Δ raw Δ gz
apps/hook/dist/index.html (= opencode/pi plannotator.html) 23,765,974 23,821,411 +55,437 +9,127
apps/hook/dist/review.html (= apps/review/dist/index.html, opencode/pi review-editor.html) 17,219,790 17,325,151 +105,361 +33,229
apps/hook/dist/inbox.html 22,082,896 22,168,059 +85,163 +21,486
apps/hook/dist/surface.html 20,405,586 20,489,468 +83,882 +23,414
diagram-engine/engine.js 197,578 202,507 +4,929 +1,742
diagram-engine/mermaid.js 4,952,576 4,929,432 −23,144 −11,060
diagram-engine/graphviz.js 1,349,141 1,353,514 +4,373 +962

Verified locally (macOS arm64, bun 1.3.14)

Temp PLANNOTATOR_DATA_DIRs, NO_BROWSER/PLANNOTATOR_BROWSER=/usr/bin/true, PLANNOTATOR_INBOX_CONNECT=0, headless browsers only.

  • bun run typecheck: clean, after a fresh node_modules.
  • bun test: 9961 pass, 2 fail, 2608 skip. Both failures were in packages/server/inbox-phones-gate.test.ts (a "port refused" check), while I ran Playwright e2e servers at the same time. The file passes 4/4 on its own. The isolated CI steps also pass: the file-browser DOM test, the 7 real-@pierre/diffs DiffViewer tests (40 pass), the UI seam/DOM list (2701 pass) and the DOM allowlist guard.
  • Builds: build:review, build:hook, build:opencode, pi build. apps/pi-extension bun pm pack --dry-run: the same 290 files as main (51.17 MB vs 51.0 MB).
  • apps/marketing (astro 7.4): builds 48 pages, as on main.
  • wrangler deploy --dry-run (4.151.1) in apps/relay, apps/guides-show, apps/telemetry, apps/paste-service, apps/waitlist-service: all clean, no warnings. apps/telemetry bun test: 9 pass. No real deploy.
  • Headless Playwright smoke on a compiled binary (--define __CLI_VERSION__="0.0.0-dev"), run on main and on this branch, with screenshots compared pixel by pixel. Code review covered all files and single file, split and unified, a line comment (composer, saved, kept across the layout switch, in the draft), Shiki highlighting with a light→dark switch (token colors change), and the Markdown preview Read and Changes views with a Mermaid diagram in light and dark. Every shot is pixel-identical to main, except the random tater name on the comment card (437 px).
  • Guided Review: tests/e2e/inbox-guides.spec.ts (GuideView over AllFilesCodeView with the real renderer: sections, the diff, line and range comments, the Split/Unified tab) passes 11/11 with the fix above. review-diagrams.spec.ts passes 5/5. The new guides.show viewer, served locally and opened over file:// without file-access flags, renders a v1 authored guide (pixel-identical to main's viewer) and the v2 overview fixture with its Mermaid diagram (about 900 px, a 1 px shift below the repaired fixture hunk).
  • Screenshots: /Users/ramos/plannotator/.ops/shots/deps-2146/ (new-* vs main-*).
  • The full tests/e2e Playwright suite (Chromium and WebKit, 482 tests) on the compiled binary: 479 passed. 1 failed, then fixed, and the 2 that did not run after it pass on a rerun of the spec. The failure was inbox-dictation-paste.spec.ts's "engine without the bug". Playwright 1.64.1 ships Chromium 156.0.8078.4 (1.63 shipped 153), and on macOS Chromium 155–156 is exactly where pasteInsert's plain-text-paste workaround is on by design. That case now skips on such an engine. Linux CI is not in that range, so the test still runs there.
  • Trivy (code scanning): before the overrides it reported 55 alerts, all on package@version entries already in main's bun.lock (checked one by one). They were reported again because this PR rewrites the lockfile; none are new. The overrides in item 7 clear 3 of them, including the critical; the rest are pre-existing and left for a separate pass.

🤖 Generated with Claude Code

Applies Dependabot's bun-minor-and-patch bumps (33 packages) and
regenerates bun.lock with bun 1.3.14 under the 7-day release-age rule.

- katex ^0.16.47 -> ^0.18.11 in @plannotator/ui: mermaid 12.2 needs
  katex ^0.18, and with ui on 0.16 the plan, inbox and surface builds
  carried a second KaTeX (+265 to +285 KB each). Dependabot's katex
  ignore moves to >=0.19.0.
- guide-viewer's React peer range stays at ^19.2.8.
- apps/telemetry's wrangler joins the others on ^4.151.1.
- Nested CodeMirror/Lezer copies left in the lockfile by the in-place
  update were pruned so every package resolves one CodeMirror.
- Regenerated the guides.show viewer manifest (viewer.QlwmHYmZ.js).

Supersedes #2146.
…ture hunk; docs: current pins

@pierre/diffs 1.5 repairs a hunk whose declared line counts are wrong and
logs it with console.error. FIXTURE_PATCH_TS_JSON's first hunk declares
4/6 lines and carries 3/5; it shipped and fixtures are never edited, so
inbox-guides' no-errors check allows exactly that one line.
…e bug

Playwright 1.64 ships Chromium 156, which on macOS is inside the range
where pasteInsert's workaround is on by design (155-156 on mac), so the
'engine without the bug' premise no longer holds there. Linux (CI) keeps
the native path and still runs it.
…2026-10

# Conflicts:
#	packages/core/guide-viewer-manifest.ts
… security overrides

- guide-viewer-manifest.ts: rebuilt after merging main, so the JS
  (viewer.QlwmHYmZ.js) and main's CSS (viewer.Bl3h9ARd.css) pins and
  their integrities come from one build; check:manifest and budgets pass.
- packages/ui/HANDOFF.md: an unreleased 0.54.0 (minor) entry: KaTeX 0.18
  (hosts serving their own katex.min.css must move it; 21 internal classes
  renamed), @pierre/diffs 1.5.2 logs repaired hunks, mermaid 12.2.0,
  @base-ui/react ^1.9.0, CVE-2026-103923. Math rendering's pin guidance
  names the version.
- overrides: sharp 0.35.5, source-map-js 1.2.2, proxy-addr 2.0.8 (all
  over 7 days old). Lockfile-only: just those three and the sharp
  platform packages change; bun install --frozen-lockfile is clean.
- inbox-dictation-paste: the skip uses the app's chromiumPasteBugAffected.
- AGENTS.md: says where the native-paste case skips.
@backnotprop
backnotprop merged commit 2f1d1af into main Oct 25, 2026
31 of 32 checks passed
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.

1 participant