Releases: alexeyraspopov/react-coroutine
Releases · alexeyraspopov/react-coroutine
Version 2.0.2
- Prevent usage of deprecated React lifecycle methods
- Switch to
PureComponent
for small optimizations - Minor internal changes to improve iterators cancellation
- Fix exceptions throw in coroutines based on sync generators
- Update peer dependency range to support React versions higher than
16.2.0
Version 2.0.1
- Prevent rejected promises swallowing in sync generators
- Remove
shallowequal
dependency, decreasing the lib size - Use
babel-preset-env
instead ofbabel-preset-es2015
for building the lib
Version 2.0.0
- Remove
context
argument from coroutine signature (recommended to switch to the new Context API) Coroutine
is only an object withcreate()
factory method (breaking change forv2.0.0-alpha.2
)- Use
pkg.module
instead ofjsnext:main
- Build correct ES Module artifact
- Move
react
topeerDependencies
and update the range to~16.2.0
- Allow the use of sync generators that can yield possible Promise values
Version 2.0.0-alpha.1
- Remove
getVariables
mechanism - Remove unused
Coroutine.render
component - Introduce
Coroutine
as a base React component
Version 1.0.6
- Use latest
shallowequal
withoutlodash
dependency (–3kb of minified code)
Version 1.0.5
- Fix the issue with redundant updates due to late props comparison
- Fix broken reference to the current props state
Version 1.0.3
- Use
jsnext:main
instead ofpkg.module
because of Webpack 2 issue - Use
shallowequal
instead of React's internal tool
Version 1.0.2
- Fix compatibility issue with polyfilled Promises
Version 1.0.1
- Fix the usage of
contextTypes
for async functions
Version 1.0.0
- Use Rollup to build smaller bundle
- Provide
pkg.module
property for bundling original sources - Prevent calls of
setState()
for unmounted components