Skip to content
This repository was archived by the owner on Nov 10, 2025. It is now read-only.

feat: switch to yar router#33

Merged
olliethedev merged 15 commits intomainfrom
feat/router-yar
Oct 6, 2025
Merged

feat: switch to yar router#33
olliethedev merged 15 commits intomainfrom
feat/router-yar

Conversation

@olliethedev
Copy link
Collaborator

@olliethedev olliethedev commented Oct 1, 2025

Description

  • migrating over to a different router solution

All Submissions

  • Have you followed the guidelines in our Contributing document?
  • Have you checked to ensure there aren't other open Pull Requests for the same update/change?

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Test update
  • Other (please describe in description)

How Has This Been Tested?

  • Lint passes (pnpm -w lint)
  • Unit tests pass (pnpm -w test)
  • E2E tests pass (pnpm -w e2e)

Note

Migrates routing to a new TanStack-based router with resolvers and server adapters, updating components, examples, docs, and tests.

  • Router core (packages/better-blog/src/router/...)
    • Add TanStack-based routing: blog-client-router.tsx, blog-router.ts, router.ts, routes.ts(x), pluggable-routes.tsx.
    • Introduce resolvers: page-resolver.tsx, meta-resolver.ts, error-resolver.tsx, loading-resolver.tsx, tanstack-head.ts.
    • Define types and route config: types.ts, routes.ts(x).
  • Components & Context (packages/better-blog/src/components/... , src/context/...)
    • Wire pages and UI to new router: update blog-router-page.tsx, blog-meta-tags.tsx, page components (posts, tags, 404, edit), loading/error.
    • Add routing/context utilities: better-blog-context.tsx, route-context.tsx, hooks/context-hooks.ts, types.ts.
  • Server integration (packages/better-blog/src/server/pages/...)
    • Add server adapters and prefetch: server-adapter.tsx, prefetch.ts, index.tsx, types.ts.
  • Examples
    • Add TanStack example app: apps/examples/tanstack/* (router, routes, Vite config).
    • Update Next.js and React examples to use new router: apps/examples/nextjs/*, apps/examples/react/src/BlogPage.tsx.
  • Docs
    • Update guides and references: apps/docs/content/docs/* (core concepts, hooks, overrides, react-router, tanstack-start).
  • Tests & E2E
    • Add/update unit and integration tests for router, SEO, utils, and head: packages/better-blog/src/**/__tests__/*.
    • Add E2E smoke tests for posts: e2e/tests/smoke.posts.spec.ts.

Written by Cursor Bugbot for commit 079b5d8. This will update automatically on new commits. Configure here.

@vercel
Copy link

vercel bot commented Oct 1, 2025

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

Project Deployment Preview Comments Updated (UTC)
better-blog-docs Ready Ready Preview Comment Oct 6, 2025 3:19pm

cursor[bot]

This comment was marked as outdated.

cursor[bot]

This comment was marked as outdated.

cursor[bot]

This comment was marked as outdated.

cursor[bot]

This comment was marked as outdated.

cursor[bot]

This comment was marked as outdated.

cursor[bot]

This comment was marked as outdated.

cursor[bot]

This comment was marked as outdated.

cursor[bot]

This comment was marked as outdated.

@olliethedev olliethedev merged commit 1600296 into main Oct 6, 2025
5 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant