Skip to content
This repository has been archived by the owner on Dec 31, 2021. It is now read-only.

Commit

Permalink
Merge pull request #9 from afc163/patch-1
Browse files Browse the repository at this point in the history
chore: reduce install size
  • Loading branch information
yesmeck committed May 6, 2020
2 parents 6724b36 + dd57213 commit 4af1408
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
12 changes: 5 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,13 @@
"esm"
],
"dependencies": {
"@types/hoist-non-react-statics": "^3.3.1",
"@types/react-lifecycles-compat": "^3.0.1",
"@types/shallowequal": "^1.1.1",
"hoist-non-react-statics": "^3.3.2",
"prop-types": "^15.6.0",
"react-lifecycles-compat": "^3.0.4",
"shallowequal": "^1.0.2",
"typescript": "^3.8.3"
"shallowequal": "^1.0.2"
},
"devDependencies": {
"@types/hoist-non-react-statics": "^3.3.1",
"@types/shallowequal": "^1.1.1",
"@commitlint/cli": "^7.0.0",
"@commitlint/config-conventional": "^7.0.1",
"@types/enzyme": "^3.10.5",
Expand All @@ -40,7 +37,8 @@
"react": "^16.0.0",
"react-dom": "^16.0.0",
"standard-version": "^4.4.0",
"ts-jest": "^25.2.1"
"ts-jest": "^25.2.1",
"typescript": "^3.8.3"
},
"peerDependencies": {
"react": ">=16.9.0",
Expand Down
3 changes: 0 additions & 3 deletions src/connect.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { default as React, Component } from 'react';
import shallowEqual from 'shallowequal';
import hoistStatics from 'hoist-non-react-statics';
import { polyfill } from 'react-lifecycles-compat';
import { MiniStoreContext } from './Provider';
import { Store, MapStateToProps, DefaultRootState, Options, ConnectedState, ConnectProps } from './types';

Expand Down Expand Up @@ -100,8 +99,6 @@ export function connect<TStateProps = {}, TOwnProps = {}, State = DefaultRootSta
}
}

polyfill(Connect);

if (options.forwardRef) {
const forwarded = React.forwardRef((props: TOwnProps, ref) => {
return <Connect {...props} miniStoreForwardedRef={ref} />;
Expand Down

0 comments on commit 4af1408

Please sign in to comment.