-
Notifications
You must be signed in to change notification settings - Fork 130
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
feat: remove deprecated code #529
Conversation
Codecov Report
@@ Coverage Diff @@
## alpha #529 +/- ##
==========================================
+ Coverage 79.79% 93.09% +13.3%
==========================================
Files 188 154 -34
Lines 3256 2462 -794
Branches 887 687 -200
==========================================
- Hits 2598 2292 -306
+ Misses 542 139 -403
+ Partials 116 31 -85
|
This pull request is being automatically deployed with ZEIT Now (learn more). 🔍 Inspect: https://zeit.co/sumup-oss/circuit-ui/88gh7slcv |
26cc667
to
bf5236e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔥
src/components/CurrencyInput/components/SimpleCurrencyInput/SimpleCurrencyInput.js
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@hleote Yes, we always push updates to snapshot files. They’re also checked in CI and since the pipeline ran successfully for this PR, I’m guessing it’s something on your local machine. Did you update your node modules? Which version of Node are you using? |
BREAKING CHANGE: GlobalStyles has been renamed to BaseStyles. It no longer accepts a `custom` prop, use Emotion's Global component instead.
BREAKING CHANGE: ListView has been renamed to CardList.
BREAKING CHANGE: CreditCardDetails, CardNumberInput, NameOnCardInput, SecurityCodeInput, ExpiryDateInput, and the credit card utils have been removed. Use SumUp's card widget instead: https://developer.sumup.com/docs/widgets-card-v2
BREAKING CHANGE: Markdown has been deprecated.
BREAKING CHANGE: MaskedInput has been deprecated. Use react-text-mask directly instead: https://www.npmjs.com/package/react-text-mask
BREAKING CHANGE: Picture has been removed.
BREAKING CHANGE: SideNav has been deprecated. Use the Sidebar component instead.
BREAKING CHANGE: SvgButton has been renamed to IconButton
BREAKING CHANGE: Heading, SubHeading, and Text no longer accept the `element` prop. Emotion 10 introduced the ability to change the HTML element. Use the "as" prop instead.
BREAKING CHANGE: Input component no longer accept `className` props. Emotion 10 uses style objects instead of classnames. Use the "inputStyles" prop instead.
…tch components BREAKING CHANGE: RadioButton and Switch no longer accept the "onToggle" prop. Use the "onChange" prop instead.
BREAKING CHANGE: State has been deprecated. Use React's useState hook instead: https://reactjs.org/docs/hooks-reference.html#usestate
BREAKING CHANGE: RestrictedInput has been removed.
bf5236e
to
57320fd
Compare
🎉 This PR is included in version 2.0.0-alpha.3 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Using Node version 12.13.0. |
🎉 This PR is included in version 2.0.0-beta.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
🎉 This PR is included in version 2.0.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Addresses #469.
Purpose
Remove all components and other code that were deprecated in v1.2 (#470).
Approach and changes
useState
hook instead.onToggle
prop. Use theonChange
prop instead.*ClassName
props. Emotion 10 uses style objects instead of class names. Use the*Styles
props instead.element
prop. Emotion 10 introduced the ability to change the HTML element. Use theas
prop instead.react-text-mask
directly instead.markdown-to-jsx
directly instead.custom
prop, use Emotion's Global component instead.Definition of done