Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(lib): update lodash and redux dependencies #209

Merged
merged 1 commit into from
Oct 12, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
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
60 changes: 17 additions & 43 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 2 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,9 @@
"dependencies": {
"babel-runtime": "^6.26.0",
"invariant": "^2.2.2",
"lodash.curry": "^4.1.1",
"lodash.debounce": "^4.0.8",
"lodash.isfunction": "^3.0.8",
"lodash.isobject": "^3.0.2",
"lodash.isplainobject": "^4.0.6",
"lodash.map": "^4.6.0"
"lodash": "4.17.11"
},
"peerDependencies": {
"redux": "^3.0.0"
"redux": ">3.0.0"
}
}
6 changes: 3 additions & 3 deletions src/components/connector.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import shallowEqual from '../utils/shallowEqual';
import wrapActionCreators from '../utils/wrapActionCreators';
import invariant from 'invariant';

import isPlainObject from 'lodash.isplainobject';
import isFunction from 'lodash.isfunction';
import isObject from 'lodash.isobject';
import isPlainObject from 'lodash/isPlainObject';
import isFunction from 'lodash/isFunction';
import isObject from 'lodash/isObject';

const assign = Object.assign;
const defaultMapStateToTarget = () => ({});
Expand Down
2 changes: 1 addition & 1 deletion src/components/digestMiddleware.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import debounce from 'lodash.debounce';
import debounce from 'lodash/debounce';

export default function digestMiddleware($rootScope, debounceConfig) {
let debouncedFunction = (expr) => {
Expand Down
8 changes: 4 additions & 4 deletions src/components/ngRedux.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import digestMiddleware from './digestMiddleware';
import providedStoreMiddleware from './providedStoreMiddleware';
import wrapStore from './storeWrapper';

import curry from 'lodash.curry';
import isFunction from 'lodash.isfunction';
import map from 'lodash.map';
import curry from 'lodash/curry';
import isFunction from 'lodash/isFunction';
import map from 'lodash/map';

const isArray = Array.isArray;

Expand Down Expand Up @@ -97,7 +97,7 @@ export default function ngReduxProvider() {
const store = createStore(_reducer, _initialState, compose(middlewares, ...resolvedStoreEnhancer));

const mergedStore = assign({}, store, { connect: Connector(store) });

if (_providedStore) wrapStore(_providedStore, mergedStore);

return mergedStore;
Expand Down
2 changes: 1 addition & 1 deletion test/components/connector.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import expect from 'expect';
let sinon = require('sinon');
import { createStore } from 'redux';
import Connector from '../../src/components/connector';
import isFunction from 'lodash.isfunction';
import isFunction from 'lodash/isFunction';

const assign = Object.assign;

Expand Down