Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to next, this PR will be updated.
next
is currently in pre mode so this branch has prereleases rather than normal releases. If you want to exit prereleases, runchangeset pre exit
onnext
.Releases
@emotion/styled@11.0.0-next.16
Minor Changes
18c0d5f4
#1668 Thanks @animecyc! - CustomshouldForwardProp
is being preserved now when using.withComponent
. Also, when passing an additionalshouldForwardProp
in.withComponent
's options (like this:SomeComponent.withComponent('span', { shouldForwardProp })
) it's being composed with the potentially existingshouldForwardProp
.Patch Changes
23faf9ef
#1996 Thanks @Andarist! - Fixed an issue with wrapped class components not having a type for theref
prop.0895f1f3
#1995 Thanks @Andarist! - Fixed an issue with typing for theas
prop not being provided to components created using component factories available on thestyled
factory (e.g.styled.div
).Updated dependencies [
debaad9a
,58b2bbca
]:@emotion/babel-plugin@11.0.0-next.16
Patch Changes
@emotion/cache@11.0.0-next.16
Patch Changes
a8eb4e75
#1998 Thanks @Andarist! - Styles are now correctly extracted from the correct cache (key
-sensitive) on the server.dfe98028
#2003 Thanks @Andarist! - Fixed an issue with orphaned pseudo selectors (e.g.:hover
- where&:hover
,div:hover
, etc are not considered orphaned) having the context selector (the one computed based on all ancestor levels selectors) doubled in a descendant at-rule.39be057b
#1997 Thanks @Andarist! - From now on an empty rule will get inserted into the DOM in non-production environments if it gets created by the user. This helps to grab usedkey
s from the (JS)DOM even for caches that have not inserted any actual rules to the document yet. It allows@emotion/jest
to find those and serialize Emotion classes properly in situations like this:Updated dependencies [
debaad9a
,39be057b
]:@emotion/css@11.0.0-next.16
Patch Changes
a8eb4e75
,dfe98028
,debaad9a
,39be057b
,39be057b
]:@emotion/native@11.0.0-next.16
Patch Changes
@emotion/primitives@11.0.0-next.16
Patch Changes
@emotion/primitives-core@11.0.0-next.16
Patch Changes
58b2bbca
]:@emotion/react@11.0.0-next.16
Patch Changes
58b2bbca
#1981 Thanks @Andarist! - Changed the key of the global flag that helps us identify that@emotion/react
has been loaded more than once to include the current major version of@emotion/react
.Updated dependencies [
a8eb4e75
,dfe98028
,debaad9a
,39be057b
,39be057b
]:@emotion/serialize@0.11.15-next.4
Patch Changes
debaad9a
]:@emotion/server@11.0.0-next.16
Patch Changes
debaad9a
]:@emotion/sheet@1.0.0-next.4
Patch Changes
39be057b
#1997 Thanks @Andarist! - Reverted the change that has started to add an empty<style/>
element eagerly in non-production environments that has been introduced inv1.0.0-next.3
as this has found to be problematic for websites usingContent-Security-Policy
and anonce
. Instead of this@emotion/cache
will from now on insert an empty rule in non-production environments but it will only do that if an empty rule gets actually created by the user.@emotion/utils@1.0.0-next.1
Patch Changes
debaad9a
#1999 Thanks @RoystonS! - Fixed TypeScript definition of theEmotionCache
by replacing the non-existentstylis
method withinsert
that is available at runtime.@emotion/jest@11.0.0-next.16