housekeeping: Update emotion monorepo #3167
Open
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 contains the following updates:
11.0.0
->11.13.3
11.0.0
->11.13.0
Release Notes
emotion-js/emotion (@emotion/react)
v11.13.3
Compare Source
v11.13.0
Compare Source
v11.12.0
Compare Source
v11.11.4
Compare Source
Patch Changes
5b82631d
Thanks @iegik! - Renamed an internalhasOwnProperty
tohasOwn
. This avoids problems in CommonJS environments when the consumer tries to prevent prototype pollution withObject.freeze(Object.prototype)
.v11.11.3
Compare Source
Patch Changes
#3101
49c20b4f
Thanks @kyvong! - Fix Theme import for newer Typescript module resolution modesUpdated dependencies [
45c440fb
]:v11.11.1
Compare Source
Patch Changes
9357f337
Thanks @naari3! - AddedElementType
to the Emotion'sJSX
namespace. It's defined in the same way as the one in@types/react
and should make it possible to use components that returnstring
s,Promise
s and other types that are valid in React.v11.11.0
Compare Source
Patch Changes
eed5e6cf
Thanks @Andarist! - Fixed importing in Node ESMv11.10.8
Compare Source
Patch Changes
#3025
6bd13425
Thanks @Andarist! - Fixed a parsing issue with&
within nested functions in declaration values by updating the underlying parser (stylis).Updated dependencies [
6bd13425
]:v11.10.6
Compare Source
Patch Changes
#2985
4e172c2a
Thanks @emmatown! - Remove peer dependency on@babel/core
Updated dependencies [
4e172c2a
]:v11.10.5
Compare Source
Patch Changes
#2905
4c0005f6
Thanks @p-m-p! - Do not warn about@emotion/react
being loaded twice in Vitest as that might easily happen with mocked modules.#2929
13afe030
Thanks @Andarist! - The support for@container
queries has been added by updating the underlying parser (stylis) .Updated dependencies [
13afe030
,c02b1214
,d8a13bca
]:v11.10.4
Compare Source
Patch Changes
#2867
89b6dbb3
Thanks @Andarist! - Externalized code referencingReact.useInsertionEffect
to a separate@emotion/use-insertion-effect-with-fallbacks
package. This package should be used in your defined externals if you bundle Emotion for whatever reason. It referencesuseInsertionEffect
in a very specific way that allows us to use it conditionally. However, if the code consuming Emotion is bundled as a library with Emotion in it then some bundlers might change the way in which we referenceuseInsertionEffect
and that might create problems for bundlers used to consume the said library code. By externalizing this new package you can still bundle Emotion if you want to without running into this problem as you won't "destroy" the carefully crafted reference touseInsertionEffect
in the process.Note that we don't recommend bundling Emotion. You should have very specific reasons to do so.
Updated dependencies [
89b6dbb3
]:v11.10.0
Compare Source
Minor Changes
bbad8c79
Thanks @nicksrandall! -exports
field has been added to thepackage.json
manifest. It limits what files can be imported from a package but we've tried our best to allow importing all the files that were considered to be a part of the public API.Patch Changes
bbad8c79
]:v11.9.3
Compare Source
Patch Changes
#2766
5b3f4d78
Thanks @Andarist! -ThemeProviderProps["children"]
was marked as a required prop asThemeProvider
should always wrap some subtree.Updated dependencies [
26e4e3e8
,6c2d7a60
,5e81f213
]:v11.9.0
Compare Source
Patch Changes
#2700
d9357621
Thanks @arturmuller! - Fixed a false positive warning forcontent
properties that includedvar()
.Updated dependencies [
d9357621
]:v11.8.2
Compare Source
Patch Changes
ff3cb164
Thanks @Jack-Works! - ChangeGlobal
component to use theStyleSheet
constructor of the currentcache.sheet
. This is useful whencache.sheet
is not the default implementation. Thanks to that the inner sheet constructed byGlobal
can share the behavior with its "main" sheet that is hold by thecache
.v11.8.1
Compare Source
Patch Changes
39ac5b99
Thanks @Andarist! - Fixed a transpilation issue that causeduseInsertionEffect
to be referenced directly in the specifiers list of the import statement. This has caused build errors in the consuming tools since the import statement can only reference known exports of a module.v11.8.0
Compare Source
Minor Changes
2f27156a
Thanks @Andarist! - Refactored code to use the upcomingReact.useInsertionEffect
when it's available (this is a new hook that is going to be introduced in React 18). This shouldn't have any effect on existing codebases and the change should be transparent.Patch Changes
#2609
242f7d8c
Thanks @Andarist! - Added@emotion/babel-plugin
as a dependency - this is an actual dependency of the@emotion/react/macro
entrypoint and it has to be explicitly declared to fix compatibility with strict package managers.#2615
3d672acd
Thanks @srmagura! - Fix an edge case where runtime label extraction in class components led to invalid class names in Firefox. This only affected the development build of Emotion.Updated dependencies [
2f27156a
]:v11.7.1
Compare Source
Patch Changes
#2577
04681a5f
Thanks @Methuselah96! - ExportKeyframes
type to avoid TypeScript insertingimport("@​emotion/serialize").Keyframes
references into declaration files emitted based on a source files exportingkeyframes
result. This avoids issues with strict package managers that don't allow accessing undeclared dependencies.#2590
1554a7e2
Thanks @Andarist! - Upgraded and pinned the version of Stylis - the CSS parser that Emotion uses under the hood.Updated dependencies [
1554a7e2
]:v11.7.0
Compare Source
Patch Changes
57be9e8c
Thanks @srmagura! - Changed the implementation of the runtime label extraction in elements using the css prop (that only happens in development) to one that should yield more consistent results across browsers. This fixes some minor issues with React reporting hydration mismatches that wouldn't happen in production.v11.6.0
Compare Source
Minor Changes
eb013d25
Thanks @eps1lon! - Fixed hydration mismatches ifReact.useId
(an upcoming API in React 18) is used within a tree below our components.Patch Changes
9861a18b
]:v11.5.0
Compare Source
Patch Changes
#2498
e5beae8e
Thanks @Andarist! - Fixed an edge case issue with incorrect rules being generated. When a context selector (&
) was used not at the beginning of a selector (which is not valid SCSS but is allowed by the Stylis parser that we are using) within a group of selectors containing a pseudoclass then it was not replaced correctly with the current context selector.#2500
eda5e687
Thanks @Jarred-Sumner! - Fix error loading @emotion/react in alternative JS environmentsUpdated dependencies [
e5beae8e
,9ae4a91a
,f2eda829
]:v11.4.1
Compare Source
Patch Changes
#2441
24557d9d
Thanks @garronej! - Exposed__unsafe_useEmotionCache
which can be used to access the current Emotion's cache in an easier way than before. Using this might break 0-config SSR and is not recommended to be used unless there you know what you are doing and you are OK with the mentioned downside.#2424
cd25b62d
Thanks @tills13! - Use theme context when rendering components at all times. This removes a conditional usage of a React hook that could break Rules of Hooks in some scenarios.#2428
a69929d6
Thanks @eps1lon! - Added display names to public React contexts in development builds. This helps to recognize them in React Developer Tools.Updated dependencies [
405af5ca
]:v11.4.0
Compare Source
Patch Changes
#2334
7d9e74f8
Thanks @Andarist! - The Global component no longer replaces style elements from server-rendering on first mount and instead reuses the server-side rendered style elementUpdated dependencies [
38f9d44f
]:v11.1.5
Compare Source
Patch Changes
d0293508
#2240 Thanks @wolszczak96! -as
prop has been removed from TypeScript declarations for composite components. This prop has not actually been handled by default bystyled
for those components - to makestyled
handle it you need to provide a customshouldForwardProp
that doesn't forward theas
prop.Updated dependencies [
f3c2e81d
]:v11.1.4
Compare Source
Patch Changes
71ca9be3
#2181 Thanks @101arrowz! - Fixed some typing issues with React components with custom generic render functions.v11.1.3
Compare Source
Patch Changes
704b0092
#2180 Thanks @Andarist! - Fixed an issue with global styles containing pseudo selectors in at-rules not being able to be inserted.Updated dependencies [
704b0092
]:v11.1.2
Compare Source
Patch Changes
3f8bf70e
#2132 Thanks @dcastil! -displayName
s have been added toGlobal
andClassNames
components so React Developer Tools should display those better now.1ee34005
#2122 Thanks @dcastil! - Improved label extraction from the stack traces to handle components with numbers in their names.e5843530
#2140 Thanks @hasparus! - Fixed an issue withcss
prop type not being added to all components that accept a stringclassName
correctly.Updated dependencies [
5469d003
]:v11.1.1
Compare Source
Patch Changes
fdd46bdf
#2112 Thanks @Andarist! - Fixed the latest tree-shakeability improvements by adding"sideEffects": false
to all internalpackage.json
files as well. This fixeshoist-non-react-statics
not being dropped correctly despite of the latest improvements.v11.1.0
Compare Source
Patch Changes
0e465d1c
#2101 Thanks @Andarist! - Improved tree-shakeability of the package. The main benefit is that bundlers should be able now to drophoist-non-react-statics
if you don't actually use ourwithTheme
export.Configuration
📅 Schedule: Branch creation - "every 2 week on monday" (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.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR was generated by Mend Renovate. View the repository job log.