All notable changes to this project will be documented in this file.
NOTE: We will be abandoning a standalone @nozbe/withObservables package and merging it into @nozbe/watermelondb. This might be the last release of this package.
If you're using withObservables WITHOUT WatermelonDB, please file an issue. If there's enough demand for a standalone package, we'll consider maintaining it.
- Update
react
,@types/react
peer dependencies to allow React 18. This fixes issues by NPMv7 users - Fix Flow issues when running Flow 0.199.1
- Fix Flow issues when in exact_by_default mode
- Bump
hoist-non-react-statics
dependency - Mark
@types/hoist-non-react-statics
and@types/react
peer dependencies as optional (for non-TS users) - Remove unused
_isMounted
property - Internal: bump all dependencies
- Fix Flow issues when running Flow 0.185.2
- add helpful Component.displayName to make it easier to distinguish between withObservables in React DevTools
- use WatermelonDB 0.22 api to differentiate between Model and Query objects
- fix warnings when using React 17
- Observable errors are now re-thrown in render, so that you can catch them with an Error Boundary
- withObservable no longer has a dependency on RxJS package, which makes it leaner, more performant and should hopefully fix persistent issues with rxjs-compat that some users have
- Fix Flow issues when running Flow 0.140.0
- Improve performance
- Name functions for easier debugging / profiling
- Fix RxJS issue
- Fix Typescript bindings
- Add Typescript bindings
- Add hoist-non-react-statics
- [Flow] Fixed types for Flow 0.84.0
- Fixed Flow typings for withObservables (this now works without any setup)
- Fixed Flow for injecting props using WatermelonDB Relation objects (skipping
.observe()
)
Initial release of withObservables HOC