Tags: uu1t/react-redux-firebase
Tags
v2.0.0-beta.19 (prescottprue#356) * feat(firestoreConnect): support `componentWillReceiveProps` in `firestoreConnect` (props/query params change) - prescottprue#354 - @danleavitt0 * feat(docs): actions docs updated with `recompose` examples (for more simple functional components) * fix(docs): profile docs updated with new wording (clarifies usage) * fix(build): `codecov` npm script updated to fix warning
v2.0.0-beta.18 (prescottprue#345) * feat(populate): `childAlias` for store results of populate on another parameter - prescottprue#126 * feat(profile): Firestore support for `updateProfile` method - [issue 25 on redux-firestore](prescottprue/redux-firestore#25) * feat(storage): `progress` option added to `uploadFile` method - prescottprue#346 * feat(storage): `uploadFile` default metadata written to DB now includes `createdAt` * feat(core): `redux-firestore` is no longer a dependency - managed by library user directly * fix(examples): Material-ui example updates (including moving `injectTapEventPlugin()` to `main.js`)
v2.0.0-beta.17 (prescottprue#334) * fix(populate): undefined populate child responds unmodified as expected - prescottprue#310 * fix(auth): `UNLOAD_PROFILE` action type no longer dispatched (did not fix issue) - prescottprue#301 * feat(populate): support for populating ordered data with multiple populates where one populate child missing * feat(query): parsed query param added to allow disabling of automatic parsing - prescottprue#302 * feat(config): `preserveOnLogin` config option added to allow preserving of pieces of state affected by `LOGIN` action (called by `login` action creator) * feat(tests): test added to check profile state consistency on `LOGIN` dispatch - prescottprue#301 * feat(tests): tests added for `getVal` helper * feat(tests): Unit tests added for populating ordered data
v2.0.0-beta.16 * Fix promisesForPopulate to fetch data in all cases * Bump version
v2.0.0-beta.15 * feat(auth): `UNLOAD_PROFILE` is dispatched when `login` action creator is called - prescottprue#301 * feat(auth): `signInWithPhoneNumber` action creator added - prescottprue#319 * fix(firebaseConnect): function passed receives consistent arguments regardless of lifecycle - prescottprue#320 * fix(query): `queryId` now includes `storeAs` to fix issue with listeners - prescottprue#294 * fix(populate): ordered (array data) correctly populating - prescottprue#239 - thanks @0x80 * fix(reducer): property removed from profile is removed from state - thanks @fej-snikduj * fix(docs): inconsistencies in redux-auth-wrapper example - prescottprue#325
v2.0.0-beta.14 (prescottprue#316) ### Description * fix(typings): Updated type definitions - prescottprue#311 * fix(populate): dispatch for errors during profile population - prescottprue#312 * feat(firebaseConnect): `store` is passed as second argument of `firebaseConnect` - prescottprue#278 * feat(firestoreConnect): `store` is passed as second argument of `firestoreConnect` * fix(query): `dispatchRemoveAction` is now `false` by default - prevents multiple state updates when calling `remove` if listener associated is attached ### Potentially Breaking * `store` being passed as second argument of `firebaseConnect` (and `firestoreConnect`), which means any components using that second argument will break (most commonly used for getting `uid`). To access `uid` or other info from redux state, use `store.getState()` like so: ```js firebaseConnect( (props, store) => { const { firebase: { auth } } = store.getState() // be careful, listeners are not re-attached when auth state changes unless props change return [{ path: `todos/${auth.uid || ''}` }] } ) ``` More details are included in [the migration guide](http://docs.react-redux-firebase.com/history/v2.0.0/docs/v2-migration-guide.html).
v2.0.0-beta.13 (prescottprue#306) * fix(reducers): add `EMPTY_AUTH_CHANGE` case to Profile Reducer - prescottprue#305 * feat(constants): `enableEmptyAuthChanges` config option replaced by `preserveOnEmptyAuthChange` - prescottprue#305 * feat(profile): `autoPopulateProfile` support for v2 (still `disabled` by default) * fix(presence): support presence option on `react-native-firebase` versions without `setPriority` on `RNFirebase.database.ThenableReference` - prescottprue#267 * fix(core): withFirebase now works for all main methods * feat(examples): material example updated to be much more simple (uses mostly functional components over classes) * feat(docs): `promiseEvents` added to SSR docs - prescottprue#299
v2.0.0 beta.12 (prescottprue#298) * feat(core): `recompose` used for `withFirebase` and `withFirestore` HOCs * feat(core): `promiseEvents` method added. Similar to `firebaseConnect`, but not a React Higher Order Component - prescottprue#299 - thanks @marekolszewski * feat(core): `redux-firestore` is no longer included and is now an optionalDependency (increased bundle size too much) * feat(helpers): `getVal` added to simplify migration from v1 to v2 (can easily replace `dataToJS`) - prescottprue#305 - thanks @fej-snikduj * feat(reducer): added error to clearly indicate wrong initial state being passed to `errors` state * feat(reducer): `preserve` now supports passing an object to preserve `auth`, `profile`, `errors`, and `ordered` * feat(docs): Firestore setup instructions switched to using `redux-firestore` externally * feat(examples): firestore example uses `redux-firestore` directly (since it is no longer included) * fix(typings): remove an artifact from a previous merge conflict - prescottprue#304 - thanks @cbellino * fix(reducer): `authError` state is now `null` by default (tests changed to match) * fix(examples): examples all point to `next` tag for consistency * fix(examples): snippets README.md files updated * fix(examples): `tests` folder removed from material example ### Potentially Breaking * `authError` state is now `null` by default instead of `{}` - this is more clear, and more closely resembles `v1.*.*`
v1.5.1 (prescottprue#283) * fix(populate): `ordered` set for populate * fix(populate): `ordered` correctly set to `null` when empty (instead of `undefined` which could cause `isLoaded` to be incorrect) * feat(query): `ordered` correctly set when using `populate` * fix(query): Return Promise rejection to `watchEvent` for once queries * feat(auth): `disableEmptyAuthDispatch` config option added for disabling dispatch of `LOGOUT` action when auth updates with `null` - prescottprue#115 * feat(docs): `api-docs-upload` util added from v2.0.0 (for uploading different versions of docs) * feat(examples): `watchEvent` snippet added to show querying outside of `firebaseConnect` (i.e. "lazy querying") - prescottprue#232
v2.0.0-beta.11 (prescottprue#295) * fix(populate): missing childKey causes no population - prescottprue#277 (thanks @JeremyPlease) * feat(firestore): `firestoreConnect` - React HOC that sets listeners to Cloud Firestore (similar to `firebaseConnect`, but for Cloud Firestore instead of Real Time Database) - prescottprue#286 * feat(firestore): `firestoreReducer` is exported from [`redux-firestore`](https://github.com/prescottprue/redux-firestore) included to handle managing `firestore` state - prescottprue#286 * feat(core): `withFirebase` - React HOC for just passing `props.firebase` (`firebaseConnect` without any listener management) * feat(docs): Firestore page added to docs (outlining usage of `firestoreConnect` and `setListener`) * feat(examples): Firestore complete example added * feat(docs): README and Query examples simplified + improved * feat(docs): FAQ moved to its own docs page **NOTE**: After the Firestore API (including `firestoreConnect`) is stabilized, the `v2.0.0` pre-releases should be ready for release candidate status (pending other major bugs).