-
Notifications
You must be signed in to change notification settings - Fork 2.7k
/
package.json
214 lines (214 loc) · 7.89 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
{
"name": "@apollo/client",
"version": "3.11.8",
"description": "A fully-featured caching GraphQL client.",
"private": true,
"keywords": [
"apollo",
"graphql",
"react",
"hooks",
"client",
"cache"
],
"author": "[email protected]",
"license": "MIT",
"main": "./dist/main.cjs",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"sideEffects": false,
"react-native": {
"./dist/cache/inmemory/fixPolyfills.js": "./dist/cache/inmemory/fixPolyfills.native.js",
"react-dom/server": false
},
"repository": {
"type": "git",
"url": "git+https://github.com/apollographql/apollo-client.git"
},
"bugs": {
"url": "https://github.com/apollographql/apollo-client/issues"
},
"homepage": "https://www.apollographql.com/docs/react/",
"scripts": {
"prebuild": "npm run clean",
"build": "tsc",
"postbuild": "npm run update-version && npm run inline-inherit-doc && npm run invariants && npm run sourcemaps && npm run rollup && npm run prepdist && npm run postprocess-dist && npm run verify-version",
"postinstall": "patch-package",
"update-version": "node config/version.js update",
"verify-version": "node config/version.js verify",
"invariants": "ts-node-script config/processInvariants.ts",
"sourcemaps": "ts-node-script config/rewriteSourceMaps.ts",
"rollup": "rollup -c ./config/rollup.config.js",
"prepdist": "node ./config/prepareDist.js",
"prepdist:changesets": "ts-node-script config/prepareChangesetsRelease.ts",
"postprocess-dist": "ts-node-script config/postprocessDist.ts",
"extract-api": "npm run build && ts-node-script config/apiExtractor.ts --generate apiReport",
"clean": "rimraf dist coverage lib temp",
"check:format": "prettier --check .",
"ci:precheck": "node config/precheck.js",
"format": "prettier --write .",
"lint": "eslint 'src/**/*.{[jt]s,[jt]sx}'",
"inline-inherit-doc": "ts-node-script config/inlineInheritDoc.ts",
"test": "node --expose-gc ./node_modules/jest/bin/jest.js --config ./config/jest.config.js",
"test:debug": "node --inspect-brk node_modules/.bin/jest --config ./config/jest.config.js --runInBand --testTimeout 99999 --logHeapUsage",
"test:ci": "TEST_ENV=ci npm run test:coverage -- --logHeapUsage",
"test:watch": "jest --config ./config/jest.config.js --watch",
"test:memory": "npm i && npm run build && cd scripts/memory && npm i && npm test",
"test:coverage": "npm run coverage -- --ci --runInBand --reporters=default --reporters=jest-junit",
"coverage": "node --no-compilation-cache --expose-gc --max_old_space_size=4096 node_modules/.bin/jest --config ./config/jest.config.js --logHeapUsage --coverage --watchAll=false",
"bundlesize": "npm run build && ts-node-script ./config/bundlesize.ts",
"predeploy": "npm run build",
"deploy": "cd dist && npm publish --tag next",
"typedoc": "typedoc src/index.ts --json docs/public/docs.json",
"docmodel": "tsc && npm run inline-inherit-doc && ts-node-script config/apiExtractor.ts --main-only --generate docModel",
"changeset-publish": "npm run build && npm run prepdist:changesets && cd dist && changeset publish",
"changeset-check": "changeset status --verbose --since=origin/main",
"pkg-pr-new-publish": "npm run build && cd dist && pkg-pr-new publish --no-template --compact",
"changeset-version": "changeset version && npm i",
"update-size-limits": "size-limit --json | jq '. | map(select(.sizeLimit) | { key: .name, value: .size}) | from_entries' | tee .new-size-limits.json; mv .new-size-limits.json .size-limits.json"
},
"engines": {
"npm": "^7.20.3 || ^8.0.0 || ^9.0.0 || ^10.0.0"
},
"peerDependencies": {
"graphql": "^15.0.0 || ^16.0.0",
"graphql-ws": "^5.5.5",
"react": "^16.8.0 || ^17.0.0 || ^18.0.0 || >=19.0.0-rc <19.0.0",
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || >=19.0.0-rc <19.0.0",
"subscriptions-transport-ws": "^0.9.0 || ^0.11.0"
},
"peerDependenciesMeta": {
"graphql-ws": {
"optional": true
},
"react": {
"optional": true
},
"react-dom": {
"optional": true
},
"subscriptions-transport-ws": {
"optional": true
}
},
"dependencies": {
"@graphql-typed-document-node/core": "^3.1.1",
"@wry/caches": "^1.0.0",
"@wry/equality": "^0.5.6",
"@wry/trie": "^0.5.0",
"graphql-tag": "^2.12.6",
"hoist-non-react-statics": "^3.3.2",
"optimism": "^0.18.0",
"prop-types": "^15.7.2",
"rehackt": "^0.1.0",
"response-iterator": "^0.2.6",
"symbol-observable": "^4.0.0",
"ts-invariant": "^0.10.3",
"tslib": "^2.3.0",
"zen-observable-ts": "^1.2.5"
},
"devDependencies": {
"@arethetypeswrong/cli": "0.15.3",
"@babel/parser": "7.25.0",
"@changesets/changelog-github": "0.5.0",
"@changesets/cli": "2.27.7",
"@graphql-tools/merge": "9.0.4",
"@graphql-tools/schema": "10.0.4",
"@graphql-tools/utils": "10.5.0",
"@microsoft/api-extractor": "7.47.9",
"@rollup/plugin-node-resolve": "11.2.1",
"@size-limit/esbuild-why": "11.1.4",
"@size-limit/preset-small-lib": "11.1.4",
"@testing-library/jest-dom": "6.4.6",
"@testing-library/react": "15.0.7",
"@testing-library/react-12": "npm:@testing-library/react@^12",
"@testing-library/react-render-stream": "1.0.3",
"@testing-library/user-event": "14.5.2",
"@tsconfig/node20": "20.1.4",
"@types/bytes": "3.1.4",
"@types/fetch-mock": "7.3.8",
"@types/glob": "8.1.0",
"@types/hoist-non-react-statics": "3.3.5",
"@types/jest": "29.5.12",
"@types/lodash": "4.17.7",
"@types/node": "20.16.1",
"@types/node-fetch": "2.6.11",
"@types/react": "18.3.3",
"@types/react-dom": "18.3.0",
"@types/relay-runtime": "14.1.24",
"@types/use-sync-external-store": "0.0.6",
"@typescript-eslint/eslint-plugin": "7.18.0",
"@typescript-eslint/parser": "7.18.0",
"@typescript-eslint/rule-tester": "7.18.0",
"@typescript-eslint/types": "7.18.0",
"@typescript-eslint/utils": "7.18.0",
"acorn": "8.12.1",
"ajv": "8.17.1",
"blob-polyfill": "7.0.20220408",
"bytes": "3.1.2",
"cross-fetch": "4.0.0",
"eslint": "8.57.0",
"eslint-import-resolver-typescript": "3.6.1",
"eslint-plugin-import": "npm:@phryneas/[email protected]",
"eslint-plugin-local-rules": "2.0.1",
"eslint-plugin-react-compiler": "0.0.0-experimental-c8b3f72-20240517",
"eslint-plugin-react-hooks": "4.6.2",
"eslint-plugin-testing-library": "6.3.0",
"expect-type": "0.19.0",
"fetch-mock": "9.11.0",
"glob": "8.1.0",
"graphql": "16.9.0",
"graphql-ws": "5.16.0",
"jest": "29.7.0",
"jest-environment-jsdom": "29.7.0",
"jest-junit": "16.0.0",
"lodash": "4.17.21",
"patch-package": "8.0.0",
"pkg-pr-new": "0.0.24",
"prettier": "3.1.1",
"react": "18.3.1",
"react-17": "npm:react@^17",
"react-19": "npm:[email protected]",
"react-dom": "18.3.1",
"react-dom-17": "npm:react-dom@^17",
"react-dom-19": "npm:[email protected]",
"react-error-boundary": "4.0.13",
"recast": "0.23.9",
"resolve": "1.22.8",
"rimraf": "5.0.9",
"rollup": "2.79.1",
"rollup-plugin-cleanup": "3.2.1",
"rollup-plugin-terser": "7.0.2",
"rxjs": "7.8.1",
"size-limit": "11.1.4",
"subscriptions-transport-ws": "0.11.0",
"terser": "5.31.3",
"ts-api-utils": "1.3.0",
"ts-jest": "29.2.3",
"ts-jest-resolver": "2.0.1",
"ts-morph": "22.0.0",
"ts-node": "10.9.2",
"typedoc": "0.25.0",
"typescript": "5.5.3",
"wait-for-observables": "1.0.3",
"web-streams-polyfill": "4.0.0",
"whatwg-fetch": "3.6.20"
},
"publishConfig": {
"access": "public"
},
"files": [
"LICENSE",
"**/*.md",
"**/*.cjs",
"**/*.cjs.map",
"**/*.d.cts",
"**/*.js",
"**/*.js.map",
"**/*.d.ts",
"**/*.json"
],
"overrides": {
"pretty-format": "^29.7.0"
}
}