Open History to see the last commit
1{
2 "name": "@tanstack/react-query",
3 "version": "5.66.9",
4 "description": "Hooks for managing, caching and syncing asynchronous and remote data in React",
5 "author": "tannerlinsley",
6 "license": "MIT",
7 "repository": {
8 "type": "git",
9 "url": "https://github.com/TanStack/query.git",
10 "directory": "packages/react-query"
11 },
12 "homepage": "https://tanstack.com/query",
13 "funding": {
14 "type": "github",
15 "url": "https://github.com/sponsors/tannerlinsley"
16 },
17 "scripts": {
18 "clean": "premove ./build ./coverage ./dist-ts",
19 "compile": "tsc --build",
20 "test:eslint": "eslint ./src",
21 "test:types": "npm-run-all --serial test:types:*",
22 "test:types:ts50": "node ../../node_modules/typescript50/lib/tsc.js --build tsconfig.legacy.json",
23 "test:types:ts51": "node ../../node_modules/typescript51/lib/tsc.js --build tsconfig.legacy.json",
24 "test:types:ts52": "node ../../node_modules/typescript52/lib/tsc.js --build tsconfig.legacy.json",
25 "test:types:ts53": "node ../../node_modules/typescript53/lib/tsc.js --build tsconfig.legacy.json",
26 "test:types:ts54": "node ../../node_modules/typescript54/lib/tsc.js --build tsconfig.legacy.json",
27 "test:types:ts55": "node ../../node_modules/typescript55/lib/tsc.js --build tsconfig.legacy.json",
28 "test:types:ts56": "node ../../node_modules/typescript56/lib/tsc.js --build tsconfig.legacy.json",
29 "test:types:ts57": "tsc --build",
30 "test:lib": "vitest",
31 "test:lib:dev": "pnpm run test:lib --watch",
32 "test:build": "publint --strict && attw --pack",
33 "build": "pnpm build:tsup && pnpm build:codemods",
34 "build:tsup": "tsup --tsconfig tsconfig.prod.json",
35 "build:codemods": "cpy ../query-codemods/* ./build/codemods"
36 },
37 "type": "module",
38 "types": "build/legacy/index.d.ts",
39 "main": "build/legacy/index.cjs",
40 "module": "build/legacy/index.js",
41 "react-native": "src/index.ts",
42 "exports": {
43 ".": {
44 "import": {
45 "types": "./build/modern/index.d.ts",
46 "default": "./build/modern/index.js"
47 },
48 "require": {
49 "types": "./build/modern/index.d.cts",
50 "default": "./build/modern/index.cjs"
51 }
52 },
53 "./package.json": "./package.json"
54 },
55 "sideEffects": false,
56 "files": [
57 "build",
58 "src",
59 "!src/__tests__",
60 "!build/codemods/node_modules",
61 "!build/codemods/vite.config.ts",
62 "!build/codemods/**/__testfixtures__",
63 "!build/codemods/**/__tests__"
64 ],
65 "dependencies": {
66 "@tanstack/query-core": "workspace:*"
67 },
68 "devDependencies": {
69 "@tanstack/query-persist-client-core": "workspace:*",
70 "@testing-library/react": "^16.1.0",
71 "@testing-library/react-render-stream": "^2.0.0",
72 "@types/react": "^19.0.1",
73 "@types/react-dom": "^19.0.2",
74 "@vitejs/plugin-react": "^4.3.3",
75 "eslint-plugin-react-compiler": "19.0.0-beta-df7b47d-20241124",
76 "npm-run-all": "^4.1.5",
77 "react": "^19.0.0",
78 "react-dom": "^19.0.0",
79 "react-error-boundary": "^4.1.2"
80 },
81 "peerDependencies": {
82 "react": "^18 || ^19"
83 }
84}