diff --git a/package-lock.json b/package-lock.json index c8a539d5..bf6e7540 100644 --- a/package-lock.json +++ b/package-lock.json @@ -22,7 +22,7 @@ "recharts": "2.1.12", "sass": "1.54.8", "styled-components": "5.3.5", - "swr": "0.5.7" + "swr": "2.2.4" }, "devDependencies": { "@types/enzyme": "3.10.12", @@ -2579,6 +2579,11 @@ "node": ">=4" } }, + "node_modules/client-only": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/client-only/-/client-only-0.0.1.tgz", + "integrity": "sha512-IV3Ou0jSMzZrd3pZ48nLkT9DA7Ag1pnPzaiQhpW7c3RbcqqzvzzVu+L8gfqMp/8IM2MQtSiqaCxrrcfu8I8rMA==" + }, "node_modules/cliui": { "version": "6.0.0", "dev": true, @@ -3201,13 +3206,6 @@ "node": ">=0.4.0" } }, - "node_modules/dequal": { - "version": "2.0.2", - "license": "MIT", - "engines": { - "node": ">=6" - } - }, "node_modules/detect-newline": { "version": "3.1.0", "dev": true, @@ -11227,14 +11225,15 @@ } }, "node_modules/swr": { - "version": "0.5.7", - "resolved": "https://registry.npmjs.org/swr/-/swr-0.5.7.tgz", - "integrity": "sha512-Jh1Efgu8nWZV9rU4VLUMzBzcwaZgi4znqbVXvAtUy/0JzSiN6bNjLaJK8vhY/Rtp7a83dosz5YuehfBNwC/ZoQ==", + "version": "2.2.4", + "resolved": "https://registry.npmjs.org/swr/-/swr-2.2.4.tgz", + "integrity": "sha512-njiZ/4RiIhoOlAaLYDqwz5qH/KZXVilRLvomrx83HjzCWTfa+InyfAjv05PSFxnmLzZkNO9ZfvgoqzAaEI4sGQ==", "dependencies": { - "dequal": "2.0.2" + "client-only": "^0.0.1", + "use-sync-external-store": "^1.2.0" }, "peerDependencies": { - "react": "^16.11.0 || ^17.0.0" + "react": "^16.11.0 || ^17.0.0 || ^18.0.0" } }, "node_modules/symbol-tree": { @@ -15309,6 +15308,11 @@ "escape-string-regexp": "^1.0.5" } }, + "client-only": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/client-only/-/client-only-0.0.1.tgz", + "integrity": "sha512-IV3Ou0jSMzZrd3pZ48nLkT9DA7Ag1pnPzaiQhpW7c3RbcqqzvzzVu+L8gfqMp/8IM2MQtSiqaCxrrcfu8I8rMA==" + }, "cliui": { "version": "6.0.0", "dev": true, @@ -15743,9 +15747,6 @@ "version": "1.0.0", "dev": true }, - "dequal": { - "version": "2.0.2" - }, "detect-newline": { "version": "3.1.0", "dev": true @@ -21221,11 +21222,12 @@ "dev": true }, "swr": { - "version": "0.5.7", - "resolved": "https://registry.npmjs.org/swr/-/swr-0.5.7.tgz", - "integrity": "sha512-Jh1Efgu8nWZV9rU4VLUMzBzcwaZgi4znqbVXvAtUy/0JzSiN6bNjLaJK8vhY/Rtp7a83dosz5YuehfBNwC/ZoQ==", + "version": "2.2.4", + "resolved": "https://registry.npmjs.org/swr/-/swr-2.2.4.tgz", + "integrity": "sha512-njiZ/4RiIhoOlAaLYDqwz5qH/KZXVilRLvomrx83HjzCWTfa+InyfAjv05PSFxnmLzZkNO9ZfvgoqzAaEI4sGQ==", "requires": { - "dequal": "2.0.2" + "client-only": "^0.0.1", + "use-sync-external-store": "^1.2.0" } }, "symbol-tree": { diff --git a/package.json b/package.json index ff64bfd5..dc7d287c 100644 --- a/package.json +++ b/package.json @@ -32,7 +32,7 @@ "recharts": "2.1.12", "sass": "1.54.8", "styled-components": "5.3.5", - "swr": "0.5.7" + "swr": "2.2.4" }, "devDependencies": { "@types/enzyme": "3.10.12",