Breaking changes:
- The
pause
andunpause
apis have been removed - single-spa doesn't mount, or unmount applications until the new
start
API is called. However, it does load and bootstrap them beforestart
is called. - The
setLoader
api now must be called. And it must be called before anydeclareChildApplication
orstart
apis are called.
Features
- The "main" file is now a distributable which can be used via
<script>
, npm/commonjs (require
), and systemjs. - Tests now run in IE11, Chrome, Firefox, Edge, and Safari via karma + saucelabs. This is an improvement over just running in node with a mocked DOM and browser.
- Loading and bootstrapping before
start()
is now possible, which yields a performance boost. - Apps that are going to be mounted no longer wait for all other apps to load/bootstrap before beginning to mount. This improves performance.
Issues fixed
Concerns
- Because the main file is now a bundle with no dependencies and because I'm using async/await babel plugin, the size of the distributable has ballooned to 64kb. I think we can address that after releasing 3.0