Skip to content

Commit

Permalink
fix(deps): remove recompose dep (#1864)
Browse files Browse the repository at this point in the history
* fix: embed recompose hocs and remove recompose dependency

* chore: remove recompose from bithoundrc
  • Loading branch information
SevenOutman committed Sep 1, 2021
1 parent a8c4262 commit d293e9d
Show file tree
Hide file tree
Showing 39 changed files with 207 additions and 174 deletions.
1 change: 0 additions & 1 deletion .bithoundrc
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
"webpack-cli",
"gulp",
"eslint-plugin-json",
"recompose",
"sinon-chai",
"sinon",
"prettier",
Expand Down
117 changes: 7 additions & 110 deletions package-lock.json

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

2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@
"prop-types": "^15.7.2",
"react-lifecycles-compat": "^3.0.4",
"react-virtualized": "^9.21.0",
"recompose": "^0.30.0",
"rsuite-table": "^3.15.1",
"schema-typed": "^1.5.1"
},
Expand Down Expand Up @@ -94,7 +93,6 @@
"@types/react": "^16.9.35",
"@types/react-dom": "^16.9.8",
"@types/react-virtualized": "^9.21.8",
"@types/recompose": "^0.30.6",
"@typescript-eslint/eslint-plugin": "^2.11.0",
"@typescript-eslint/parser": "^2.11.0",
"autoprefixer": "^8.3.0",
Expand Down
2 changes: 1 addition & 1 deletion src/AutoComplete/AutoComplete.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import * as React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import _ from 'lodash';
import { setStatic } from 'recompose';
import { setStatic } from '../utils';
import shallowEqual from '../utils/shallowEqual';
import Input from '../Input';
import AutoCompleteItem from './AutoCompleteItem';
Expand Down
3 changes: 1 addition & 2 deletions src/Avatar/Avatar.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import * as React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import { compose } from 'recompose';
import { defaultProps, prefix, withStyleProps } from '../utils';
import { compose, defaultProps, prefix, withStyleProps } from '../utils';
import { SIZE } from '../constants';
import { AvatarProps } from './Avatar.d';

Expand Down
3 changes: 1 addition & 2 deletions src/Breadcrumb/Breadcrumb.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import * as React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import { setStatic } from 'recompose';

import BreadcrumbItem from './BreadcrumbItem';
import { defaultProps, prefix, getUnhandledProps } from '../utils';
import { setStatic, defaultProps, prefix, getUnhandledProps } from '../utils';

import { BreadcrumbProps } from './Breadcrumb.d';

Expand Down
10 changes: 8 additions & 2 deletions src/Button/Button.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
import * as React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import { compose } from 'recompose';
import SafeAnchor from '../SafeAnchor';
import Ripple from '../Ripple';

import { withStyleProps, getUnhandledProps, defaultProps, prefix, isOneOf } from '../utils';
import {
compose,
withStyleProps,
getUnhandledProps,
defaultProps,
prefix,
isOneOf
} from '../utils';
import { ButtonProps } from './Button.d';

class Button extends React.Component<ButtonProps> {
Expand Down
3 changes: 1 addition & 2 deletions src/ButtonGroup/ButtonGroup.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import * as React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import { compose } from 'recompose';

import { withStyleProps, defaultProps, prefix } from '../utils';
import { compose, withStyleProps, defaultProps, prefix } from '../utils';
import { ButtonGroupProps } from './ButtonGroup.d';

class ButtonGroup extends React.Component<ButtonGroupProps> {
Expand Down
4 changes: 1 addition & 3 deletions src/Drawer/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import { setStatic, setDisplayName } from 'recompose';

import { defaultProps } from '../utils';
import { setStatic, setDisplayName, defaultProps } from '../utils';
import Drawer from './Drawer';
import ModalBody from '../Modal/ModalBody';
import ModalHeader from '../Modal/ModalHeader';
Expand Down
2 changes: 1 addition & 1 deletion src/Dropdown/Dropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import * as React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import _ from 'lodash';
import { setStatic } from 'recompose';
import { contains } from 'dom-lib';

import RootCloseWrapper from '../Overlay/RootCloseWrapper';
Expand All @@ -11,6 +10,7 @@ import DropdownToggle from './DropdownToggle';
import DropdownMenu from './DropdownMenu';
import DropdownMenuItem from './DropdownMenuItem';
import {
setStatic,
createChainedFunction,
prefix,
isOneOf,
Expand Down
3 changes: 1 addition & 2 deletions src/FlexboxGrid/FlexboxGrid.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import * as React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import { setStatic } from 'recompose';

import { defaultProps, prefix } from '../utils';
import { setStatic, defaultProps, prefix } from '../utils';
import FlexboxGridItem from './FlexboxGridItem';
import { FlexboxGridProps } from './FlexboxGrid.d';

Expand Down
3 changes: 1 addition & 2 deletions src/FormGroup/FormGroup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ import * as React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import _ from 'lodash';
import { compose } from 'recompose';
import { withStyleProps, defaultProps, prefix, createContext } from '../utils';
import { compose, withStyleProps, defaultProps, prefix, createContext } from '../utils';
import { FormGroupProps } from './FormGroup.d';

export const FormGroupContext = createContext(null);
Expand Down
2 changes: 1 addition & 1 deletion src/Input/Input.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import * as React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import { compose } from 'recompose';
import _ from 'lodash';

import {
compose,
withStyleProps,
defaultProps,
createChainedFunction,
Expand Down
3 changes: 1 addition & 2 deletions src/InputGroup/InputGroup.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import * as React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import { setStatic, compose } from 'recompose';
import InputGroupAddon from './InputGroupAddon';
import InputGroupButton from './InputGroupButton';
import { prefix, withStyleProps, defaultProps, createContext } from '../utils';
import { setStatic, compose, prefix, withStyleProps, defaultProps, createContext } from '../utils';
import { InputGroupProps } from './InputGroup.d';

export const InputGroupContext = createContext(null);
Expand Down
2 changes: 1 addition & 1 deletion src/IntlProvider/withLocale.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as React from 'react';
import _ from 'lodash';
import { setDisplayName, wrapDisplayName } from 'recompose';
import { setDisplayName, wrapDisplayName } from '../utils';
import format from 'date-fns/format';
import defaultLocale from './locales/default';
import extendReactStatics from '../utils/extendReactStatics';
Expand Down

1 comment on commit d293e9d

@vercel
Copy link

@vercel vercel bot commented on d293e9d Sep 1, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

rsuite – ./docs

rsuite-git-v4-rsuite.vercel.app
rsuite-rsuite.vercel.app
rsuite.vercel.app
rsuitejs.com

Please sign in to comment.