From 748ceca6a734783976a0ae588d1df37f867a5056 Mon Sep 17 00:00:00 2001 From: Johnny Bouder Date: Tue, 17 Dec 2024 07:08:04 -0500 Subject: [PATCH] Replace recoil package with jotai package. --- package-lock.json | 57 ++++++++++++++++++++++------------------------- package.json | 4 ++-- 2 files changed, 29 insertions(+), 32 deletions(-) diff --git a/package-lock.json b/package-lock.json index 1c8d63d..9589a70 100644 --- a/package-lock.json +++ b/package-lock.json @@ -17,13 +17,13 @@ "@uswds/uswds": "3.10.0", "axios": "1.7.9", "axios-mock-adapter": "2.1.0", + "jotai": "2.10.4", "oidc-client-ts": "^3.1.0", "react": "18.2.0", "react-dom": "18.2.0", "react-hook-form": "7.54.1", "react-oidc-context": "^3.2.0", - "react-router-dom": "7.0.2", - "recoil": "0.7.7" + "react-router-dom": "7.0.2" }, "devDependencies": { "@eslint/js": "^9.17.0", @@ -2757,13 +2757,13 @@ "version": "15.7.5", "resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.5.tgz", "integrity": "sha512-JCB8C6SnDoQf0cNycqd/35A7MjcnK+ZTqE7judS6o7utxUCg6imJg3QK2qzHKszlTjcj2cn+NwMB2i96ubpj7w==", - "dev": true + "devOptional": true }, "node_modules/@types/react": { "version": "18.2.17", "resolved": "https://registry.npmjs.org/@types/react/-/react-18.2.17.tgz", "integrity": "sha512-u+e7OlgPPh+aryjOm5UJMX32OvB2E3QASOAqVMY6Ahs90djagxwv2ya0IctglNbNTexC12qCSMZG47KPfy1hAA==", - "dev": true, + "devOptional": true, "dependencies": { "@types/prop-types": "*", "@types/scheduler": "*", @@ -2792,7 +2792,7 @@ "version": "0.16.3", "resolved": "https://registry.npmjs.org/@types/scheduler/-/scheduler-0.16.3.tgz", "integrity": "sha512-5cJ8CB4yAx7BH1oMvdU0Jh9lrEXyPkar6F9G/ERswkCuvP4KQZfZkSjcMbAICCpQTN4OuZn8tz0HiKv9TGZgrQ==", - "dev": true + "devOptional": true }, "node_modules/@types/sinonjs__fake-timers": { "version": "8.1.1", @@ -5472,7 +5472,7 @@ "version": "3.1.3", "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.3.tgz", "integrity": "sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==", - "dev": true + "devOptional": true }, "node_modules/cypress": { "version": "13.16.1", @@ -7809,11 +7809,6 @@ "unenv": "^1.10.0" } }, - "node_modules/hamt_plus": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/hamt_plus/-/hamt_plus-1.0.2.tgz", - "integrity": "sha512-t2JXKaehnMb9paaYA7J0BX8QQAY8lwfQ9Gjf4pg/mk4krt+cmwmU652HOoWonf+7+EQV97ARPMhhVgU1ra2GhA==" - }, "node_modules/has-bigints": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/has-bigints/-/has-bigints-1.0.2.tgz", @@ -8956,6 +8951,27 @@ "jiti": "lib/jiti-cli.mjs" } }, + "node_modules/jotai": { + "version": "2.10.4", + "resolved": "https://registry.npmjs.org/jotai/-/jotai-2.10.4.tgz", + "integrity": "sha512-/T4ofyMSkAybEs2OvR8S4HACa+/ASUEPLz86SUjFXJqU9RdJKLvZDJrag398suvHC5CR0+Cs4P5m/gtVcryzlw==", + "license": "MIT", + "engines": { + "node": ">=12.20.0" + }, + "peerDependencies": { + "@types/react": ">=17.0.0", + "react": ">=17.0.0" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "react": { + "optional": true + } + } + }, "node_modules/jpeg-js": { "version": "0.4.4", "resolved": "https://registry.npmjs.org/jpeg-js/-/jpeg-js-0.4.4.tgz", @@ -12131,25 +12147,6 @@ "object-assign": "^4.1.0" } }, - "node_modules/recoil": { - "version": "0.7.7", - "resolved": "https://registry.npmjs.org/recoil/-/recoil-0.7.7.tgz", - "integrity": "sha512-8Og5KPQW9LwC577Vc7Ug2P0vQshkv1y3zG3tSSkWMqkWSwHmE+by06L8JtnGocjW6gcCvfwB3YtrJG6/tWivNQ==", - "dependencies": { - "hamt_plus": "1.0.2" - }, - "peerDependencies": { - "react": ">=16.13.1" - }, - "peerDependenciesMeta": { - "react-dom": { - "optional": true - }, - "react-native": { - "optional": true - } - } - }, "node_modules/redent": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/redent/-/redent-3.0.0.tgz", diff --git a/package.json b/package.json index d1a9ab8..4b627df 100644 --- a/package.json +++ b/package.json @@ -39,13 +39,13 @@ "@uswds/uswds": "3.10.0", "axios": "1.7.9", "axios-mock-adapter": "2.1.0", + "jotai": "2.10.4", "oidc-client-ts": "^3.1.0", "react": "18.2.0", "react-dom": "18.2.0", "react-hook-form": "7.54.1", "react-oidc-context": "^3.2.0", - "react-router-dom": "7.0.2", - "recoil": "0.7.7" + "react-router-dom": "7.0.2" }, "devDependencies": { "@eslint/js": "^9.17.0",