@stryke/trpc-next 0.5.25 → 0.5.33
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.
- package/CHANGELOG.md +353 -0
- package/README.md +18 -9
- package/dist/action-handler-BZllk1iG.d.cts +25 -0
- package/dist/action-handler-BZllk1iG.d.cts.map +1 -0
- package/dist/action-handler-CVqV5Q9h.mjs +2 -0
- package/dist/action-handler-CVqV5Q9h.mjs.map +1 -0
- package/dist/action-handler-Dbtdj5f6.cjs +1 -0
- package/dist/action-handler-pGD2y48d.d.mts +25 -0
- package/dist/action-handler-pGD2y48d.d.mts.map +1 -0
- package/dist/action-handler.cjs +1 -21
- package/dist/action-handler.d.cts +2 -0
- package/dist/action-handler.d.mts +2 -0
- package/dist/action-handler.mjs +1 -1
- package/dist/base-CqjEnYV3.d.mts +6 -0
- package/dist/base-CqjEnYV3.d.mts.map +1 -0
- package/dist/base-DPgDjFaD.d.cts +6 -0
- package/dist/base-DPgDjFaD.d.cts.map +1 -0
- package/dist/chunk-Bmb41Sf3.cjs +1 -0
- package/dist/client-BGUjlQRG.d.mts +24 -0
- package/dist/client-BGUjlQRG.d.mts.map +1 -0
- package/dist/client-Bc3EmLXQ.cjs +1 -0
- package/dist/client-C6P7IzrW.d.cts +23 -0
- package/dist/client-C6P7IzrW.d.cts.map +1 -0
- package/dist/client-DipC5G1s.d.cts +24 -0
- package/dist/client-DipC5G1s.d.cts.map +1 -0
- package/dist/client-Dx_Z33kd.mjs +2 -0
- package/dist/client-Dx_Z33kd.mjs.map +1 -0
- package/dist/client-Smqp-czo.mjs +2 -0
- package/dist/client-Smqp-czo.mjs.map +1 -0
- package/dist/client-UQMUpxKX.cjs +1 -0
- package/dist/client-og56kPLb.d.mts +23 -0
- package/dist/client-og56kPLb.d.mts.map +1 -0
- package/dist/client.cjs +1 -39
- package/dist/client.d.cts +2 -0
- package/dist/client.d.mts +2 -0
- package/dist/client.mjs +1 -1
- package/dist/constructors-CZJirtLD.d.mts +60 -0
- package/dist/constructors-CZJirtLD.d.mts.map +1 -0
- package/dist/constructors-Ci0KIdpT.cjs +1 -0
- package/dist/constructors-D8jm55QX.d.cts +60 -0
- package/dist/constructors-D8jm55QX.d.cts.map +1 -0
- package/dist/constructors-DS4_VfMY.mjs +2 -0
- package/dist/constructors-DS4_VfMY.mjs.map +1 -0
- package/dist/generator-BMjBxqwW.cjs +1 -0
- package/dist/generator-BUKT1462.mjs +2 -0
- package/dist/generator-BUKT1462.mjs.map +1 -0
- package/dist/index.cjs +1 -82
- package/dist/index.d.cts +8 -0
- package/dist/index.d.mts +8 -0
- package/dist/index.mjs +1 -1
- package/dist/rules-BQG_li3s.d.mts +126 -0
- package/dist/rules-BQG_li3s.d.mts.map +1 -0
- package/dist/rules-Dezfml9a.d.cts +126 -0
- package/dist/rules-Dezfml9a.d.cts.map +1 -0
- package/dist/rules-Pim5ay7H.mjs +2 -0
- package/dist/rules-Pim5ay7H.mjs.map +1 -0
- package/dist/rules-X9N_B4Ng.cjs +1 -0
- package/dist/server-BRyvuuag.d.mts +30 -0
- package/dist/server-BRyvuuag.d.mts.map +1 -0
- package/dist/server-ByfRZWsB.mjs +2 -0
- package/dist/server-ByfRZWsB.mjs.map +1 -0
- package/dist/server-C9MWPumf.d.mts +40 -0
- package/dist/server-C9MWPumf.d.mts.map +1 -0
- package/dist/server-CURNRsUM.cjs +1 -0
- package/dist/server-CtRC7R6W.mjs +2 -0
- package/dist/server-CtRC7R6W.mjs.map +1 -0
- package/dist/server-DX1_jjPM.cjs +1 -0
- package/dist/server-D_Zne9Uo.d.cts +40 -0
- package/dist/server-D_Zne9Uo.d.cts.map +1 -0
- package/dist/server-eqo44H34.d.cts +29 -0
- package/dist/server-eqo44H34.d.cts.map +1 -0
- package/dist/server.cjs +1 -42
- package/dist/server.d.cts +2 -0
- package/dist/server.d.mts +2 -0
- package/dist/server.mjs +1 -1
- package/dist/shared-B2-fZV5o.cjs +1 -0
- package/dist/shared-BF016VSl.d.mts +17 -0
- package/dist/shared-BF016VSl.d.mts.map +1 -0
- package/dist/shared-C056xtsk.d.cts +17 -0
- package/dist/shared-C056xtsk.d.cts.map +1 -0
- package/dist/shared-onIZBajF.mjs +2 -0
- package/dist/shared-onIZBajF.mjs.map +1 -0
- package/dist/shared.cjs +1 -42
- package/dist/shared.d.cts +2 -0
- package/dist/shared.d.mts +2 -0
- package/dist/shared.mjs +1 -1
- package/dist/shield/constructors.cjs +1 -21
- package/dist/shield/constructors.d.cts +2 -0
- package/dist/shield/constructors.d.mts +2 -0
- package/dist/shield/constructors.mjs +1 -1
- package/dist/shield/generator.cjs +1 -31
- package/dist/shield/generator.d.cts +27 -0
- package/dist/shield/generator.d.cts.map +1 -0
- package/dist/shield/generator.d.mts +27 -0
- package/dist/shield/generator.d.mts.map +1 -0
- package/dist/shield/generator.mjs +1 -1
- package/dist/shield/index.cjs +1 -61
- package/dist/shield/index.d.cts +4 -0
- package/dist/shield/index.d.mts +4 -0
- package/dist/shield/index.mjs +1 -1
- package/dist/shield/rules.cjs +1 -135
- package/dist/shield/rules.d.cts +2 -0
- package/dist/shield/rules.d.mts +2 -0
- package/dist/shield/rules.mjs +1 -1
- package/dist/shield/shield.cjs +1 -24
- package/dist/shield/shield.d.cts +2 -0
- package/dist/shield/shield.d.mts +2 -0
- package/dist/shield/shield.mjs +1 -1
- package/dist/shield/types.cjs +0 -1
- package/dist/shield/types.d.cts +2 -0
- package/dist/shield/types.d.mts +2 -0
- package/dist/shield/utils.cjs +1 -33
- package/dist/shield/utils.d.cts +34 -0
- package/dist/shield/utils.d.cts.map +1 -0
- package/dist/shield/utils.d.mts +34 -0
- package/dist/shield/utils.d.mts.map +1 -0
- package/dist/shield/utils.mjs +1 -1
- package/dist/shield/validation.cjs +1 -45
- package/dist/shield/validation.d.cts +21 -0
- package/dist/shield/validation.d.cts.map +1 -0
- package/dist/shield/validation.d.mts +21 -0
- package/dist/shield/validation.d.mts.map +1 -0
- package/dist/shield/validation.mjs +1 -1
- package/dist/shield-C9tsUPil.d.cts +12 -0
- package/dist/shield-C9tsUPil.d.cts.map +1 -0
- package/dist/shield-Ccremha0.d.mts +12 -0
- package/dist/shield-Ccremha0.d.mts.map +1 -0
- package/dist/shield-H5KXWVOc.cjs +1 -0
- package/dist/shield-WlPQDud3.mjs +2 -0
- package/dist/shield-WlPQDud3.mjs.map +1 -0
- package/dist/tanstack-query/client.cjs +1 -44
- package/dist/tanstack-query/client.d.cts +2 -0
- package/dist/tanstack-query/client.d.mts +2 -0
- package/dist/tanstack-query/client.mjs +1 -1
- package/dist/tanstack-query/server.cjs +1 -42
- package/dist/tanstack-query/server.d.cts +2 -0
- package/dist/tanstack-query/server.d.mts +2 -0
- package/dist/tanstack-query/server.mjs +1 -1
- package/dist/types-BtaQZStA.d.cts +54 -0
- package/dist/types-BtaQZStA.d.cts.map +1 -0
- package/dist/types-C91Z3eq9.d.cts +24 -0
- package/dist/types-C91Z3eq9.d.cts.map +1 -0
- package/dist/types-CE6okwNh.d.mts +54 -0
- package/dist/types-CE6okwNh.d.mts.map +1 -0
- package/dist/types-Cw1lFrh8.d.mts +77 -0
- package/dist/types-Cw1lFrh8.d.mts.map +1 -0
- package/dist/types-DAOF6mF0.d.cts +77 -0
- package/dist/types-DAOF6mF0.d.cts.map +1 -0
- package/dist/types-Dph-RPXu.d.mts +24 -0
- package/dist/types-Dph-RPXu.d.mts.map +1 -0
- package/dist/types.cjs +0 -1
- package/dist/types.d.cts +2 -0
- package/dist/types.d.mts +2 -0
- package/dist/utils-EREuzpW1.mjs +2 -0
- package/dist/utils-EREuzpW1.mjs.map +1 -0
- package/dist/utils-ftoOfuuV.cjs +1 -0
- package/dist/validation-B_im4gA8.mjs +2 -0
- package/dist/validation-B_im4gA8.mjs.map +1 -0
- package/dist/validation-D-G5c6i-.cjs +1 -0
- package/package.json +72 -293
- package/dist/action-handler.d.ts +0 -17
- package/dist/client.d.ts +0 -16
- package/dist/index.d.ts +0 -15
- package/dist/server.d.ts +0 -37
- package/dist/shared.d.ts +0 -13
- package/dist/shield/constructors.d.ts +0 -54
- package/dist/shield/generator.d.ts +0 -14
- package/dist/shield/index.d.ts +0 -3
- package/dist/shield/rules.d.ts +0 -121
- package/dist/shield/shield.d.ts +0 -6
- package/dist/shield/types.d.ts +0 -52
- package/dist/shield/utils.d.ts +0 -28
- package/dist/shield/validation.d.ts +0 -15
- package/dist/tanstack-query/client.d.ts +0 -16
- package/dist/tanstack-query/server.d.ts +0 -23
- package/dist/types.d.ts +0 -20
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,353 @@
|
|
|
1
|
+

|
|
2
|
+
|
|
3
|
+
# Changelog for Stryke - TRPC Next
|
|
4
|
+
|
|
5
|
+
## [0.5.32](https://github.com/storm-software/stryke/releases/tag/trpc-next%400.5.32) (12/07/2025)
|
|
6
|
+
|
|
7
|
+
### Updated Dependencies
|
|
8
|
+
|
|
9
|
+
- Updated **types** to **v0.10.19**
|
|
10
|
+
- Updated **path** to **v0.22.7**
|
|
11
|
+
- Updated **env** to **v0.20.33**
|
|
12
|
+
- Updated **url** to **v0.3.11**
|
|
13
|
+
|
|
14
|
+
## [0.5.31](https://github.com/storm-software/stryke/releases/tag/trpc-next%400.5.31) (12/07/2025)
|
|
15
|
+
|
|
16
|
+
### Updated Dependencies
|
|
17
|
+
|
|
18
|
+
- Updated **types** to **v0.10.18**
|
|
19
|
+
- Updated **path** to **v0.22.6**
|
|
20
|
+
- Updated **env** to **v0.20.32**
|
|
21
|
+
- Updated **url** to **v0.3.10**
|
|
22
|
+
|
|
23
|
+
## [0.5.30](https://github.com/storm-software/stryke/releases/tag/trpc-next%400.5.30) (12/07/2025)
|
|
24
|
+
|
|
25
|
+
### Miscellaneous
|
|
26
|
+
|
|
27
|
+
- **monorepo:** Format monorepo source files
|
|
28
|
+
([9428936](https://github.com/storm-software/stryke/commit/9428936))
|
|
29
|
+
|
|
30
|
+
### Updated Dependencies
|
|
31
|
+
|
|
32
|
+
- Updated **types** to **v0.10.17**
|
|
33
|
+
- Updated **path** to **v0.22.5**
|
|
34
|
+
- Updated **env** to **v0.20.31**
|
|
35
|
+
- Updated **url** to **v0.3.9**
|
|
36
|
+
|
|
37
|
+
## [0.5.29](https://github.com/storm-software/stryke/releases/tag/trpc-next%400.5.29) (12/06/2025)
|
|
38
|
+
|
|
39
|
+
### Bug Fixes
|
|
40
|
+
|
|
41
|
+
- **trpc-next:** Resolve issue bundling `tsx` files
|
|
42
|
+
([bc914aa](https://github.com/storm-software/stryke/commit/bc914aa))
|
|
43
|
+
- **monorepo:** Update `storm-ops` packages to resolve build issues
|
|
44
|
+
([ea2b179](https://github.com/storm-software/stryke/commit/ea2b179))
|
|
45
|
+
|
|
46
|
+
### Features
|
|
47
|
+
|
|
48
|
+
- **tools-nx:** Resolved issue inferring build command-line arguments for local
|
|
49
|
+
packages ([de00278](https://github.com/storm-software/stryke/commit/de00278))
|
|
50
|
+
|
|
51
|
+
### Updated Dependencies
|
|
52
|
+
|
|
53
|
+
- Updated **types** to **v0.10.16**
|
|
54
|
+
- Updated **path** to **v0.22.4**
|
|
55
|
+
- Updated **env** to **v0.20.30**
|
|
56
|
+
- Updated **url** to **v0.3.8**
|
|
57
|
+
|
|
58
|
+
## [0.5.28](https://github.com/storm-software/stryke/releases/tag/trpc-next%400.5.28) (12/06/2025)
|
|
59
|
+
|
|
60
|
+
### Updated Dependencies
|
|
61
|
+
|
|
62
|
+
- Updated **types** to **v0.10.15**
|
|
63
|
+
- Updated **path** to **v0.22.3**
|
|
64
|
+
- Updated **env** to **v0.20.29**
|
|
65
|
+
- Updated **url** to **v0.3.7**
|
|
66
|
+
|
|
67
|
+
## [0.5.27](https://github.com/storm-software/stryke/releases/tag/trpc-next%400.5.27) (12/05/2025)
|
|
68
|
+
|
|
69
|
+
### Updated Dependencies
|
|
70
|
+
|
|
71
|
+
- Updated **path** to **v0.22.2**
|
|
72
|
+
- Updated **env** to **v0.20.28**
|
|
73
|
+
- Updated **url** to **v0.3.6**
|
|
74
|
+
|
|
75
|
+
## [0.5.26](https://github.com/storm-software/stryke/releases/tag/trpc-next%400.5.26) (12/05/2025)
|
|
76
|
+
|
|
77
|
+
### Features
|
|
78
|
+
|
|
79
|
+
- **monorepo:** Update repository to use `tsdown` to build/bundle packages
|
|
80
|
+
([8ceb909](https://github.com/storm-software/stryke/commit/8ceb909))
|
|
81
|
+
|
|
82
|
+
### Updated Dependencies
|
|
83
|
+
|
|
84
|
+
- Updated **types** to **v0.10.14**
|
|
85
|
+
- Updated **path** to **v0.22.1**
|
|
86
|
+
- Updated **env** to **v0.20.27**
|
|
87
|
+
- Updated **url** to **v0.3.5**
|
|
88
|
+
|
|
89
|
+
## [0.5.25](https://github.com/storm-software/stryke/releases/tag/trpc-next%400.5.25) (12/01/2025)
|
|
90
|
+
|
|
91
|
+
### Updated Dependencies
|
|
92
|
+
|
|
93
|
+
- Updated **types** to **v0.10.13**
|
|
94
|
+
- Updated **path** to **v0.22.0**
|
|
95
|
+
- Updated **env** to **v0.20.26**
|
|
96
|
+
- Updated **url** to **v0.3.4**
|
|
97
|
+
|
|
98
|
+
## [0.5.24](https://github.com/storm-software/stryke/releases/tag/trpc-next%400.5.24) (11/30/2025)
|
|
99
|
+
|
|
100
|
+
### Updated Dependencies
|
|
101
|
+
|
|
102
|
+
- Updated **types** to **v0.10.12**
|
|
103
|
+
- Updated **path** to **v0.21.6**
|
|
104
|
+
- Updated **env** to **v0.20.25**
|
|
105
|
+
- Updated **url** to **v0.3.3**
|
|
106
|
+
|
|
107
|
+
## [0.5.23](https://github.com/storm-software/stryke/releases/tag/trpc-next%400.5.23) (11/30/2025)
|
|
108
|
+
|
|
109
|
+
### Updated Dependencies
|
|
110
|
+
|
|
111
|
+
- Updated **types** to **v0.10.11**
|
|
112
|
+
- Updated **path** to **v0.21.5**
|
|
113
|
+
- Updated **env** to **v0.20.24**
|
|
114
|
+
- Updated **url** to **v0.3.2**
|
|
115
|
+
|
|
116
|
+
## [0.5.22](https://github.com/storm-software/stryke/releases/tag/trpc-next%400.5.22) (11/30/2025)
|
|
117
|
+
|
|
118
|
+
### Updated Dependencies
|
|
119
|
+
|
|
120
|
+
- Updated **types** to **v0.10.10**
|
|
121
|
+
- Updated **path** to **v0.21.4**
|
|
122
|
+
- Updated **env** to **v0.20.23**
|
|
123
|
+
- Updated **url** to **v0.3.1**
|
|
124
|
+
|
|
125
|
+
## [0.5.21](https://github.com/storm-software/stryke/releases/tag/trpc-next%400.5.21) (11/30/2025)
|
|
126
|
+
|
|
127
|
+
### Updated Dependencies
|
|
128
|
+
|
|
129
|
+
- Updated **types** to **v0.10.9**
|
|
130
|
+
- Updated **path** to **v0.21.3**
|
|
131
|
+
- Updated **env** to **v0.20.22**
|
|
132
|
+
- Updated **url** to **v0.3.0**
|
|
133
|
+
|
|
134
|
+
## [0.5.20](https://github.com/storm-software/stryke/releases/tag/trpc-next%400.5.20) (11/24/2025)
|
|
135
|
+
|
|
136
|
+
### Updated Dependencies
|
|
137
|
+
|
|
138
|
+
- Updated **types** to **v0.10.8**
|
|
139
|
+
- Updated **path** to **v0.21.2**
|
|
140
|
+
- Updated **env** to **v0.20.21**
|
|
141
|
+
- Updated **url** to **v0.2.13**
|
|
142
|
+
|
|
143
|
+
## [0.5.19](https://github.com/storm-software/stryke/releases/tag/trpc-next%400.5.19) (11/21/2025)
|
|
144
|
+
|
|
145
|
+
### Updated Dependencies
|
|
146
|
+
|
|
147
|
+
- Updated **types** to **v0.10.7**
|
|
148
|
+
- Updated **path** to **v0.21.1**
|
|
149
|
+
- Updated **env** to **v0.20.20**
|
|
150
|
+
- Updated **url** to **v0.2.12**
|
|
151
|
+
|
|
152
|
+
## [0.5.18](https://github.com/storm-software/stryke/releases/tag/trpc-next%400.5.18) (11/21/2025)
|
|
153
|
+
|
|
154
|
+
### Updated Dependencies
|
|
155
|
+
|
|
156
|
+
- Updated **types** to **v0.10.6**
|
|
157
|
+
- Updated **path** to **v0.21.0**
|
|
158
|
+
- Updated **env** to **v0.20.19**
|
|
159
|
+
- Updated **url** to **v0.2.11**
|
|
160
|
+
|
|
161
|
+
## [0.5.17](https://github.com/storm-software/stryke/releases/tag/trpc-next%400.5.17) (11/21/2025)
|
|
162
|
+
|
|
163
|
+
### Updated Dependencies
|
|
164
|
+
|
|
165
|
+
- Updated **env** to **v0.20.18**
|
|
166
|
+
|
|
167
|
+
## [0.5.16](https://github.com/storm-software/stryke/releases/tag/trpc-next%400.5.16) (11/21/2025)
|
|
168
|
+
|
|
169
|
+
### Updated Dependencies
|
|
170
|
+
|
|
171
|
+
- Updated **types** to **v0.10.5**
|
|
172
|
+
- Updated **path** to **v0.20.0**
|
|
173
|
+
- Updated **env** to **v0.20.17**
|
|
174
|
+
- Updated **url** to **v0.2.10**
|
|
175
|
+
|
|
176
|
+
## [0.5.15](https://github.com/storm-software/stryke/releases/tag/trpc-next%400.5.15) (11/21/2025)
|
|
177
|
+
|
|
178
|
+
### Updated Dependencies
|
|
179
|
+
|
|
180
|
+
- Updated **types** to **v0.10.4**
|
|
181
|
+
- Updated **path** to **v0.19.4**
|
|
182
|
+
- Updated **env** to **v0.20.16**
|
|
183
|
+
- Updated **url** to **v0.2.9**
|
|
184
|
+
|
|
185
|
+
## [0.5.14](https://github.com/storm-software/stryke/releases/tag/trpc-next%400.5.14) (11/21/2025)
|
|
186
|
+
|
|
187
|
+
### Updated Dependencies
|
|
188
|
+
|
|
189
|
+
- Updated **types** to **v0.10.3**
|
|
190
|
+
- Updated **path** to **v0.19.3**
|
|
191
|
+
- Updated **env** to **v0.20.15**
|
|
192
|
+
- Updated **url** to **v0.2.8**
|
|
193
|
+
|
|
194
|
+
## [0.5.13](https://github.com/storm-software/stryke/releases/tag/trpc-next%400.5.13) (11/16/2025)
|
|
195
|
+
|
|
196
|
+
### Updated Dependencies
|
|
197
|
+
|
|
198
|
+
- Updated **path** to **v0.19.2**
|
|
199
|
+
- Updated **env** to **v0.20.14**
|
|
200
|
+
- Updated **url** to **v0.2.7**
|
|
201
|
+
|
|
202
|
+
## [0.5.12](https://github.com/storm-software/stryke/releases/tag/trpc-next%400.5.12) (11/16/2025)
|
|
203
|
+
|
|
204
|
+
### Updated Dependencies
|
|
205
|
+
|
|
206
|
+
- Updated **types** to **v0.10.2**
|
|
207
|
+
- Updated **path** to **v0.19.1**
|
|
208
|
+
- Updated **env** to **v0.20.13**
|
|
209
|
+
- Updated **url** to **v0.2.6**
|
|
210
|
+
|
|
211
|
+
## [0.5.11](https://github.com/storm-software/stryke/releases/tag/trpc-next%400.5.11) (11/08/2025)
|
|
212
|
+
|
|
213
|
+
### Updated Dependencies
|
|
214
|
+
|
|
215
|
+
- Updated **types** to **v0.10.1**
|
|
216
|
+
- Updated **path** to **v0.19.0**
|
|
217
|
+
- Updated **env** to **v0.20.12**
|
|
218
|
+
- Updated **url** to **v0.2.5**
|
|
219
|
+
|
|
220
|
+
## [0.5.10](https://github.com/storm-software/stryke/releases/tag/trpc-next%400.5.10) (2025-10-30)
|
|
221
|
+
|
|
222
|
+
### Bug Fixes
|
|
223
|
+
|
|
224
|
+
- **trpc-next:** Resolve `type-check` failures
|
|
225
|
+
([ade17aa](https://github.com/storm-software/stryke/commit/ade17aa))
|
|
226
|
+
|
|
227
|
+

|
|
228
|
+
|
|
229
|
+
# Changelog for Stryke - TRPC Next
|
|
230
|
+
|
|
231
|
+
## [0.5.9](https://github.com/storm-software/stryke/releases/tag/trpc-next%400.5.9) (2025-08-04)
|
|
232
|
+
|
|
233
|
+
### Bug Fixes
|
|
234
|
+
|
|
235
|
+
- **monorepo:** Resolved repository type-check failures
|
|
236
|
+
([d196ace](https://github.com/storm-software/stryke/commit/d196ace))
|
|
237
|
+
|
|
238
|
+

|
|
239
|
+
|
|
240
|
+
# Changelog for Stryke - Trpc Next
|
|
241
|
+
|
|
242
|
+
## [0.5.8](https://github.com/storm-software/stryke/releases/tag/trpc-next%400.5.8) (2025-06-17)
|
|
243
|
+
|
|
244
|
+
### Miscellaneous
|
|
245
|
+
|
|
246
|
+
- **monorepo:** Reformat repository packages
|
|
247
|
+
|
|
248
|
+
## [0.5.7](https://github.com/storm-software/stryke/releases/tag/trpc-next%400.5.7) (2025-06-12)
|
|
249
|
+
|
|
250
|
+
### Miscellaneous
|
|
251
|
+
|
|
252
|
+
- **monorepo:** Reformat the repository's README markdown files
|
|
253
|
+
- **monorepo:** Run format script on repository
|
|
254
|
+
|
|
255
|
+
## [0.5.6](https://github.com/storm-software/stryke/releases/tag/trpc-next%400.5.6) (2025-05-12)
|
|
256
|
+
|
|
257
|
+
### Miscellaneous
|
|
258
|
+
|
|
259
|
+
- **monorepo:** Reformat monorepo source code
|
|
260
|
+
|
|
261
|
+
## [0.5.5](https://github.com/storm-software/stryke/releases/tag/trpc-next%400.5.5) (2025-04-10)
|
|
262
|
+
|
|
263
|
+
### Miscellaneous
|
|
264
|
+
|
|
265
|
+
- **monorepo:** Format the repository's files
|
|
266
|
+
([1384f3e](https://github.com/storm-software/stryke/commit/1384f3e))
|
|
267
|
+
|
|
268
|
+
## [0.5.4](https://github.com/storm-software/stryke/releases/tag/trpc-next%400.5.4) (2025-03-31)
|
|
269
|
+
|
|
270
|
+
### Miscellaneous
|
|
271
|
+
|
|
272
|
+
- **monorepo:** Upgrade monorepo dependencies
|
|
273
|
+
([7c5175f](https://github.com/storm-software/stryke/commit/7c5175f))
|
|
274
|
+
|
|
275
|
+
## [0.5.3](https://github.com/storm-software/stryke/releases/tag/trpc-next%400.5.3) (2025-03-31)
|
|
276
|
+
|
|
277
|
+
### Bug Fixes
|
|
278
|
+
|
|
279
|
+
- **prisma-trpc-generator:** Update generated NextJs code to invoke
|
|
280
|
+
`next/headers`
|
|
281
|
+
([8fb8353](https://github.com/storm-software/stryke/commit/8fb8353))
|
|
282
|
+
- **trpc-next:** Remove the `next/navigation` references from package
|
|
283
|
+
([67a617d](https://github.com/storm-software/stryke/commit/67a617d))
|
|
284
|
+
|
|
285
|
+
## [0.5.2](https://github.com/storm-software/stryke/releases/tag/trpc-next%400.5.2) (2025-03-30)
|
|
286
|
+
|
|
287
|
+
### Miscellaneous
|
|
288
|
+
|
|
289
|
+
- **monorepo:** Upgrade `trpc` package to use next release label
|
|
290
|
+
([5d3d3c0](https://github.com/storm-software/stryke/commit/5d3d3c0))
|
|
291
|
+
|
|
292
|
+
## [0.5.1](https://github.com/storm-software/stryke/releases/tag/trpc-next%400.5.1) (2025-03-30)
|
|
293
|
+
|
|
294
|
+
### Miscellaneous
|
|
295
|
+
|
|
296
|
+
- **trpc-next:** Clean up the typing formats
|
|
297
|
+
([10160be](https://github.com/storm-software/stryke/commit/10160be))
|
|
298
|
+
|
|
299
|
+
## [0.5.0](https://github.com/storm-software/stryke/releases/tag/trpc-next%400.5.0) (2025-03-30)
|
|
300
|
+
|
|
301
|
+
### Features
|
|
302
|
+
|
|
303
|
+
- **trpc-next:** Forked and made shield code compatible with Prisma v6
|
|
304
|
+
([3851e03](https://github.com/storm-software/stryke/commit/3851e03))
|
|
305
|
+
|
|
306
|
+
## [0.4.1](https://github.com/storm-software/stryke/releases/tag/trpc-next%400.4.1) (2025-03-30)
|
|
307
|
+
|
|
308
|
+
### Bug Fixes
|
|
309
|
+
|
|
310
|
+
- **prisma-trpc-generator:** Resolved issue with erased shield configuration
|
|
311
|
+
([090a657](https://github.com/storm-software/stryke/commit/090a657))
|
|
312
|
+
|
|
313
|
+
## [0.4.0](https://github.com/storm-software/stryke/releases/tag/trpc-next%400.4.0) (2025-03-30)
|
|
314
|
+
|
|
315
|
+
### Features
|
|
316
|
+
|
|
317
|
+
- **prisma-trpc-generator:** Attach `experimental_nextAppDirCaller` for NextJs
|
|
318
|
+
apps ([1703dd4](https://github.com/storm-software/stryke/commit/1703dd4))
|
|
319
|
+
|
|
320
|
+
## [0.3.0](https://github.com/storm-software/stryke/releases/tag/trpc-next%400.3.0) (2025-03-30)
|
|
321
|
+
|
|
322
|
+
### Features
|
|
323
|
+
|
|
324
|
+
- **prisma-trpc-generator:** Renamed the `useTRPCNext` option to `withNext`
|
|
325
|
+
([7315320](https://github.com/storm-software/stryke/commit/7315320))
|
|
326
|
+
|
|
327
|
+
## [0.2.1](https://github.com/storm-software/stryke/releases/tag/trpc-next%400.2.1) (2025-03-30)
|
|
328
|
+
|
|
329
|
+
### Bug Fixes
|
|
330
|
+
|
|
331
|
+
- **trpc-next:** Resolve issue with `BaseContext` typing
|
|
332
|
+
([2431d01](https://github.com/storm-software/stryke/commit/2431d01))
|
|
333
|
+
|
|
334
|
+
## [0.2.0](https://github.com/storm-software/stryke/releases/tag/trpc-next%400.2.0) (2025-03-30)
|
|
335
|
+
|
|
336
|
+
### Features
|
|
337
|
+
|
|
338
|
+
- **trpc-next:** Added `createTRPCServerActionHandler` helper function
|
|
339
|
+
([e5ad11e](https://github.com/storm-software/stryke/commit/e5ad11e))
|
|
340
|
+
|
|
341
|
+
## [0.1.1](https://github.com/storm-software/stryke/releases/tag/trpc-next%400.1.1) (2025-03-30)
|
|
342
|
+
|
|
343
|
+
### Miscellaneous
|
|
344
|
+
|
|
345
|
+
- **trpc-next:** Add comments and clean up context generation
|
|
346
|
+
([24522d7](https://github.com/storm-software/stryke/commit/24522d7))
|
|
347
|
+
|
|
348
|
+
## [0.1.0](https://github.com/storm-software/stryke/releases/tag/trpc-next%400.1.0) (2025-03-28)
|
|
349
|
+
|
|
350
|
+
### Features
|
|
351
|
+
|
|
352
|
+
- **trpc-next:** Initial check-in of the package
|
|
353
|
+
([3be43e0](https://github.com/storm-software/stryke/commit/3be43e0))
|
package/README.md
CHANGED
|
@@ -3,7 +3,13 @@
|
|
|
3
3
|
<!-- markdownlint-disable -->
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
<div align="center"
|
|
6
|
+
<div align="center">
|
|
7
|
+
<picture>
|
|
8
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://public.storm-cdn.com/storm-software/banner-1280x640-dark-optimized.gif">
|
|
9
|
+
<source media="(prefers-color-scheme: light)" srcset="https://public.storm-cdn.com/storm-software/banner-1280x640-light-optimized.gif">
|
|
10
|
+
<img src="https://public.storm-cdn.com/storm-software/banner-1280x640-dark-optimized.gif" width="100%" alt="Storm Software" />
|
|
11
|
+
</picture>
|
|
12
|
+
</div>
|
|
7
13
|
<br />
|
|
8
14
|
|
|
9
15
|
<div align="center">
|
|
@@ -16,13 +22,13 @@
|
|
|
16
22
|
</div>
|
|
17
23
|
|
|
18
24
|
<br />
|
|
19
|
-
This package is part of Storm Software's
|
|
25
|
+
This package is part of Storm Software's **💥 Stryke** monorepo. Stryke packages TypeScript utility packages with shared functionality common to many Storm Software applications.
|
|
20
26
|
|
|
21
27
|
<br />
|
|
22
28
|
|
|
23
29
|
<h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
|
|
24
30
|
|
|
25
|
-
[](https://prettier.io/) [](http://nx.dev/) [](https://nextjs.org/) [](http://commitizen.github.io/cz-cli/)  [](https://fumadocs.vercel.app/) 
|
|
26
32
|
|
|
27
33
|
> [!IMPORTANT] Important
|
|
28
34
|
> This repository, and the apps, libraries, and tools contained within, is still in it's initial development phase. As a result, bugs and issues are expected with it's usage. When the main development phase completes, a proper release will be performed, the packages will be available through NPM (and other distributions), and this message will be removed. However, in the meantime, please feel free to report any issues you may come across.
|
|
@@ -91,10 +97,10 @@ yarn add -D @stryke/trpc-next
|
|
|
91
97
|
|
|
92
98
|
## Reduced Package Size
|
|
93
99
|
|
|
94
|
-
This project uses [
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
100
|
+
This project uses [tsdown](https://tsdown.dev) to package the source code due to
|
|
101
|
+
its ability to remove unused code and ship smaller javascript files thanks to
|
|
102
|
+
code splitting. This helps to greatly reduce the size of the package and to make
|
|
103
|
+
it easier to use in other projects.
|
|
98
104
|
|
|
99
105
|
## Development
|
|
100
106
|
|
|
@@ -235,10 +241,13 @@ specification. Contributions of any kind welcome!
|
|
|
235
241
|
<br />
|
|
236
242
|
|
|
237
243
|
<hr />
|
|
238
|
-
<br />
|
|
239
244
|
|
|
240
245
|
<div align="center">
|
|
241
|
-
<
|
|
246
|
+
<picture>
|
|
247
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://public.storm-cdn.com/storm-software/banner-1280x320-dark-optimized.webp">
|
|
248
|
+
<source media="(prefers-color-scheme: light)" srcset="https://public.storm-cdn.com/storm-software/banner-1280x320-light-optimized.webp">
|
|
249
|
+
<img src="https://public.storm-cdn.com/storm-software/banner-1280x320-dark-optimized.webp" width="100%" alt="Storm Software" />
|
|
250
|
+
</picture>
|
|
242
251
|
</div>
|
|
243
252
|
<br />
|
|
244
253
|
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { t as MaybePromise } from "./base-DPgDjFaD.cjs";
|
|
2
|
+
import { t as BaseContext } from "./types-C91Z3eq9.cjs";
|
|
3
|
+
import * as _trpc_server0 from "@trpc/server";
|
|
4
|
+
import * as _trpc_next_app_dir_server0 from "@trpc/next/app-dir/server";
|
|
5
|
+
import { AnyRootTypes, RootConfig } from "@trpc/server/unstable-core-do-not-import";
|
|
6
|
+
import { ReadonlyRequestCookies } from "next/dist/server/web/spec-extension/adapters/request-cookies";
|
|
7
|
+
|
|
8
|
+
//#region src/action-handler.d.ts
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* This client invokes procedures directly on the server without fetching over HTTP.
|
|
12
|
+
*
|
|
13
|
+
* @param t - The tRPC instance
|
|
14
|
+
* @param createContext - An optional function to generate a context
|
|
15
|
+
*/
|
|
16
|
+
declare function createTRPCServerActionHandler<TInstance extends {
|
|
17
|
+
_config: RootConfig<AnyRootTypes>;
|
|
18
|
+
}, TContext extends BaseContext = BaseContext>(cookies: () => Promise<ReadonlyRequestCookies>, t: TInstance, createContext?: () => MaybePromise<TContext>): <TProc extends _trpc_server0.AnyProcedure>(proc: TProc) => _trpc_next_app_dir_server0.TRPCActionHandler<{
|
|
19
|
+
input: _trpc_server0.inferProcedureInput<TProc>;
|
|
20
|
+
output: _trpc_server0.inferProcedureOutput<TProc>;
|
|
21
|
+
errorShape: _trpc_server0.inferTRPCClientTypes<TInstance>["errorShape"];
|
|
22
|
+
}>;
|
|
23
|
+
//#endregion
|
|
24
|
+
export { createTRPCServerActionHandler as t };
|
|
25
|
+
//# sourceMappingURL=action-handler-BZllk1iG.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"action-handler-BZllk1iG.d.cts","names":[],"sources":["../src/action-handler.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;;;;AAoCA;;AAEa,iBAFG,6BAEH,CAAA,kBAAA;EAEM,OAAA,EAFN,UAEM,CAFK,YAEL,CAAA;CAAc,EAAA,iBAAd,WAAc,GAAA,WAAA,CAAA,CAAA,OAAA,EAAA,GAAA,GAEhB,OAFgB,CAER,sBAFQ,CAAA,EAAA,CAAA,EAG5B,SAH4B,EAAA,aAAA,CAAA,EAAA,GAAA,GAIV,YAJU,CAIG,QAJH,CAAA,CAAA,EAAA,CAAA,cAIE,aAAA,CAAyC,YAJ3C,CAAA,CAAA,IAAA,EAI2C,KAJ3C,EAAA,8BAI2C,iBAJ3C,CAAA;EAER,KAAA,mCAAA,MAAA,CAAA;EAAR,MAAA,oCAAA,MAAA,CAAA;EACZ,UAAA,oCAAA,UAAA,CAAA,CAAA,YAAA,CAAA;CAC+B,CAAA"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{experimental_createServerActionHandler as e}from"@trpc/next/app-dir/server";import t from"defu";function n(n,r,i=async()=>({})){return e(r,{createContext:async()=>t(await Promise.resolve(i()),{headers:{cookies:(await n()).toString()??``}})})}export{n as t};
|
|
2
|
+
//# sourceMappingURL=action-handler-CVqV5Q9h.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"action-handler-CVqV5Q9h.mjs","names":[],"sources":["../src/action-handler.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Stryke\n\n This code was released as part of the Stryke project. Stryke\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/stryke.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/stryke\n Documentation: https://docs.stormsoftware.com/projects/stryke\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\n/* eslint-disable camelcase */\n\nimport type { MaybePromise } from \"@stryke/types\";\nimport { experimental_createServerActionHandler } from \"@trpc/next/app-dir/server\";\nimport type {\n AnyRootTypes,\n RootConfig\n} from \"@trpc/server/unstable-core-do-not-import\";\nimport defu from \"defu\";\nimport type { ReadonlyRequestCookies } from \"next/dist/server/web/spec-extension/adapters/request-cookies\";\nimport type { BaseContext } from \"./types\";\n\n/**\n * This client invokes procedures directly on the server without fetching over HTTP.\n *\n * @param t - The tRPC instance\n * @param createContext - An optional function to generate a context\n */\nexport function createTRPCServerActionHandler<\n TInstance extends {\n _config: RootConfig<AnyRootTypes>;\n },\n TContext extends BaseContext = BaseContext\n>(\n cookies: () => Promise<ReadonlyRequestCookies>,\n t: TInstance,\n createContext: () => MaybePromise<TContext> = async () => ({}) as TContext\n) {\n return experimental_createServerActionHandler(t, {\n createContext: async () => {\n const context = await Promise.resolve(createContext());\n\n return defu(context, {\n headers: {\n // Pass the cookie header to the API\n cookies: (await cookies()).toString() ?? \"\"\n }\n });\n }\n });\n}\n"],"mappings":"uGAoCA,SAAgB,EAMd,EACA,EACA,EAA8C,UAAa,EAAE,EAC7D,CACA,OAAO,EAAuC,EAAG,CAC/C,cAAe,SAGN,EAFS,MAAM,QAAQ,QAAQ,GAAe,CAAC,CAEjC,CACnB,QAAS,CAEP,SAAU,MAAM,GAAS,EAAE,UAAU,EAAI,GAC1C,CACF,CAAC,CAEL,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require(`./chunk-Bmb41Sf3.cjs`);let t=require(`@trpc/next/app-dir/server`),n=require(`defu`);n=e.t(n);function r(e,r,i=async()=>({})){return(0,t.experimental_createServerActionHandler)(r,{createContext:async()=>(0,n.default)(await Promise.resolve(i()),{headers:{cookies:(await e()).toString()??``}})})}Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return r}});
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { t as MaybePromise } from "./base-CqjEnYV3.mjs";
|
|
2
|
+
import { t as BaseContext } from "./types-Dph-RPXu.mjs";
|
|
3
|
+
import * as _trpc_next_app_dir_server0 from "@trpc/next/app-dir/server";
|
|
4
|
+
import * as _trpc_server0 from "@trpc/server";
|
|
5
|
+
import { AnyRootTypes, RootConfig } from "@trpc/server/unstable-core-do-not-import";
|
|
6
|
+
import { ReadonlyRequestCookies } from "next/dist/server/web/spec-extension/adapters/request-cookies";
|
|
7
|
+
|
|
8
|
+
//#region src/action-handler.d.ts
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* This client invokes procedures directly on the server without fetching over HTTP.
|
|
12
|
+
*
|
|
13
|
+
* @param t - The tRPC instance
|
|
14
|
+
* @param createContext - An optional function to generate a context
|
|
15
|
+
*/
|
|
16
|
+
declare function createTRPCServerActionHandler<TInstance extends {
|
|
17
|
+
_config: RootConfig<AnyRootTypes>;
|
|
18
|
+
}, TContext extends BaseContext = BaseContext>(cookies: () => Promise<ReadonlyRequestCookies>, t: TInstance, createContext?: () => MaybePromise<TContext>): <TProc extends _trpc_server0.AnyProcedure>(proc: TProc) => _trpc_next_app_dir_server0.TRPCActionHandler<{
|
|
19
|
+
input: _trpc_server0.inferProcedureInput<TProc>;
|
|
20
|
+
output: _trpc_server0.inferProcedureOutput<TProc>;
|
|
21
|
+
errorShape: _trpc_server0.inferTRPCClientTypes<TInstance>["errorShape"];
|
|
22
|
+
}>;
|
|
23
|
+
//#endregion
|
|
24
|
+
export { createTRPCServerActionHandler as t };
|
|
25
|
+
//# sourceMappingURL=action-handler-pGD2y48d.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"action-handler-pGD2y48d.d.mts","names":[],"sources":["../src/action-handler.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;;;;AAoCA;;AAEa,iBAFG,6BAEH,CAAA,kBAAA;EAEM,OAAA,EAFN,UAEM,CAFK,YAEL,CAAA;CAAc,EAAA,iBAAd,WAAc,GAAA,WAAA,CAAA,CAAA,OAAA,EAAA,GAAA,GAEhB,OAFgB,CAER,sBAFQ,CAAA,EAAA,CAAA,EAG5B,SAH4B,EAAA,aAAA,CAAA,EAAA,GAAA,GAIV,YAJU,CAIG,QAJH,CAAA,CAAA,EAAA,CAAA,cAIE,aAAA,CAAyC,YAJ3C,CAAA,CAAA,IAAA,EAI2C,KAJ3C,EAAA,8BAI2C,iBAJ3C,CAAA;EAER,KAAA,mCAAA,MAAA,CAAA;EAAR,MAAA,oCAAA,MAAA,CAAA;EACZ,UAAA,oCAAA,UAAA,CAAA,CAAA,YAAA,CAAA;CAC+B,CAAA"}
|
package/dist/action-handler.cjs
CHANGED
|
@@ -1,21 +1 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.createTRPCServerActionHandler = createTRPCServerActionHandler;
|
|
7
|
-
var _server = require("@trpc/next/app-dir/server");
|
|
8
|
-
var _defu = _interopRequireDefault(require("defu"));
|
|
9
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
10
|
-
function createTRPCServerActionHandler(e, t, o = async () => ({})) {
|
|
11
|
-
return (0, _server.experimental_createServerActionHandler)(t, {
|
|
12
|
-
createContext: async () => {
|
|
13
|
-
const r = await Promise.resolve(o());
|
|
14
|
-
return (0, _defu.default)(r, {
|
|
15
|
-
headers: {
|
|
16
|
-
cookies: (await e()).toString() ?? ""
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
});
|
|
21
|
-
}
|
|
1
|
+
const e=require(`./action-handler-Dbtdj5f6.cjs`);exports.createTRPCServerActionHandler=e.t;
|
package/dist/action-handler.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{t as e}from"./action-handler-CVqV5Q9h.mjs";export{e as createTRPCServerActionHandler};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base-CqjEnYV3.d.mts","names":[],"sources":["../../types/src/base.ts"],"sourcesContent":[],"mappings":";;KA4KY,kBAAkB,IAAI,QAAQ"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base-DPgDjFaD.d.cts","names":[],"sources":["../../types/src/base.ts"],"sourcesContent":[],"mappings":";;KA4KY,kBAAkB,IAAI,QAAQ"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},s=(n,r,a)=>(a=n==null?{}:e(i(n)),o(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return s}});
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { t as StormURLInterface } from "./types-Cw1lFrh8.mjs";
|
|
2
|
+
import { QueryClient } from "@tanstack/react-query";
|
|
3
|
+
import * as _trpc_tanstack_react_query0 from "@trpc/tanstack-react-query";
|
|
4
|
+
import * as react0 from "react";
|
|
5
|
+
import { AnyTRPCRouter } from "@trpc/server";
|
|
6
|
+
|
|
7
|
+
//#region src/tanstack-query/client.d.ts
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Create a TRPC Tanstack Query client.
|
|
11
|
+
*
|
|
12
|
+
* @returns The TRPC Tanstack Query client
|
|
13
|
+
*/
|
|
14
|
+
declare function createTRPCTanstackQueryClient<TRouter extends AnyTRPCRouter>(baseUrl: string | StormURLInterface, queryClient: QueryClient): {
|
|
15
|
+
useTRPCTanstackQuery: () => _trpc_tanstack_react_query0.TRPCOptionsProxy<TRouter, {
|
|
16
|
+
keyPrefix: false;
|
|
17
|
+
}>;
|
|
18
|
+
TRPCTanstackQueryProvider: (props: {
|
|
19
|
+
children: React.ReactNode;
|
|
20
|
+
}) => react0.JSX.Element;
|
|
21
|
+
};
|
|
22
|
+
//#endregion
|
|
23
|
+
export { createTRPCTanstackQueryClient as t };
|
|
24
|
+
//# sourceMappingURL=client-BGUjlQRG.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client-BGUjlQRG.d.mts","names":[],"sources":["../src/tanstack-query/client.tsx"],"sourcesContent":[],"mappings":";;;;;;;;;;;;AAuCA;AAA8D,iBAA9C,6BAA8C,CAAA,gBAAA,aAAA,CAAA,CAAA,OAAA,EAAA,MAAA,GAC1C,iBAD0C,EAAA,WAAA,EAE/C,WAF+C,CAAA,EAAA;EAC1C,oBAAA,EAAA,GAAA,+CAAA,QAAA,EAAA;IACL,SAAA,EAAA,KAAA;;;IAM0C,QAAA,EAAN,KAAA,CAAM,SAAA;EAAW,CAAA,EAAA,GAAA,MAAA,CAAA,GAAA,CAAA,OAAA;CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require(`./chunk-Bmb41Sf3.cjs`),t=require(`./shared-B2-fZV5o.cjs`);let n=require(`@trpc/client`),r=require(`@tanstack/react-query`),i=require(`@trpc/tanstack-react-query`),a=require(`react`),o=require(`react/jsx-runtime`);const s=(e=process.env)=>!!(e.STORM_CI||e.CI||e.CONTINUOUS_INTEGRATION||e.BUILD_NUMBER||e.RUN_ID||e.AGOLA_GIT_REF||e.AC_APPCIRCLE||e.APPVEYOR||e.CODEBUILD||e.TF_BUILD||e.bamboo_planKey||e.BITBUCKET_COMMIT||e.BITRISE_IO||e.BUDDY_WORKSPACE_ID||e.BUILDKITE||e.CIRCLECI||e.CIRRUS_CI||e.CF_BUILD_ID||e.CM_BUILD_ID||e.CI_NAME||e.DRONE||e.DSARI||e.EARTHLY_CI||e.EAS_BUILD||e.GERRIT_PROJECT||e.GITEA_ACTIONS||e.GITHUB_ACTIONS||e.GITLAB_CI||e.GOCD||e.BUILDER_OUTPUT||e.HARNESS_BUILD_ID||e.JENKINS_URL||e.BUILD_ID||e.LAYERCI||e.MAGNUM||e.NETLIFY||e.NEVERCODE||e.PROW_JOB_ID||e.RELEASE_BUILD_ID||e.RENDER||e.SAILCI||e.HUDSON||e.JENKINS_URL||e.BUILD_ID||e.SCREWDRIVER||e.SEMAPHORE||e.SOURCEHUT||e.STRIDER||e.TASK_ID||e.RUN_ID||e.TEAMCITY_VERSION||e.TRAVIS||e.VELA||e.NOW_BUILDER||e.APPCENTER_BUILD_ID||e.CI_XCODE_PROJECT||e.XCS),c=process?.platform||``,l=!!(process?.stdout&&process?.stdout.isTTY),u=!!process.env.DEBUG,d=process.env.STORM_MODE||process.env.NEXT_PUBLIC_VERCEL_ENV||process.env.NODE_ENV||`production`,f=[`stg`,`stage`,`staging`].includes(d?.toLowerCase());function p(e){return[`prd`,`prod`,`production`,`preprod`,`preproduction`,`uat`].includes(e?.toLowerCase()?.replace(/[\s\-_]/g,``))}const m=p(d);function h(e){return[`tst`,`test`,`testing`,`stg`,`stage`,`staging`,`qa`,`qualityassurance`].includes(e?.toLowerCase()?.replace(/[\s\-_]/g,``))}const g=h(d)||f||!!process.env.TEST;function _(e){return[`dev`,`development`,`int`,`integration`].includes(e?.toLowerCase()?.replace(/[\s\-_]/g,``))}const v=_(d)||u,y=!!process.env.MINIMAL||s()||g||!l,b=/^win/i.test(c),x=/^linux/i.test(c),S=/^darwin/i.test(c),C=!process.env.NO_COLOR&&(!!process.env.FORCE_COLOR||(l||b)&&process.env.TERM!==`dumb`||s()),w=(process?.versions?.node||``).replace(/^v/,``)||null,T=Number(w?.split(`.`)[0])||null;function E(e,s){let{TRPCProvider:c,useTRPC:l}=(0,i.createTRPCContext)();return{useTRPCTanstackQuery:l,TRPCTanstackQueryProvider:i=>{let{children:l}=i,[u]=(0,a.useState)(()=>(0,n.createTRPCClient)({links:[(0,n.loggerLink)({enabled:e=>v||e.direction===`down`&&e.result instanceof Error}),(0,n.httpBatchStreamLink)({transformer:t.r,url:t.n(e),headers:{"x-trpc-source":`react-query`}})]}));return(0,o.jsx)(c,{trpcClient:u,queryClient:s,children:(0,o.jsx)(r.QueryClientProvider,{client:s,children:l})})}}}Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return E}});
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { AnyTRPCRouter } from "@trpc/server";
|
|
2
|
+
import { ActionHandlerDef, TRPCActionHandler } from "@trpc/next/app-dir/server";
|
|
3
|
+
import * as _trpc_client0 from "@trpc/client";
|
|
4
|
+
import { UseTRPCActionResult } from "@trpc/next/app-dir/client";
|
|
5
|
+
|
|
6
|
+
//#region src/client.d.ts
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Creates a tRPC client for the Next.js app directory.
|
|
10
|
+
*
|
|
11
|
+
* @param baseUrl - The base URL for the tRPC server. This is typically the URL of the Next.js app.
|
|
12
|
+
* @returns A tRPC client that can be used to make requests to the server.
|
|
13
|
+
*/
|
|
14
|
+
declare function createTRPCClient<TRouter extends AnyTRPCRouter>(baseUrl: string): _trpc_client0.TRPCClient<TRouter>;
|
|
15
|
+
/**
|
|
16
|
+
* Creates a tRPC action hook for the Next.js app directory.
|
|
17
|
+
*
|
|
18
|
+
* @returns A function that can be used to create a tRPC action hook.
|
|
19
|
+
*/
|
|
20
|
+
declare function createUseAction<TRouter extends AnyTRPCRouter>(): <TDef extends ActionHandlerDef>(handler: TRPCActionHandler<TDef>, useActionOpts?: any) => UseTRPCActionResult<TDef>;
|
|
21
|
+
//#endregion
|
|
22
|
+
export { createUseAction as n, createTRPCClient as t };
|
|
23
|
+
//# sourceMappingURL=client-C6P7IzrW.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client-C6P7IzrW.d.cts","names":[],"sources":["../src/client.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;AA2CA;;;AACiB,iBADD,gBACC,CAAA,gBADgC,aAChC,CAAA,CAAA,OAAA,EAAA,MAAA,CAAA,EAAA,aAAA,CAAA,UAAA,CAAA,OAAA,CAAA;;AA8BjB;;;;AASa,iBATG,eASH,CAAA,gBATmC,aASnC,CAAA,CAAA,CAAA,EAAA,CAAA,aADiD,gBACjD,CAAA,CAAA,OAAA,EAAA,iBAAA,CAAkB,IAAlB,CAAA,EAAA,aAAA,CAAA,EAAA,GAAA,EAAA,GAEN,mBAFM,CAEc,IAFd,CAAA"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { t as StormURLInterface } from "./types-DAOF6mF0.cjs";
|
|
2
|
+
import { AnyTRPCRouter } from "@trpc/server";
|
|
3
|
+
import * as _trpc_tanstack_react_query0 from "@trpc/tanstack-react-query";
|
|
4
|
+
import { QueryClient } from "@tanstack/react-query";
|
|
5
|
+
import * as react0 from "react";
|
|
6
|
+
|
|
7
|
+
//#region src/tanstack-query/client.d.ts
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Create a TRPC Tanstack Query client.
|
|
11
|
+
*
|
|
12
|
+
* @returns The TRPC Tanstack Query client
|
|
13
|
+
*/
|
|
14
|
+
declare function createTRPCTanstackQueryClient<TRouter extends AnyTRPCRouter>(baseUrl: string | StormURLInterface, queryClient: QueryClient): {
|
|
15
|
+
useTRPCTanstackQuery: () => _trpc_tanstack_react_query0.TRPCOptionsProxy<TRouter, {
|
|
16
|
+
keyPrefix: false;
|
|
17
|
+
}>;
|
|
18
|
+
TRPCTanstackQueryProvider: (props: {
|
|
19
|
+
children: React.ReactNode;
|
|
20
|
+
}) => react0.JSX.Element;
|
|
21
|
+
};
|
|
22
|
+
//#endregion
|
|
23
|
+
export { createTRPCTanstackQueryClient as t };
|
|
24
|
+
//# sourceMappingURL=client-DipC5G1s.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client-DipC5G1s.d.cts","names":[],"sources":["../src/tanstack-query/client.tsx"],"sourcesContent":[],"mappings":";;;;;;;;;;;;AAuCA;AAA8D,iBAA9C,6BAA8C,CAAA,gBAAA,aAAA,CAAA,CAAA,OAAA,EAAA,MAAA,GAC1C,iBAD0C,EAAA,WAAA,EAE/C,WAF+C,CAAA,EAAA;EAC1C,oBAAA,EAAA,GAAA,+CAAA,QAAA,EAAA;IACL,SAAA,EAAA,KAAA;;;IAM0C,QAAA,EAAN,KAAA,CAAM,SAAA;EAAW,CAAA,EAAA,GAAA,MAAA,CAAA,GAAA,CAAA,OAAA;CAAA"}
|