Skip to content

Commit

Permalink
Update dependency styled-components to v6 (#1707)
Browse files Browse the repository at this point in the history
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [styled-components](https://styled-components.com)
([source](https://togithub.com/styled-components/styled-components)) |
[`^5.3.5` ->
`^6.0.0`](https://renovatebot.com/diffs/npm/styled-components/5.3.6/6.0.8)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/styled-components/6.0.8?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/styled-components/6.0.8?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/styled-components/5.3.6/6.0.8?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/styled-components/5.3.6/6.0.8?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>styled-components/styled-components
(styled-components)</summary>

###
[`v6.0.8`](https://togithub.com/styled-components/styled-components/releases/tag/v6.0.8)

[Compare
Source](https://togithub.com/styled-components/styled-components/compare/v6.0.7...v6.0.8)

#### What's Changed

- feat(native): add `toStyleSheet` function by
[@&#8203;krudos](https://togithub.com/krudos) in
[styled-components/styled-components#4124
- fix: prevent `StyleSheetManager` updating context on every render by
[@&#8203;keeganstreet](https://togithub.com/keeganstreet) in
[styled-components/styled-components#4159
- fix(types): ensure typing for static properties defined on third-party
components wrapped by styled-components by
[@&#8203;MartinPELCAT](https://togithub.com/MartinPELCAT) in
[styled-components/styled-components#4141
- fix: production mode inconsistent CSS rendering when dynamic property
values are the same but property names are different by
[@&#8203;bcole808](https://togithub.com/bcole808) in
[styled-components/styled-components#4132
- fix(types): decrease type complexity by moving off of
`JSX.IntrinsicElements` for the supported element list by
[@&#8203;RJWadley](https://togithub.com/RJWadley) in
[styled-components/styled-components#4149
- fix(types): adopt ref typing from forwardedAs by
[@&#8203;probablyup](https://togithub.com/probablyup) in
[styled-components/styled-components#4163
- chore: update typescript reference on issue template by
[@&#8203;chilled-capybara](https://togithub.com/chilled-capybara) in
[styled-components/styled-components#4150
- chore(types): add type exports for `StyleFunction`, `Interpolation` by
[@&#8203;bcole808](https://togithub.com/bcole808) in
[styled-components/styled-components#4140
- chore: updated Contributing guide benchmark instructions by
[@&#8203;bcole808](https://togithub.com/bcole808) in
[styled-components/styled-components#4137
- chore(types): add missing types `CSSProperties`, `CSSObject`,
`CSSPseudos` and `CSSKeyframes` by
[@&#8203;takurinton](https://togithub.com/takurinton) in
[styled-components/styled-components#4117

#### New Contributors

- [@&#8203;takurinton](https://togithub.com/takurinton) made their first
contribution in
[styled-components/styled-components#4117
- [@&#8203;krudos](https://togithub.com/krudos) made their first
contribution in
[styled-components/styled-components#4124
- [@&#8203;chilled-capybara](https://togithub.com/chilled-capybara) made
their first contribution in
[styled-components/styled-components#4150
- [@&#8203;MartinPELCAT](https://togithub.com/MartinPELCAT) made their
first contribution in
[styled-components/styled-components#4141
- [@&#8203;RJWadley](https://togithub.com/RJWadley) made their first
contribution in
[styled-components/styled-components#4149

**Full Changelog**:
styled-components/styled-components@v6.0.7...v6.0.8

###
[`v6.0.7`](https://togithub.com/styled-components/styled-components/releases/tag/v6.0.7)

[Compare
Source](https://togithub.com/styled-components/styled-components/compare/v6.0.6...v6.0.7)

#### What's Changed

- refactor(types): enable `exactOptionalPropertyTypes` check by
[@&#8203;aspirisen](https://togithub.com/aspirisen) in
[styled-components/styled-components#3993
- fix(types): allow number for height/width/etc
([#&#8203;4090](https://togithub.com/styled-components/styled-components/issues/4090))
by [@&#8203;drewbrend](https://togithub.com/drewbrend) in
[styled-components/styled-components#4111

#### New Contributors

- [@&#8203;aspirisen](https://togithub.com/aspirisen) made their first
contribution in
[styled-components/styled-components#3993
- [@&#8203;drewbrend](https://togithub.com/drewbrend) made their first
contribution in
[styled-components/styled-components#4111

**Full Changelog**:
styled-components/styled-components@v6.0.6...v6.0.7

###
[`v6.0.6`](https://togithub.com/styled-components/styled-components/releases/tag/v6.0.6)

[Compare
Source](https://togithub.com/styled-components/styled-components/compare/v6.0.5...v6.0.6)

#### What's Changed

- fix(types): issues with StyleFunctions and StyledObjects by
[@&#8203;bcole808](https://togithub.com/bcole808) in
[styled-components/styled-components#4107

#### New Contributors

- [@&#8203;bcole808](https://togithub.com/bcole808) made their first
contribution in
[styled-components/styled-components#4107

**Full Changelog**:
styled-components/styled-components@v6.0.5...v6.0.6

###
[`v6.0.5`](https://togithub.com/styled-components/styled-components/releases/tag/v6.0.5)

[Compare
Source](https://togithub.com/styled-components/styled-components/compare/v6.0.4...v6.0.5)

#### What's Changed

- Fix createGlobalStyle not removing styles on unmount by
[@&#8203;mdeschamps](https://togithub.com/mdeschamps) in
[styled-components/styled-components#4101

#### New Contributors

- [@&#8203;mdeschamps](https://togithub.com/mdeschamps) made their first
contribution in
[styled-components/styled-components#4101

**Full Changelog**:
styled-components/styled-components@v6.0.4...v6.0.5

###
[`v6.0.4`](https://togithub.com/styled-components/styled-components/releases/tag/v6.0.4)

[Compare
Source](https://togithub.com/styled-components/styled-components/compare/v6.0.3...v6.0.4)

#### What's Changed

- refactor: dev warning on unknown props retargeted specifically toward
HTML targets rather than other React components by
[@&#8203;woodreamz](https://togithub.com/woodreamz) in
[styled-components/styled-components#4084
- fix: untyped event handler callbacks by
[@&#8203;ziolekjj](https://togithub.com/ziolekjj) in
[styled-components/styled-components#4086

#### New Contributors

- [@&#8203;woodreamz](https://togithub.com/woodreamz) made their first
contribution in
[styled-components/styled-components#4084
- [@&#8203;ziolekjj](https://togithub.com/ziolekjj) made their first
contribution in
[styled-components/styled-components#4086

**Full Changelog**:
styled-components/styled-components@v6.0.3...v6.0.4

###
[`v6.0.3`](https://togithub.com/styled-components/styled-components/releases/tag/v6.0.3)

[Compare
Source](https://togithub.com/styled-components/styled-components/compare/v6.0.2...v6.0.3)

#### What's Changed

- fix: StyleSheetManager missing Stylis types by
[@&#8203;MattIPv4](https://togithub.com/MattIPv4) in
[styled-components/styled-components#4078

#### New Contributors

- [@&#8203;MattIPv4](https://togithub.com/MattIPv4) made their first
contribution in
[styled-components/styled-components#4078

**Full Changelog**:
styled-components/styled-components@v6.0.2...v6.0.3

###
[`v6.0.2`](https://togithub.com/styled-components/styled-components/releases/tag/v6.0.2)

[Compare
Source](https://togithub.com/styled-components/styled-components/compare/v6.0.1...v6.0.2)

#### What's Changed

- fix: StyleSheetManager must accept undefined props by
[@&#8203;gineika](https://togithub.com/gineika) in
[styled-components/styled-components#4069
- fix: replace slow Omit type by
[@&#8203;gineika](https://togithub.com/gineika) in
[styled-components/styled-components#4068
- drop `displayName` in production to save bytes, it's already present
in the static className if you're using the babel plugin or equivalent
-   refactor use of `flatMap` and `at` with ES5-compliant variants

#### New Contributors

- [@&#8203;gineika](https://togithub.com/gineika) made their first
contribution in
[styled-components/styled-components#4069

**Full Changelog**:
styled-components/styled-components@v6.0.1...v6.0.2

###
[`v6.0.1`](https://togithub.com/styled-components/styled-components/releases/tag/v6.0.1)

[Compare
Source](https://togithub.com/styled-components/styled-components/compare/v6.0.0...v6.0.1)

Fixed an issue where a dev-time warning was being triggered too eagerly.

**Full Changelog**:
styled-components/styled-components@v6.0.0...v6.0.1

###
[`v6.0.0`](https://togithub.com/styled-components/styled-components/releases/tag/v6.0.0)

[Compare
Source](https://togithub.com/styled-components/styled-components/compare/v5.3.11...v6.0.0)

    yarn add styled-components

#### Changed in this version

- fix(types): prevent prop bleed on styling properties (fixes
[#&#8203;4053](https://togithub.com/styled-components/styled-components/issues/4053),
[`c0f8015`](https://togithub.com/styled-components/styled-components/commit/c0f8015af64367938ff9d9debf90fb8005459c6c))
- feat(types): ship csstype via "CSS" namespace
([`e6c4f0a`](https://togithub.com/styled-components/styled-components/commit/e6c4f0a6b1a1c483cf0c433f0d0434bbda124d2c))
- chore: bump stylis to 4.3 (fixes
[#&#8203;4007](https://togithub.com/styled-components/styled-components/issues/4007),
[`fa58875`](https://togithub.com/styled-components/styled-components/commit/fa58875dcbdbff43532c3b9519eb5fc7d009830d))
-   reduced some sources of unnecessary branching logic

#### Breaking changes in v6

Migration guide →
https://styled-components.com/docs/faqs#what-do-i-need-to-do-to-migrate-to-v6

- now using `stylis` v4 (if using `stylis-plugin-rtl` you'll need to
upgrade to the newer version)
- styled-components now provides its own types; if you installed
`@types/styled-components` in the past, you'll want to remove it
-   dropped `$as` and `$forwardedAs` props (use `as` or `forwardedAs`)
- dropped automatic prop filtering; use transient props (`$` prefix) for
stuff you don't want to be passed to child component / HTML
-   `StyleSheetManager`
- replaced `disableVendorPrefixes` with `enableVendorPrefixes` prop
- dropped automatic vendor prefixing; if you need to support older
browsers, you can re-enable it easily with the above prop
        ```tsx
        <StyleSheetManager enableVendorPrefixes>
          {/* your React tree and ThemeProvider goes here */}
        </StyleSheetManager>
        ```
- dropped deprecated `withComponent` API
([`87f511a`](https://togithub.com/styled-components/styled-components/commit/87f511a228e5b13b1ff70a416409e0705e5bf456));
use "as" prop instead
-   node >= 14 needed

**Full Changelog**:
styled-components/styled-components@v5.3.7...v6.0.0

###
[`v5.3.11`](https://togithub.com/styled-components/styled-components/releases/tag/v5.3.11)

[Compare
Source](https://togithub.com/styled-components/styled-components/compare/v5.3.10...v5.3.11)

Removed use of the `useDebugValue` hook to rectify older React support.

**Full Changelog**:
styled-components/styled-components@v5.3.10...v5.3.11

###
[`v5.3.10`](https://togithub.com/styled-components/styled-components/releases/tag/v5.3.10)

[Compare
Source](https://togithub.com/styled-components/styled-components/compare/v5.3.9...v5.3.10)

#### What's Changed

- fix: Do not add px to unitless CSS variables by
[@&#8203;Lazyuki](https://togithub.com/Lazyuki) in
[styled-components/styled-components#3975

**Full Changelog**:
styled-components/styled-components@v5.3.9...v5.3.10

###
[`v5.3.9`](https://togithub.com/styled-components/styled-components/releases/tag/v5.3.9)

[Compare
Source](https://togithub.com/styled-components/styled-components/compare/v5.3.8...v5.3.9)

##### What's Changed

- \[v5] Make styled components work when the Object prototype is frozen
by [@&#8203;jportner](https://togithub.com/jportner) in
[styled-components/styled-components#3964

**Full Changelog**:
styled-components/styled-components@v5.3.8...v5.3.9

###
[`v5.3.8`](https://togithub.com/styled-components/styled-components/releases/tag/v5.3.8)

[Compare
Source](https://togithub.com/styled-components/styled-components/compare/v5.3.7...v5.3.8)

#### What's Changed

fix(constants): rework process env guard

**Full Changelog**:
styled-components/styled-components@v5.3.7-fixed...v5.3.8

###
[`v5.3.7`](https://togithub.com/styled-components/styled-components/compare/v5.3.6...v5.3.7)

[Compare
Source](https://togithub.com/styled-components/styled-components/compare/v5.3.6...v5.3.7)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "every weekend" (UTC), Automerge - At
any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/terraware/terraware-web).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNi44My4wIiwidXBkYXRlZEluVmVyIjoiMzYuODMuMCIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
  • Loading branch information
renovate[bot] committed Sep 18, 2023
1 parent 7fea184 commit 2f90fb5
Show file tree
Hide file tree
Showing 2 changed files with 425 additions and 57 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"react-router-dom": "^5.2.0",
"react-scripts": "^5.0.1",
"sass": "^1.38.0",
"styled-components": "^5.3.5",
"styled-components": "^6.0.0",
"tslint-plugin-cypress": "^1.0.4",
"typescript": "^5.0.0",
"utm": "^1.1.1",
Expand Down

2 comments on commit 2f90fb5

@vercel
Copy link

@vercel vercel bot commented on 2f90fb5 Sep 18, 2023

Choose a reason for hiding this comment

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

@vercel
Copy link

@vercel vercel bot commented on 2f90fb5 Sep 18, 2023

Choose a reason for hiding this comment

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

Please sign in to comment.