Skip to content

v0.0.7

Choose a tag to compare

@maxholman maxholman released this 24 Mar 00:38
· 83 commits to main since this release

Fixes

  • Hydration mismatches — new payloadNavHydrationFix and payloadNavigationHydrationFix plugins. AST-based patches prevent React 19 tree-destroying mismatches from pathname/params divergence during hydration.

  • Form state loss on array field add — payloadServerActionFix now correctly targets vinext 0.0.33's browser entry and reorders render() after the returnValue check, so getFormState doesn't reset Payload's form state.

  • Optimizer reload on cold start — payloadOptimizeDeps auto-discovers all next/* alias specifiers from the resolved config. Browser entry's relative shim import is rewritten to the pre-bundled alias, preventing duplicate React instances and the full page reload.

  • NEXT_REDIRECT leak — new payloadRedirectFix catches redirect errors that escape the RSC stream during async rendering and converts them to client-side redirects.

Improvements

  • All code transforms are now AST-based via ast-grep (no regex transforms remain)
  • Upgraded vite-plugin-cjs-interop to v3 for Vite 8 compatibility
  • Updated docs with accurate upstream bug ownership
  • Added test-payload-admin.ts — Playwright test for hydration, refresh stability, and form state