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.
- Fixed babel helpers file being generated with incorrect filename in esm build. [#2082]
- Migrate from
sewing-kit-next
toloom
for building - package build output remains identical. [#2039]
- Enable type checking in tests and fix type errors. [#2011]
- Updated build tooling, types are now compiled with TypeScript 4.3. [#1997]
- Added file exclusion for tests to package.json. [#2005]
- Rename test/ to tests/ [#2005]
- Ensure
tsconfig.tsbuildinfo
file is not uploaded to the npm registry. [#1982]
- Update to latest sewing-kit-next for build. Update
types
/typesVersions
fields to point directly into the build folder [#1980]
- Officially supports React
17.x
1969
- Update minimum supported node version to 12.14.0. Add engines field to help enforce usage of this version. #1906
- Removed dependency on tslib, as we no-longer compile with
tsc
. #1829
- Updated multi-build outputs to include mandatory extensions to fix "Module not found" issues reported by ESM supported bundlers #1759
- Add new build outputs (CommonJS, ESM, esnext, Node) for greater tree-shakability #1698
- Updated
tslib
dependency to^1.14.1
. #1657
- 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