From 0212da0ba578ebd30cc471ccc28717ed3ae99476 Mon Sep 17 00:00:00 2001 From: Anton Nikolaev Date: Fri, 14 May 2021 10:22:28 -0700 Subject: [PATCH] Re-applied patch for new version of @emotion/cache Summary: Current patch was created for the previous version and patch-package shows warning about that on each yarn install. This diff re-applies the patch for the new version by invoking `patch-package emotion/cache` as suggested in the warning. Reviewed By: passy Differential Revision: D28443089 fbshipit-source-id: 277f8cdb1fb675b19685d9e98cdfdae6878b9ebc --- ...emotion+cache+11.1.3.patch => @emotion+cache+11.4.0.patch} | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename desktop/patches/{@emotion+cache+11.1.3.patch => @emotion+cache+11.4.0.patch} (96%) diff --git a/desktop/patches/@emotion+cache+11.1.3.patch b/desktop/patches/@emotion+cache+11.4.0.patch similarity index 96% rename from desktop/patches/@emotion+cache+11.1.3.patch rename to desktop/patches/@emotion+cache+11.4.0.patch index ca0caa98b..2682cc5d3 100644 --- a/desktop/patches/@emotion+cache+11.1.3.patch +++ b/desktop/patches/@emotion+cache+11.4.0.patch @@ -1,10 +1,10 @@ diff --git a/node_modules/@emotion/cache/dist/emotion-cache.cjs.dev.js b/node_modules/@emotion/cache/dist/emotion-cache.cjs.dev.js -index b25808a..043f626 100644 +index 5aae7dd..0f3e4c9 100644 --- a/node_modules/@emotion/cache/dist/emotion-cache.cjs.dev.js +++ b/node_modules/@emotion/cache/dist/emotion-cache.cjs.dev.js @@ -136,7 +136,7 @@ var createUnsafeSelectorsAlarm = function createUnsafeSelectorsAlarm(cache) { } - + unsafePseudoClasses.forEach(function (unsafePseudoClass) { - console.error("The pseudo class \"" + unsafePseudoClass + "\" is potentially unsafe when doing server-side rendering. Try changing it to \"" + unsafePseudoClass.split('-child')[0] + "-of-type\"."); +// we're not doing SSR and not interested in pedantic errors: console.error("The pseudo class \"" + unsafePseudoClass + "\" is potentially unsafe when doing server-side rendering. Try changing it to \"" + unsafePseudoClass.split('-child')[0] + "-of-type\".");