Skip to content
Merged
Show file tree
Hide file tree
Changes from 37 commits
Commits
Show all changes
62 commits
Select commit Hold shift + click to select a range
1d1bb12
Started separate reducers.
prescottprue Jan 16, 2017
113fb3c
Merge branch 'master' into v2.0.0-alpha
prescottprue Mar 19, 2017
53175d0
Finished removing rest of immutable stuff from reducer.
prescottprue Mar 21, 2017
67f3384
Return file snapshot on upload (#88)
urbantumbleweed Mar 24, 2017
5edc780
feat(react-native): react-native and boilerplate support (#90)
prescottprue Mar 24, 2017
2d1bbb7
Added XMLHttpRequest to tests (to fix firebase auth issue)
Mar 24, 2017
0ffacb0
react-native complete example started.
Mar 24, 2017
224de4e
Firebase showing up in react-native example.
Mar 24, 2017
78f3ed4
Home now displays auth in a string.
Mar 25, 2017
2b2f429
react-native now working with firebase js library
prescottprue Mar 25, 2017
cc0ad58
Switched to ReactNative instead of rn
prescottprue Mar 25, 2017
d65aa2f
Version v1.4.0-beta (#97)
prescottprue Mar 26, 2017
04039a2
Version v1.4.0 Beta 2 (#100)
prescottprue Mar 28, 2017
5042759
Version v1.4.0 Beta 3 (#101)
prescottprue Mar 28, 2017
27d64e7
Merge branch 'master' into v1.4.0
prescottprue Mar 30, 2017
acd14f9
Merge branch 'master' into v1.4.0
Apr 1, 2017
c960361
Version 1.4.0 Beta 4 (#105)
prescottprue Apr 3, 2017
459c222
Version v1.4.0 Release Candidate 1 (#110)
prescottprue Apr 5, 2017
23bb32a
Form utils added to example.
prescottprue Apr 10, 2017
bc64cf5
Roadmap updated with info on nested populates and updateProfile method.
Apr 15, 2017
b3c87bd
Merge branch 'master' into v1.4.0
Apr 15, 2017
d4b86d1
Server side rendering notes added.
Apr 26, 2017
d7943f5
Merge branch 'master' into v1.4.0
May 5, 2017
36de200
Support for custom auth parameters added.
May 5, 2017
6b2826c
Merge branch 'master' into v1.4.0
May 5, 2017
e478d03
notParsed query parameter. isLoaded returns true issue (#121)
May 5, 2017
85e968e
Use prop-types package instead of the bundled prop-types (#122)
petetnt May 5, 2017
7dbe7b2
key: true lists support for profileParamsToPopulate (#123)
fej-snikduj May 5, 2017
ff11deb
Fixed typos in material-example
May 6, 2017
e89e381
Fixed the last of the "react" typos within material example.
May 6, 2017
3655517
Firebase updated to v3.9.0. More material example updates.
prescottprue May 6, 2017
4e629a9
Lint removed.
prescottprue May 6, 2017
e53dc19
More lint removal from material-ui example.
prescottprue May 6, 2017
caa9bd4
Added message to clarify home container.
prescottprue May 6, 2017
c964724
Not populated delete working in material-ui example
prescottprue May 6, 2017
c92a563
Pull request template updated. Roadmap updated with react-native-fire…
prescottprue May 16, 2017
90489f6
SSR and Auth sections added to recipes. Roadmap updated for coming v1…
prescottprue May 16, 2017
4404433
Merge branch 'master' into v1.4.0
prescottprue May 16, 2017
12df1e8
Auth Recipes cleaned up.
prescottprue May 16, 2017
df2a81a
Apply #122 to v1.5.0
May 17, 2017
4e212dd
Adds various features to populates (#132)
javamonn May 17, 2017
451976a
Firebase messaging and instance exposed.
May 17, 2017
13c9c6d
Version v1.5.0-alpha (#136)
prescottprue May 23, 2017
2b57b69
Roadmap updated. Pointed to correct version inside react-native example.
May 23, 2017
fd23aae
Merge branch 'master' into v2.0.0-alpha
prescottprue May 24, 2017
4bbb795
Material example working with new reducer setup. Logger added.
prescottprue May 24, 2017
a8c0c48
Merge branch 'master' into v1.5.0
May 30, 2017
6542913
v1.5.0-alpha.2 (#146)
prescottprue May 30, 2017
7940976
Version v1.5.0 Beta (#147)
prescottprue May 31, 2017
63587ec
Don't mix import/export with module.exports (#149)
martynovs May 31, 2017
0a02539
fix: unwatch events with same parameters as original watch (#151)
javamonn Jun 3, 2017
cfc3aba
Allow to use different stores in firebaseConnect (#148)
martynovs Jun 3, 2017
9d48234
Version v1.5.0 Beta 2 (#153)
prescottprue Jun 6, 2017
8e3f3d0
Version v1.5.0 Beta 3 (#154)
prescottprue Jun 6, 2017
cae1be8
Merge branch 'master' into v2.0.0-alpha
Jun 15, 2017
ff85858
Unused helpers removed. Moved creation of firebase instance to its ow…
Jun 15, 2017
c991311
Merge branch 'master' into v2.0.0-alpha
Jun 18, 2017
0a00620
Merge branch 'v1.5.0' into v2.0.0-alpha
Jun 18, 2017
b7f91ac
Support of passing in a firebase instance
Jun 20, 2017
af12928
Started work on populate.
Jun 20, 2017
b430f8d
Population working. Tests no longer have syntax errors.
Jun 20, 2017
63cb540
Version v2.0.0-alpha.
Jun 20, 2017
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,8 @@ const store = createStoreWithFirebase(rootReducer, initialState)

In components:
```javascript
import React, { Component, PropTypes } from 'react'
import React, { Component } from 'react'
import PropTypes from 'prop-types'
import { connect } from 'react-redux'
import {
firebaseConnect,
Expand Down
6 changes: 4 additions & 2 deletions docs/api/helpers.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ Detect whether items are loaded yet or not
**Examples**

```javascript
import React, { Component, PropTypes } from 'react'
import React, { Component } from 'react'
import PropTypes from 'prop-types'
import { connect } from 'react-redux'
import { firebaseConnect, isLoaded, dataToJS } from 'react-redux-firebase'
```
Expand All @@ -28,7 +29,8 @@ Detect whether items are empty or not
**Examples**

```javascript
import React, { Component, PropTypes } from 'react'
import React, { Component } from 'react'
import PropTypes from 'prop-types'
import { connect } from 'react-redux'
import { firebaseConnect, isEmpty, dataToJS } from 'react-redux-firebase'
```
Expand Down
3 changes: 2 additions & 1 deletion docs/recipes/auth.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
Here is an example of a component that shows a Google login button if the user is not logged in, and a welcome message if they are. The initial loading state is handled with a simple "loading" message

```js
import React, { Component, PropTypes } from 'react'
import React, { Component } from 'react'
import PropTypes from 'prop-types'
import GoogleButton from 'react-google-button'
import { connect } from 'react-redux'
import {
Expand Down
1 change: 1 addition & 0 deletions examples/complete/material/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@
"lodash": "^4.17.2",
"material-ui": "0.16.0",
"normalize.css": "^4.1.1",
"prop-types": "^15.5.8",
"react": "15.3.2",
"react-dom": "15.3.2",
"react-google-button": "^0.1.0",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, { PropTypes } from 'react'
import React from 'react'
import PropTypes from 'prop-types'
import CircularProgress from 'material-ui/CircularProgress'
import classes from './LoadingSpinner.scss'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, { PropTypes } from 'react'
import React from 'react'
import PropTypes from 'prop-types'
import MaterialTextField from 'material-ui/TextField'

export const TextField = ({ input, label, meta: { touched, error }, ...custom }) => (
Expand Down
3 changes: 2 additions & 1 deletion examples/complete/material/src/containers/App/App.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, { Component, PropTypes } from 'react'
import React, { Component } from 'react'
import PropTypes from 'prop-types'
import { browserHistory, Router } from 'react-router'
import { Provider } from 'react-redux'

Expand Down
3 changes: 2 additions & 1 deletion examples/complete/material/src/containers/Navbar/Navbar.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, { Component, PropTypes } from 'react'
import React, { Component } from 'react'
import PropTypes from 'prop-types'
import classes from './Navbar.scss'
import { Link } from 'react-router'
import { connect } from 'react-redux'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, { PropTypes } from 'react'
import React from 'react'
import PropTypes from 'prop-types'
import { Field, reduxForm } from 'redux-form'
import RaisedButton from 'material-ui/RaisedButton'
import TextField from 'components/TextField'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, { PropTypes } from 'react'
import React from 'react'
import PropTypes from 'prop-types'
import { List, ListItem } from 'material-ui/List'
import classes from './ProviderDataForm.scss'
import AccountCircle from 'material-ui/svg-icons/action/account-circle'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, { Component, PropTypes } from 'react'
import React, { Component } from 'react'
import PropTypes from 'prop-types'
import Paper from 'material-ui/Paper'
import { connect } from 'react-redux'
import { firebaseConnect, pathToJS, isLoaded } from 'react-redux-firebase'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, { Component, PropTypes } from 'react'
import React, { Component } from 'react'
import PropTypes from 'prop-types'
import IconButton from 'material-ui/IconButton'
import Paper from 'material-ui/Paper'
import TextField from 'material-ui/TextField'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, { Component, PropTypes } from 'react'
import React, { Component } from 'react'
import PropTypes from 'prop-types'
import classes from './TodoItem.scss'
import { ListItem } from 'material-ui/List'
import Checkbox from 'material-ui/Checkbox'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, { Component, PropTypes } from 'react'
import React, { Component } from 'react'
import PropTypes from 'prop-types'
import { connect } from 'react-redux'
import { map } from 'lodash'
import Theme from 'theme'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, { PropTypes } from 'react'
import React from 'react'
import PropTypes from 'prop-types'
import { Link } from 'react-router'
import { Field, reduxForm } from 'redux-form'
import RaisedButton from 'material-ui/RaisedButton'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, { Component, PropTypes } from 'react'
import React, { Component } from 'react'
import PropTypes from 'prop-types'
import { Link } from 'react-router'
import GoogleButton from 'react-google-button'
import { connect } from 'react-redux'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { Component, PropTypes } from 'react'
import { Field, reduxForm } from 'redux-form'
import React, { Component } from 'react'
import PropTypes from 'prop-types'
import Dialog from 'material-ui/Dialog'
import FlatButton from 'material-ui/FlatButton'
import TextField from 'components/TextField'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, { PropTypes } from 'react'
import React from 'react'
import PropTypes from 'prop-types'
import Paper from 'material-ui/Paper'
import ContentAddCircle from 'material-ui/svg-icons/content/add-circle'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, { PropTypes } from 'react'
import React from 'react'
import PropTypes from 'prop-types'
import Paper from 'material-ui/Paper'
import { isObject } from 'lodash'
import IconButton from 'material-ui/IconButton'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, { Component, cloneElement, PropTypes } from 'react'
import React, { Component, cloneElement } from 'react'
import PropTypes from 'prop-types'
import { map } from 'lodash'
import { connect } from 'react-redux'
import {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, { PropTypes } from 'react'
import React from 'react'
import PropTypes from 'prop-types'
import classes from './Project.scss'

export const Project = ({ projects, params: { projectname } }) => (
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, { PropTypes } from 'react'
import React from 'react'
import PropTypes from 'prop-types'
import { Field, reduxForm } from 'redux-form'
import RaisedButton from 'material-ui/RaisedButton'
import Subheader from 'material-ui/Subheader'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, { Component, PropTypes } from 'react'
import React, { Component } from 'react'
import PropTypes from 'prop-types'
import { firebaseConnect } from 'react-redux-firebase'
import Snackbar from 'material-ui/Snackbar'
import Paper from 'material-ui/Paper'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, { PropTypes } from 'react'
import React from 'react'
import PropTypes from 'prop-types'
import RaisedButton from 'material-ui/RaisedButton'
import { Field, reduxForm } from 'redux-form'
import TextField from 'components/TextField'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, { Component, PropTypes } from 'react'
import React, { Component } from 'react'
import PropTypes from 'prop-types'
import { Link } from 'react-router'
import GoogleButton from 'react-google-button'
import { connect } from 'react-redux'
Expand Down
1 change: 1 addition & 0 deletions examples/complete/simple/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"react-scripts": "0.4.1"
},
"dependencies": {
"prop-types": "^15.5.8",
"react": "^15.3.1",
"react-dom": "^15.3.1",
"react-redux": "^4.4.5",
Expand Down
3 changes: 2 additions & 1 deletion examples/complete/simple/src/Home.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import react, { Component, PropTypes } from 'react'
import react, { Component } from 'react'
import PropTypes from 'prop-types'
import { connect } from 'react-redux'
import {
firebaseConnect,
Expand Down
3 changes: 2 additions & 1 deletion examples/complete/simple/src/TodoItem.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, { Component, PropTypes } from 'react'
import React, { Component } from 'react'
import PropTypes from 'prop-types'
import { firebase } from 'react-redux-firebase'

import './Todo.css'
Expand Down
3 changes: 2 additions & 1 deletion examples/snippets/decorators/App.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, { Component, PropTypes } from 'react'
import React, { Component } from 'react'
import PropTypes from 'prop-types'
import { map } from 'lodash'
import { connect } from 'react-redux'
import {
Expand Down
3 changes: 2 additions & 1 deletion examples/snippets/decorators/TodoItem.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, { Component, PropTypes } from 'react'
import React, { Component } from 'react'
import PropTypes from 'prop-types'
import { firebaseConnect } from 'react-redux-firebase'

import './Todo.css'
Expand Down
3 changes: 2 additions & 1 deletion examples/snippets/multipleQueries/App.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, { Component, PropTypes } from 'react'
import React, { Component } from 'react'
import PropTypes from 'prop-types'
import { map } from 'lodash'
import { connect } from 'react-redux'
import {
Expand Down
3 changes: 2 additions & 1 deletion examples/snippets/multipleQueries/TodoItem.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, { Component, PropTypes } from 'react'
import React, { Component } from 'react'
import PropTypes from 'prop-types'
import { firebaseConnect } from 'react-redux-firebase'

import './Todo.css'
Expand Down
3 changes: 2 additions & 1 deletion examples/snippets/populates/App.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, { Component, PropTypes } from 'react'
import React, { Component } from 'react'
import PropTypes from 'prop-types'
import { map } from 'lodash'
import { connect } from 'react-redux'
import {
Expand Down
3 changes: 2 additions & 1 deletion examples/snippets/stateBasedQuery/App.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import react, { Component, PropTypes } from 'react'
import react, { Component } from 'react'
import PropTypes from 'prop-types'
import { connect } from 'react-redux'
import {
firebaseConnect,
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@
"hoist-non-react-statics": "^1.2.0",
"immutable": "^3.8.1",
"jwt-decode": "^2.2.0",
"lodash": "^4.17.4"
"lodash": "^4.17.4",
"prop-types": "^15.5.8"
},
"peerDependencies": {
"react": "^0.14.6 || ^15.0.0"
Expand Down
15 changes: 10 additions & 5 deletions src/compose.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,8 @@ export default (fbConfig, otherConfig) => next =>
* @param {Function} onComplete - Function to run on complete (`not required`)
* @return {Promise} Containing reference snapshot
* @example <caption>Basic</caption>
* import React, { Component, PropTypes } from 'react'
* import React, { Component } from 'react'
* import PropTypes from 'prop-types'
* import { firebaseConnect } from 'react-redux-firebase'
* const Example = ({ firebase: { set } }) => (
* <button onClick={() => set('some/path', { here: 'is a value' })}>
Expand Down Expand Up @@ -188,7 +189,8 @@ export default (fbConfig, otherConfig) => next =>
* @param {Function} onComplete - Function to run on complete (`not required`)
* @return {Promise} Containing reference snapshot
* @example <caption>Basic</caption>
* import React, { Component, PropTypes } from 'react'
* import React, { Component } from 'react'
* import PropTypes from 'prop-types'
* import { firebaseConnect } from 'react-redux-firebase'
* const Example = ({ firebase: { push } }) => (
* <button onClick={() => push('some/path', true)}>
Expand Down Expand Up @@ -218,7 +220,8 @@ export default (fbConfig, otherConfig) => next =>
* @param {Function} onComplete - Function to run on complete (`not required`)
* @return {Promise} Containing reference snapshot
* @example <caption>Basic</caption>
* import React, { Component, PropTypes } from 'react'
* import React, { Component } from 'react'
* import PropTypes from 'prop-types'
* import { firebaseConnect } from 'react-redux-firebase'
* const Example = ({ firebase: { update } }) => (
* <button onClick={() => update('some/path', { here: 'is a value' })}>
Expand Down Expand Up @@ -248,7 +251,8 @@ export default (fbConfig, otherConfig) => next =>
* @param {Function} onComplete - Function to run on complete (`not required`)
* @return {Promise} Containing reference snapshot
* @example <caption>Basic</caption>
* import React, { Component, PropTypes } from 'react'
* import React, { Component } from 'react'
* import PropTypes from 'prop-types'
* import { firebaseConnect } from 'react-redux-firebase'
* const Example = ({ firebase: { remove } }) => (
* <button onClick={() => remove('some/path')}>
Expand All @@ -268,7 +272,8 @@ export default (fbConfig, otherConfig) => next =>
* @param {Function} onComplete - Function to run on complete (`not required`)
* @return {Promise} Containing reference snapshot
* @example <caption>Basic</caption>
* import React, { Component, PropTypes } from 'react'
* import React, { Component } from 'react'
* import PropTypes from 'prop-types'
* import { firebaseConnect } from 'react-redux-firebase'
* const Example = ({ firebase: { uniqueSet } }) => (
* <button onClick={() => uniqueSet('some/unique/path', true)}>
Expand Down
3 changes: 2 additions & 1 deletion src/connect.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, { Component, PropTypes } from 'react'
import React, { Component } from 'react'
import PropTypes from 'prop-types'
import { isEqual } from 'lodash'
import hoistStatics from 'hoist-non-react-statics'
import { watchEvents, unWatchEvents } from './actions/query'
Expand Down
6 changes: 4 additions & 2 deletions src/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ import { metaParams, paramSplitChar } from './constants'
* @param {Object} item - Item to check loaded status of. A comma seperated list is also acceptable.
* @return {Boolean} Whether or not item is loaded
* @example
* import React, { Component, PropTypes } from 'react'
* import React, { Component } from 'react'
* import PropTypes from 'prop-types'
* import { connect } from 'react-redux'
* import { firebaseConnect, isLoaded, dataToJS } from 'react-redux-firebase'
*
Expand Down Expand Up @@ -57,7 +58,8 @@ export const isLoaded = function () {
* @param {Object} item - Item to check loaded status of. A comma seperated list is also acceptable.
* @return {Boolean} Whether or not item is empty
* @example
* import React, { Component, PropTypes } from 'react'
* import React, { Component } from 'react'
* import PropTypes from 'prop-types'
* import { connect } from 'react-redux'
* import { firebaseConnect, isEmpty, dataToJS } from 'react-redux-firebase'
*
Expand Down
3 changes: 2 additions & 1 deletion tests/unit/connect.spec.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, { createClass, Children, Component, PropTypes } from 'react'
import React, { createClass, Children, Component } from 'react'
import PropTypes from 'prop-types'
import ReactDOM from 'react-dom'
import connect from '../../src/connect'
import reactReduxFirebase from '../../src/compose'
Expand Down