All notable changes to this project will be documented in this file. This project adheres to Semantic Versioning.
This change log follows the format documented in Keep a CHANGELOG.
- Added support for function components.
- Fix exception cause by native (not transpiled) arrow functions. Kudos to @lixiaoyan.
- Fallback to
constructor.name
whenconstructor.displayName
isn't present.
- Fix a stateful component missing the state when it's rendered as a function component children.
- Copy all original function component properties to the wrapped function.
- Fix function components behaviour. Now the guarded function
accepts 3 arguments instead of just 1:
props
,publicContext
andupdateQueue
.
- Pass
displayName
to the guard function.
- Classes & function components support.
- Pass the component props and state to the guard function.
- Restore function.
Initial release.