Skip to content

Core owns the announce wire; router enumerators move to @solidjs/prerender - #6

Merged
ryansolid merged 1 commit into
mainfrom
announce-protocol-only
Sep 6, 2026
Merged

Core owns the announce wire; router enumerators move to @solidjs/prerender#6
ryansolid merged 1 commit into
mainfrom
announce-protocol-only

Conversation

@ryansolid

Copy link
Copy Markdown
Member

Follow-up to #4/#5. The generic package should not know any router exists — once it has two, every community asks why theirs isn't in, and core accretes routers whose releases it must track.

  • prerender-crawler/routersprerender-crawler/announce: HINT_HEADER, announcePages(request, headers, paths), and the documented contract for what to announce (static, leaf-or-index, no params). Nothing else. README shows a hand-written enumerator so a non-Solid user sees the 5-line pattern.
  • solidRouterPages / tanstackRouterPages, their real-instance tests, and the @tanstack/router-core / @solidjs/router dev deps move to @solidjs/prerender (exported from both halves; both routers are the ones Solid apps use). announceRoutes(router) unchanged.
  • Core sheds all router dev deps.

60 core + 29 solid tests; example build unchanged; --no-links CLI run still seeds /posts from the announced header.

Made with Cursor

…render

The crawler should not know any router exists. prerender-crawler/routers
becomes prerender-crawler/announce: HINT_HEADER, announcePages, and the
documented contract for what a path list holds — nothing else. The
router-specific enumerators (solidRouterPages, tanstackRouterPages), their
real-instance tests, and the @tanstack/router-core / @solidjs/router dev
deps move to @solidjs/prerender, where both routers are the ones Solid
apps use. Core is back to depending on nothing.

Co-authored-by: Cursor <cursoragent@cursor.com>
@ryansolid
ryansolid merged commit 3a4764e into main Sep 6, 2026
4 checks passed
@ryansolid
ryansolid deleted the announce-protocol-only branch September 6, 2026 08:00
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