-
-
Notifications
You must be signed in to change notification settings - Fork 746
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
fix: Update styled-components #707
fix: Update styled-components #707
Conversation
🦋 Changeset detectedLatest commit: c9ad7e8 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
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.
Thanks, looks good! Just left a note on the changeset
.changeset/red-cameras-burn.md
Outdated
--- | ||
'@craftjs/layers': minor | ||
'@craftjs/core': patch | ||
--- |
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.
- I don't think the core package needs an update since the changes here only affect the layers package?
- Can you change the
@craftjs/layers
as apatch
update instead? It's not ideal but the reason being we're still in major version 0 and we use the minor version to indicate a breaking change in Craft
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.
I have made these changes, just fighting with the test-suite. It's suddenly stopped recognising react-hooks when ran through @testing-library/react
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.
Done and pushed 😄
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.
Thank you! 🚀
Fixes: #698
What?
styled-components
from 4.X.X to 6.X.X.styled-components
imports.Why?
Anyone working with a newer version of StyledComponents is unable to run CraftJS Layers in production due to the errors raised by breaking changes introduced in
"styled-components": ">= 6"
.We faced this while attempting to use CraftJS within Sanity CMS.
The latest API requires non-DOM related props to be passed as "transient props" via the specified API https://styled-components.com/docs/api#transient-props. Doing so removes the warning found in #698