@tanstack/solid-query 5.0.0-alpha.51 → 5.0.0-alpha.53

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (121) hide show
  1. package/build/lib/QueryClient.cjs +12 -0
  2. package/build/lib/QueryClient.cjs.map +1 -0
  3. package/build/lib/QueryClient.js +10 -0
  4. package/build/lib/QueryClient.js.map +1 -0
  5. package/build/lib/QueryClientProvider.cjs +35 -0
  6. package/build/lib/QueryClientProvider.cjs.map +1 -0
  7. package/build/lib/QueryClientProvider.js +31 -0
  8. package/build/lib/QueryClientProvider.js.map +1 -0
  9. package/build/lib/createBaseQuery.cjs +192 -0
  10. package/build/lib/createBaseQuery.cjs.map +1 -0
  11. package/build/lib/createBaseQuery.js +190 -0
  12. package/build/lib/createBaseQuery.js.map +1 -0
  13. package/build/lib/createInfiniteQuery.cjs +14 -0
  14. package/build/lib/createInfiniteQuery.cjs.map +1 -0
  15. package/build/lib/createInfiniteQuery.js +12 -0
  16. package/build/lib/createInfiniteQuery.js.map +1 -0
  17. package/build/lib/createMutation.cjs +44 -0
  18. package/build/lib/createMutation.cjs.map +1 -0
  19. package/build/lib/createMutation.js +42 -0
  20. package/build/lib/createMutation.js.map +1 -0
  21. package/build/lib/createQueries.cjs +52 -0
  22. package/build/lib/createQueries.cjs.map +1 -0
  23. package/build/lib/createQueries.js +50 -0
  24. package/build/lib/createQueries.js.map +1 -0
  25. package/build/lib/createQuery.cjs +16 -0
  26. package/build/lib/createQuery.cjs.map +1 -0
  27. package/build/lib/createQuery.js +13 -0
  28. package/build/lib/createQuery.js.map +1 -0
  29. package/build/lib/index.cjs.map +1 -0
  30. package/build/lib/index.js +11 -0
  31. package/build/lib/index.js.map +1 -0
  32. package/build/lib/setBatchUpdatesFn.cjs +7 -0
  33. package/build/lib/setBatchUpdatesFn.cjs.map +1 -0
  34. package/build/{source → lib}/setBatchUpdatesFn.js +2 -0
  35. package/build/lib/setBatchUpdatesFn.js.map +1 -0
  36. package/build/lib/useIsFetching.cjs +18 -0
  37. package/build/lib/useIsFetching.cjs.map +1 -0
  38. package/build/lib/useIsFetching.js +16 -0
  39. package/build/lib/useIsFetching.js.map +1 -0
  40. package/build/lib/useIsMutating.cjs +18 -0
  41. package/build/lib/useIsMutating.cjs.map +1 -0
  42. package/build/lib/useIsMutating.js +16 -0
  43. package/build/lib/useIsMutating.js.map +1 -0
  44. package/build/lib/utils.cjs +12 -0
  45. package/build/lib/utils.cjs.map +1 -0
  46. package/build/lib/utils.js +10 -0
  47. package/build/lib/utils.js.map +1 -0
  48. package/build/stats-html.html +6177 -0
  49. package/build/stats.json +605 -0
  50. package/package.json +6 -14
  51. package/build/source/QueryClient.js +0 -6
  52. package/build/source/QueryClientProvider.jsx +0 -21
  53. package/build/source/__tests__/QueryClientProvider.test.jsx +0 -120
  54. package/build/source/__tests__/createInfiniteQuery.test.jsx +0 -1360
  55. package/build/source/__tests__/createMutation.test.jsx +0 -867
  56. package/build/source/__tests__/createQueries.test.jsx +0 -590
  57. package/build/source/__tests__/createQuery.test.jsx +0 -4398
  58. package/build/source/__tests__/createQuery.types.test.jsx +0 -153
  59. package/build/source/__tests__/suspense.test.jsx +0 -659
  60. package/build/source/__tests__/transition.test.jsx +0 -42
  61. package/build/source/__tests__/useIsFetching.test.jsx +0 -190
  62. package/build/source/__tests__/useIsMutating.test.jsx +0 -196
  63. package/build/source/__tests__/utils.jsx +0 -50
  64. package/build/source/createBaseQuery.js +0 -173
  65. package/build/source/createInfiniteQuery.js +0 -8
  66. package/build/source/createMutation.js +0 -38
  67. package/build/source/createQueries.js +0 -38
  68. package/build/source/createQuery.js +0 -9
  69. package/build/source/index.js +0 -15
  70. package/build/source/types.js +0 -2
  71. package/build/source/useIsFetching.js +0 -12
  72. package/build/source/useIsMutating.js +0 -12
  73. package/build/source/utils.js +0 -7
  74. /package/build/{types → lib}/QueryClient.d.ts +0 -0
  75. /package/build/{types → lib}/QueryClient.d.ts.map +0 -0
  76. /package/build/{types → lib}/QueryClientProvider.d.ts +0 -0
  77. /package/build/{types → lib}/QueryClientProvider.d.ts.map +0 -0
  78. /package/build/{types → lib}/__tests__/QueryClientProvider.test.d.ts +0 -0
  79. /package/build/{types → lib}/__tests__/QueryClientProvider.test.d.ts.map +0 -0
  80. /package/build/{types → lib}/__tests__/createInfiniteQuery.test.d.ts +0 -0
  81. /package/build/{types → lib}/__tests__/createInfiniteQuery.test.d.ts.map +0 -0
  82. /package/build/{types → lib}/__tests__/createMutation.test.d.ts +0 -0
  83. /package/build/{types → lib}/__tests__/createMutation.test.d.ts.map +0 -0
  84. /package/build/{types → lib}/__tests__/createQueries.test.d.ts +0 -0
  85. /package/build/{types → lib}/__tests__/createQueries.test.d.ts.map +0 -0
  86. /package/build/{types → lib}/__tests__/createQuery.test.d.ts +0 -0
  87. /package/build/{types → lib}/__tests__/createQuery.test.d.ts.map +0 -0
  88. /package/build/{types → lib}/__tests__/createQuery.types.test.d.ts +0 -0
  89. /package/build/{types → lib}/__tests__/createQuery.types.test.d.ts.map +0 -0
  90. /package/build/{types → lib}/__tests__/suspense.test.d.ts +0 -0
  91. /package/build/{types → lib}/__tests__/suspense.test.d.ts.map +0 -0
  92. /package/build/{types → lib}/__tests__/transition.test.d.ts +0 -0
  93. /package/build/{types → lib}/__tests__/transition.test.d.ts.map +0 -0
  94. /package/build/{types → lib}/__tests__/useIsFetching.test.d.ts +0 -0
  95. /package/build/{types → lib}/__tests__/useIsFetching.test.d.ts.map +0 -0
  96. /package/build/{types → lib}/__tests__/useIsMutating.test.d.ts +0 -0
  97. /package/build/{types → lib}/__tests__/useIsMutating.test.d.ts.map +0 -0
  98. /package/build/{types → lib}/__tests__/utils.d.ts +0 -0
  99. /package/build/{types → lib}/__tests__/utils.d.ts.map +0 -0
  100. /package/build/{types → lib}/createBaseQuery.d.ts +0 -0
  101. /package/build/{types → lib}/createBaseQuery.d.ts.map +0 -0
  102. /package/build/{types → lib}/createInfiniteQuery.d.ts +0 -0
  103. /package/build/{types → lib}/createInfiniteQuery.d.ts.map +0 -0
  104. /package/build/{types → lib}/createMutation.d.ts +0 -0
  105. /package/build/{types → lib}/createMutation.d.ts.map +0 -0
  106. /package/build/{types → lib}/createQueries.d.ts +0 -0
  107. /package/build/{types → lib}/createQueries.d.ts.map +0 -0
  108. /package/build/{types → lib}/createQuery.d.ts +0 -0
  109. /package/build/{types → lib}/createQuery.d.ts.map +0 -0
  110. /package/build/{types → lib}/index.d.ts +0 -0
  111. /package/build/{types → lib}/index.d.ts.map +0 -0
  112. /package/build/{types → lib}/setBatchUpdatesFn.d.ts +0 -0
  113. /package/build/{types → lib}/setBatchUpdatesFn.d.ts.map +0 -0
  114. /package/build/{types → lib}/types.d.ts +0 -0
  115. /package/build/{types → lib}/types.d.ts.map +0 -0
  116. /package/build/{types → lib}/useIsFetching.d.ts +0 -0
  117. /package/build/{types → lib}/useIsFetching.d.ts.map +0 -0
  118. /package/build/{types → lib}/useIsMutating.d.ts +0 -0
  119. /package/build/{types → lib}/useIsMutating.d.ts.map +0 -0
  120. /package/build/{types → lib}/utils.d.ts +0 -0
  121. /package/build/{types → lib}/utils.d.ts.map +0 -0
@@ -0,0 +1,605 @@
1
+ {
2
+ "version": 2,
3
+ "tree": {
4
+ "name": "root",
5
+ "children": [
6
+ {
7
+ "name": "index.cjs",
8
+ "children": [
9
+ {
10
+ "name": "src/index.ts",
11
+ "uid": "3666-61"
12
+ }
13
+ ]
14
+ },
15
+ {
16
+ "name": "setBatchUpdatesFn.cjs",
17
+ "children": [
18
+ {
19
+ "name": "src/setBatchUpdatesFn.ts",
20
+ "uid": "3666-65"
21
+ }
22
+ ]
23
+ },
24
+ {
25
+ "name": "QueryClient.cjs",
26
+ "children": [
27
+ {
28
+ "name": "src/QueryClient.ts",
29
+ "uid": "3666-69"
30
+ }
31
+ ]
32
+ },
33
+ {
34
+ "name": "createQuery.cjs",
35
+ "children": [
36
+ {
37
+ "name": "src/createQuery.ts",
38
+ "uid": "3666-73"
39
+ }
40
+ ]
41
+ },
42
+ {
43
+ "name": "QueryClientProvider.cjs",
44
+ "children": [
45
+ {
46
+ "name": "src/QueryClientProvider.tsx",
47
+ "uid": "3666-77"
48
+ }
49
+ ]
50
+ },
51
+ {
52
+ "name": "useIsFetching.cjs",
53
+ "children": [
54
+ {
55
+ "name": "src/useIsFetching.ts",
56
+ "uid": "3666-81"
57
+ }
58
+ ]
59
+ },
60
+ {
61
+ "name": "createInfiniteQuery.cjs",
62
+ "children": [
63
+ {
64
+ "name": "src/createInfiniteQuery.ts",
65
+ "uid": "3666-85"
66
+ }
67
+ ]
68
+ },
69
+ {
70
+ "name": "createMutation.cjs",
71
+ "children": [
72
+ {
73
+ "name": "src/createMutation.ts",
74
+ "uid": "3666-89"
75
+ }
76
+ ]
77
+ },
78
+ {
79
+ "name": "useIsMutating.cjs",
80
+ "children": [
81
+ {
82
+ "name": "src/useIsMutating.ts",
83
+ "uid": "3666-93"
84
+ }
85
+ ]
86
+ },
87
+ {
88
+ "name": "createQueries.cjs",
89
+ "children": [
90
+ {
91
+ "name": "src/createQueries.ts",
92
+ "uid": "3666-97"
93
+ }
94
+ ]
95
+ },
96
+ {
97
+ "name": "createBaseQuery.cjs",
98
+ "children": [
99
+ {
100
+ "name": "src/createBaseQuery.ts",
101
+ "uid": "3666-101"
102
+ }
103
+ ]
104
+ },
105
+ {
106
+ "name": "utils.cjs",
107
+ "children": [
108
+ {
109
+ "name": "src/utils.ts",
110
+ "uid": "3666-110"
111
+ }
112
+ ]
113
+ }
114
+ ],
115
+ "isRoot": true
116
+ },
117
+ "nodeParts": {
118
+ "3666-61": {
119
+ "renderedLength": 0,
120
+ "gzipLength": 0,
121
+ "brotliLength": 0,
122
+ "metaUid": "3666-60"
123
+ },
124
+ "3666-65": {
125
+ "renderedLength": 62,
126
+ "gzipLength": 76,
127
+ "brotliLength": 0,
128
+ "metaUid": "3666-64"
129
+ },
130
+ "3666-69": {
131
+ "renderedLength": 103,
132
+ "gzipLength": 98,
133
+ "brotliLength": 0,
134
+ "metaUid": "3666-68"
135
+ },
136
+ "3666-73": {
137
+ "renderedLength": 216,
138
+ "gzipLength": 142,
139
+ "brotliLength": 0,
140
+ "metaUid": "3666-72"
141
+ },
142
+ "3666-77": {
143
+ "renderedLength": 651,
144
+ "gzipLength": 285,
145
+ "brotliLength": 0,
146
+ "metaUid": "3666-76"
147
+ },
148
+ "3666-81": {
149
+ "renderedLength": 466,
150
+ "gzipLength": 232,
151
+ "brotliLength": 0,
152
+ "metaUid": "3666-80"
153
+ },
154
+ "3666-85": {
155
+ "renderedLength": 260,
156
+ "gzipLength": 184,
157
+ "brotliLength": 0,
158
+ "metaUid": "3666-84"
159
+ },
160
+ "3666-89": {
161
+ "renderedLength": 1019,
162
+ "gzipLength": 461,
163
+ "brotliLength": 0,
164
+ "metaUid": "3666-88"
165
+ },
166
+ "3666-93": {
167
+ "renderedLength": 488,
168
+ "gzipLength": 235,
169
+ "brotliLength": 0,
170
+ "metaUid": "3666-92"
171
+ },
172
+ "3666-97": {
173
+ "renderedLength": 1695,
174
+ "gzipLength": 655,
175
+ "brotliLength": 0,
176
+ "metaUid": "3666-96"
177
+ },
178
+ "3666-101": {
179
+ "renderedLength": 6696,
180
+ "gzipLength": 2270,
181
+ "brotliLength": 0,
182
+ "metaUid": "3666-100"
183
+ },
184
+ "3666-110": {
185
+ "renderedLength": 234,
186
+ "gzipLength": 163,
187
+ "brotliLength": 0,
188
+ "metaUid": "3666-109"
189
+ }
190
+ },
191
+ "nodeMetas": {
192
+ "3666-60": {
193
+ "id": "/src/index.ts",
194
+ "moduleParts": {
195
+ "index.cjs": "3666-61"
196
+ },
197
+ "imported": [
198
+ {
199
+ "uid": "3666-64"
200
+ },
201
+ {
202
+ "uid": "3666-111"
203
+ },
204
+ {
205
+ "uid": "3666-112"
206
+ },
207
+ {
208
+ "uid": "3666-68"
209
+ },
210
+ {
211
+ "uid": "3666-72"
212
+ },
213
+ {
214
+ "uid": "3666-76"
215
+ },
216
+ {
217
+ "uid": "3666-80"
218
+ },
219
+ {
220
+ "uid": "3666-84"
221
+ },
222
+ {
223
+ "uid": "3666-88"
224
+ },
225
+ {
226
+ "uid": "3666-92"
227
+ },
228
+ {
229
+ "uid": "3666-96"
230
+ }
231
+ ],
232
+ "importedBy": [],
233
+ "isEntry": true
234
+ },
235
+ "3666-64": {
236
+ "id": "/src/setBatchUpdatesFn.ts",
237
+ "moduleParts": {
238
+ "setBatchUpdatesFn.cjs": "3666-65"
239
+ },
240
+ "imported": [
241
+ {
242
+ "uid": "3666-111"
243
+ },
244
+ {
245
+ "uid": "3666-113"
246
+ }
247
+ ],
248
+ "importedBy": [
249
+ {
250
+ "uid": "3666-60"
251
+ }
252
+ ]
253
+ },
254
+ "3666-68": {
255
+ "id": "/src/QueryClient.ts",
256
+ "moduleParts": {
257
+ "QueryClient.cjs": "3666-69"
258
+ },
259
+ "imported": [
260
+ {
261
+ "uid": "3666-111"
262
+ }
263
+ ],
264
+ "importedBy": [
265
+ {
266
+ "uid": "3666-60"
267
+ }
268
+ ]
269
+ },
270
+ "3666-72": {
271
+ "id": "/src/createQuery.ts",
272
+ "moduleParts": {
273
+ "createQuery.cjs": "3666-73"
274
+ },
275
+ "imported": [
276
+ {
277
+ "uid": "3666-111"
278
+ },
279
+ {
280
+ "uid": "3666-113"
281
+ },
282
+ {
283
+ "uid": "3666-100"
284
+ }
285
+ ],
286
+ "importedBy": [
287
+ {
288
+ "uid": "3666-60"
289
+ }
290
+ ]
291
+ },
292
+ "3666-76": {
293
+ "id": "/src/QueryClientProvider.tsx",
294
+ "moduleParts": {
295
+ "QueryClientProvider.cjs": "3666-77"
296
+ },
297
+ "imported": [
298
+ {
299
+ "uid": "3666-114"
300
+ },
301
+ {
302
+ "uid": "3666-113"
303
+ }
304
+ ],
305
+ "importedBy": [
306
+ {
307
+ "uid": "3666-60"
308
+ },
309
+ {
310
+ "uid": "3666-80"
311
+ },
312
+ {
313
+ "uid": "3666-88"
314
+ },
315
+ {
316
+ "uid": "3666-92"
317
+ },
318
+ {
319
+ "uid": "3666-96"
320
+ },
321
+ {
322
+ "uid": "3666-100"
323
+ }
324
+ ]
325
+ },
326
+ "3666-80": {
327
+ "id": "/src/useIsFetching.ts",
328
+ "moduleParts": {
329
+ "useIsFetching.cjs": "3666-81"
330
+ },
331
+ "imported": [
332
+ {
333
+ "uid": "3666-113"
334
+ },
335
+ {
336
+ "uid": "3666-76"
337
+ }
338
+ ],
339
+ "importedBy": [
340
+ {
341
+ "uid": "3666-60"
342
+ }
343
+ ]
344
+ },
345
+ "3666-84": {
346
+ "id": "/src/createInfiniteQuery.ts",
347
+ "moduleParts": {
348
+ "createInfiniteQuery.cjs": "3666-85"
349
+ },
350
+ "imported": [
351
+ {
352
+ "uid": "3666-111"
353
+ },
354
+ {
355
+ "uid": "3666-100"
356
+ },
357
+ {
358
+ "uid": "3666-113"
359
+ }
360
+ ],
361
+ "importedBy": [
362
+ {
363
+ "uid": "3666-60"
364
+ }
365
+ ]
366
+ },
367
+ "3666-88": {
368
+ "id": "/src/createMutation.ts",
369
+ "moduleParts": {
370
+ "createMutation.cjs": "3666-89"
371
+ },
372
+ "imported": [
373
+ {
374
+ "uid": "3666-111"
375
+ },
376
+ {
377
+ "uid": "3666-76"
378
+ },
379
+ {
380
+ "uid": "3666-113"
381
+ },
382
+ {
383
+ "uid": "3666-115"
384
+ },
385
+ {
386
+ "uid": "3666-109"
387
+ }
388
+ ],
389
+ "importedBy": [
390
+ {
391
+ "uid": "3666-60"
392
+ }
393
+ ]
394
+ },
395
+ "3666-92": {
396
+ "id": "/src/useIsMutating.ts",
397
+ "moduleParts": {
398
+ "useIsMutating.cjs": "3666-93"
399
+ },
400
+ "imported": [
401
+ {
402
+ "uid": "3666-76"
403
+ },
404
+ {
405
+ "uid": "3666-113"
406
+ }
407
+ ],
408
+ "importedBy": [
409
+ {
410
+ "uid": "3666-60"
411
+ }
412
+ ]
413
+ },
414
+ "3666-96": {
415
+ "id": "/src/createQueries.ts",
416
+ "moduleParts": {
417
+ "createQueries.cjs": "3666-97"
418
+ },
419
+ "imported": [
420
+ {
421
+ "uid": "3666-111"
422
+ },
423
+ {
424
+ "uid": "3666-113"
425
+ },
426
+ {
427
+ "uid": "3666-115"
428
+ },
429
+ {
430
+ "uid": "3666-76"
431
+ }
432
+ ],
433
+ "importedBy": [
434
+ {
435
+ "uid": "3666-60"
436
+ }
437
+ ]
438
+ },
439
+ "3666-100": {
440
+ "id": "/src/createBaseQuery.ts",
441
+ "moduleParts": {
442
+ "createBaseQuery.cjs": "3666-101"
443
+ },
444
+ "imported": [
445
+ {
446
+ "uid": "3666-111"
447
+ },
448
+ {
449
+ "uid": "3666-114"
450
+ },
451
+ {
452
+ "uid": "3666-113"
453
+ },
454
+ {
455
+ "uid": "3666-115"
456
+ },
457
+ {
458
+ "uid": "3666-76"
459
+ },
460
+ {
461
+ "uid": "3666-109"
462
+ }
463
+ ],
464
+ "importedBy": [
465
+ {
466
+ "uid": "3666-72"
467
+ },
468
+ {
469
+ "uid": "3666-84"
470
+ }
471
+ ]
472
+ },
473
+ "3666-109": {
474
+ "id": "/src/utils.ts",
475
+ "moduleParts": {
476
+ "utils.cjs": "3666-110"
477
+ },
478
+ "imported": [],
479
+ "importedBy": [
480
+ {
481
+ "uid": "3666-88"
482
+ },
483
+ {
484
+ "uid": "3666-100"
485
+ }
486
+ ]
487
+ },
488
+ "3666-111": {
489
+ "id": "@tanstack/query-core",
490
+ "moduleParts": {},
491
+ "imported": [],
492
+ "importedBy": [
493
+ {
494
+ "uid": "3666-60"
495
+ },
496
+ {
497
+ "uid": "3666-64"
498
+ },
499
+ {
500
+ "uid": "3666-68"
501
+ },
502
+ {
503
+ "uid": "3666-72"
504
+ },
505
+ {
506
+ "uid": "3666-84"
507
+ },
508
+ {
509
+ "uid": "3666-88"
510
+ },
511
+ {
512
+ "uid": "3666-96"
513
+ },
514
+ {
515
+ "uid": "3666-100"
516
+ }
517
+ ],
518
+ "isExternal": true
519
+ },
520
+ "3666-112": {
521
+ "id": "/src/types.ts",
522
+ "moduleParts": {},
523
+ "imported": [],
524
+ "importedBy": [
525
+ {
526
+ "uid": "3666-60"
527
+ }
528
+ ]
529
+ },
530
+ "3666-113": {
531
+ "id": "solid-js",
532
+ "moduleParts": {},
533
+ "imported": [],
534
+ "importedBy": [
535
+ {
536
+ "uid": "3666-64"
537
+ },
538
+ {
539
+ "uid": "3666-72"
540
+ },
541
+ {
542
+ "uid": "3666-76"
543
+ },
544
+ {
545
+ "uid": "3666-80"
546
+ },
547
+ {
548
+ "uid": "3666-84"
549
+ },
550
+ {
551
+ "uid": "3666-88"
552
+ },
553
+ {
554
+ "uid": "3666-92"
555
+ },
556
+ {
557
+ "uid": "3666-96"
558
+ },
559
+ {
560
+ "uid": "3666-100"
561
+ }
562
+ ],
563
+ "isExternal": true
564
+ },
565
+ "3666-114": {
566
+ "id": "solid-js/web",
567
+ "moduleParts": {},
568
+ "imported": [],
569
+ "importedBy": [
570
+ {
571
+ "uid": "3666-76"
572
+ },
573
+ {
574
+ "uid": "3666-100"
575
+ }
576
+ ],
577
+ "isExternal": true
578
+ },
579
+ "3666-115": {
580
+ "id": "solid-js/store",
581
+ "moduleParts": {},
582
+ "imported": [],
583
+ "importedBy": [
584
+ {
585
+ "uid": "3666-88"
586
+ },
587
+ {
588
+ "uid": "3666-96"
589
+ },
590
+ {
591
+ "uid": "3666-100"
592
+ }
593
+ ],
594
+ "isExternal": true
595
+ }
596
+ },
597
+ "env": {
598
+ "rollup": "3.23.0"
599
+ },
600
+ "options": {
601
+ "gzip": true,
602
+ "brotli": false,
603
+ "sourcemap": false
604
+ }
605
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tanstack/solid-query",
3
- "version": "5.0.0-alpha.51",
3
+ "version": "5.0.0-alpha.53",
4
4
  "description": "Primitives for managing, caching and syncing asynchronous and remote data in Solid",
5
5
  "author": "tannerlinsley",
6
6
  "license": "MIT",
@@ -11,20 +11,15 @@
11
11
  "url": "https://github.com/sponsors/tannerlinsley"
12
12
  },
13
13
  "type": "module",
14
- "types": "build/types/index.d.ts",
14
+ "types": "build/lib/index.d.ts",
15
15
  "main": "build/lib/index.cjs",
16
16
  "module": "build/lib/index.js",
17
17
  "exports": {
18
18
  ".": {
19
- "types": "./build/types/index.d.ts",
20
- "solid": "./build/source/index.js",
19
+ "types": "./build/lib/index.d.ts",
20
+ "solid": "./build/lib/index.js",
21
21
  "import": "./build/lib/index.js",
22
- "browser": {
23
- "import": "./build/lib/index.js",
24
- "require": "./build/lib/index.cjs"
25
- },
26
22
  "require": "./build/lib/index.cjs",
27
- "node": "./build/lib/index.cjs",
28
23
  "default": "./build/lib/index.cjs"
29
24
  },
30
25
  "./package.json": "./package.json"
@@ -33,10 +28,7 @@
33
28
  "./src/setBatchUpdatesFn.ts"
34
29
  ],
35
30
  "files": [
36
- "build/esm/*",
37
- "build/cjs/*",
38
- "build/source/*",
39
- "build/types/*",
31
+ "build",
40
32
  "src"
41
33
  ],
42
34
  "dependencies": {
@@ -56,6 +48,6 @@
56
48
  "test:lib:dev": "pnpm run test:lib --watch",
57
49
  "build": "pnpm build:rollup && pnpm build:types",
58
50
  "build:rollup": "rollup --config rollup.config.js",
59
- "build:types": "tsc"
51
+ "build:types": "tsc --emitDeclarationOnly"
60
52
  }
61
53
  }
@@ -1,6 +0,0 @@
1
- import { QueryClient as QueryCoreClient } from '@tanstack/query-core';
2
- export class QueryClient extends QueryCoreClient {
3
- constructor(config = {}) {
4
- super(config);
5
- }
6
- }
@@ -1,21 +0,0 @@
1
- import { createContext, useContext, onMount, onCleanup } from 'solid-js';
2
- export const QueryClientContext = createContext(undefined);
3
- export const useQueryClient = (queryClient) => {
4
- const client = useContext(QueryClientContext);
5
- if (queryClient) {
6
- return queryClient;
7
- }
8
- if (!client) {
9
- throw new Error('No QueryClient set, use QueryClientProvider to set one');
10
- }
11
- return client;
12
- };
13
- export const QueryClientProvider = (props) => {
14
- onMount(() => {
15
- props.client.mount();
16
- });
17
- onCleanup(() => props.client.unmount());
18
- return (<QueryClientContext.Provider value={props.client}>
19
- {props.children}
20
- </QueryClientContext.Provider>);
21
- };