All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and adheres to Semantic Versioning.
- Specify package has no
sideEffects
(#1233)
- Fixed an issue where
betweenEachPass
was called on the last pass beforemaxPasses
was reached. In order to correct this issue, returningfalse
frombetweenEachPass
no longer halts render looping (useafterEachPass
instead). #769
- You can now bail out of render passes in
extract
by returningfalse
(or a promise that resolves tofalse
) frombetweenEachPass
/afterEachPass
(#747)
This library now requires React 16.8.
- Added a
useServerEffect
hook as an alternative to the<Effect />
component (#547)
- Added a
maxPasses
option toextract()
in order to limit the potential for infinite loops. This option defaults to 5 max render/ resolve cycles #574 - All
afterEachPass
/betweenEachPass
callbacks now receive an argument detailing the current pass index, whether the extraction process is complete, and the duration of the render/ resolve phases #574
- Removed
react-tree-walker
as a way to process the React element. Instead, the application is rendered to a string repeatedly until no more promises have been queued. For full details on migrating to the new API, please read the upgrade guide. #477
- Manual release
- Published the server entry point. #410
Initial release