- 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
initfunction rather thanbootstrapfunction, which is compatible with single-spa@7 or with earlier versions of single-spa via the@single-spa/lifecycles-compatlibrary
-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 />
+ )
+});- #206
986149dThanks @nickbosland! - Fixed an issue with mounting a parcel when StrictMode is enabled
- #203
ec968f2Thanks @joeldenning! - Automatically support React 17 with default opts. Resolves #202
-
#197
1141959Thanks @MilanKovacic! - ### Fixed- Enhanced compatibility with various bundlers and TypeScript
moduleResolutionstrategies. 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.
- The changes in export patterns / types may require updates in how projects import from
single-spa-react/*.
- Enhanced compatibility with various bundlers and TypeScript
-
#191
48389d9Thanks @robmosca! - Add check for changeset being present in PRs -
#193
f22690dThanks @robmosca! - Fix Node version for release workflow
- 34e311b: fixing changeset default publish
- bc6e04a: Add automated release workflow