@@ -10,6 +10,7 @@
1010 "dependencies": {
1111 "@googleapis/customsearch": "^7.0.1",
1212 "@tailwindcss/typography": "^0.5.19",
13+ "@tanstack/react-query": "^5.90.12",
1314 "autoprefixer": "^10.4.17",
1415 "drizzle-kit": "^0.31.8",
1516 "drizzle-orm": "^0.45.1",
@@ -29,6 +30,7 @@
2930 "typescript": "^5.4.2"
3031 },
3132 "devDependencies": {
33+ "@tanstack/eslint-plugin-query": "^5.91.2",
3234 "@types/node": "^20.19.27",
3335 "@types/react": "^18.2.55",
3436 "@types/react-dom": "^18.2.19",
@@ -37,7 +39,6 @@
3739 "eslint-config-next": "^16.0.10",
3840 "eslint-config-prettier": "^10.1.8",
3941 "husky": "^9.1.7",
40- "lint-staged": "^16.2.7",
4142 "prettier": "^3.2.5",
4243 "prettier-plugin-tailwindcss": "^0.5.11",
4344 "vitest": "^4.0.16"
@@ -2569,6 +2570,49 @@
25692570 "node": ">=4"
25702571 }
25712572 },
2573+ "node_modules/@tanstack/eslint-plugin-query": {
2574+ "version": "5.91.2",
2575+ "resolved": "https://registry.npmjs.org/@tanstack/eslint-plugin-query/-/eslint-plugin-query-5.91.2.tgz",
2576+ "integrity": "sha512-UPeWKl/Acu1IuuHJlsN+eITUHqAaa9/04geHHPedY8siVarSaWprY0SVMKrkpKfk5ehRT7+/MZ5QwWuEtkWrFw==",
2577+ "dev": true,
2578+ "license": "MIT",
2579+ "dependencies": {
2580+ "@typescript-eslint/utils": "^8.44.1"
2581+ },
2582+ "funding": {
2583+ "type": "github",
2584+ "url": "https://github.com/sponsors/tannerlinsley"
2585+ },
2586+ "peerDependencies": {
2587+ "eslint": "^8.57.0 || ^9.0.0"
2588+ }
2589+ },
2590+ "node_modules/@tanstack/query-core": {
2591+ "version": "5.90.12",
2592+ "resolved": "https://registry.npmjs.org/@tanstack/query-core/-/query-core-5.90.12.tgz",
2593+ "integrity": "sha512-T1/8t5DhV/SisWjDnaiU2drl6ySvsHj1bHBCWNXd+/T+Hh1cf6JodyEYMd5sgwm+b/mETT4EV3H+zCVczCU5hg==",
2594+ "license": "MIT",
2595+ "funding": {
2596+ "type": "github",
2597+ "url": "https://github.com/sponsors/tannerlinsley"
2598+ }
2599+ },
2600+ "node_modules/@tanstack/react-query": {
2601+ "version": "5.90.12",
2602+ "resolved": "https://registry.npmjs.org/@tanstack/react-query/-/react-query-5.90.12.tgz",
2603+ "integrity": "sha512-graRZspg7EoEaw0a8faiUASCyJrqjKPdqJ9EwuDRUF9mEYJ1YPczI9H+/agJ0mOJkPCJDk0lsz5QTrLZ/jQ2rg==",
2604+ "license": "MIT",
2605+ "dependencies": {
2606+ "@tanstack/query-core": "5.90.12"
2607+ },
2608+ "funding": {
2609+ "type": "github",
2610+ "url": "https://github.com/sponsors/tannerlinsley"
2611+ },
2612+ "peerDependencies": {
2613+ "react": "^18 || ^19"
2614+ }
2615+ },
25722616 "node_modules/@tybys/wasm-util": {
25732617 "version": "0.10.1",
25742618 "resolved": "https://registry.npmjs.org/@tybys/wasm-util/-/wasm-util-0.10.1.tgz",
@@ -3428,22 +3472,6 @@
34283472 "url": "https://github.com/sponsors/epoberezkin"
34293473 }
34303474 },
3431- "node_modules/ansi-escapes": {
3432- "version": "7.2.0",
3433- "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-7.2.0.tgz",
3434- "integrity": "sha512-g6LhBsl+GBPRWGWsBtutpzBYuIIdBkLEvad5C/va/74Db018+5TZiyA26cZJAr3Rft5lprVqOIPxf5Vid6tqAw==",
3435- "dev": true,
3436- "license": "MIT",
3437- "dependencies": {
3438- "environment": "^1.0.0"
3439- },
3440- "engines": {
3441- "node": ">=18"
3442- },
3443- "funding": {
3444- "url": "https://github.com/sponsors/sindresorhus"
3445- }
3446- },
34473475 "node_modules/ansi-regex": {
34483476 "version": "5.0.1",
34493477 "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",
@@ -4103,85 +4131,6 @@
41034131 "node": ">= 6"
41044132 }
41054133 },
4106- "node_modules/cli-cursor": {
4107- "version": "5.0.0",
4108- "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-5.0.0.tgz",
4109- "integrity": "sha512-aCj4O5wKyszjMmDT4tZj93kxyydN/K5zPWSCe6/0AV/AA1pqe5ZBIw0a2ZfPQV7lL5/yb5HsUreJ6UFAF1tEQw==",
4110- "dev": true,
4111- "license": "MIT",
4112- "dependencies": {
4113- "restore-cursor": "^5.0.0"
4114- },
4115- "engines": {
4116- "node": ">=18"
4117- },
4118- "funding": {
4119- "url": "https://github.com/sponsors/sindresorhus"
4120- }
4121- },
4122- "node_modules/cli-truncate": {
4123- "version": "5.1.1",
4124- "resolved": "https://registry.npmjs.org/cli-truncate/-/cli-truncate-5.1.1.tgz",
4125- "integrity": "sha512-SroPvNHxUnk+vIW/dOSfNqdy1sPEFkrTk6TUtqLCnBlo3N7TNYYkzzN7uSD6+jVjrdO4+p8nH7JzH6cIvUem6A==",
4126- "dev": true,
4127- "license": "MIT",
4128- "dependencies": {
4129- "slice-ansi": "^7.1.0",
4130- "string-width": "^8.0.0"
4131- },
4132- "engines": {
4133- "node": ">=20"
4134- },
4135- "funding": {
4136- "url": "https://github.com/sponsors/sindresorhus"
4137- }
4138- },
4139- "node_modules/cli-truncate/node_modules/ansi-regex": {
4140- "version": "6.2.2",
4141- "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.2.2.tgz",
4142- "integrity": "sha512-Bq3SmSpyFHaWjPk8If9yc6svM8c56dB5BAtW4Qbw5jHTwwXXcTLoRMkpDJp6VL0XzlWaCHTXrkFURMYmD0sLqg==",
4143- "dev": true,
4144- "license": "MIT",
4145- "engines": {
4146- "node": ">=12"
4147- },
4148- "funding": {
4149- "url": "https://github.com/chalk/ansi-regex?sponsor=1"
4150- }
4151- },
4152- "node_modules/cli-truncate/node_modules/string-width": {
4153- "version": "8.1.0",
4154- "resolved": "https://registry.npmjs.org/string-width/-/string-width-8.1.0.tgz",
4155- "integrity": "sha512-Kxl3KJGb/gxkaUMOjRsQ8IrXiGW75O4E3RPjFIINOVH8AMl2SQ/yWdTzWwF3FevIX9LcMAjJW+GRwAlAbTSXdg==",
4156- "dev": true,
4157- "license": "MIT",
4158- "dependencies": {
4159- "get-east-asian-width": "^1.3.0",
4160- "strip-ansi": "^7.1.0"
4161- },
4162- "engines": {
4163- "node": ">=20"
4164- },
4165- "funding": {
4166- "url": "https://github.com/sponsors/sindresorhus"
4167- }
4168- },
4169- "node_modules/cli-truncate/node_modules/strip-ansi": {
4170- "version": "7.1.2",
4171- "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.2.tgz",
4172- "integrity": "sha512-gmBGslpoQJtgnMAvOVqGZpEz9dyoKTCzy2nfz/n8aIFhN/jCE/rCmcxabB6jOOHV+0WNnylOxaxBQPSvcWklhA==",
4173- "dev": true,
4174- "license": "MIT",
4175- "dependencies": {
4176- "ansi-regex": "^6.0.1"
4177- },
4178- "engines": {
4179- "node": ">=12"
4180- },
4181- "funding": {
4182- "url": "https://github.com/chalk/strip-ansi?sponsor=1"
4183- }
4184- },
41854134 "node_modules/client-only": {
41864135 "version": "0.0.1",
41874136 "resolved": "https://registry.npmjs.org/client-only/-/client-only-0.0.1.tgz",
@@ -4215,13 +4164,6 @@
42154164 "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
42164165 "license": "MIT"
42174166 },
4218- "node_modules/colorette": {
4219- "version": "2.0.20",
4220- "resolved": "https://registry.npmjs.org/colorette/-/colorette-2.0.20.tgz",
4221- "integrity": "sha512-IfEDxwoWIjkeXL1eXcDiow4UbKjhLdq6/EuSVR9GMN7KVH3r9gQ83e73hsz1Nd1T3ijd5xv1wcWRYO+D6kCI2w==",
4222- "dev": true,
4223- "license": "MIT"
4224- },
42254167 "node_modules/comma-separated-tokens": {
42264168 "version": "2.0.3",
42274169 "resolved": "https://registry.npmjs.org/comma-separated-tokens/-/comma-separated-tokens-2.0.3.tgz",
@@ -4664,19 +4606,6 @@
46644606 "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==",
46654607 "license": "MIT"
46664608 },
4667- "node_modules/environment": {
4668- "version": "1.1.0",
4669- "resolved": "https://registry.npmjs.org/environment/-/environment-1.1.0.tgz",
4670- "integrity": "sha512-xUtoPkMggbz0MPyPiIWr1Kp4aeWJjDZ6SMvURhimjdZgsRuDplF5/s9hcgGhyXMhs+6vpnuoiZ2kFiu3FMnS8Q==",
4671- "dev": true,
4672- "license": "MIT",
4673- "engines": {
4674- "node": ">=18"
4675- },
4676- "funding": {
4677- "url": "https://github.com/sponsors/sindresorhus"
4678- }
4679- },
46804609 "node_modules/es-abstract": {
46814610 "version": "1.24.1",
46824611 "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.24.1.tgz",
@@ -5465,13 +5394,6 @@
54655394 "node": ">=0.10.0"
54665395 }
54675396 },
5468- "node_modules/eventemitter3": {
5469- "version": "5.0.1",
5470- "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-5.0.1.tgz",
5471- "integrity": "sha512-GWkBvjiSZK87ELrYOSESUYeVIc9mvLLf/nXalMOS5dYrgZq9o5OVkbZAVM06CVxYsCwH9BDZFPlQTlPA1j4ahA==",
5472- "dev": true,
5473- "license": "MIT"
5474- },
Cut short: this commit's diff is over 1000 lines.