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

[Feature] Upgrade dependencies to latest #409

Merged
merged 9 commits into from
Nov 9, 2020

Conversation

aappoalander
Copy link
Contributor

@aappoalander aappoalander commented Nov 4, 2020

Description

This PR upgrades all but webpack and TSDX css/scss related plugins to latest available version. Also related peer dependencies have been upgraded to the latest proven to work versions. These upgrades introduce a breaking change for styled-components types to add support for TS 4 and also gain performance and security improvements. These types include a known issue with skipLibCheck true compiler option, but a workaround is described in Readme.

Motivation and Context

To allow use of TypeScript 4 and later with skipLibCheck true compiler option, some dependencies had to be upgraded. Previously used types version 4.1.8 for styled-components had to be updated to latest available version, which has a known issue of including conflicting react-native types, but fortunately there is a workaround for the issue. Another reason for upgrade is that Styled Components v5 performs better than v4 and does not introduce breaking changes.

Jest related libraries are manually configured to use latest version in contrast to what is officially supported by TSDX. This is because of security issues in older versions.

Styleguidist does not allow upgrading webpack to version 5+ and related plugins also need to remain 4.x compatible. TSDX css/scss related plugins cannot be upgraded either.

How Has This Been Tested?

Tested with Styleguidist, CRA TS and SSR test projects and using multiple browsers.

Release notes

  • Breaking Change: Styled components and related types upgraded to version 5 and require configuration to allow skipLibCheck true. Also peer dependencies have been updated accordingly. Additional non breaking dependency upgrades.

@aappoalander aappoalander added enhancement New feature or request dependencies Pull requests that update a dependency file labels Nov 4, 2020
@aappoalander aappoalander self-assigned this Nov 4, 2020
Copy link
Collaborator

@LJKaski LJKaski left a comment

Choose a reason for hiding this comment

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

Seems to work fine with the updated dependencies.

@aappoalander aappoalander merged commit b60fb03 into develop Nov 9, 2020
@aappoalander aappoalander deleted the feature/upgrade-dependencies-to-latest branch December 4, 2020 08:26
@aappoalander aappoalander mentioned this pull request Jan 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants