Skip to content

feat: add Apollo Client binding - #74

Merged
trueadm merged 1 commit into
mainfrom
codex/apollo-client-port
Jul 14, 2026
Merged

trueadm merged 1 commit into
mainfrom
codex/apollo-client-port

Conversation

@trueadm

@trueadm trueadm commented Jul 14, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • add @octanejs/apollo-client, porting the full published Apollo Client 4.2.6 client adapter surface and declarations onto Octane
  • adapt compiler hook sites, Suspense unwrapping, render-phase guards, omitted dependency semantics, and MockedProvider
  • add runtime/export/type coverage, a React-free packed-consumer smoke, package status/docs, a changeset, and the MCP compatibility mapping
  • document buffered Apollo SSR/cache hydration as the next milestone

Validation

  • pnpm test — 855 files passed; 6,838 tests passed, 8 expected failures, 2 skipped
  • pnpm typecheck
  • pnpm format:check
  • pnpm packages:pack:check
  • pnpm changeset:check
  • RuleSync, package inventory, binding status, and parity-gap generated-file checks

Note

Medium Risk
Large new data-fetching binding with Suspense and cache semantics, though the upstream Apollo client is reused and SSR prepass/hydration integration is explicitly deferred.

Overview
Introduces @octanejs/apollo-client, a new framework binding that mirrors Apollo 4’s split: the package root re-exports unchanged @apollo/client, while /react ports the full published client adapter (all 18 runtime exports, query-reference APIs, Suspense hooks, skipToken, preloading) with Apollo 4.2.6 TypeScript surface. Adapter-private internals are vendored; hooks run on Octane (octane imports, compiler hook sites, use() for Suspense instead of thrown promises, useRenderGuard for lazy-query render checks, explicit null deps where Apollo meant “every render”).

Testing adds framework-neutral /testing re-exports plus an Octane MockedProvider on /testing/react. Workspace wiring includes root typecheck, generated bindings status / package inventory, docs/apollo-client-port-plan.md (buffered SSR/cache hydration called out as a follow-up), and MCP KNOWN_BINDINGS / bridge docs so agents route @apollo/client to this package.

Reviewed by Cursor Bugbot for commit ee41d04. Bugbot is set up for automated code reviews on this repo. Configure here.

@vercel

vercel Bot commented Jul 14, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
octane-website Ready Ready Preview, Comment Jul 14, 2026 9:54am

Request Review

@trueadm
trueadm force-pushed the codex/apollo-client-port branch from b33474a to ee41d04 Compare July 14, 2026 09:53
@trueadm
trueadm marked this pull request as ready for review July 14, 2026 09:53
@trueadm
trueadm merged commit 15bad71 into main Jul 14, 2026
16 checks passed
@trueadm
trueadm deleted the codex/apollo-client-port branch July 14, 2026 10:05

This branch was previously deployed

1 inactive deployment
Preview — ee41d043 Deployed Jul 14, 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