mfng

A Minimal React Server Components Bundler & Library

MIT License

Downloads
107
Stars
428

Bot releases are hidden (Show)

mfng - @mfng/[email protected]

Published by unstubbable 7 months ago

What's Changed

mfng - @mfng/[email protected]

Published by unstubbable 7 months ago

What's Changed

mfng - @mfng/[email protected]

Published by unstubbable 7 months ago

What's Changed

mfng - @mfng/[email protected]

Published by unstubbable 7 months ago

What's Changed

mfng -

Published by unstubbable 7 months ago

What's Changed

BREAKING CHANGES

  • hydrateApp must be imported from @mfng/core/client/browser instead of @mfng/core/client
mfng - @mfng/[email protected]

Published by unstubbable 7 months ago

What's Changed

BREAKING CHANGES

  • The serverReferencesMap is now a required option of createWebpackRscServerLoader. In addition, it also needs to be passed to createWebpackRscSsrLoader (required for server actions that are imported from client components).
mfng - @mfng/[email protected]

Published by unstubbable 8 months ago

Bug Fixes

  • Only register exported functions as server references (#39)
mfng - @mfng/[email protected]

Published by unstubbable 11 months ago

Features

  • Pass formState directly into createHtmlStream (#36)
    • BREAKING CHANGE: The formState now needs to be passed in as part of the options of createHtmlStream.
mfng - @mfng/[email protected]

Published by unstubbable 11 months ago

Features

  • Change history after having fetched data for new location (#19)
  • Replace server context with AsyncLocalStorage and client context (#20)
  • Progressively enhanced form actions (#35)
    • @mfng/core/server/rsc: Added createRscFormState function.
    • @mfng/core/server/rsc: createRscAppStream accepts a new option formState
    • @mfng/core/server/ssr: createHtmlStream now renders the form state from the RSC response, if present.
    • @mfng/core/client: Added hydrateApp function.
    • BREAKING CHANGES:
      • The Router component has a new required prop fetchRoot. This is automatically provided when using the newly introduced hydrateApp function.
      • createRscActionStream now expects the reactServerManifest in the same structure that React also expects.
mfng - @mfng/[email protected]

Published by unstubbable 11 months ago

Features

  • Progressively enhanced form actions (#35)
    • BREAKING CHANGE: The Webpack RSC server plugin now emits the server manifest in the structure that React expects.
mfng - @mfng/[email protected]

Published by unstubbable 11 months ago

Features

  • Handle source maps in webpack loaders (#33)
    • This enables setting breakpoints in server actions.
  • Throw an error when a client function is called in a server component (#28)
mfng - @mfng/[email protected]

Published by unstubbable 11 months ago

Features

  • Add support for bind with server actions in server components (#25)
Package Rankings
Top 16.28% on Npmjs.org
Related Projects