-
-
Notifications
You must be signed in to change notification settings - Fork 99
Expand file tree
/
Copy pathpackage.json
More file actions
225 lines (225 loc) · 6.05 KB
/
package.json
File metadata and controls
225 lines (225 loc) · 6.05 KB
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
215
216
217
218
219
220
221
222
223
224
225
{
"name": "@data-client/react",
"version": "0.15.7",
"description": "Async State Management without the Management. REST, GraphQL, SSE, Websockets, Fetch",
"homepage": "https://dataclient.io",
"repository": {
"type": "git",
"url": "git+ssh://git@github.com:reactive/data-client.git",
"directory": "packages/react"
},
"bugs": {
"url": "https://github.com/reactive/data-client/issues"
},
"keywords": [
"react",
"data",
"cache",
"flux",
"suspense",
"fetch",
"hook",
"networking",
"async",
"concurrent mode",
"typescript",
"async",
"data fetching",
"data cache",
"reactive",
"state management",
"api client",
"api",
"normalized cache",
"swr",
"query",
"front-end",
"mobile",
"react-native",
"ios",
"android",
"web",
"expo",
"expogo",
"nextjs",
"middleware",
"websocket",
"REST",
"GraphQL",
"RPC",
"sse",
"declarative",
"dynamic data",
"mutations"
],
"sideEffects": [
"./lib/hooks/useFocusEffect.native.js",
"./native/hooks/useFocusEffect.native.js"
],
"main": "dist/index.js",
"react-native": "native/index.js",
"module": "legacy/index.js",
"unpkg": "dist/index.umd.min.js",
"types": "lib/index.d.ts",
"typesVersions": {
">=4.0": {
"": [
"lib/index.d.ts"
],
"next": [
"lib/next/index.d.ts"
],
"nextjs": [
"lib/server/nextjs/index.d.ts"
],
"ssr": [
"lib/server/index.d.ts"
],
"redux": [
"lib/server/redux/index.d.ts"
],
"mock": [
"lib/mock/index.d.ts"
],
"*": [
"lib/index.d.ts"
]
},
">=3.4": {
"": [
"ts3.4/index.d.ts"
],
"next": [
"ts3.4/next/index.d.ts"
],
"ssr": [
"ts3.4/server/index.d.ts"
],
"redux": [
"ts3.4/server/redux/index.d.ts"
],
"mock": [
"ts3.4/mock/index.d.ts"
],
"*": [
"ts3.4/index.d.ts"
]
}
},
"exports": {
".": {
"module": "./lib/index.js",
"import": "./node.mjs",
"require": "./dist/index.js",
"browser": "./lib/index.js",
"react-native": "./native/index.js",
"default": "./lib/index.js"
},
"./next": {
"types": "./lib/next/index.d.ts",
"require": "./dist/next.js",
"browser": "./lib/next/index.js",
"react-native": "./native/next/index.js",
"default": "./lib/next/index.js"
},
"./nextjs": {
"types": "./lib/server/nextjs/index.d.ts",
"default": "./lib/server/nextjs/index.js"
},
"./ssr": {
"types": "./lib/server/index.d.ts",
"require": "./dist/server/index.js",
"default": "./lib/server/index.js"
},
"./redux": {
"types": "./lib/server/redux/index.d.ts",
"require": "./dist/server/redux/index.js",
"browser": "./lib/server/redux/index.js",
"react-native": "./native/server/redux/index.js",
"default": "./lib/server/redux/index.js"
},
"./mock": {
"types": "./lib/mock/index.d.ts",
"require": "./dist/mock.js",
"default": "./lib/mock/index.js"
},
"./package.json": "./package.json"
},
"type": "module",
"engines": {
"node": "^12.17 || ^13.7 || >=14"
},
"files": [
"src",
"dist",
"lib",
"legacy",
"native",
"ts3.4",
"node.mjs",
"LICENSE",
"README.md"
],
"scripts": {
"build:lib": "NODE_ENV=production BROWSERSLIST_ENV='2020' POLYFILL_TARGETS='chrome>88,safari>14' POLYFILL_TARGETS='chrome>88,safari>14' yarn g:babel --out-dir lib",
"build:legacy:lib": "NODE_ENV=production BROWSERSLIST_ENV='2018' POLYFILL_TARGETS='chrome>80,safari>13,firefox>72' POLYFILL_TARGETS='chrome>80,safari>13,firefox>72' yarn g:babel --out-dir legacy",
"build:native:lib": "COMPILE_TARGET=native NODE_ENV=production BROWSERSLIST_ENV='hermes12' yarn g:babel --out-dir native",
"build:js:node": "BROWSERSLIST_ENV=node12 yarn g:rollup",
"build:js:browser": "BROWSERSLIST_ENV=legacy yarn g:rollup",
"build:bundle": "yarn g:runs build:js:\\* && echo '{\"type\":\"commonjs\"}' > dist/package.json",
"build:clean": "yarn g:clean index.d.ts next.d.ts native",
"build:legacy-types": "yarn g:downtypes lib ts3.4",
"build": "run build:lib && run build:legacy:lib && run build:native:lib && run build:bundle",
"dev": "run build:lib -w",
"prepare": "run build:lib",
"prepack": "run prepare && run build:legacy:lib && run build:bundle"
},
"author": "Nathaniel Tucker <me@ntucker.me> (https://github.com/ntucker)",
"funding": "https://github.com/sponsors/ntucker",
"license": "Apache-2.0",
"dependencies": {
"@babel/runtime": "^7.20.0",
"@data-client/core": "workspace:^",
"@data-client/use-enhanced-reducer": "workspace:^"
},
"peerDependencies": {
"@react-navigation/native": "^6.0.0 || ^7.0.0",
"@types/react": "^16.14.0 || ^17.0.0 || ^18.0.0 || ^19.0.0-0 || ^19.0.0",
"react": "^16.14.0 || ^17.0.0 || ^18.0.0 || ^19.0.0-0 || ^19.0.0"
},
"peerDependenciesMeta": {
"@react-navigation/native": {
"optional": true
},
"@types/react": {
"optional": true
}
},
"devDependencies": {
"@anansi/browserslist-config": "^1.4.2",
"@data-client/rest": "workspace:*",
"@data-client/test": "workspace:*",
"@jest/globals": "^30.0.0",
"@react-navigation/native": "^7.0.0",
"@react-navigation/native-stack": "^7.2.0",
"@testing-library/dom": "^10.4.0",
"@testing-library/react": "^16.1.0",
"@testing-library/react-native": "^13.3.3",
"@types/jest": "30.0.0",
"@types/node": "^24.0.0",
"@types/qs": "^6",
"@types/react": "19.2.14",
"@types/react-dom": "*",
"jest-mock": "^30.0.0",
"nock": "13.3.1",
"qs": "^6.14.2",
"react": "19.2.3",
"react-dom": "^19.0.0",
"react-native": "0.84.1",
"react-native-safe-area-context": "^5.0.0",
"react-native-screens": "^4.1.0",
"react-test-renderer": "^19.0.0",
"rollup-plugins": "workspace:*",
"temporal-polyfill": "^0.3.0"
}
}