Skip to content

chore: upgrade vocs to 2.12.0 - #1070

Merged
brendanjryan merged 3 commits into
mainfrom
pyramid/9d190eac-60b8-4b3c-8e0c-111c51bd9d25
Oct 27, 2026
Merged

brendanjryan merged 3 commits into
mainfrom
pyramid/9d190eac-60b8-4b3c-8e0c-111c51bd9d25

Conversation

@brendanjryan

@brendanjryan brendanjryan commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Upgrades the docs site from vocs 2.11.0 to the published vocs 2.12.0 and moves the API reference sidebar onto the OpenAPI options 2.12.0 adds upstream, so the local patch shrinks from 1,522 to 719 lines.

Removed

  • OpenAPI sidebar options in the vocs patch (introFlat, hide, groupExtrasByName, sectionExtras: hunks in dist/internal/openapi/{openapi.d.ts,registry.js,sidebar.d.ts,sidebar.js}). Upstream in wevm/vocs#682. vocs.config.ts now uses introduction: false (was introFlat: true), groupItems (was groupExtrasByName), tagGroupItems (was sectionExtras); hide: ['MCP'] keeps its name.
  • Sidebar active-section rewrite in the vocs patch (useActiveSidebarAnchor hook files, its index exports, and the Sidebar.js/Sidebar.tsx hunks including aria-current). Upstream in wevm/vocs#678, which exports useActiveSidebarAnchor from vocs. The upstream hook takes only links and reads path and hash from the router, so DocsSidebarDrawer.tsx calls useActiveSidebarAnchor(links) and no longer imports useRouter.
  • AGENTS.md note that the four sidebar options are local additions shipped through the patch; it now describes the upstream options.

Kept (and why)

  • patches/vocs@2.12.0.patch (re-created from the remaining 2.11.0 hunks, applies to the 2.12.0 tarball with no fuzz; patch -R --dry-run confirms none are already upstream): playground query presets (query-presets, OpenApiPage, Playground.client, PlaygroundStandalone), Head/Layout includeTitle, the Root head change, and the NotFound title and noindex. None of these are in the 2.12.0 changelog.
  • vocs override (now 2.12.0): keeps tapimo's transitive vocs on the patched release.
  • minimumReleaseAgeExclude: vocs@2.11.0 → vocs@2.12.0 (published today, inside the release-age window).
  • @braintree/sanitize-url, dayjs, waku patches, guard-vocs-config.mjs: unrelated to the 2.12.0 changes. The site still registers Mermaid pages, so wevm/vocs#679 (Mermaid bundled only where used) doesn't remove the ESM patches.

Verification

  • Sidebar unchanged: dumped the generated /docs/api sidebar (registry.build + registry.sidebars against the live spec) with 2.11.0+old patch+old options, and again with 2.12.0+new patch+new options. The JSON is byte-identical. The built dist/public/docs/api/index.html sidebar shows the same top level: API reference (no generated Introduction), Accounts, Earn API, Routes API, Zones API, Data API, Console, MPP, Routes Access Requests, Zone Delegations. MCP stays hidden.
  • pnpm install: installs vocs@2.12.0 with the patch applied.
  • biome check .: clean. Typecheck (tsgo on tsconfig.app.json and tsconfig.node.json, --singleThreaded): pass.
  • pnpm build:site (after guard-vocs-config.mjs): pass, 691 files generated.
  • pnpm check:markdown: pass (0 findings, 335 pages, 9 sections).
  • vitest run --dir src: 77/77 files, 1562/1562 tests passed.

@vercel

vercel Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
tempo-docs Ready Ready Preview Oct 27, 2026 2:56am UTC

Request Review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-26T17:21:14.862064Z 6c49140 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. This swaps the vocs preview pin for the npm 2.11.0 release, and the config and docs are updated to match.

What was reviewed:

  • package.json, the pnpm-workspace override and patchedDependencies, and the lockfile importer, package and snapshot entries all point at vocs@ 2.11.0. The patch was renamed with its content unchanged, so the patch hash is the same. Nothing in the repo still refers to vocs@ 2.10.3 or pkg.pr.new/vocs.
  • The version-scoped vocs@ 2.11.0 entry in minimumReleaseAgeExclude works on the pinned pnpm 10.28.1. The lockfile still resolves @ pierre/highlights@ 0.2.0, so dropping its exclusion depends only on it being older than 24h.
  • The lockfile can't show whether the patch applies cleanly to the 2.11.0 tarball. CI's frozen-lockfile install and build will confirm that.
Extended reasoning...

This is a dependency version bump. It touches package.json, pnpm-workspace.yaml, pnpm-lock.yaml, a renamed patch file with unchanged content, and two docs files. It touches no security-sensitive code: no auth, crypto or data handling. The edits are mechanical and consistent across the manifest, the workspace overrides and patch mapping, and the lockfile, with no stale references left behind. There is no CODEOWNERS file and no reviewer objection open.

@brendanjryan brendanjryan changed the title chore: upgrade vocs to 2.11.0 chore: upgrade vocs to 2.12.0 Oct 27, 2026

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I reviewed the latest push and didn't find any bugs. The PR changed a lot after the first review, though: it now targets vocs 2.12.0 with a rebased 719-line patch, not 2.11.0 with the patch left unchanged, so a human look is still worthwhile. The title and description still describe the 2.11.0 plan and should be updated.

What was reviewed:

  • package.json, the vocs override, minimumReleaseAgeExclude, patchedDependencies and the lockfile all use 2.12.0, and the lockfile's patch_hash points at patches/vocs@ 2.12.0.patch.
  • The vocs.config.ts sidebar renames (introduction: false, groupItems, tagGroupItems) and the one-argument useActiveSidebarAnchor(links) call in DocsSidebarDrawer.tsx assume these now ship in upstream Vocs. The rebased patch no longer adds them, and I couldn't check the 2.12.0 tarball here.
Extended reasoning...

This is a docs-site dependency upgrade. It swaps a commit-pinned Vocs preview for the npm 2.12.0 release, replaces a 1522-line local patch with a 719-line rebased one covering src and dist, renames the OpenAPI sidebar config options and updates one hook call. It touches no auth, crypto or data-handling code. I deferred for three reasons: the patch to a third-party package is large and was rewritten after the first review; the new option names and hook signature depend on the upstream 2.12.0 API, which I couldn't inspect here; and the PR description no longer matches the code.

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code review found no issues

No high-confidence issues detected in this change.

@brendanjryan
brendanjryan merged commit be893f4 into main Oct 27, 2026
16 checks passed
@brendanjryan
brendanjryan deleted the pyramid/9d190eac-60b8-4b3c-8e0c-111c51bd9d25 branch October 27, 2026 04:53

This branch was successfully deployed

1 active deployment
Preview — 2a56a130 Deployed Oct 27, 2026 by vercel[bot]
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