tag:github.com,2008:https://github.com/matheusrocha89/react-redux-firebase/releases Tags from react-redux-firebase 2018-01-01T00:10:21Z tag:github.com,2008:Repository/117096891/v2.0.0 2018-01-01T00:10:21Z v2.0.0 <p>v2.0.0</p> <p>#### Features <br />* [Standard JS Objects](<a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object">https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object</a>) used in place of [ImmutableJS Maps](<a href="https://facebook.github.io/immutable-js/docs/#/Map">https://facebook.github.io/immutable-js/docs/#/Map</a>) (means `pathToJS` and `dataToJS` helpers no longer needed) <br />* Improved support for `react-native` including support for `react-native-firebase` <br />* [Firestore](<a href="https://firebase.google.com/docs/firestore/">https://firebase.google.com/docs/firestore/</a>) support including HOCs (`firestoreConnect` and `withFirestore`) <br />* HOCs for just attaching instance to props (`withFirebase` and `withFirestore`) <br />* `react` `v16.0.0` support</p> <p>#### Changes <br />Includes all changes previous `v2.0.0` pre-release versions. Note that these changes are **breaking for v1** - the [migration guide](<a href="http://docs.react-redux-firebase.com/history/v2.0.0/docs/v2-migration-guide.html">http://docs.react-redux-firebase.com/history/v2.0.0/docs/v2-migration-guide.html</a>) must be followed to switch from `v1.*.*` to `v2.0.0`.</p> <p>Please reference [the releases page](<a href="https://github.com/prescottprue/react-redux-firebase/releases">https://github.com/prescottprue/react-redux-firebase/releases</a>) for a full list of features/fixes listed by version name.</p> prescottprue tag:github.com,2008:Repository/117096891/v2.0.0-rc.2 2017-12-28T10:40:47Z v2.0.0-rc.2 (#364) <p>v2.0.0-rc.2 (<a class="issue-link js-issue-link" href="https://github.com/prescottprue/react-redux-firebase/pull/364">prescottprue#364</a>)</p> <p>* fix(firestore): profile update with firestore - <a class="issue-link js-issue-link" href="https://github.com/prescottprue/react-redux-firebase/issues/360">prescottprue#360</a> - <a class="user-mention notranslate" href="https://github.com/barnomics">@barnomics</a> <br />* fix(auth): `loginWithCustomToken` supports passing `profile` parameter - <a class="issue-link js-issue-link" href="https://github.com/prescottprue/react-redux-firebase/issues/359">prescottprue#359</a> <br />* feat(auth): error messages for not logged using same wording for all methods (i.e. “User must be logged in”) <br />* feat(docs): `loginWithCustomToken` section updated with note about how `profile` is required in certain cases - <a class="issue-link js-issue-link" href="https://github.com/prescottprue/react-redux-firebase/issues/359">prescottprue#359</a> <br />* feat(docs): roadmap updated to include option for re-rendering HOCs based on auth state change - <a class="issue-link js-issue-link" href="https://github.com/prescottprue/react-redux-firebase/issues/367">prescottprue#367</a> <br />* feat(docs): link added to sidebar for each of the separate reducers <br />* feat(docs): note added to FAQ about why `yarn.lock` file is not included <br />* fix(test): extended timeout added to unit tests for `login` to prevent fail on slow connections <br />* feat(docs): note added to reducer docs about how it is multiple slice reducers combined with `combineReducers` <br />* feat(test): unit tests added for auth/query actions not previously covered (`updateEmail`, `updateAuth`, `orderedFromSnapshot`, etc) <br />* fix(test): tests simplified by moving reused functions to test utils <br />* fix(test): remove lint warning caused by `mocha.opts` being ignored <br />* update(deps): `prop-types` dependency updated from `v15.5.*` to v15.6.*` <br />* update(deps): tons of dev dependencies updated including `babel-cli`, `babel-core`, `eslint`, `sinon`, `mocha`, `jsdom`</p> <p>##### Note</p> <p>`v2.0.0` syntax is now considered stable 🍾 (multiple production applications have switched from `v1.5.*` to `v2.*.*` following [the migration guide](docs.react-redux-firebase.com/history/v2.0.0/docs/v2-migration-guide.html), and test coverage is better than for `v1.5.*`). Merge conflicts with `master` have also been resolved. All of this means this release will be the final RC released on `next` before moving [`v2.0.0`](<a href="https://github.com/prescottprue/react-redux-firebase/tree/v2.0.0">https://github.com/prescottprue/react-redux-firebase/tree/v2.0.0</a>) to the `latest` tag on npm (the `latest` tag release will include merging to `master`).</p> prescottprue tag:github.com,2008:Repository/117096891/v2.0.0-rc.1 2017-12-17T06:59:15Z v2.0.0-rc.1 (#358) <p>v2.0.0-rc.1 (<a class="issue-link js-issue-link" href="https://github.com/prescottprue/react-redux-firebase/pull/358">prescottprue#358</a>)</p> <p>* feat(HOCs): Removed recompose's `withContext` from `withFirebase` and `withFirestore` in order to support react `v16.*.*` - <a class="issue-link js-issue-link" href="https://github.com/prescottprue/react-redux-firebase/issues/337">prescottprue#337</a> <br />* feat(HOCs): `props.dispatch` added to `withFirebase` <br />* feat(core): expose `reducer` as `reducer` to match common redux panther also seen with other <br />libraries such as `redux-form` <br />* fix(storage): `progress: true` option on upload would cause dispatch of `FILE_UPLOAD_START` to occur twice <br />* feat(tests): drastically simplified tests (mostly removing repeated code) while adding more coverage <br />* feat(core): `babel-transform-decorators-legacy` removed from dependencies (no longer used in tests) <br />* feat(core): `recompose` is now a dev dependency only (no longer used in HOCs as part of fix for <a class="issue-link js-issue-link" href="https://github.com/prescottprue/react-redux-firebase/issues/337">prescottprue#337</a>)</p> prescottprue tag:github.com,2008:Repository/117096891/v2.0.0-beta.19 2017-12-10T18:42:41Z v2.0.0-beta.19 (#356) <p>v2.0.0-beta.19 (<a class="issue-link js-issue-link" href="https://github.com/prescottprue/react-redux-firebase/pull/356">prescottprue#356</a>)</p> <p>* feat(firestoreConnect): support `componentWillReceiveProps` in `firestoreConnect` (props/query params change) - <a class="issue-link js-issue-link" href="https://github.com/prescottprue/react-redux-firebase/pull/354">prescottprue#354</a> - <a class="user-mention notranslate" href="https://github.com/danleavitt0">@danleavitt0</a> <br />* feat(docs): actions docs updated with `recompose` examples (for more simple functional components) <br />* fix(docs): profile docs updated with new wording (clarifies usage) <br />* fix(build): `codecov` npm script updated to fix warning</p> prescottprue tag:github.com,2008:Repository/117096891/v2.0.0-beta.18 2017-12-03T23:08:09Z v2.0.0-beta.18 (#345) <p>v2.0.0-beta.18 (<a class="issue-link js-issue-link" href="https://github.com/prescottprue/react-redux-firebase/pull/345">prescottprue#345</a>)</p> <p>* feat(populate): `childAlias` for store results of populate on another parameter - <a class="issue-link js-issue-link" href="https://github.com/prescottprue/react-redux-firebase/issues/126">prescottprue#126</a> <br />* feat(profile): Firestore support for `updateProfile` method - [issue 25 on redux-firestore](<a class="issue-link js-issue-link" href="https://github.com/prescottprue/redux-firestore/issues/25">prescottprue/redux-firestore#25</a>) <br />* feat(storage): `progress` option added to `uploadFile` method - <a class="issue-link js-issue-link" href="https://github.com/prescottprue/react-redux-firebase/issues/346">prescottprue#346</a> <br />* feat(storage): `uploadFile` default metadata written to DB now includes `createdAt` <br />* feat(core): `redux-firestore` is no longer a dependency - managed by library user directly <br />* fix(examples): Material-ui example updates (including moving `injectTapEventPlugin()` to `main.js`)</p> prescottprue tag:github.com,2008:Repository/117096891/v2.0.0-beta.17 2017-11-12T14:23:26Z v2.0.0-beta.17 (#334) <p>v2.0.0-beta.17 (<a class="issue-link js-issue-link" href="https://github.com/prescottprue/react-redux-firebase/pull/334">prescottprue#334</a>)</p> <p>* fix(populate): undefined populate child responds unmodified as expected - <a class="issue-link js-issue-link" href="https://github.com/prescottprue/react-redux-firebase/issues/310">prescottprue#310</a> <br />* fix(auth): `UNLOAD_PROFILE` action type no longer dispatched (did not fix issue) - <a class="issue-link js-issue-link" href="https://github.com/prescottprue/react-redux-firebase/issues/301">prescottprue#301</a> <br />* feat(populate): support for populating ordered data with multiple populates where one populate child missing <br />* feat(query): parsed query param added to allow disabling of automatic parsing - <a class="issue-link js-issue-link" href="https://github.com/prescottprue/react-redux-firebase/issues/302">prescottprue#302</a> <br />* feat(config): `preserveOnLogin` config option added to allow preserving of pieces of state affected by `LOGIN` action (called by `login` action creator) <br />* feat(tests): test added to check profile state consistency on `LOGIN` dispatch - <a class="issue-link js-issue-link" href="https://github.com/prescottprue/react-redux-firebase/issues/301">prescottprue#301</a> <br />* feat(tests): tests added for `getVal` helper <br />* feat(tests): Unit tests added for populating ordered data</p> prescottprue tag:github.com,2008:Repository/117096891/v2.0.0-beta.16 2017-11-08T22:44:03Z v2.0.0-beta.16 <p>v2.0.0-beta.16</p> <p>* Fix promisesForPopulate to fetch data in all cases</p> <p>* Bump version</p> fej-snikduj tag:github.com,2008:Repository/117096891/v2.0.0-beta.15 2017-11-06T10:37:57Z v2.0.0-beta.15 <p>v2.0.0-beta.15</p> <p>* feat(auth): `UNLOAD_PROFILE` is dispatched when `login` action creator is called - <a class="issue-link js-issue-link" href="https://github.com/prescottprue/react-redux-firebase/issues/301">prescottprue#301</a> <br />* feat(auth): `signInWithPhoneNumber` action creator added - <a class="issue-link js-issue-link" href="https://github.com/prescottprue/react-redux-firebase/issues/319">prescottprue#319</a> <br />* fix(firebaseConnect): function passed receives consistent arguments regardless of lifecycle - <a class="issue-link js-issue-link" href="https://github.com/prescottprue/react-redux-firebase/issues/320">prescottprue#320</a> <br />* fix(query): `queryId` now includes `storeAs` to fix issue with listeners - <a class="issue-link js-issue-link" href="https://github.com/prescottprue/react-redux-firebase/issues/294">prescottprue#294</a> <br />* fix(populate): ordered (array data) correctly populating - <a class="issue-link js-issue-link" href="https://github.com/prescottprue/react-redux-firebase/issues/239">prescottprue#239</a> - thanks <a class="user-mention notranslate" href="https://github.com/0x80">@0x80</a> <br />* fix(reducer): property removed from profile is removed from state - thanks <a class="user-mention notranslate" href="https://github.com/fej-snikduj">@fej-snikduj</a> <br />* fix(docs): inconsistencies in redux-auth-wrapper example - <a class="issue-link js-issue-link" href="https://github.com/prescottprue/react-redux-firebase/issues/325">prescottprue#325</a></p> prescottprue tag:github.com,2008:Repository/117096891/v2.0.0-beta.14 2017-10-29T10:42:33Z v2.0.0-beta.14 (#316) <p>v2.0.0-beta.14 (<a class="issue-link js-issue-link" href="https://github.com/prescottprue/react-redux-firebase/pull/316">prescottprue#316</a>)</p> <p>### Description <br />* fix(typings): Updated type definitions - <a class="issue-link js-issue-link" href="https://github.com/prescottprue/react-redux-firebase/issues/311">prescottprue#311</a> <br />* fix(populate): dispatch for errors during profile population - <a class="issue-link js-issue-link" href="https://github.com/prescottprue/react-redux-firebase/pull/312">prescottprue#312</a> <br />* feat(firebaseConnect): `store` is passed as second argument of `firebaseConnect` - <a class="issue-link js-issue-link" href="https://github.com/prescottprue/react-redux-firebase/issues/278">prescottprue#278</a> <br />* feat(firestoreConnect): `store` is passed as second argument of `firestoreConnect` <br />* fix(query): `dispatchRemoveAction` is now `false` by default - prevents multiple state updates when calling `remove` if listener associated is attached</p> <p>### Potentially Breaking <br /> * `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:</p> <p>```js <br />firebaseConnect( <br /> (props, store) =&gt; { <br /> const { firebase: { auth } } = store.getState() <br /> // be careful, listeners are not re-attached when auth state changes unless props change <br /> return [{ path: `todos/${auth.uid || ''}` }] <br /> } <br />) <br />```</p> <p>More details are included in [the migration guide](<a href="http://docs.react-redux-firebase.com/history/v2.0.0/docs/v2-migration-guide.html">http://docs.react-redux-firebase.com/history/v2.0.0/docs/v2-migration-guide.html</a>).</p> prescottprue tag:github.com,2008:Repository/117096891/v2.0.0-beta.13 2017-10-26T06:27:13Z v2.0.0-beta.13 (#306) <p>v2.0.0-beta.13 (<a class="issue-link js-issue-link" href="https://github.com/prescottprue/react-redux-firebase/pull/306">prescottprue#306</a>)</p> <p>* fix(reducers): add `EMPTY_AUTH_CHANGE` case to Profile Reducer - <a class="issue-link js-issue-link" href="https://github.com/prescottprue/react-redux-firebase/pull/305">prescottprue#305</a> <br />* feat(constants): `enableEmptyAuthChanges` config option replaced by `preserveOnEmptyAuthChange` - <a class="issue-link js-issue-link" href="https://github.com/prescottprue/react-redux-firebase/pull/305">prescottprue#305</a> <br />* feat(profile): `autoPopulateProfile` support for v2 (still `disabled` by default) <br />* fix(presence): support presence option on `react-native-firebase` versions without `setPriority` on `RNFirebase.database.ThenableReference` - <a class="issue-link js-issue-link" href="https://github.com/prescottprue/react-redux-firebase/issues/267">prescottprue#267</a> <br />* fix(core): withFirebase now works for all main methods <br />* feat(examples): material example updated to be much more simple (uses mostly functional components over classes) <br />* feat(docs): `promiseEvents` added to SSR docs - <a class="issue-link js-issue-link" href="https://github.com/prescottprue/react-redux-firebase/pull/299">prescottprue#299</a></p> prescottprue