Open History to see the last commit
1{
2 "name": "@tanstack/react-query",
3 "version": "5.52.2",
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": "rimraf ./build && rimraf ./coverage",
19 "test:eslint": "eslint ./src",
20 "test:types": "pnpm run \"/^test:types:ts[0-9]{2}$/\"",
21 "test:types:ts47": "node ../../node_modules/typescript47/lib/tsc.js -p tsconfig.legacy.json",
22 "test:types:ts48": "node ../../node_modules/typescript48/lib/tsc.js -p tsconfig.legacy.json",
23 "test:types:ts49": "node ../../node_modules/typescript49/lib/tsc.js -p tsconfig.legacy.json",
24 "test:types:ts50": "node ../../node_modules/typescript50/lib/tsc.js -p tsconfig.legacy.json",
25 "test:types:ts51": "node ../../node_modules/typescript51/lib/tsc.js -p tsconfig.legacy.json",
26 "test:types:ts52": "node ../../node_modules/typescript52/lib/tsc.js -p tsconfig.legacy.json",
27 "test:types:ts53": "tsc",
28 "test:lib": "vitest --retry=3",
29 "test:lib:dev": "pnpm run test:lib --watch",
30 "test:build": "publint --strict && attw --pack",
31 "build": "pnpm build:tsup && pnpm build:codemods",
32 "build:tsup": "tsup",
33 "build:codemods": "cpy ../query-codemods/* ./build/codemods"
34 },
35 "type": "module",
36 "types": "build/legacy/index.d.ts",
37 "main": "build/legacy/index.cjs",
38 "module": "build/legacy/index.js",
39 "exports": {
40 ".": {
41 "import": {
42 "types": "./build/modern/index.d.ts",
43 "default": "./build/modern/index.js"
44 },
45 "require": {
46 "types": "./build/modern/index.d.cts",
47 "default": "./build/modern/index.cjs"
48 }
49 },
50 "./package.json": "./package.json"
51 },
52 "sideEffects": false,
53 "files": [
54 "build",
55 "src",
56 "!build/codemods/node_modules",
57 "!build/codemods/vite.config.ts",
58 "!build/codemods/**/__testfixtures__",
59 "!build/codemods/**/__tests__"
60 ],
61 "dependencies": {
62 "@tanstack/query-core": "workspace:*"
63 },
64 "devDependencies": {
65 "@types/react": "npm:types-react@rc",
66 "@types/react-dom": "npm:types-react-dom@rc",
67 "@vitejs/plugin-react": "^4.3.1",
68 "eslint-plugin-react-compiler": "0.0.0-experimental-c8b3f72-20240517",
69 "react": "19.0.0-rc-4c2e457c7c-20240522",
70 "react-dom": "19.0.0-rc-4c2e457c7c-20240522",
71 "react-error-boundary": "^4.0.13"
72 },
73 "peerDependencies": {
74 "react": "^18 || ^19"
75 }
76}