Sourced from @emotion/styled's releases.
@emotion/styled@11.10.4Patch Changes
https://github.com/facebook/flipper/issues/2867
89b6dbb3Thanks@Andarist! - Externalized code referencingReact.useInsertionEffectto a separateemotion/use-insertion-effect-with-fallbackspackage. This package should be used in your defined externals if you bundle Emotion for whatever reason. It referencesuseInsertionEffectin 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 referenceuseInsertionEffectand 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 touseInsertionEffectin the process.Note that we don't recommend bundling Emotion. You should have very specific reasons to do so.
Updated dependencies [
89b6dbb3]:
@emotion/use-insertion-effect-with-fallbacks@1.0.0
@emotion/styled@11.10.0Minor Changes
#2819
bbad8c79Thanks@nicksrandall! -exportsfield has been added to thepackage.jsonmanifest. 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
bbad8c79Thanks@nicksrandall! - Thanks to the addedexportsfield, the package now includes aworkercondition 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
@emotion/styled@11.9.3Patch Changes
https://github.com/facebook/flipper/issues/2759 Thanks
@srmagura,@Andarist! - Change the argument of theshouldForwardPropoption ofstyledfromPropertyKeytostringin the TypeScript definitions.https://github.com/facebook/flipper/issues/2333
3055efddThanks@Andarist! -shouldForwardProphas been changed from being a bivariant method to a contravariant function - it improves the type-safety for those that type this option.https://github.com/facebook/flipper/issues/2333
3055efddThanks@antongolub! -FilteringStyledOptionsandStyledOptionstypes no longer require a type argument for thePropsgeneric.
6835850 Version Packages (https://github.com/facebook/flipper/issues/2872)89b6dbb Move conditional useInsertionEffect declarations into separate package (https://github.com/facebook/flipper/issues/2867)28522cd Upgrade Yarn (https://github.com/facebook/flipper/issues/2870)f2608b3 Version Packages (https://github.com/facebook/flipper/issues/2865)b9b8b74 Fixed a regression that could cause a crash when looking for an ignoring comm...c60d646 Version Packages (https://github.com/facebook/flipper/issues/2860)df434ea Pass --no-immutable to Yarn when regenerating lockfile after versioning pac...2de94ae Regenerate lockfile after versioning packages005e211 Fixed an issue in the styles minifier that caused interpolations to be someti...0ffd606 Fixed the ignore flag not disabling the warning when there are multiple block...