Skip to content

Commit b49e98f

Browse files
authored
Version v1.4.0-rc.3 (prescottprue#128) (prescottprue#134)
* Switched back to importing PropTypes from react due to (prescottprue#128) * Roadmap updated with population features coming in `v1.5.0`
1 parent 12df1e8 commit b49e98f

File tree

42 files changed

+97
-171
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+97
-171
lines changed

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,7 @@ const store = createStoreWithFirebase(rootReducer, initialState)
110110

111111
In components:
112112
```javascript
113-
import React, { Component } from 'react'
114-
import PropTypes from 'prop-types'
113+
import React, { Component, PropTypes } from 'react'
115114
import { connect } from 'react-redux'
116115
import {
117116
firebaseConnect,

docs/api/helpers.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@ Detect whether items are loaded yet or not
99
**Examples**
1010

1111
```javascript
12-
import React, { Component } from 'react'
13-
import PropTypes from 'prop-types'
12+
import React, { Component, PropTypes } from 'react'
1413
import { connect } from 'react-redux'
1514
import { firebaseConnect, isLoaded, dataToJS } from 'react-redux-firebase'
1615
```
@@ -29,8 +28,7 @@ Detect whether items are empty or not
2928
**Examples**
3029

3130
```javascript
32-
import React, { Component } from 'react'
33-
import PropTypes from 'prop-types'
31+
import React, { Component, PropTypes } from 'react'
3432
import { connect } from 'react-redux'
3533
import { firebaseConnect, isEmpty, dataToJS } from 'react-redux-firebase'
3634
```

docs/recipes/auth.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@
55
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
66

77
```js
8-
import React, { Component } from 'react'
9-
import PropTypes from 'prop-types'
8+
import React, { Component, PropTypes } from 'react'
109
import GoogleButton from 'react-google-button'
1110
import { connect } from 'react-redux'
1211
import {

docs/roadmap.md

Lines changed: 26 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
# Roadmap
22

3-
## Recent Minor Version (`v1.4.0`)
3+
## Current Minor Version (`v1.4.0`)
4+
5+
**NOTE**: `v1.4.0` is still in pre-release, please check the [releases page](https://github.com/prescottprue/react-redux-firebase/releases) for the most up to date release information
46

57
#### Features
68
* `react-native` support (including [complete example](https://github.com/prescottprue/react-redux-firebase/tree/v1.4.0-beta/examples/complete/react-native) app as well as a [create your own recipe](/docs/recipes/react-native.md))
7-
* Server Side Rendering Support ([#72](https://github.com/prescottprue/react-redux-firebase/issues/72))
8-
* Support for Boilerplates ([#53](https://github.com/prescottprue/react-redux-firebase/issues/53))
9-
* Use `prop-types` package instead of `React.PropTypes` [#122](https://github.com/prescottprue/react-redux-firebase/pull/122) - thanks [@petetnt](https://github.com/petetnt)
9+
* Server Side Rendering Support - [#72](https://github.com/prescottprue/react-redux-firebase/issues/72)
10+
* Support for Boilerplates - [#53](https://github.com/prescottprue/react-redux-firebase/issues/53)
1011
* `pushWithMeta`, `setWithMeta`, and `updateWithMeta` methods added - write to firebase with createdAt/updatedAt and createdBy/updatedBy
11-
* Fix for `unWatchEvent` helper dispatch mapping (#82)
12-
* `populatedDataToJS` triggers `isLoaded` to be true only when all data is populated (instead of once for unpopulated data) [#121](https://github.com/prescottprue/react-redux-firebase/issues/121)
12+
* Fix for `unWatchEvent` helper dispatch mapping - #82
13+
* `populatedDataToJS` triggers `isLoaded` to be true only when all data is populated (instead of once for unpopulated data) - [#121](https://github.com/prescottprue/react-redux-firebase/issues/121)
1314
* Support for `provider.setCustomParameters` on external auth providers (i.e. `provider.setCustomParameters({ prompt: 'select_account' })`)
1415
* `notParsed` query param option added for not parsing when using `equalTo` (for searching numbers stored as strings)
1516
* `profileParamsToPopulate` now works for `$key: true` lists - thanks [@fej-snikduj](https://github.com/fej-snikduj)
@@ -21,22 +22,25 @@
2122
* Todos list only displays first 8 (first at the top) - shows using ordering query params
2223
* Most main routes are now sync (more simple)
2324
* Firebase Library dependency updated to [`v3.9.0`](https://firebase.google.com/support/release-notes/js)
24-
* Fix for `unWatchEvent` helper dispatch mapping ([#82](https://github.com/prescottprue/react-redux-firebase/issues/82))
25-
* Firebase version is no longer fixed ([#109](https://github.com/prescottprue/react-redux-firebase/issues/109))
25+
* Fix for `unWatchEvent` helper dispatch mapping - [#82](https://github.com/prescottprue/react-redux-firebase/issues/82)
26+
* Firebase version is no longer fixed - [#109](https://github.com/prescottprue/react-redux-firebase/issues/109)
2627
* Only used parts of Firebase Library imported (shrinks bundle size)
27-
* `build:size` npm script added to generate size report for minified bundle ([#107](https://github.com/prescottprue/react-redux-firebase/issues/107))
28-
* `user` and `credential` are now returned from login method ([#106](https://github.com/prescottprue/react-redux-firebase/issues/106))
28+
* `build:size` npm script added to generate size report for minified bundle - [#107](https://github.com/prescottprue/react-redux-firebase/issues/107)
29+
* `user` and `credential` are now returned from login method - [#106](https://github.com/prescottprue/react-redux-firebase/issues/106)
2930
* `yarn.lock` file added
3031
* Compose tests improved promise handling (better use of chai-as-promised)
3132
* Fix `profileParamsToPopulate` with `key: true` lists - thanks [@fej-snikduj](https://github.com/fej-snikduj)
3233

3334

3435
## Next Minor Version (`v1.5.0`)
35-
* Setting that allows for `waitForPopulate` to be turned off (i.e. return populated data as in becomes available). As of `v1.4.0-rc.2`, populate only sets `isLoaded` to true after all children are loaded ([#121](https://github.com/prescottprue/react-redux-firebase/issues/121)), `waitForPopulate` would make this optional.
36+
* Use `prop-types` package instead of `React.PropTypes` - [#122](https://github.com/prescottprue/react-redux-firebase/pull/122) - thanks [@petetnt](https://github.com/petetnt)
37+
* New Features for Population - [#132](https://github.com/prescottprue/react-redux-firebase/pull/132) - thanks [@javamonn](https://github.com/javamonn)
38+
* Lodash supported path syntax for `populates.child`
39+
* Dynamic populates configurations (passing a function that generates populates config based on top level `(key, item)` tuple)
40+
* Use `storeAs` with populates - [#130](https://github.com/prescottprue/react-redux-firebase/issues/130)
3641
* `updateUser` method for updating currently authenticated user's user object (`/users/${uid}`)
37-
* `updateAuth` method for updating currently authenticated user's auth object [as seen in the Firebase docs](https://firebase.google.com/docs/auth/web/manage-users#get_a_users_provider-specific_profile_information)
38-
* Option to not remove all data on logout (potential config syntax: `preserveOnLogout: ['todos']`)
39-
* Option for populated items updating when changed ([#69](https://github.com/prescottprue/react-redux-firebase/issues/69))
42+
* `updateAuth` method for updating currently authenticated user's auth object [as seen in the Firebase docs](https://firebase.google.com/docs/auth/web/manage-users#get_a_users_provider-specific_profile_information) - [#129](https://github.com/prescottprue/react-redux-firebase/issues/129)
43+
* Setting that allows for `waitForPopulate` to be turned off (i.e. return populated data as in becomes available). As of `v1.4.0-rc.2`, populate only sets `isLoaded` to true after all children are loaded, `waitForPopulate` would make this optional - [#121](https://github.com/prescottprue/react-redux-firebase/issues/121)
4044

4145
## Future Minor Versions (`v1.6.0 - v1.*.*`)
4246

@@ -46,9 +50,11 @@
4650
*None Yet Planned*
4751

4852
#### Features
53+
* Config option for populated items updating when changed - [#69](https://github.com/prescottprue/react-redux-firebase/issues/69)
54+
* Config option to not remove all data on logout (potential config syntax: `preserveOnLogout: ['todos']`)
4955
* Integration for [`react-native-firebase`](https://github.com/invertase/react-native-firebase) for using Firebase native modules instead of JS library
5056
* Integration for [`react-native-google-signin`](https://github.com/devfd/react-native-google-signin) to simplify react-native authentication implementation
51-
* Nested populates ([#85](https://github.com/prescottprue/react-redux-firebase/issues/85))
57+
* Nested populates - [#85](https://github.com/prescottprue/react-redux-firebase/issues/85)
5258

5359
#### Enhancements/Fixes
5460
*None Yet Planned*
@@ -65,20 +71,20 @@
6571
* reducer split into multiple nested reducers for a few reasons:
6672
* follows [standard for nesting of reducers using combine reducers](http://redux.js.org/docs/recipes/reducers/UpdatingNormalizedData.html)).
6773
* allows for separately importable reducers (for placing in other parts of redux other than `state.firebase`)
68-
* Improved rendering/update performance for `react` as described in [#84](https://github.com/prescottprue/react-redux-firebase/issues/84)
74+
* Improved rendering/update performance for `react` - [#84](https://github.com/prescottprue/react-redux-firebase/issues/84)
6975

7076
#### Features
7177
* `react-native` index file referenced in `package.json` that makes it no longer necessary to pass `ReactNative` in config
7278
* `AuthRequired` decorator (or decorator factory) that forces auth to exist before rendering component
73-
* Possibility of delayed initialization as mentioned in [#70](https://github.com/prescottprue/react-redux-firebase/issues/70) (more research needed)
79+
* Possibility of delayed initialization - [#70](https://github.com/prescottprue/react-redux-firebase/issues/70) (more research needed)
7480

7581
#### Enhancements/Fixes
7682
* Implement [`firebase-server`](https://github.com/urish/firebase-server) for tests instead of using demo firebase instance
7783

7884
### Long Term Goals
79-
* Routing decorators (most likely to include `@AuthRequired`, `@DataLoaded` and `@RedirectOnAuth`)
80-
* `firebase-admin` integration described in [#22](https://github.com/prescottprue/react-redux-firebase/issues/22)
81-
* `geoFire` integration described in [#32](https://github.com/prescottprue/react-redux-firebase/issues/32)
8285
* Optional Built in Role Management
8386
* Multi-level population
8487
* Population rules suggestion/generation
88+
* Routing decorators (most likely to include `@AuthRequired`, `@DataLoaded` and `@RedirectOnAuth`)
89+
* `firebase-admin` integration - [#22](https://github.com/prescottprue/react-redux-firebase/issues/22)
90+
* `geoFire` integration - [#32](https://github.com/prescottprue/react-redux-firebase/issues/32)

examples/complete/material/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@
6262
"lodash": "^4.17.2",
6363
"material-ui": "0.16.0",
6464
"normalize.css": "^4.1.1",
65-
"prop-types": "^15.5.8",
6665
"react": "15.3.2",
6766
"react-dom": "15.3.2",
6867
"react-google-button": "^0.1.0",

examples/complete/material/src/components/LoadingSpinner/LoadingSpinner.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import React from 'react'
2-
import PropTypes from 'prop-types'
1+
import React, { PropTypes } from 'react'
32
import CircularProgress from 'material-ui/CircularProgress'
43
import classes from './LoadingSpinner.scss'
54

examples/complete/material/src/components/TextField/TextField.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import React from 'react'
2-
import PropTypes from 'prop-types'
1+
import React, { PropTypes } from 'react'
32
import MaterialTextField from 'material-ui/TextField'
43

54
export const TextField = ({ input, label, meta: { touched, error }, ...custom }) => (

examples/complete/material/src/containers/App/App.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import React, { Component } from 'react'
2-
import PropTypes from 'prop-types'
1+
import React, { Component, PropTypes } from 'react'
32
import { browserHistory, Router } from 'react-router'
43
import { Provider } from 'react-redux'
54

examples/complete/material/src/containers/Navbar/Navbar.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import React, { Component } from 'react'
2-
import PropTypes from 'prop-types'
1+
import React, { Component, PropTypes } from 'react'
32
import classes from './Navbar.scss'
43
import { Link } from 'react-router'
54
import { connect } from 'react-redux'

examples/complete/material/src/routes/Account/components/AccountForm/AccountForm.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import React from 'react'
2-
import PropTypes from 'prop-types'
1+
import React, { PropTypes } from 'react'
32
import { Field, reduxForm } from 'redux-form'
43
import RaisedButton from 'material-ui/RaisedButton'
54
import TextField from 'components/TextField'

0 commit comments

Comments
 (0)