Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
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
Next Next commit
Export createFirebaseConnect
* Export createFirebaseConnect
* Rename connect.js to firebaseConnect.js (for clarity)
  • Loading branch information
Scott Prue committed Jul 10, 2017
commit eb088195d333c80ddad0f02c8d67c9cb073a4c89
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-redux-firebase",
"version": "1.5.0-beta.3",
"version": "1.5.0-rc.1",
"description": "Redux integration for Firebase. Comes with a Higher Order Component for use with React.",
"main": "lib/index.js",
"module": "es/index.js",
Expand Down
File renamed without changes.
7 changes: 4 additions & 3 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import connect from './connect'
import firebaseConnect, { createFirebaseConnect } from './firebaseConnect'
import compose, { getFirebase } from './compose'
import reducer from './reducer'
import constants, { actionTypes } from './constants'
import * as helpers from './helpers'

export default {
firebase: connect,
firebaseConnect: connect,
firebase: firebaseConnect,
firebaseConnect,
createFirebaseConnect,
firebaseStateReducer: reducer,
reduxReactFirebase: compose,
reactReduxFirebase: compose,
Expand Down
4 changes: 2 additions & 2 deletions tests/unit/connect.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import TestUtils from 'react-addons-test-utils'
import { createStore, compose, combineReducers } from 'redux'
import getDisplayName from 'react-display-name'
import reactReduxFirebase from '../../src/compose'
import firebaseConnect from '../../src/connect'
import firebaseConnect from '../../src/firebaseConnect'

describe('Connect', () => {
describe('firebaseConnect', () => {
class Passthrough extends Component {
render () {
return <div>{JSON.stringify(this.props)}</div>
Expand Down
14 changes: 8 additions & 6 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,15 @@ const config = {
commonjs2: 'react',
amd: 'react',
root: 'React'
},
firebase: {
commonjs: 'firebase',
commonjs2: 'firebase',
amd: 'firebase',
root: 'Firebase'
}
},
plugins: [

]
plugins: []
}

if (env === 'production') {
Expand All @@ -43,9 +47,7 @@ if (env === 'production') {
)

if (process.env.SIZE) {
config.plugins.push(
new BundleAnalyzerPlugin()
)
config.plugins.push(new BundleAnalyzerPlugin())
}
}

Expand Down