Skip to content

Commit fb296a2

Browse files
committed
fix: Replace lodash assign with Object.assign for symbol copy
Ref: #129 #141
1 parent 3291e1b commit fb296a2

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

package.json

-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@
3838
},
3939
"dependencies": {
4040
"invariant": "^2.1.0",
41-
"lodash.assign": "^3.2.0",
4241
"lodash.curry": "^4.0.1",
4342
"lodash.isarray": "^3.0.4",
4443
"lodash.isfunction": "^3.0.6",

src/components/connector.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import invariant from 'invariant';
55
import isPlainObject from 'lodash.isplainobject';
66
import isFunction from 'lodash.isfunction';
77
import isObject from 'lodash.isobject';
8-
import assign from 'lodash.assign';
98

9+
const assign = Object.assign;
1010
const defaultMapStateToTarget = () => ({});
1111
const defaultMapDispatchToTarget = dispatch => ({dispatch});
1212

src/components/ngRedux.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import invariant from 'invariant';
33
import {createStore, applyMiddleware, compose, combineReducers} from 'redux';
44
import digestMiddleware from './digestMiddleware';
55

6-
import assign from 'lodash.assign';
76
import curry from 'lodash.curry';
87
import isArray from 'lodash.isarray';
98
import isFunction from 'lodash.isfunction';
@@ -12,6 +11,7 @@ import map from 'lodash.map';
1211
const typeIs = curry((type, val) => typeof val === type);
1312
const isObject = typeIs('object');
1413
const isString = typeIs('string');
14+
const assign = Object.assign;
1515

1616
export default function ngReduxProvider() {
1717
let _reducer = undefined;

test/components/connector.spec.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ let sinon = require('sinon');
33
import { createStore } from 'redux';
44
import Connector from '../../src/components/connector';
55
import isFunction from 'lodash.isfunction';
6-
import assign from 'lodash.assign';
6+
7+
const assign = Object.assign;
78

89
describe('Connector', () => {
910
let store;

0 commit comments

Comments
 (0)