Releases: prescottprue/react-redux-firebase
Version v1.4.0 Alpha
uploadFileanduploadFilesnow returnsnapshotandkey- #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
Enhancements
react-reduxandreduxremoved from peer dependenciesreact-reduxandreduxremoved from bundle externals- dependencies removed from travis
before_install(unnecessary)
Version v1.3.2
Enhancements
confirmPasswordResetaction added from #74 (thanks @rpeterson)verifyPasswordResetCodeaction 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
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
Breaking Changes
- Get ordered data using
orderedToJS(firebase, 'path')which returns an array commonjs,es,umdversions built with Webpack (could cause issues with some webpack configs)INIT_BY_PATHaction type no longer exists (replaced withUNSET_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)
keyPropoption added to assign key from populate to a property (described in #40)keyPropusage illustrated within material example (on projects list page)storeAscapability added allowing for multiple queries on the same route (As requested in #56)storeAsusage illustrated in multiple queries exampledispatchOnUnsetListenerconfig option added for enabling dispatching ofUNSET_LISTENERaction (along with matching reducer case which removes data from path) when unsetting listeners- material example errors fixed (including #54)
- Removed redundant set calls within
SETcase of reducer (unnecessary and can causeinvalid keyPath) - Demo now available at demo.react-redux-firebase.com
- Delete project button added to material example
Version v1.3.0-rc.1
Breaking Changes
orderedis only set in reducer if value exists from action (breaks empty array introduced inv1.3.0-alpha)- Breaking changes from previous
v1.3.0-*versions included
Enhancements
storeAscapability added allowing for multiple queries on the same route (As requested in #56)- multiple queries example added to illustrate usage of storeAs
watchnpm script fixed to watch/rebuild commonjs version (most commonly used when npm linking)rootPathandrootPathArrvariables 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
Breaking Changes
INIT_BY_PATHaction type no longer exists (replaced withUNSET_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
SETcase of reducer (unnecessary and can causeinvalid keyPath) - Removed usage of
json-loaderadded inv1.3.0-alphadue to issues with certain webpack config dispatchOnUnsetListenerconfig option added for enabling dispatching ofUNSET_LISTENERaction (along with matching reducer case which removes data from path) when unsetting listenerskeyPropnow used within material example (on projects list page)- Delete project button added to material example
Version v1.3.0-alpha
Breaking Changes
- Get ordered data using
orderedToJS(firebase, 'path')which returns an array commonjs,es,umdversions built with Webpack (could cause issues with some webpack configs)
Enhancements
-
keyPropoption 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
Enhancements
- Single Item Single Child population data loading fixed
autoPopulateProfileconfig option added for enabling/disabling auto population when usingprofileParamsToPopulate(trueby default)setProfilePopulateResultsconfig option added for enabling/disabling setting of profile population results to the data path of redux (falseby default)- Docs updated with config options
utilsnow 100% covered
Version v1.2.4
Enhancements
populatedDataToJS- Checks for existence of child objects before checking child parameter (fixesparamofundefinederrors )redux-auth-wrapperexample updated with predicate