From b9f813b432a544cd6314a73b7d85c256e90fbb73 Mon Sep 17 00:00:00 2001 From: Rohith Nair Date: Tue, 28 Jul 2026 10:41:53 +0400 Subject: [PATCH 1/2] feat: form validation updates --- src/utils/formValidations.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/utils/formValidations.ts b/src/utils/formValidations.ts index e29ee7b..2490528 100644 --- a/src/utils/formValidations.ts +++ b/src/utils/formValidations.ts @@ -2,9 +2,7 @@ const SUCCESS = null; export const validateTextfield = (value: string): string | null => { - return value !== null && - - value !== '' ? SUCCESS : 'This field is required.' + return value !== null && value !== '' ? SUCCESS : 'This field is required.' } export const validateImageUrl = (value: string): string | null => { From 1b255896db6ed075c3a8ba0f5ca1c11f246ba252 Mon Sep 17 00:00:00 2001 From: Rohith Nair Date: Tue, 28 Jul 2026 10:43:34 +0400 Subject: [PATCH 2/2] refactor: version updates of packages in package.json --- package-lock.json | 93 ++++++++++++++++++++++++++++++++++++----------- package.json | 2 +- yarn.lock | 69 +++++++++++++++++++++++------------ 3 files changed, 119 insertions(+), 45 deletions(-) diff --git a/package-lock.json b/package-lock.json index 3aa3481..d1c8fc6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11,7 +11,7 @@ "@gsap/react": "^2.1.2", "@tailwindcss/vite": "^4.1.17", "@tanstack/react-query": "^5.90.7", - "@tanstack/react-router": "^1.135.2", + "@tanstack/react-router": "^1.170.18", "axios": "^1.13.2", "formik": "^2.4.9", "gsap": "^3.14.2", @@ -1774,6 +1774,7 @@ "version": "1.133.28", "resolved": "https://registry.npmjs.org/@tanstack/history/-/history-1.133.28.tgz", "integrity": "sha512-B7+x7eP2FFvi3fgd3rNH9o/Eixt+pp0zCIdGhnQbAJjFrlwIKGjGnwyJjhWJ5fMQlGks/E2LdDTqEV4W9Plx7g==", + "dev": true, "license": "MIT", "engines": { "node": ">=12" @@ -1810,20 +1811,18 @@ } }, "node_modules/@tanstack/react-router": { - "version": "1.135.2", - "resolved": "https://registry.npmjs.org/@tanstack/react-router/-/react-router-1.135.2.tgz", - "integrity": "sha512-IzvCJ5bZ4dTEh65J1NrILF3Ab+ajRgsHYQYl/3du1sptRfQkUSsRYQGXffQQU3JH++plmO/tJXtRTmgrAp4inA==", + "version": "1.170.18", + "resolved": "https://registry.npmjs.org/@tanstack/react-router/-/react-router-1.170.18.tgz", + "integrity": "sha512-wpbGYZEp/fmz1q4bn7BD8VZ+/VZ7GBqSJv5V969pU+chP8y7dquWDmKTFMohvUegb9lg12m1uPVvD6kB2wORvQ==", "license": "MIT", "dependencies": { - "@tanstack/history": "1.133.28", - "@tanstack/react-store": "^0.8.0", - "@tanstack/router-core": "1.135.2", - "isbot": "^5.1.22", - "tiny-invariant": "^1.3.3", - "tiny-warning": "^1.0.3" + "@tanstack/history": "1.162.0", + "@tanstack/react-store": "^0.9.3", + "@tanstack/router-core": "1.171.15", + "isbot": "^5.1.22" }, "engines": { - "node": ">=12" + "node": ">=20.19" }, "funding": { "type": "github", @@ -1834,13 +1833,51 @@ "react-dom": ">=18.0.0 || >=19.0.0" } }, + "node_modules/@tanstack/react-router/node_modules/@tanstack/history": { + "version": "1.162.0", + "resolved": "https://registry.npmjs.org/@tanstack/history/-/history-1.162.0.tgz", + "integrity": "sha512-79pf/RkhteYZTRgcR4F9kbk84P2N8rugQJswxfIqovlbRiT3yI7eBE+5QorIrZaOKktsgzRlXh1l/du/xpl4iA==", + "license": "MIT", + "engines": { + "node": ">=20.19" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/tannerlinsley" + } + }, + "node_modules/@tanstack/react-router/node_modules/@tanstack/router-core": { + "version": "1.171.15", + "resolved": "https://registry.npmjs.org/@tanstack/router-core/-/router-core-1.171.15.tgz", + "integrity": "sha512-IILCDcLaItMZQ2jEmCABHY1Nhjjn5XUvwpQp3e4Nmu+vfg0BgYFuu/QASz2SwE2ZNbVMrvt8X/wxa+Gg5aErxA==", + "license": "MIT", + "dependencies": { + "@tanstack/history": "1.162.0", + "cookie-es": "^3.0.0", + "seroval": "^1.5.4", + "seroval-plugins": "^1.5.4" + }, + "engines": { + "node": ">=20.19" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/tannerlinsley" + } + }, + "node_modules/@tanstack/react-router/node_modules/cookie-es": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/cookie-es/-/cookie-es-3.1.1.tgz", + "integrity": "sha512-UaXxwISYJPTr9hwQxMFYZ7kNhSXboMXP+Z3TRX6f1/NyaGPfuNUZOWP1pUEb75B2HjfklIYLVRfWiFZJyC6Npg==", + "license": "MIT" + }, "node_modules/@tanstack/react-store": { - "version": "0.8.0", - "resolved": "https://registry.npmjs.org/@tanstack/react-store/-/react-store-0.8.0.tgz", - "integrity": "sha512-1vG9beLIuB7q69skxK9r5xiLN3ztzIPfSQSs0GfeqWGO2tGIyInZx0x1COhpx97RKaONSoAb8C3dxacWksm1ow==", + "version": "0.9.3", + "resolved": "https://registry.npmjs.org/@tanstack/react-store/-/react-store-0.9.3.tgz", + "integrity": "sha512-y2iHd/N9OkoQbFJLUX1T9vbc2O9tjH0pQRgTcx1/Nz4IlwLvkgpuglXUx+mXt0g5ZDFrEeDnONPqkbfxXJKwRg==", "license": "MIT", "dependencies": { - "@tanstack/store": "0.8.0", + "@tanstack/store": "0.9.3", "use-sync-external-store": "^1.6.0" }, "funding": { @@ -1852,10 +1889,21 @@ "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0" } }, + "node_modules/@tanstack/react-store/node_modules/@tanstack/store": { + "version": "0.9.3", + "resolved": "https://registry.npmjs.org/@tanstack/store/-/store-0.9.3.tgz", + "integrity": "sha512-8reSzl/qGWGGVKhBoxXPMWzATSbZLZFWhwBAFO9NAyp0TxzfBP0mIrGb8CP8KrQTmvzXlR/vFPPUrHTLBGyFyw==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/tannerlinsley" + } + }, "node_modules/@tanstack/router-core": { "version": "1.135.2", "resolved": "https://registry.npmjs.org/@tanstack/router-core/-/router-core-1.135.2.tgz", "integrity": "sha512-fhJSGmbqE78Ou6e+cnJ9exmjCzCZ9IXT2rApiPAgeItKj2yy1qmTEoR11n0x0fiNkkBxHL1us+QyG8JfNELiQA==", + "dev": true, "license": "MIT", "dependencies": { "@tanstack/history": "1.133.28", @@ -1980,6 +2028,7 @@ "version": "0.8.0", "resolved": "https://registry.npmjs.org/@tanstack/store/-/store-0.8.0.tgz", "integrity": "sha512-Om+BO0YfMZe//X2z0uLF2j+75nQga6TpTJgLJQBiq85aOyZNIhkCgleNcud2KQg4k4v9Y9l+Uhru3qWMPGTOzQ==", + "dev": true, "license": "MIT", "funding": { "type": "github", @@ -2768,6 +2817,7 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/cookie-es/-/cookie-es-2.0.0.tgz", "integrity": "sha512-RAj4E421UYRgqokKUmotqAwuplYw15qtdXfY+hGzgCJ/MBjCVZcSoHK/kH9kocfjRjcDME7IiDWR/1WX1TM2Pg==", + "dev": true, "license": "MIT" }, "node_modules/cross-spawn": { @@ -4611,18 +4661,18 @@ } }, "node_modules/seroval": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/seroval/-/seroval-1.3.2.tgz", - "integrity": "sha512-RbcPH1n5cfwKrru7v7+zrZvjLurgHhGyso3HTyGtRivGWgYjbOmGuivCQaORNELjNONoK35nj28EoWul9sb1zQ==", + "version": "1.5.6", + "resolved": "https://registry.npmjs.org/seroval/-/seroval-1.5.6.tgz", + "integrity": "sha512-rVQVWjjSvlINzaQPZH5JFqsqEsIWdTxY3iJZCnTL/5gQbXIRooVZKI60tVCkOVfzcRPejboxO2t0P89dg5mQaA==", "license": "MIT", "engines": { "node": ">=10" } }, "node_modules/seroval-plugins": { - "version": "1.3.3", - "resolved": "https://registry.npmjs.org/seroval-plugins/-/seroval-plugins-1.3.3.tgz", - "integrity": "sha512-16OL3NnUBw8JG1jBLUoZJsLnQq0n5Ua6aHalhJK4fMQkz1lqR7Osz1sA30trBtd9VUDc2NgkuRCn8+/pBwqZ+w==", + "version": "1.5.6", + "resolved": "https://registry.npmjs.org/seroval-plugins/-/seroval-plugins-1.5.6.tgz", + "integrity": "sha512-HXuLAX2pu/UByPpaeo/TaMfvMIi+1QqIoPJYCcAtU8QkVNwgR6MPlGuCQTErV1JwraaMbYaWVIBX7mppzGLATQ==", "license": "MIT", "engines": { "node": ">=10" @@ -4722,6 +4772,7 @@ "version": "1.3.3", "resolved": "https://registry.npmjs.org/tiny-invariant/-/tiny-invariant-1.3.3.tgz", "integrity": "sha512-+FbBPE1o9QAYvviau/qC5SE3caw21q3xkvWKBtja5vgqOWIHHJ3ioaq1VPfn/Szqctz2bU/oYeKd9/z5BL+PVg==", + "dev": true, "license": "MIT" }, "node_modules/tiny-warning": { diff --git a/package.json b/package.json index a203655..6d360a2 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,7 @@ "@gsap/react": "^2.1.2", "@tailwindcss/vite": "^4.1.17", "@tanstack/react-query": "^5.90.7", - "@tanstack/react-router": "^1.135.2", + "@tanstack/react-router": "^1.170.18", "axios": "^1.13.2", "formik": "^2.4.9", "gsap": "^3.14.2", diff --git a/yarn.lock b/yarn.lock index af525fb..95cf411 100644 --- a/yarn.lock +++ b/yarn.lock @@ -472,6 +472,11 @@ resolved "https://registry.npmjs.org/@tanstack/history/-/history-1.133.28.tgz" integrity sha512-B7+x7eP2FFvi3fgd3rNH9o/Eixt+pp0zCIdGhnQbAJjFrlwIKGjGnwyJjhWJ5fMQlGks/E2LdDTqEV4W9Plx7g== +"@tanstack/history@1.162.0": + version "1.162.0" + resolved "https://registry.npmjs.org/@tanstack/history/-/history-1.162.0.tgz" + integrity sha512-79pf/RkhteYZTRgcR4F9kbk84P2N8rugQJswxfIqovlbRiT3yI7eBE+5QorIrZaOKktsgzRlXh1l/du/xpl4iA== + "@tanstack/query-core@5.90.7": version "5.90.7" resolved "https://registry.npmjs.org/@tanstack/query-core/-/query-core-5.90.7.tgz" @@ -484,24 +489,22 @@ dependencies: "@tanstack/query-core" "5.90.7" -"@tanstack/react-router@^1.135.2": - version "1.135.2" - resolved "https://registry.npmjs.org/@tanstack/react-router/-/react-router-1.135.2.tgz" - integrity sha512-IzvCJ5bZ4dTEh65J1NrILF3Ab+ajRgsHYQYl/3du1sptRfQkUSsRYQGXffQQU3JH++plmO/tJXtRTmgrAp4inA== +"@tanstack/react-router@^1.135.2", "@tanstack/react-router@^1.170.18": + version "1.170.18" + resolved "https://registry.npmjs.org/@tanstack/react-router/-/react-router-1.170.18.tgz" + integrity sha512-wpbGYZEp/fmz1q4bn7BD8VZ+/VZ7GBqSJv5V969pU+chP8y7dquWDmKTFMohvUegb9lg12m1uPVvD6kB2wORvQ== dependencies: - "@tanstack/history" "1.133.28" - "@tanstack/react-store" "^0.8.0" - "@tanstack/router-core" "1.135.2" + "@tanstack/history" "1.162.0" + "@tanstack/react-store" "^0.9.3" + "@tanstack/router-core" "1.171.15" isbot "^5.1.22" - tiny-invariant "^1.3.3" - tiny-warning "^1.0.3" -"@tanstack/react-store@^0.8.0": - version "0.8.0" - resolved "https://registry.npmjs.org/@tanstack/react-store/-/react-store-0.8.0.tgz" - integrity sha512-1vG9beLIuB7q69skxK9r5xiLN3ztzIPfSQSs0GfeqWGO2tGIyInZx0x1COhpx97RKaONSoAb8C3dxacWksm1ow== +"@tanstack/react-store@^0.9.3": + version "0.9.3" + resolved "https://registry.npmjs.org/@tanstack/react-store/-/react-store-0.9.3.tgz" + integrity sha512-y2iHd/N9OkoQbFJLUX1T9vbc2O9tjH0pQRgTcx1/Nz4IlwLvkgpuglXUx+mXt0g5ZDFrEeDnONPqkbfxXJKwRg== dependencies: - "@tanstack/store" "0.8.0" + "@tanstack/store" "0.9.3" use-sync-external-store "^1.6.0" "@tanstack/router-core@1.135.2": @@ -517,6 +520,16 @@ tiny-invariant "^1.3.3" tiny-warning "^1.0.3" +"@tanstack/router-core@1.171.15": + version "1.171.15" + resolved "https://registry.npmjs.org/@tanstack/router-core/-/router-core-1.171.15.tgz" + integrity sha512-IILCDcLaItMZQ2jEmCABHY1Nhjjn5XUvwpQp3e4Nmu+vfg0BgYFuu/QASz2SwE2ZNbVMrvt8X/wxa+Gg5aErxA== + dependencies: + "@tanstack/history" "1.162.0" + cookie-es "^3.0.0" + seroval "^1.5.4" + seroval-plugins "^1.5.4" + "@tanstack/router-generator@1.135.2": version "1.135.2" resolved "https://registry.npmjs.org/@tanstack/router-generator/-/router-generator-1.135.2.tgz" @@ -565,11 +578,16 @@ pathe "^2.0.3" tinyglobby "^0.2.15" -"@tanstack/store@^0.8.0", "@tanstack/store@0.8.0": +"@tanstack/store@^0.8.0": version "0.8.0" resolved "https://registry.npmjs.org/@tanstack/store/-/store-0.8.0.tgz" integrity sha512-Om+BO0YfMZe//X2z0uLF2j+75nQga6TpTJgLJQBiq85aOyZNIhkCgleNcud2KQg4k4v9Y9l+Uhru3qWMPGTOzQ== +"@tanstack/store@0.9.3": + version "0.9.3" + resolved "https://registry.npmjs.org/@tanstack/store/-/store-0.9.3.tgz" + integrity sha512-8reSzl/qGWGGVKhBoxXPMWzATSbZLZFWhwBAFO9NAyp0TxzfBP0mIrGb8CP8KrQTmvzXlR/vFPPUrHTLBGyFyw== + "@tanstack/virtual-file-routes@1.133.19": version "1.133.19" resolved "https://registry.npmjs.org/@tanstack/virtual-file-routes/-/virtual-file-routes-1.133.19.tgz" @@ -960,6 +978,11 @@ cookie-es@^2.0.0: resolved "https://registry.npmjs.org/cookie-es/-/cookie-es-2.0.0.tgz" integrity sha512-RAj4E421UYRgqokKUmotqAwuplYw15qtdXfY+hGzgCJ/MBjCVZcSoHK/kH9kocfjRjcDME7IiDWR/1WX1TM2Pg== +cookie-es@^3.0.0: + version "3.1.1" + resolved "https://registry.npmjs.org/cookie-es/-/cookie-es-3.1.1.tgz" + integrity sha512-UaXxwISYJPTr9hwQxMFYZ7kNhSXboMXP+Z3TRX6f1/NyaGPfuNUZOWP1pUEb75B2HjfklIYLVRfWiFZJyC6Npg== + cross-spawn@^7.0.6: version "7.0.6" resolved "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz" @@ -1892,15 +1915,15 @@ semver@^7.6.0: resolved "https://registry.npmjs.org/semver/-/semver-7.7.3.tgz" integrity sha512-SdsKMrI9TdgjdweUSR9MweHA4EJ8YxHn8DFaDisvhVlUOe4BF1tLD7GAj0lIqWVl+dPb/rExr0Btby5loQm20Q== -seroval-plugins@^1.3.2: - version "1.3.3" - resolved "https://registry.npmjs.org/seroval-plugins/-/seroval-plugins-1.3.3.tgz" - integrity sha512-16OL3NnUBw8JG1jBLUoZJsLnQq0n5Ua6aHalhJK4fMQkz1lqR7Osz1sA30trBtd9VUDc2NgkuRCn8+/pBwqZ+w== +seroval-plugins@^1.3.2, seroval-plugins@^1.5.4: + version "1.5.6" + resolved "https://registry.npmjs.org/seroval-plugins/-/seroval-plugins-1.5.6.tgz" + integrity sha512-HXuLAX2pu/UByPpaeo/TaMfvMIi+1QqIoPJYCcAtU8QkVNwgR6MPlGuCQTErV1JwraaMbYaWVIBX7mppzGLATQ== -seroval@^1.0, seroval@^1.3.2: - version "1.3.2" - resolved "https://registry.npmjs.org/seroval/-/seroval-1.3.2.tgz" - integrity sha512-RbcPH1n5cfwKrru7v7+zrZvjLurgHhGyso3HTyGtRivGWgYjbOmGuivCQaORNELjNONoK35nj28EoWul9sb1zQ== +seroval@^1.0, seroval@^1.3.2, seroval@^1.5.4: + version "1.5.6" + resolved "https://registry.npmjs.org/seroval/-/seroval-1.5.6.tgz" + integrity sha512-rVQVWjjSvlINzaQPZH5JFqsqEsIWdTxY3iJZCnTL/5gQbXIRooVZKI60tVCkOVfzcRPejboxO2t0P89dg5mQaA== shebang-command@^2.0.0: version "2.0.0"