From 485597f4f66d0e99a1c918e061841d334d1610d8 Mon Sep 17 00:00:00 2001 From: Piotr Konieczny Date: Tue, 12 Apr 2022 10:41:56 +0200 Subject: [PATCH] Downgrade react to 17 until https://github.com/vercel/swr/issues/1906 is resolved --- package-lock.json | 15 +++++++++++---- package.json | 4 ++-- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/package-lock.json b/package-lock.json index c361c00..f521f21 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1788,6 +1788,12 @@ "integrity": "sha512-CqyzN6z7Q6aMeF/ktcMVTzhAHCEpf8SOarwpzpf8pNBY2k5/oM34UHldUwp8VKI7uxct2HxSRdJjBaZeESzcxA==", "dev": true }, + "object-assign": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", + "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=", + "dev": true + }, "object-keys": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", @@ -1849,12 +1855,13 @@ } }, "react": { - "version": "18.0.0", - "resolved": "https://registry.npmjs.org/react/-/react-18.0.0.tgz", - "integrity": "sha512-x+VL6wbT4JRVPm7EGxXhZ8w8LTROaxPXOqhlGyVSrv0sB1jkyFGgXxJ8LVoPRLvPR6/CIZGFmfzqUa2NYeMr2A==", + "version": "17.0.2", + "resolved": "https://registry.npmjs.org/react/-/react-17.0.2.tgz", + "integrity": "sha512-gnhPt75i/dq/z3/6q/0asP78D0u592D5L1pd7M8P+dck6Fu/jJeL6iVVK23fptSUZj8Vjf++7wXA8UNclGQcbA==", "dev": true, "requires": { - "loose-envify": "^1.1.0" + "loose-envify": "^1.1.0", + "object-assign": "^4.1.1" } }, "regenerate": { diff --git a/package.json b/package.json index b7d60f8..ec91ee9 100644 --- a/package.json +++ b/package.json @@ -36,12 +36,12 @@ "devDependencies": { "@types/react": "^17.0.43", "bunchee": "1.8.2", - "react": "^18.0.0", + "react": "^17.0.0", "swr": "^1.2.2", "typescript": "^4.6.3" }, "peerDependencies": { "swr": "^1.0.0", - "react": "^16.11.0 || ^17.0.0 || ^18.0.0" + "react": "^16.11.0 || ^17.0.0" } }