Skip to content

Releases: prescottprue/react-redux-firebase

Version v1.4.0 Alpha

24 Mar 01:00
Compare
Choose a tag to compare
Version v1.4.0 Alpha Pre-release
Pre-release
  • uploadFile and uploadFiles now return snapshot and key - #88
  • Initial support for react-native - #80
  • Import only needed sections of Firebase library - #53, #72

Notes about react-native

Support for react-native is still in the early testing phases. That means the API and/or functionality may change.

If using react-native, make sure you have the following config enabled when creating your store:

import ReactNative from 'react-native'
import { compose, createStore } from 'redux';
import { reactReduxFirebase } from 'react-redux-firebase'
const firebaseConfig = {} // your firebase config object
const initialState = { firebase: { authError: null } };

// then in your config when creating store
const store = createStore(
    makeRootReducer(), 
    initialState,
    compose(
      reactReduxFirebase(
        firebaseConfig,
        {
           rn: ReactNative,
           enableRedirectHandling: false,
           userProfile: 'users' 
         },
      ),
    )
  );

Normal authentication methods, such as firebase.login({provider: 'google', type: 'popup'}), will not work due to Firebase's js library (used internally) not completely supporting react-native. That means you must use firebase.auth().signInWithCredential(credential) until there is more support within the Firebase library.

It might look something like this (untested):

let credential = this.props.firebase.auth.GoogleAuthProvider.credential(token);
this.props.firebase.auth().signInWithCredential(credential)
  .then(() => {
    console.log('auth successful')
  })
  .catch((err) => {
    console.log('error: ', err)
  })

Version v1.3.3

11 Mar 22:28
Compare
Choose a tag to compare

Enhancements

  • react-redux and redux removed from peer dependencies
  • react-redux and redux removed from bundle externals
  • dependencies removed from travis before_install (unnecessary)

Version v1.3.2

10 Mar 20:43
Compare
Choose a tag to compare

Enhancements

  • confirmPasswordReset action added from #74 (thanks @rpeterson)
  • verifyPasswordResetCode action added
  • If no profile is passed to firebase.createUser, email is used by default
  • Docs updated with new methods
  • Tests added for new auth actions

Version v1.3.1

04 Mar 01:29
Compare
Choose a tag to compare

Enhancements

  • Fixes issue with multiple populates causing some data to not be in populated object
  • Fixes issue incorrect reference to browser packaged version (in package.json)
  • Improves testing of populatedDataToJS (tests multiple populates from same and different roots)

Version v1.3.0

25 Feb 01:01
Compare
Choose a tag to compare

Breaking Changes

  • Get ordered data using orderedToJS(firebase, 'path') which returns an array
  • commonjs, es, umd versions built with Webpack (could cause issues with some webpack configs)
  • INIT_BY_PATH action type no longer exists (replaced with UNSET_LISTENER)
  • Action is no longer automatically fired when removing listeners (not enabled by default as it removes data from redux)

Enhancements

  • Webpack 2 support (fixes #64)
  • Helpers are available as imports from top level:
import { pathToJS, dataToJS, populatedDataToJS } from 'react-redux-firebase'
  • Multiple populates now supported (Fixes #49)
  • keyProp option added to assign key from populate to a property (described in #40)
  • keyProp usage illustrated within material example (on projects list page)
  • storeAs capability added allowing for multiple queries on the same route (As requested in #56)
  • storeAs usage illustrated in multiple queries example
  • dispatchOnUnsetListener config option added for enabling dispatching of UNSET_LISTENER action (along with matching reducer case which removes data from path) when unsetting listeners
  • material example errors fixed (including #54)
  • Removed redundant set calls within SET case of reducer (unnecessary and can cause invalid keyPath)
  • Demo now available at demo.react-redux-firebase.com
  • Delete project button added to material example

Version v1.3.0-rc.1

18 Feb 22:36
Compare
Choose a tag to compare
Version v1.3.0-rc.1 Pre-release
Pre-release

Breaking Changes

  • ordered is only set in reducer if value exists from action (breaks empty array introduced in v1.3.0-alpha)
  • Breaking changes from previous v1.3.0-* versions included

Enhancements

  • storeAs capability added allowing for multiple queries on the same route (As requested in #56)
  • multiple queries example added to illustrate usage of storeAs
  • watch npm script fixed to watch/rebuild commonjs version (most commonly used when npm linking)
  • rootPath and rootPathArr variables removed from actions/reducer (unneeded)
  • Typos fixed and Lint removed from complete material example
  • Enhancements from previous v1.3.0-* versions included

Version v1.3.0-beta

14 Feb 12:01
Compare
Choose a tag to compare
Version v1.3.0-beta Pre-release
Pre-release

Breaking Changes

  • INIT_BY_PATH action type no longer exists (replaced with UNSET_LISTENER)
  • Action is no longer automatically fired when removing listeners (not enabled by default as it removes data from redux)

Enhancements

  • Removed redundant set calls within SET case of reducer (unnecessary and can cause invalid keyPath)
  • Removed usage of json-loader added in v1.3.0-alpha due to issues with certain webpack config
  • dispatchOnUnsetListener config option added for enabling dispatching of UNSET_LISTENER action (along with matching reducer case which removes data from path) when unsetting listeners
  • keyProp now used within material example (on projects list page)
  • Delete project button added to material example

Version v1.3.0-alpha

14 Feb 08:17
Compare
Choose a tag to compare
Version v1.3.0-alpha Pre-release
Pre-release

Breaking Changes

  • Get ordered data using orderedToJS(firebase, 'path') which returns an array
  • commonjs, es, umd versions built with Webpack (could cause issues with some webpack configs)

Enhancements

  • keyProp option added to assign key from populate to a property (described in #40)

  • Helpers are available as imports from top level:

    import { pathToJS, dataToJS, populatedDataToJS } from 'react-redux-firebase'
  • Webpack 2 support (fixes #64)

  • material example errors fixed (including #54) and fixes deployed to demo

  • Demo now available at demo.react-redux-firebase.com

Version v1.2.5

09 Feb 22:24
Compare
Choose a tag to compare

Enhancements

  • Single Item Single Child population data loading fixed
  • autoPopulateProfile config option added for enabling/disabling auto population when using profileParamsToPopulate (true by default)
  • setProfilePopulateResults config option added for enabling/disabling setting of profile population results to the data path of redux (false by default)
  • Docs updated with config options
  • utils now 100% covered

Version v1.2.4

07 Feb 10:20
Compare
Choose a tag to compare

Enhancements

  • populatedDataToJS - Checks for existence of child objects before checking child parameter (fixes param of undefined errors )
  • redux-auth-wrapper example updated with predicate