Releases: prescottprue/react-redux-firebase
Version v1.4.0 Alpha
uploadFile
anduploadFiles
now returnsnapshot
andkey
- #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-redux
andredux
removed from peer dependenciesreact-redux
andredux
removed from bundle externals- dependencies removed from travis
before_install
(unnecessary)
Version v1.3.2
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
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
,umd
versions built with Webpack (could cause issues with some webpack configs)INIT_BY_PATH
action 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)
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 exampledispatchOnUnsetListener
config option added for enabling dispatching ofUNSET_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 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
ordered
is 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
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
androotPathArr
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
Breaking Changes
INIT_BY_PATH
action 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
SET
case of reducer (unnecessary and can causeinvalid keyPath
) - Removed usage of
json-loader
added inv1.3.0-alpha
due to issues with certain webpack config dispatchOnUnsetListener
config option added for enabling dispatching ofUNSET_LISTENER
action (along with matching reducer case which removes data from path) when unsetting listenerskeyProp
now 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
,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
Enhancements
- Single Item Single Child population data loading fixed
autoPopulateProfile
config option added for enabling/disabling auto population when usingprofileParamsToPopulate
(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
Enhancements
populatedDataToJS
- Checks for existence of child objects before checking child parameter (fixesparam
ofundefined
errors )redux-auth-wrapper
example updated with predicate