@tanstack/solid-query 5.0.0-alpha.50 → 5.0.0-alpha.52

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