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

perf: reduce dependencies #601

Merged
merged 2 commits into from
Jun 4, 2020
Merged

perf: reduce dependencies #601

merged 2 commits into from
Jun 4, 2020

Conversation

connor-baer
Copy link
Member

Purpose

In order to decrease bundle size, we should reduce the number of dependencies we rely on. Third-party packages tend to include more code than we need. Tree-shaking solves some of that, but in some cases, we can simply move the needed code into Circuit UI.

Approach and changes

  • remove recompose dependency
  • remove polished dependency
  • add hideVisually style helper

BREAKING CHANGE: The static size properties have been removed from the CardList.Item component. Pass the size as a string instead.

Definition of done

  • Development completed
  • Reviewers assigned
  • Unit and integration tests
  • Meets minimum browser support
  • Meets accessibility requirements

@connor-baer connor-baer added the feature A new feature or enhancement label Jun 1, 2020
@connor-baer connor-baer added this to the v2.0 milestone Jun 1, 2020
@codecov
Copy link

codecov bot commented Jun 1, 2020

Codecov Report

Merging #601 into alpha will decrease coverage by 0.12%.
The diff coverage is 83.33%.

Impacted file tree graph

@@            Coverage Diff             @@
##            alpha     #601      +/-   ##
==========================================
- Coverage   94.26%   94.14%   -0.13%     
==========================================
  Files         136      135       -1     
  Lines        2198     2203       +5     
  Branches      631      633       +2     
==========================================
+ Hits         2072     2074       +2     
- Misses        103      105       +2     
- Partials       23       24       +1     
Impacted Files Coverage Δ
src/components/Badge/Badge.js 100.00% <ø> (ø)
src/components/Checkbox/Checkbox.js 100.00% <ø> (ø)
src/components/Input/Input.js 100.00% <ø> (ø)
src/components/Label/Label.js 100.00% <ø> (ø)
src/components/Modal/Modal.js 100.00% <ø> (ø)
src/components/RadioButton/RadioButton.js 100.00% <ø> (ø)
src/components/Select/Select.js 100.00% <ø> (ø)
src/components/Selector/Selector.js 100.00% <ø> (ø)
...components/Table/components/SortArrow/SortArrow.js 100.00% <ø> (ø)
src/util/get-display-name.ts 66.66% <66.66%> (ø)
... and 6 more

@vercel
Copy link

vercel bot commented Jun 1, 2020

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/sumup-oss/circuit-ui/iitfxymln
✅ Preview: https://circuit-ui-git-feature-reduce-dependencies.sumup-oss.now.sh

@connor-baer connor-baer mentioned this pull request Jun 2, 2020
5 tasks
@connor-baer connor-baer force-pushed the feature/reduce-dependencies branch from ff7ab8c to de6d438 Compare June 4, 2020 09:14
@connor-baer connor-baer merged commit b63d385 into alpha Jun 4, 2020
@connor-baer connor-baer deleted the feature/reduce-dependencies branch June 4, 2020 14:09
@github-actions
Copy link
Contributor

github-actions bot commented Jun 4, 2020

🎉 This PR is included in version 2.0.0-alpha.23 🎉

The release is available on:

Your semantic-release bot 📦🚀

@github-actions
Copy link
Contributor

github-actions bot commented Jun 8, 2020

🎉 This PR is included in version 2.0.0-beta.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@github-actions
Copy link
Contributor

🎉 This PR is included in version 2.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature A new feature or enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants