-
Notifications
You must be signed in to change notification settings - Fork 218
chore(deps): update emotion monorepo to v11 (major) #891
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
Open
renovate
wants to merge
1
commit into
master
Choose a base branch
from
renovate/major-emotion-monorepo
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+264
−132
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4613b2e
to
5a7dbed
Compare
5a7dbed
to
f444ac0
Compare
f444ac0
to
f53691f
Compare
f53691f
to
15582a8
Compare
15582a8
to
3d14732
Compare
3d14732
to
84631e0
Compare
293d7f6
to
0abc45e
Compare
0abc45e
to
b57ca06
Compare
8c50632
to
ccac5b3
Compare
ccac5b3
to
e34a615
Compare
e34a615
to
8fc3f2f
Compare
8fc3f2f
to
2e06fb8
Compare
2e06fb8
to
7c0f698
Compare
7c0f698
to
de23669
Compare
de23669
to
5a70ffb
Compare
5a70ffb
to
0b4b583
Compare
0b4b583
to
44f47a4
Compare
44f47a4
to
a43d438
Compare
a43d438
to
a51b92d
Compare
a51b92d
to
83662e5
Compare
83662e5
to
829474b
Compare
829474b
to
99e1782
Compare
b056c43
to
899de62
Compare
899de62
to
dc79cdf
Compare
dc79cdf
to
0bc341b
Compare
0bc341b
to
cf596f0
Compare
cf596f0
to
e3b3b0f
Compare
e3b3b0f
to
399ecfa
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
None yet
0 participants
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:
^10.1.1
->^11.0.0
^10.0.27
->^11.14.1
^10.0.27
->^11.0.0
Release Notes
emotion-js/emotion (@emotion/core)
v11.0.0
Compare Source
Major Changes
b8476e08
#1675 Thanks @mitchellhamilton! - Rename@emotion/core
to@emotion/react
. Please change any imports of@emotion/core
to import@emotion/react
or use the@emotion/pkg-renaming
ESLint rule from@emotion/eslint-plugin
.v10.3.1
Compare Source
Patch Changes
33c01578
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.v10.3.0
Compare Source
Minor Changes
#2566
122e9f11
Thanks @eps1lon, @Andarist! - Fixed hydration mismatches ifReact.useId
(an upcoming API in React 18) is used within a tree below our components.#2560
b5a26619
Thanks @eps1lon! - Dropped usage of a deprecatedSFC
React type in favor ofFC
. TheFC
type has been introduced in@types/[email protected]
so this version of this package is now a minimum requirement for TypeScript users.emotion-js/emotion (@emotion/styled)
v11.14.1
Compare Source
v11.14.0
Compare Source
Minor Changes
fc4d7bd
Thanks @Andarist! - Source code has been migrated to TypeScript. From now on type declarations will be emitted based on that, instead of being hand-written.Patch Changes
8dc1a6d
,e1bf17e
]:v11.13.5
Compare Source
Patch Changes
#3270
77d930d
Thanks @emmatown! - Fix inconsistent hashes using development vs production bundles/exports
conditions when using@emotion/babel-plugin
withsourceMap: true
(the default). This is particularly visible when using Emotion with the Next.js Pages router where thedevelopment
condition is used when bundling code but not when importing external code with Node.js.Updated dependencies [
77d930d
]:v11.13.0
Compare Source
Minor Changes
#3198
d8ff8a5
Thanks @Andarist! - Migrated away from relying onprocess.env.NODE_ENV
checks to differentiate between production and development builds.Development builds (and other environment-specific builds) can be used by using proper conditions (see here). Most modern bundlers/frameworks already preconfigure those for the user so no action has to be taken.
Default files should continue to work in all environments.
#3215
a9f6912
Thanks @Andarist! - Addededge-light
andworkerd
conditions topackage.json
manifest to better serve users using Vercel Edge and Cloudflare Workers.Patch Changes
d8ff8a5
,a9f6912
]:v11.12.0
Compare Source
Minor Changes
65a1eea
Thanks @srmagura! - Automatic labeling at runtime is now an opt-in feature. DefineglobalThis.EMOTION_RUNTIME_AUTO_LABEL = true
before Emotion gets initialized to enable it.Patch Changes
#3206
d1994c4
Thanks @DiegoAndai! - Improved compatibility with the upcoming@types/react
for React 19 where the globalJSX
namespace doesn't exist anymore#3208
56109e7
Thanks @Andarist! - Only forward definedref
s to improve compatibility with the upcoming React 19Updated dependencies [
9ca22c6
,b1d16b0
,16d8a8c
]:v11.11.5
Compare Source
Patch Changes
#3164
c9b84dbe
Thanks @Cerber-Ursi! - Reorderedstyled
overloads to accommodate the recent change in@emotion/serialize
's types.Updated dependencies [
c9b84dbe
]:v11.11.0
Compare Source
Minor Changes
336f3d50
Thanks @Andarist! - Added support for cascade@layer
s by updating the underlying parser (stylis).Patch Changes
#3029
eed5e6cf
Thanks @Andarist! - Fixed importing in Node ESMUpdated dependencies [
336f3d50
,eed5e6cf
]:v11.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
,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
#2819
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.#2819
bbad8c79
Thanks @nicksrandall! - Thanks to the addedexports
field, the package now includes aworker
condition that can be utilized by properly configured bundlers when targeting worker-like environments. It fixes the issue with browser-specific files being prioritized by some bundlers when targeting workers.Patch Changes
bbad8c79
,bbad8c79
]:v11.9.3
Compare Source
Patch Changes
#2759 Thanks @srmagura, @Andarist! - Change the argument of the
shouldForwardProp
option ofstyled
fromPropertyKey
tostring
in the TypeScript definitions.#2333
3055efdd
Thanks @Andarist! -shouldForwardProp
has been changed from being a bivariant method to a contravariant function - it improves the type-safety for those that type this option.#2333
3055efdd
Thanks @antongolub! -FilteringStyledOptions
andStyledOptions
types no longer require a type argument for theProps
generic.Updated dependencies [
26e4e3e8
,5e81f213
,3055efdd
]: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
d2531639
,2f27156a
]: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.3.0
Compare Source
Patch Changes
734b36bf
#2199 Thanks @FezVrasta! - Improved Flow type inference of props for inline functions passed to thestyled
factory.Updated dependencies [
36a51c27
,662f0e0f
,36a51c27
,830dd0e6
]: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.0.0
Compare Source
Major Changes
9e3671c4
#2076 Thanks @Andarist! - Removedruntime
option that was introduced to this preset and deprecated shortly after that. If you want to configureruntime: "automatic"
, replace@emotion/babel-preset-css-prop
with@babel/preset-react
and@emotion/babel-plugin
. You can find out how to configure things properly here: https://emotion.sh/docs/css-prop#babel-presetc5b12d90
#1220 Thanks @mitchellhamilton! - Removed support for theinstances
option, any usage of it should be replaced with theimportMap
optionc7850e61
#1656 Thanks @Andarist! -autoLabel
option no longer is a simple boolean. Instead we accept now 3 values:dev-only
(the default),always
andnever
.Each possible value for this option produces different output code:
dev-only
we optimize the production code, so there are no labels added there, but at the same time we keep labels for development environments,always
we always add labels when possible,never
we disable this entirely and no labels are added.Minor Changes
c5b12d90
#1220 Thanks @mitchellhamilton! - Added theimportMap
option which allows you to tell@emotion/babel-plugin
what imports it should look at to determine what it should transform so if you re-export Emotion's exports, you can still use the Babel transformsc672175b
#1130 Thanks @jtmthf! - Adjust how arrays passed to css prop are transformed so function elements can be resolved at runtime.0a4a22ff
#1651 Thanks @Andarist! - AllowlabelFormat
option to be a function.Patch Changes
c672175b
,c5b12d90
,5e803106
,b8476e08
,0a4a22ff
,b0ad4f0c
,9e998e37
,c65c5d88
,5c7ec859
,c7850e61
,b7d21373
,c5b12d90
,828111cd
]:v10.3.0
Compare Source
Minor Changes
#2566
122e9f11
Thanks @eps1lon, @Andarist! - Fixed hydration mismatches ifReact.useId
(an upcoming API in React 18) is used within a tree below our components.#2560
b5a26619
Thanks @eps1lon! - Dropped usage of a deprecatedSFC
React type in favor ofFC
. TheFC
type has been introduced in@types/[email protected]
so this version of this package is now a minimum requirement for TypeScript users.Patch Changes
122e9f11
,b5a26619
]:Configuration
📅 Schedule: Branch creation - Between 12:00 AM and 03:59 AM ( * 0-3 * * * ) (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 these updates again.
This PR was generated by Mend Renovate. View the repository job log.