Skip to content

fix: preserve prefetched page hydration and release 3.1.0 - #276

Merged
olliethedev merged 7 commits into
mainfrom
feat/v3.1.0-page-loading
Sep 16, 2026
Merged

olliethedev merged 7 commits into
mainfrom
feat/v3.1.0-page-loading

Conversation

@olliethedev

@olliethedev olliethedev commented Sep 16, 2026

Copy link
Copy Markdown
Collaborator

Unchanged provider inputs could publish new context values during hydration, replacing prefetched blog HTML with a skeleton while its lazy page module was loading. Memoize Stack/Auth/router context values and generate stable provider overrides for Next.js, React Router, and TanStack Start. Existing route.PageComponent rendering, eager authorization, and page code splitting remain intact. Optional direct guarded blog entries reuse the same permissions and error behavior.

Promote the verified RC runtime to stable @btst/[email protected] and @btst/[email protected]. Generated installations pin the matching stack and @btst/[email protected]; its session-subscription fix prevents unrelated configuration updates. Extend npm availability verification to 15 minutes to accommodate publish-time scanning observed during the RC release.

RC validation: 1,061 stack tests plus CLI tests, typecheck, lint, Knip, docs build, strict npm/pnpm packed consumers, registry validation and both deployment previews passed. Full generated-app suites passed: Next.js 191 tests, React Router 186, TanStack Start 188; a TanStack-only case is skipped in the other two frameworks. Dedicated regressions cover hydration continuity, immediate authorization revocation, current callbacks, failed module loading and page bundle separation.

A deployed consumer using the published RC passed cold anonymous list/post checks with JavaScript delayed 1.5 seconds. Content stayed visible after its first reveal, with no browser errors or unrelated page implementations, and theme changes worked. That integration combines stable overrides, the companion Auth UI and a version-pinned next-themes correction. Brief initial streaming placeholders remain; meaningful identity/runtime/context changes can still reveal loading while code or data is unavailable.

Stable candidate c064e752 passed final CI, all three framework browser suites, both Vercel deployments, independent final-head review and the release gate. Merged into main; BTST 3.1.0 is published. The release workflow passed, and npm latest, source commit and integrity were verified for stack 3.1.0, codegen 3.1.0 and companion Auth UI 2.0.1.

@vercel

vercel Bot commented Sep 16, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated
better-stack-docs Ready Ready Preview Sep 16, 2026 8:16pm UTC
better-stack-playground Ready Ready Preview Sep 16, 2026 8:16pm UTC

Request Review

@olliethedev
olliethedev marked this pull request as ready for review September 16, 2026 17:00
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 16, 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-09-16T18:57:23.180020Z 62fa86b Draft marked ready
ℹ️ 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.

@chatgpt-codex-connector chatgpt-codex-connector 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 70d318bbea

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread packages/cli/src/templates/nextjs/ssg-blog-list.tsx.hbs Outdated
@olliethedev olliethedev changed the title feat(blog): preserve prefetched pages with native route imports (3.1.0 RC) fix: preserve prefetched page hydration and prepare 3.1.0 RC Sep 16, 2026
@olliethedev
olliethedev marked this pull request as draft September 16, 2026 18:50
@olliethedev
olliethedev marked this pull request as ready for review September 16, 2026 18:50
@olliethedev olliethedev changed the title fix: preserve prefetched page hydration and prepare 3.1.0 RC fix: preserve prefetched page hydration and release 3.1.0 Sep 16, 2026
@olliethedev
olliethedev merged commit d86a333 into main Sep 16, 2026
14 checks passed

This branch was successfully deployed

2 active deployments
Preview – better-stack-docs c064e752 Deployed Sep 16, 2026 by vercel[bot]
Preview – better-stack-playground c064e752 Deployed Sep 16, 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