0
Fork 0
mirror of https://github.com/TanStack/router.git synced 2026-11-18 19:34:24 +00:00
router/packages/start-plugin-core/tests
Brenley Dueck d3310dcb43 wip(solid-start): back createServerFn with vite-plugin-solid native server functions
Highly experimental: replaces TanStack's split server-fn transport for
Solid Start with vite-plugin-solid ^3.0.0-next.16's native "use server"
pipeline + the @solidjs/web/server-functions runtime, keeping the public
createServerFn().validator().middleware().handler() API intact. React
(and other frameworks) stay on the split transport.

- start-plugin-core: new serverFnTransport: 'directive' option; compiler
  emits "use server" trampolines instead of splitting modules; dispatch
  now flows through #tanstack-start-server-fn-dispatch (package-imports
  default = split transport, virtual override for directive mode)
- solid-start: appends the standalone serverFunctions() plugins, new
  createDirectiveClientRpc/createDirectiveServerRpc transports and
  createTanStackDispatchOptions wiring TanStack codec/result semantics
  into handleServerFunctionRequest
- TanStack owns the wire ids (split-safe, generateFunctionId honored)
  and registers them via the runtime's public registerServerFunction —
  vite-plugin-solid's path+ordinal ids collide across router code-split
  modules and stay internal-only
- registration coverage via pruned ?tss-serverfn-split provider modules
  (dynamic imports; "sideEffects": false tree-shakes static ones)
- no-JS urlencoded form posts normalized back to FormData

e2e: solid-start/server-functions 28 passed (2 assertions adapted to the
new wire format), solid-start/basic 80 passed, react-start/
server-functions 53 passed; unit suites green.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
History 2026-07-23 18:07:04 -05:00
..
clientOnlyJSX fix(start-plugin-core): reuse deduped server function ids across compilers (#7153) 2026-04-11 16:37:33 +02:00
createIsomorphicFn fix(start-plugin-core): reuse deduped server function ids across compilers (#7153) 2026-04-11 16:37:33 +02:00
createMiddleware rename inputValidator to validator (#7566) 2026-06-06 23:05:56 +02:00
createServerFn wip(solid-start): back createServerFn with vite-plugin-solid native server functions 2026-07-23 18:07:04 -05:00
envOnly fix(start): clean up server function handler imports (#7552) 2026-06-05 21:30:23 +02:00
hydrateWhen feat: deferred hydration (#7362) 2026-05-19 18:43:00 +02:00
importProtection fix(start): avoid encoded virtual adapter ids in vite dev (#7484) 2026-05-25 01:01:47 +02:00
rsbuild fix: bundled dev support for vite (#7482) 2026-05-24 22:08:23 +02:00
start-manifest-plugin fix(start): emit boot-sibling chunks as scripts for IIFE entries (#7501) 2026-05-29 01:42:05 +02:00
vite fix: bundled dev support for vite (#7482) 2026-05-24 22:08:23 +02:00
compiler.test.ts feat: deferred hydration (#7362) 2026-05-19 18:43:00 +02:00
createVirtualModule.test.ts fix: unify virtual module handling for Start Vite plugins (#7178) 2026-04-13 22:35:58 +02:00
csrf-warning-config.test.ts feat(start): CSRF middleware (#7373) 2026-05-09 18:34:24 +02:00
hydrate-when-transform.test.ts feat: deferred hydration (#7362) 2026-05-19 18:43:00 +02:00
post-server-build.test.ts rsbuild plugin (#7228) 2026-04-24 03:26:03 +02:00
prerender-ssrf.test.ts rsbuild plugin (#7228) 2026-04-24 03:26:03 +02:00
schema.test.ts chore: update zod to v4.4.3 (#7441) 2026-05-20 08:41:45 +02:00
start-manifest-plugin.test.ts fix(start): emit boot-sibling chunks as scripts for IIFE entries (#7501) 2026-05-29 01:42:05 +02:00
utils.test.ts fix: Split Start plugin core (#7249) 2026-04-24 20:33:33 +02:00