Skip to content

Latest commit

 

History

History
72 lines (48 loc) · 3.44 KB

File metadata and controls

72 lines (48 loc) · 3.44 KB

single-spa-react

7.0.0-beta.0

  • feature: Support for hydrateRoot 15d55b1 (#218) by Jolyn
  • feature: Re-implement component 15d55b1 (#218) by Jolyn
  • breaking: Remove main, module, and require fields from package.json 15d55b1 (#218) by Jolyn
  • breaking: Rewrite to typescript. New opts required. Newer versions of React required 15d55b1 (#218) by Jolyn
  • breaking: returns init function rather than bootstrap function, which is compatible with single-spa@7 or with earlier versions of single-spa via the @single-spa/lifecycles-compat library

Upgrading

-export const { bootstrap, mount, unmount } = singleSpaReact({
-  React,
-  ReactDOMClient,
-  rootComponent,
-  errorBoundary(err, info, props) {
-    // https://reactjs.org/docs/error-boundaries.html
-    return <div>This renders when a catastrophic error occurs</div>;
-  },
-});

+export const { init, mount, unmount } = singleSpaReact({
+  createRoot,
+  createElement,
+  useEffect,
+  renderReactNode: (props) => (
+    <Root />
+  )
+});

6.0.2

Patch Changes

6.0.1

Patch Changes

6.0.0

Major Changes

  • #197 1141959 Thanks @MilanKovacic! - ### Fixed

    • Enhanced compatibility with various bundlers and TypeScript moduleResolution strategies. The package's export patterns have been refined to address issues previously encountered with different bundling tools, ensuring more consistent and reliable integration across diverse build environments. Additionally, TypeScript type definitions have been improved, enhancing type safety and developer experience in varied TypeScript setups.

    BREAKING CHANGES

    • The changes in export patterns / types may require updates in how projects import from single-spa-react/*.

Patch Changes

5.1.4

Patch Changes

  • 34e311b: fixing changeset default publish

5.1.3

Patch Changes

  • bc6e04a: Add automated release workflow