diff --git a/CHANGELOG.md b/CHANGELOG.md index a93683c..9e16c00 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,30 @@ - feature: Re-implement component 15d55b1 ([#218](https://github.com/single-spa/single-spa-react/pull/218)) by Jolyn - breaking: Remove main, module, and require fields from package.json 15d55b1 ([#218](https://github.com/single-spa/single-spa-react/pull/218)) by Jolyn - breaking: Rewrite to typescript. New opts required. Newer versions of React required 15d55b1 ([#218](https://github.com/single-spa/single-spa-react/pull/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`](https://github.com/single-spa/lifecyles-compat) library + +### Upgrading + +```diff +-export const { bootstrap, mount, unmount } = singleSpaReact({ +- React, +- ReactDOMClient, +- rootComponent, +- errorBoundary(err, info, props) { +- // https://reactjs.org/docs/error-boundaries.html +- return
This renders when a catastrophic error occurs
; +- }, +-}); + ++export const { init, mount, unmount } = singleSpaReact({ ++ createRoot, ++ createElement, ++ useEffect, ++ renderReactNode: (props) => ( ++ ++ ) ++}); +``` ## 6.0.2