Skip to content

Tags: hcwiley/react-redux-firebase

Tags

v2.0.0

Toggle v2.0.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
v2.0.0

#### Features
* [Standard JS Objects](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object) used in place of [ImmutableJS Maps](https://facebook.github.io/immutable-js/docs/#/Map) (means `pathToJS` and `dataToJS` helpers no longer needed)
* Improved support for `react-native` including support for `react-native-firebase`
* [Firestore](https://firebase.google.com/docs/firestore/) support including HOCs (`firestoreConnect` and `withFirestore`)
* HOCs for just attaching instance to props (`withFirebase` and `withFirestore`)
* `react` `v16.0.0` support

#### Changes
Includes all changes previous `v2.0.0` pre-release versions. Note that these changes are **breaking for v1** - the [migration guide](http://docs.react-redux-firebase.com/history/v2.0.0/docs/v2-migration-guide.html) must be followed to switch from `v1.*.*` to `v2.0.0`.

Please reference [the releases page](https://github.com/prescottprue/react-redux-firebase/releases) for a full list of features/fixes listed by version name.

v2.0.0-rc.2

Toggle v2.0.0-rc.2's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
v2.0.0-rc.2 (prescottprue#364)

* fix(firestore): profile update with firestore - prescottprue#360 - @barnomics
* fix(auth): `loginWithCustomToken` supports passing `profile` parameter - prescottprue#359
* feat(auth): error messages for not logged using same wording for all methods (i.e. “User must be logged in”)
* feat(docs): `loginWithCustomToken` section updated with note about how `profile` is required in certain cases - prescottprue#359
* feat(docs): roadmap updated to include option for re-rendering HOCs based on auth state change - prescottprue#367
* feat(docs): link added to sidebar for each of the separate reducers
* feat(docs): note added to FAQ about why `yarn.lock` file is not included
* fix(test): extended timeout added to unit tests for `login` to prevent fail on slow connections
* feat(docs): note added to reducer docs about how it is multiple slice reducers combined with `combineReducers`
* feat(test): unit tests added for auth/query actions not previously covered (`updateEmail`, `updateAuth`, `orderedFromSnapshot`, etc)
* fix(test): tests simplified by moving reused functions to test utils
* fix(test): remove lint warning caused by `mocha.opts` being ignored
* update(deps): `prop-types` dependency updated from `v15.5.*` to v15.6.*`
* update(deps): tons of dev dependencies updated including `babel-cli`, `babel-core`, `eslint`,  `sinon`, `mocha`, `jsdom`

##### Note

`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`](https://github.com/prescottprue/react-redux-firebase/tree/v2.0.0) to the `latest` tag on npm (the `latest` tag release will include merging to `master`).

v2.0.0-rc.1

Toggle v2.0.0-rc.1's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
v2.0.0-rc.1 (prescottprue#358)

* feat(HOCs): Removed recompose's `withContext` from `withFirebase` and `withFirestore` in order to support react `v16.*.*` - prescottprue#337
* feat(HOCs): `props.dispatch` added to `withFirebase`
* feat(core): expose `reducer` as `reducer` to match common redux panther also seen with other
libraries such as `redux-form`
* fix(storage): `progress: true` option on upload would cause dispatch of `FILE_UPLOAD_START` to occur twice
* feat(tests): drastically simplified tests (mostly removing repeated code) while adding more coverage
* feat(core): `babel-transform-decorators-legacy` removed from dependencies (no longer used in tests)
* feat(core): `recompose` is now a dev dependency only (no longer used in HOCs as part of fix for prescottprue#337)

v2.0.0-beta.19

Toggle v2.0.0-beta.19's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
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

Toggle v2.0.0-beta.18's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
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

Toggle v2.0.0-beta.17's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
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

Toggle v2.0.0-beta.16's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
v2.0.0-beta.16

* Fix promisesForPopulate to fetch data in all cases

* Bump version

v2.0.0-beta.15

Toggle v2.0.0-beta.15's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
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

Toggle v2.0.0-beta.14's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
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

Toggle v2.0.0-beta.13's commit message
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