@trpc/server 11.1.2 → 11.1.3-alpha-tmp-tsdown.23

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 (648) hide show
  1. package/adapters/aws-lambda/package.json +1 -0
  2. package/adapters/express/package.json +1 -0
  3. package/adapters/fastify/package.json +1 -0
  4. package/adapters/fetch/package.json +1 -0
  5. package/adapters/next/package.json +1 -0
  6. package/adapters/next-app-dir/package.json +1 -0
  7. package/adapters/node-http/package.json +1 -0
  8. package/adapters/standalone/package.json +1 -0
  9. package/adapters/ws/package.json +1 -0
  10. package/dist/@trpc/server/http.js +4 -0
  11. package/dist/@trpc/server/http.mjs +4 -0
  12. package/dist/@trpc/server/index.d.mts +31 -0
  13. package/dist/@trpc/server/index.d.mts.map +1 -0
  14. package/dist/@trpc/server/index.d.ts +26 -60
  15. package/dist/@trpc/server/index.d.ts.map +1 -1
  16. package/dist/@trpc/server/index.js +9 -0
  17. package/dist/@trpc/server/index.mjs +9 -0
  18. package/dist/@trpc/server/rpc.js +2 -0
  19. package/dist/@trpc/server/rpc.mjs +2 -0
  20. package/dist/_virtual/rolldown_runtime.js +39 -0
  21. package/dist/_virtual/rolldown_runtime.mjs +27 -0
  22. package/dist/adapters/aws-lambda/getPlanner.d.mts +12 -0
  23. package/dist/adapters/aws-lambda/getPlanner.d.mts.map +1 -0
  24. package/dist/adapters/aws-lambda/getPlanner.d.ts +8 -9
  25. package/dist/adapters/aws-lambda/getPlanner.d.ts.map +1 -1
  26. package/dist/adapters/aws-lambda/getPlanner.js +123 -150
  27. package/dist/adapters/aws-lambda/getPlanner.mjs +122 -147
  28. package/dist/adapters/aws-lambda/getPlanner.mjs.map +1 -0
  29. package/dist/adapters/aws-lambda/index.d.mts +27 -0
  30. package/dist/adapters/aws-lambda/index.d.mts.map +1 -0
  31. package/dist/adapters/aws-lambda/index.d.ts +25 -20
  32. package/dist/adapters/aws-lambda/index.d.ts.map +1 -1
  33. package/dist/adapters/aws-lambda/index.js +56 -31
  34. package/dist/adapters/aws-lambda/index.mjs +57 -30
  35. package/dist/adapters/aws-lambda/index.mjs.map +1 -0
  36. package/dist/adapters/express.d.mts +14 -0
  37. package/dist/adapters/express.d.mts.map +1 -0
  38. package/dist/adapters/express.d.ts +13 -14
  39. package/dist/adapters/express.d.ts.map +1 -1
  40. package/dist/adapters/express.js +22 -34
  41. package/dist/adapters/express.mjs +22 -31
  42. package/dist/adapters/express.mjs.map +1 -0
  43. package/dist/adapters/fastify/fastifyRequestHandler.d.mts +18 -0
  44. package/dist/adapters/fastify/fastifyRequestHandler.d.mts.map +1 -0
  45. package/dist/adapters/fastify/fastifyRequestHandler.d.ts +15 -19
  46. package/dist/adapters/fastify/fastifyRequestHandler.d.ts.map +1 -1
  47. package/dist/adapters/fastify/fastifyRequestHandler.js +27 -44
  48. package/dist/adapters/fastify/fastifyRequestHandler.mjs +27 -41
  49. package/dist/adapters/fastify/fastifyRequestHandler.mjs.map +1 -0
  50. package/dist/adapters/fastify/fastifyTRPCPlugin.d.mts +20 -0
  51. package/dist/adapters/fastify/fastifyTRPCPlugin.d.mts.map +1 -0
  52. package/dist/adapters/fastify/fastifyTRPCPlugin.d.ts +18 -19
  53. package/dist/adapters/fastify/fastifyTRPCPlugin.d.ts.map +1 -1
  54. package/dist/adapters/fastify/fastifyTRPCPlugin.js +32 -52
  55. package/dist/adapters/fastify/fastifyTRPCPlugin.mjs +32 -49
  56. package/dist/adapters/fastify/fastifyTRPCPlugin.mjs.map +1 -0
  57. package/dist/adapters/fastify/index.d.mts +3 -0
  58. package/dist/adapters/fastify/index.d.ts +3 -3
  59. package/dist/adapters/fastify/index.js +4 -8
  60. package/dist/adapters/fastify/index.mjs +4 -2
  61. package/dist/adapters/fetch/fetchRequestHandler.d.mts +12 -0
  62. package/dist/adapters/fetch/fetchRequestHandler.d.mts.map +1 -0
  63. package/dist/adapters/fetch/fetchRequestHandler.d.ts +11 -12
  64. package/dist/adapters/fetch/fetchRequestHandler.d.ts.map +1 -1
  65. package/dist/adapters/fetch/fetchRequestHandler.js +49 -71
  66. package/dist/adapters/fetch/fetchRequestHandler.mjs +49 -68
  67. package/dist/adapters/fetch/fetchRequestHandler.mjs.map +1 -0
  68. package/dist/adapters/fetch/index.d.mts +3 -0
  69. package/dist/adapters/fetch/index.d.ts +3 -3
  70. package/dist/adapters/fetch/index.js +2 -6
  71. package/dist/adapters/fetch/index.mjs +3 -1
  72. package/dist/adapters/fetch/types.d.mts +27 -0
  73. package/dist/adapters/fetch/types.d.mts.map +1 -0
  74. package/dist/adapters/fetch/types.d.ts +23 -23
  75. package/dist/adapters/fetch/types.d.ts.map +1 -1
  76. package/dist/adapters/next-app-dir/nextAppDirCaller.d.mts +32 -0
  77. package/dist/adapters/next-app-dir/nextAppDirCaller.d.mts.map +1 -0
  78. package/dist/adapters/next-app-dir/nextAppDirCaller.d.ts +28 -21
  79. package/dist/adapters/next-app-dir/nextAppDirCaller.d.ts.map +1 -1
  80. package/dist/adapters/next-app-dir/nextAppDirCaller.js +79 -89
  81. package/dist/adapters/next-app-dir/nextAppDirCaller.mjs +79 -86
  82. package/dist/adapters/next-app-dir/nextAppDirCaller.mjs.map +1 -0
  83. package/dist/adapters/next-app-dir/notFound.d.mts +18 -0
  84. package/dist/adapters/next-app-dir/notFound.d.mts.map +1 -0
  85. package/dist/adapters/next-app-dir/notFound.d.ts +13 -2
  86. package/dist/adapters/next-app-dir/notFound.d.ts.map +1 -1
  87. package/dist/adapters/next-app-dir/notFound.js +9 -13
  88. package/dist/adapters/next-app-dir/notFound.mjs +9 -10
  89. package/dist/adapters/next-app-dir/notFound.mjs.map +1 -0
  90. package/dist/adapters/next-app-dir/redirect.d.mts +22 -0
  91. package/dist/adapters/next-app-dir/redirect.d.mts.map +1 -0
  92. package/dist/adapters/next-app-dir/redirect.d.ts +13 -9
  93. package/dist/adapters/next-app-dir/redirect.d.ts.map +1 -1
  94. package/dist/adapters/next-app-dir/redirect.js +24 -42
  95. package/dist/adapters/next-app-dir/redirect.mjs +24 -39
  96. package/dist/adapters/next-app-dir/redirect.mjs.map +1 -0
  97. package/dist/adapters/next-app-dir/rethrowNextErrors.d.mts +16 -0
  98. package/dist/adapters/next-app-dir/rethrowNextErrors.d.mts.map +1 -0
  99. package/dist/adapters/next-app-dir/rethrowNextErrors.d.ts +12 -2
  100. package/dist/adapters/next-app-dir/rethrowNextErrors.d.ts.map +1 -1
  101. package/dist/adapters/next-app-dir/rethrowNextErrors.js +31 -60
  102. package/dist/adapters/next-app-dir/rethrowNextErrors.mjs +31 -38
  103. package/dist/adapters/next-app-dir/rethrowNextErrors.mjs.map +1 -0
  104. package/dist/adapters/next-app-dir.d.mts +5 -0
  105. package/dist/adapters/next-app-dir.d.ts +5 -7
  106. package/dist/adapters/next-app-dir.js +9 -13
  107. package/dist/adapters/next-app-dir.mjs +6 -4
  108. package/dist/adapters/next.d.mts +18 -0
  109. package/dist/adapters/next.d.mts.map +1 -0
  110. package/dist/adapters/next.d.ts +14 -15
  111. package/dist/adapters/next.d.ts.map +1 -1
  112. package/dist/adapters/next.js +30 -46
  113. package/dist/adapters/next.mjs +30 -43
  114. package/dist/adapters/next.mjs.map +1 -0
  115. package/dist/adapters/node-http/incomingMessageToRequest.d.mts +19 -0
  116. package/dist/adapters/node-http/incomingMessageToRequest.d.mts.map +1 -0
  117. package/dist/adapters/node-http/incomingMessageToRequest.d.ts +14 -7
  118. package/dist/adapters/node-http/incomingMessageToRequest.d.ts.map +1 -1
  119. package/dist/adapters/node-http/incomingMessageToRequest.js +80 -111
  120. package/dist/adapters/node-http/incomingMessageToRequest.mjs +80 -108
  121. package/dist/adapters/node-http/incomingMessageToRequest.mjs.map +1 -0
  122. package/dist/adapters/node-http/index.d.mts +4 -0
  123. package/dist/adapters/node-http/index.d.ts +4 -4
  124. package/dist/adapters/node-http/index.js +6 -10
  125. package/dist/adapters/node-http/index.mjs +4 -2
  126. package/dist/adapters/node-http/nodeHTTPRequestHandler.d.mts +22 -0
  127. package/dist/adapters/node-http/nodeHTTPRequestHandler.d.mts.map +1 -0
  128. package/dist/adapters/node-http/nodeHTTPRequestHandler.d.ts +14 -12
  129. package/dist/adapters/node-http/nodeHTTPRequestHandler.d.ts.map +1 -1
  130. package/dist/adapters/node-http/nodeHTTPRequestHandler.js +73 -88
  131. package/dist/adapters/node-http/nodeHTTPRequestHandler.mjs +73 -85
  132. package/dist/adapters/node-http/nodeHTTPRequestHandler.mjs.map +1 -0
  133. package/dist/adapters/node-http/types.d.mts +78 -0
  134. package/dist/adapters/node-http/types.d.mts.map +1 -0
  135. package/dist/adapters/node-http/types.d.ts +68 -71
  136. package/dist/adapters/node-http/types.d.ts.map +1 -1
  137. package/dist/adapters/node-http/writeResponse.js +52 -74
  138. package/dist/adapters/node-http/writeResponse.mjs +53 -71
  139. package/dist/adapters/node-http/writeResponse.mjs.map +1 -0
  140. package/dist/adapters/standalone.d.mts +32 -0
  141. package/dist/adapters/standalone.d.mts.map +1 -0
  142. package/dist/adapters/standalone.d.ts +26 -30
  143. package/dist/adapters/standalone.d.ts.map +1 -1
  144. package/dist/adapters/standalone.js +34 -36
  145. package/dist/adapters/standalone.mjs +33 -33
  146. package/dist/adapters/standalone.mjs.map +1 -0
  147. package/dist/adapters/ws.d.mts +65 -0
  148. package/dist/adapters/ws.d.mts.map +1 -0
  149. package/dist/adapters/ws.d.ts +47 -36
  150. package/dist/adapters/ws.d.ts.map +1 -1
  151. package/dist/adapters/ws.js +406 -532
  152. package/dist/adapters/ws.mjs +406 -529
  153. package/dist/adapters/ws.mjs.map +1 -0
  154. package/dist/http.d.mts +6 -0
  155. package/dist/http.d.ts +6 -2
  156. package/dist/http.js +11 -18
  157. package/dist/http.mjs +6 -7
  158. package/dist/index.d.mts +17 -0
  159. package/dist/index.d.ts +17 -2
  160. package/dist/index.js +26 -32
  161. package/dist/index.mjs +11 -12
  162. package/dist/node_modules/.pnpm/@oxc-project_runtime@0.71.0/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js +68 -0
  163. package/dist/node_modules/.pnpm/@oxc-project_runtime@0.71.0/node_modules/@oxc-project/runtime/src/helpers/usingCtx.mjs +66 -0
  164. package/dist/node_modules/.pnpm/@oxc-project_runtime@0.71.0/node_modules/@oxc-project/runtime/src/helpers/usingCtx.mjs.map +1 -0
  165. package/dist/node_modules/.pnpm/@swc_helpers@0.5.15/node_modules/@swc/helpers/cjs/_interop_require_default.js +17 -0
  166. package/dist/node_modules/.pnpm/@swc_helpers@0.5.15/node_modules/@swc/helpers/cjs/_interop_require_default.mjs +15 -0
  167. package/dist/node_modules/.pnpm/@swc_helpers@0.5.15/node_modules/@swc/helpers/cjs/_interop_require_default.mjs.map +1 -0
  168. package/dist/node_modules/.pnpm/@swc_helpers@0.5.15/node_modules/@swc/helpers/cjs/_interop_require_wildcard.js +38 -0
  169. package/dist/node_modules/.pnpm/@swc_helpers@0.5.15/node_modules/@swc/helpers/cjs/_interop_require_wildcard.mjs +36 -0
  170. package/dist/node_modules/.pnpm/@swc_helpers@0.5.15/node_modules/@swc/helpers/cjs/_interop_require_wildcard.mjs.map +1 -0
  171. package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/app-router-headers.js +97 -0
  172. package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/app-router-headers.mjs +95 -0
  173. package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/app-router-headers.mjs.map +1 -0
  174. package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/bailout-to-client-rendering.js +38 -0
  175. package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/bailout-to-client-rendering.mjs +36 -0
  176. package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/bailout-to-client-rendering.mjs.map +1 -0
  177. package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/forbidden.js +53 -0
  178. package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/forbidden.mjs +51 -0
  179. package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/forbidden.mjs.map +1 -0
  180. package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/hooks-server-context.js +43 -0
  181. package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/hooks-server-context.mjs +41 -0
  182. package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/hooks-server-context.mjs.map +1 -0
  183. package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/http-access-fallback/http-access-fallback.js +66 -0
  184. package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/http-access-fallback/http-access-fallback.mjs +64 -0
  185. package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/http-access-fallback/http-access-fallback.mjs.map +1 -0
  186. package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/is-next-router-error.js +32 -0
  187. package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/is-next-router-error.mjs +30 -0
  188. package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/is-next-router-error.mjs.map +1 -0
  189. package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/navigation.js +153 -0
  190. package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/navigation.mjs +151 -0
  191. package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/navigation.mjs.map +1 -0
  192. package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/navigation.react-server.js +82 -0
  193. package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/navigation.react-server.mjs +80 -0
  194. package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/navigation.react-server.mjs.map +1 -0
  195. package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/not-found.js +50 -0
  196. package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/not-found.mjs +48 -0
  197. package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/not-found.mjs.map +1 -0
  198. package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/redirect-error.js +53 -0
  199. package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/redirect-error.mjs +51 -0
  200. package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/redirect-error.mjs.map +1 -0
  201. package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/redirect-status-code.js +31 -0
  202. package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/redirect-status-code.mjs +29 -0
  203. package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/redirect-status-code.mjs.map +1 -0
  204. package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/redirect.js +90 -0
  205. package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/redirect.mjs +88 -0
  206. package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/redirect.mjs.map +1 -0
  207. package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/router-reducer/reducers/get-segment-value.js +28 -0
  208. package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/router-reducer/reducers/get-segment-value.mjs +26 -0
  209. package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/router-reducer/reducers/get-segment-value.mjs.map +1 -0
  210. package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/static-generation-bailout.js +43 -0
  211. package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/static-generation-bailout.mjs +41 -0
  212. package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/static-generation-bailout.mjs.map +1 -0
  213. package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/unauthorized.js +54 -0
  214. package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/unauthorized.mjs +52 -0
  215. package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/unauthorized.mjs.map +1 -0
  216. package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/unstable-rethrow.browser.js +33 -0
  217. package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/unstable-rethrow.browser.mjs +31 -0
  218. package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/unstable-rethrow.browser.mjs.map +1 -0
  219. package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/unstable-rethrow.js +28 -0
  220. package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/unstable-rethrow.mjs +26 -0
  221. package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/unstable-rethrow.mjs.map +1 -0
  222. package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/unstable-rethrow.server.js +41 -0
  223. package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/unstable-rethrow.server.mjs +39 -0
  224. package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/unstable-rethrow.server.mjs.map +1 -0
  225. package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/lib/metadata/metadata-constants.js +34 -0
  226. package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/lib/metadata/metadata-constants.mjs +32 -0
  227. package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/lib/metadata/metadata-constants.mjs.map +1 -0
  228. package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/lib/scheduler.js +51 -0
  229. package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/lib/scheduler.mjs +49 -0
  230. package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/lib/scheduler.mjs.map +1 -0
  231. package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/server/app-render/action-async-storage-instance.js +23 -0
  232. package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/server/app-render/action-async-storage-instance.mjs +21 -0
  233. package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/server/app-render/action-async-storage-instance.mjs.map +1 -0
  234. package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/server/app-render/action-async-storage.external.js +22 -0
  235. package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/server/app-render/action-async-storage.external.mjs +20 -0
  236. package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/server/app-render/action-async-storage.external.mjs.map +1 -0
  237. package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/server/app-render/async-local-storage.js +71 -0
  238. package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/server/app-render/async-local-storage.mjs +69 -0
  239. package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/server/app-render/async-local-storage.mjs.map +1 -0
  240. package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/server/app-render/dynamic-rendering.js +416 -0
  241. package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/server/app-render/dynamic-rendering.mjs +414 -0
  242. package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/server/app-render/dynamic-rendering.mjs.map +1 -0
  243. package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/server/app-render/work-async-storage-instance.js +23 -0
  244. package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/server/app-render/work-async-storage-instance.mjs +21 -0
  245. package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/server/app-render/work-async-storage-instance.mjs.map +1 -0
  246. package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/server/app-render/work-async-storage.external.js +22 -0
  247. package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/server/app-render/work-async-storage.external.mjs +20 -0
  248. package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/server/app-render/work-async-storage.external.mjs.map +1 -0
  249. package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js +23 -0
  250. package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/server/app-render/work-unit-async-storage-instance.mjs +21 -0
  251. package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/server/app-render/work-unit-async-storage-instance.mjs.map +1 -0
  252. package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/server/app-render/work-unit-async-storage.external.js +106 -0
  253. package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/server/app-render/work-unit-async-storage.external.mjs +104 -0
  254. package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/server/app-render/work-unit-async-storage.external.mjs.map +1 -0
  255. package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/server/dynamic-rendering-utils.js +59 -0
  256. package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/server/dynamic-rendering-utils.mjs +57 -0
  257. package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/server/dynamic-rendering-utils.mjs.map +1 -0
  258. package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/server/lib/router-utils/is-postpone.js +24 -0
  259. package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/server/lib/router-utils/is-postpone.mjs +22 -0
  260. package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/server/lib/router-utils/is-postpone.mjs.map +1 -0
  261. package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/shared/lib/app-router-context.shared-runtime.js +52 -0
  262. package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/shared/lib/app-router-context.shared-runtime.mjs +50 -0
  263. package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/shared/lib/app-router-context.shared-runtime.mjs.map +1 -0
  264. package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/shared/lib/hooks-client-context.shared-runtime.js +41 -0
  265. package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/shared/lib/hooks-client-context.shared-runtime.mjs +39 -0
  266. package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/shared/lib/hooks-client-context.shared-runtime.mjs.map +1 -0
  267. package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/shared/lib/lazy-dynamic/bailout-to-csr.js +38 -0
  268. package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/shared/lib/lazy-dynamic/bailout-to-csr.mjs +36 -0
  269. package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/shared/lib/lazy-dynamic/bailout-to-csr.mjs.map +1 -0
  270. package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/shared/lib/segment.js +53 -0
  271. package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/shared/lib/segment.mjs +51 -0
  272. package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/shared/lib/segment.mjs.map +1 -0
  273. package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/shared/lib/server-inserted-html.shared-runtime.js +37 -0
  274. package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/shared/lib/server-inserted-html.shared-runtime.mjs +35 -0
  275. package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/shared/lib/server-inserted-html.shared-runtime.mjs.map +1 -0
  276. package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/navigation.js +15 -0
  277. package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/navigation.mjs +13 -0
  278. package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/navigation.mjs.map +1 -0
  279. package/dist/node_modules/.pnpm/react@19.1.0/node_modules/react/cjs/react.development.js +721 -0
  280. package/dist/node_modules/.pnpm/react@19.1.0/node_modules/react/cjs/react.development.mjs +719 -0
  281. package/dist/node_modules/.pnpm/react@19.1.0/node_modules/react/cjs/react.development.mjs.map +1 -0
  282. package/dist/node_modules/.pnpm/react@19.1.0/node_modules/react/cjs/react.production.js +356 -0
  283. package/dist/node_modules/.pnpm/react@19.1.0/node_modules/react/cjs/react.production.mjs +354 -0
  284. package/dist/node_modules/.pnpm/react@19.1.0/node_modules/react/cjs/react.production.mjs.map +1 -0
  285. package/dist/node_modules/.pnpm/react@19.1.0/node_modules/react/index.js +17 -0
  286. package/dist/node_modules/.pnpm/react@19.1.0/node_modules/react/index.mjs +15 -0
  287. package/dist/node_modules/.pnpm/react@19.1.0/node_modules/react/index.mjs.map +1 -0
  288. package/dist/observable/behaviorSubject.d.mts +21 -0
  289. package/dist/observable/behaviorSubject.d.mts.map +1 -0
  290. package/dist/observable/behaviorSubject.d.ts +14 -8
  291. package/dist/observable/behaviorSubject.d.ts.map +1 -1
  292. package/dist/observable/behaviorSubject.js +31 -36
  293. package/dist/observable/behaviorSubject.mjs +31 -33
  294. package/dist/observable/behaviorSubject.mjs.map +1 -0
  295. package/dist/observable/index.d.mts +5 -0
  296. package/dist/observable/index.d.ts +5 -5
  297. package/dist/observable/index.js +14 -18
  298. package/dist/observable/index.mjs +5 -3
  299. package/dist/observable/observable.d.mts +20 -0
  300. package/dist/observable/observable.d.mts.map +1 -0
  301. package/dist/observable/observable.d.ts +14 -6
  302. package/dist/observable/observable.d.ts.map +1 -1
  303. package/dist/observable/observable.js +145 -167
  304. package/dist/observable/observable.mjs +145 -165
  305. package/dist/observable/observable.mjs.map +1 -0
  306. package/dist/observable/operators.d.mts +13 -0
  307. package/dist/observable/operators.d.mts.map +1 -0
  308. package/dist/observable/operators.d.ts +12 -9
  309. package/dist/observable/operators.d.ts.map +1 -1
  310. package/dist/observable/operators.js +100 -117
  311. package/dist/observable/operators.mjs +100 -114
  312. package/dist/observable/operators.mjs.map +1 -0
  313. package/dist/observable/types.d.mts +29 -0
  314. package/dist/observable/types.d.mts.map +1 -0
  315. package/dist/observable/types.d.ts +23 -20
  316. package/dist/observable/types.d.ts.map +1 -1
  317. package/dist/rpc.d.mts +4 -0
  318. package/dist/rpc.d.ts +4 -2
  319. package/dist/rpc.js +5 -12
  320. package/dist/rpc.mjs +4 -5
  321. package/dist/shared.d.mts +5 -0
  322. package/dist/shared.d.ts +5 -26
  323. package/dist/shared.js +4 -11
  324. package/dist/shared.mjs +4 -5
  325. package/dist/unstable-core-do-not-import/clientish/inference.d.mts +25 -0
  326. package/dist/unstable-core-do-not-import/clientish/inference.d.mts.map +1 -0
  327. package/dist/unstable-core-do-not-import/clientish/inference.d.ts +20 -12
  328. package/dist/unstable-core-do-not-import/clientish/inference.d.ts.map +1 -1
  329. package/dist/unstable-core-do-not-import/clientish/inferrable.d.mts +40 -0
  330. package/dist/unstable-core-do-not-import/clientish/inferrable.d.mts.map +1 -0
  331. package/dist/unstable-core-do-not-import/clientish/inferrable.d.ts +16 -12
  332. package/dist/unstable-core-do-not-import/clientish/inferrable.d.ts.map +1 -1
  333. package/dist/unstable-core-do-not-import/clientish/serialize.d.mts +66 -0
  334. package/dist/unstable-core-do-not-import/clientish/serialize.d.mts.map +1 -0
  335. package/dist/unstable-core-do-not-import/clientish/serialize.d.ts +25 -21
  336. package/dist/unstable-core-do-not-import/clientish/serialize.d.ts.map +1 -1
  337. package/dist/unstable-core-do-not-import/createProxy.d.mts +22 -0
  338. package/dist/unstable-core-do-not-import/createProxy.d.mts.map +1 -0
  339. package/dist/unstable-core-do-not-import/createProxy.d.ts +8 -5
  340. package/dist/unstable-core-do-not-import/createProxy.d.ts.map +1 -1
  341. package/dist/unstable-core-do-not-import/createProxy.js +46 -67
  342. package/dist/unstable-core-do-not-import/createProxy.mjs +46 -65
  343. package/dist/unstable-core-do-not-import/createProxy.mjs.map +1 -0
  344. package/dist/unstable-core-do-not-import/error/TRPCError.d.mts +18 -0
  345. package/dist/unstable-core-do-not-import/error/TRPCError.d.mts.map +1 -0
  346. package/dist/unstable-core-do-not-import/error/TRPCError.d.ts +16 -11
  347. package/dist/unstable-core-do-not-import/error/TRPCError.d.ts.map +1 -1
  348. package/dist/unstable-core-do-not-import/error/TRPCError.js +31 -75
  349. package/dist/unstable-core-do-not-import/error/TRPCError.mjs +31 -72
  350. package/dist/unstable-core-do-not-import/error/TRPCError.mjs.map +1 -0
  351. package/dist/unstable-core-do-not-import/error/formatter.d.mts +47 -0
  352. package/dist/unstable-core-do-not-import/error/formatter.d.mts.map +1 -0
  353. package/dist/unstable-core-do-not-import/error/formatter.d.ts +34 -25
  354. package/dist/unstable-core-do-not-import/error/formatter.d.ts.map +1 -1
  355. package/dist/unstable-core-do-not-import/error/formatter.js +5 -4
  356. package/dist/unstable-core-do-not-import/error/formatter.mjs +5 -2
  357. package/dist/unstable-core-do-not-import/error/formatter.mjs.map +1 -0
  358. package/dist/unstable-core-do-not-import/error/getErrorShape.d.mts +25 -0
  359. package/dist/unstable-core-do-not-import/error/getErrorShape.d.mts.map +1 -0
  360. package/dist/unstable-core-do-not-import/error/getErrorShape.d.ts +20 -10
  361. package/dist/unstable-core-do-not-import/error/getErrorShape.d.ts.map +1 -1
  362. package/dist/unstable-core-do-not-import/error/getErrorShape.js +24 -27
  363. package/dist/unstable-core-do-not-import/error/getErrorShape.mjs +24 -24
  364. package/dist/unstable-core-do-not-import/error/getErrorShape.mjs.map +1 -0
  365. package/dist/unstable-core-do-not-import/http/abortError.d.mts +11 -0
  366. package/dist/unstable-core-do-not-import/http/abortError.d.mts.map +1 -0
  367. package/dist/unstable-core-do-not-import/http/abortError.d.ts +9 -3
  368. package/dist/unstable-core-do-not-import/http/abortError.d.ts.map +1 -1
  369. package/dist/unstable-core-do-not-import/http/abortError.js +7 -7
  370. package/dist/unstable-core-do-not-import/http/abortError.mjs +7 -4
  371. package/dist/unstable-core-do-not-import/http/abortError.mjs.map +1 -0
  372. package/dist/unstable-core-do-not-import/http/contentType.d.mts +17 -0
  373. package/dist/unstable-core-do-not-import/http/contentType.d.mts.map +1 -0
  374. package/dist/unstable-core-do-not-import/http/contentType.d.ts +14 -10
  375. package/dist/unstable-core-do-not-import/http/contentType.d.ts.map +1 -1
  376. package/dist/unstable-core-do-not-import/http/contentType.js +168 -215
  377. package/dist/unstable-core-do-not-import/http/contentType.mjs +168 -212
  378. package/dist/unstable-core-do-not-import/http/contentType.mjs.map +1 -0
  379. package/dist/unstable-core-do-not-import/http/contentTypeParsers.d.mts +18 -0
  380. package/dist/unstable-core-do-not-import/http/contentTypeParsers.d.mts.map +1 -0
  381. package/dist/unstable-core-do-not-import/http/contentTypeParsers.d.ts +9 -5
  382. package/dist/unstable-core-do-not-import/http/contentTypeParsers.d.ts.map +1 -1
  383. package/dist/unstable-core-do-not-import/http/contentTypeParsers.js +9 -10
  384. package/dist/unstable-core-do-not-import/http/contentTypeParsers.mjs +9 -8
  385. package/dist/unstable-core-do-not-import/http/contentTypeParsers.mjs.map +1 -0
  386. package/dist/unstable-core-do-not-import/http/formDataToObject.d.mts +8 -0
  387. package/dist/unstable-core-do-not-import/http/formDataToObject.d.mts.map +1 -0
  388. package/dist/unstable-core-do-not-import/http/formDataToObject.d.ts +7 -1
  389. package/dist/unstable-core-do-not-import/http/formDataToObject.d.ts.map +1 -1
  390. package/dist/unstable-core-do-not-import/http/formDataToObject.js +23 -34
  391. package/dist/unstable-core-do-not-import/http/formDataToObject.mjs +23 -32
  392. package/dist/unstable-core-do-not-import/http/formDataToObject.mjs.map +1 -0
  393. package/dist/unstable-core-do-not-import/http/getHTTPStatusCode.d.mts +18 -0
  394. package/dist/unstable-core-do-not-import/http/getHTTPStatusCode.d.mts.map +1 -0
  395. package/dist/unstable-core-do-not-import/http/getHTTPStatusCode.d.ts +17 -9
  396. package/dist/unstable-core-do-not-import/http/getHTTPStatusCode.d.ts.map +1 -1
  397. package/dist/unstable-core-do-not-import/http/getHTTPStatusCode.js +59 -64
  398. package/dist/unstable-core-do-not-import/http/getHTTPStatusCode.mjs +59 -61
  399. package/dist/unstable-core-do-not-import/http/getHTTPStatusCode.mjs.map +1 -0
  400. package/dist/unstable-core-do-not-import/http/parseConnectionParams.d.mts +11 -0
  401. package/dist/unstable-core-do-not-import/http/parseConnectionParams.d.mts.map +1 -0
  402. package/dist/unstable-core-do-not-import/http/parseConnectionParams.d.ts +10 -3
  403. package/dist/unstable-core-do-not-import/http/parseConnectionParams.d.ts.map +1 -1
  404. package/dist/unstable-core-do-not-import/http/parseConnectionParams.js +29 -35
  405. package/dist/unstable-core-do-not-import/http/parseConnectionParams.mjs +29 -32
  406. package/dist/unstable-core-do-not-import/http/parseConnectionParams.mjs.map +1 -0
  407. package/dist/unstable-core-do-not-import/http/resolveResponse.d.mts +19 -0
  408. package/dist/unstable-core-do-not-import/http/resolveResponse.d.mts.map +1 -0
  409. package/dist/unstable-core-do-not-import/http/resolveResponse.d.ts +16 -12
  410. package/dist/unstable-core-do-not-import/http/resolveResponse.d.ts.map +1 -1
  411. package/dist/unstable-core-do-not-import/http/resolveResponse.js +400 -556
  412. package/dist/unstable-core-do-not-import/http/resolveResponse.mjs +400 -553
  413. package/dist/unstable-core-do-not-import/http/resolveResponse.mjs.map +1 -0
  414. package/dist/unstable-core-do-not-import/http/types.d.mts +143 -0
  415. package/dist/unstable-core-do-not-import/http/types.d.mts.map +1 -0
  416. package/dist/unstable-core-do-not-import/http/types.d.ts +105 -100
  417. package/dist/unstable-core-do-not-import/http/types.d.ts.map +1 -1
  418. package/dist/unstable-core-do-not-import/initTRPC.d.mts +101 -0
  419. package/dist/unstable-core-do-not-import/initTRPC.d.mts.map +1 -0
  420. package/dist/unstable-core-do-not-import/initTRPC.d.ts +83 -76
  421. package/dist/unstable-core-do-not-import/initTRPC.d.ts.map +1 -1
  422. package/dist/unstable-core-do-not-import/initTRPC.js +56 -79
  423. package/dist/unstable-core-do-not-import/initTRPC.mjs +56 -76
  424. package/dist/unstable-core-do-not-import/initTRPC.mjs.map +1 -0
  425. package/dist/unstable-core-do-not-import/middleware.d.mts +112 -0
  426. package/dist/unstable-core-do-not-import/middleware.d.mts.map +1 -0
  427. package/dist/unstable-core-do-not-import/middleware.d.ts +73 -68
  428. package/dist/unstable-core-do-not-import/middleware.d.ts.map +1 -1
  429. package/dist/unstable-core-do-not-import/middleware.js +73 -83
  430. package/dist/unstable-core-do-not-import/middleware.mjs +73 -80
  431. package/dist/unstable-core-do-not-import/middleware.mjs.map +1 -0
  432. package/dist/unstable-core-do-not-import/parser.d.mts +51 -0
  433. package/dist/unstable-core-do-not-import/parser.d.mts.map +1 -0
  434. package/dist/unstable-core-do-not-import/parser.d.ts +40 -33
  435. package/dist/unstable-core-do-not-import/parser.d.ts.map +1 -1
  436. package/dist/unstable-core-do-not-import/parser.js +22 -50
  437. package/dist/unstable-core-do-not-import/parser.mjs +22 -47
  438. package/dist/unstable-core-do-not-import/parser.mjs.map +1 -0
  439. package/dist/unstable-core-do-not-import/procedure.d.mts +78 -0
  440. package/dist/unstable-core-do-not-import/procedure.d.mts.map +1 -0
  441. package/dist/unstable-core-do-not-import/procedure.d.ts +55 -47
  442. package/dist/unstable-core-do-not-import/procedure.d.ts.map +1 -1
  443. package/dist/unstable-core-do-not-import/procedure.js +6 -5
  444. package/dist/unstable-core-do-not-import/procedure.mjs +6 -3
  445. package/dist/unstable-core-do-not-import/procedure.mjs.map +1 -0
  446. package/dist/unstable-core-do-not-import/procedureBuilder.d.mts +166 -0
  447. package/dist/unstable-core-do-not-import/procedureBuilder.d.mts.map +1 -0
  448. package/dist/unstable-core-do-not-import/procedureBuilder.d.ts +136 -127
  449. package/dist/unstable-core-do-not-import/procedureBuilder.d.ts.map +1 -1
  450. package/dist/unstable-core-do-not-import/procedureBuilder.js +147 -184
  451. package/dist/unstable-core-do-not-import/procedureBuilder.mjs +147 -181
  452. package/dist/unstable-core-do-not-import/procedureBuilder.mjs.map +1 -0
  453. package/dist/unstable-core-do-not-import/rootConfig.d.mts +104 -0
  454. package/dist/unstable-core-do-not-import/rootConfig.d.mts.map +1 -0
  455. package/dist/unstable-core-do-not-import/rootConfig.d.ts +79 -73
  456. package/dist/unstable-core-do-not-import/rootConfig.d.ts.map +1 -1
  457. package/dist/unstable-core-do-not-import/rootConfig.js +6 -5
  458. package/dist/unstable-core-do-not-import/rootConfig.mjs +6 -3
  459. package/dist/unstable-core-do-not-import/rootConfig.mjs.map +1 -0
  460. package/dist/unstable-core-do-not-import/router.d.mts +95 -0
  461. package/dist/unstable-core-do-not-import/router.d.mts.map +1 -0
  462. package/dist/unstable-core-do-not-import/router.d.ts +54 -57
  463. package/dist/unstable-core-do-not-import/router.d.ts.map +1 -1
  464. package/dist/unstable-core-do-not-import/router.js +204 -254
  465. package/dist/unstable-core-do-not-import/router.mjs +204 -251
  466. package/dist/unstable-core-do-not-import/router.mjs.map +1 -0
  467. package/dist/unstable-core-do-not-import/rpc/codes.d.mts +56 -0
  468. package/dist/unstable-core-do-not-import/rpc/codes.d.mts.map +1 -0
  469. package/dist/unstable-core-do-not-import/rpc/codes.d.ts +48 -31
  470. package/dist/unstable-core-do-not-import/rpc/codes.d.ts.map +1 -1
  471. package/dist/unstable-core-do-not-import/rpc/codes.js +55 -49
  472. package/dist/unstable-core-do-not-import/rpc/codes.mjs +56 -49
  473. package/dist/unstable-core-do-not-import/rpc/codes.mjs.map +1 -0
  474. package/dist/unstable-core-do-not-import/rpc/envelopes.d.mts +115 -0
  475. package/dist/unstable-core-do-not-import/rpc/envelopes.d.mts.map +1 -0
  476. package/dist/unstable-core-do-not-import/rpc/envelopes.d.ts +77 -71
  477. package/dist/unstable-core-do-not-import/rpc/envelopes.d.ts.map +1 -1
  478. package/dist/unstable-core-do-not-import/rpc/index.js +2 -0
  479. package/dist/unstable-core-do-not-import/rpc/index.mjs +2 -0
  480. package/dist/unstable-core-do-not-import/rpc/parseTRPCMessage.d.mts +13 -0
  481. package/dist/unstable-core-do-not-import/rpc/parseTRPCMessage.d.mts.map +1 -0
  482. package/dist/unstable-core-do-not-import/rpc/parseTRPCMessage.d.ts +11 -3
  483. package/dist/unstable-core-do-not-import/rpc/parseTRPCMessage.d.ts.map +1 -1
  484. package/dist/unstable-core-do-not-import/rpc/parseTRPCMessage.js +47 -55
  485. package/dist/unstable-core-do-not-import/rpc/parseTRPCMessage.mjs +47 -52
  486. package/dist/unstable-core-do-not-import/rpc/parseTRPCMessage.mjs.map +1 -0
  487. package/dist/unstable-core-do-not-import/stream/jsonl.d.mts +95 -0
  488. package/dist/unstable-core-do-not-import/stream/jsonl.d.mts.map +1 -0
  489. package/dist/unstable-core-do-not-import/stream/jsonl.d.ts +53 -77
  490. package/dist/unstable-core-do-not-import/stream/jsonl.d.ts.map +1 -1
  491. package/dist/unstable-core-do-not-import/stream/jsonl.js +374 -579
  492. package/dist/unstable-core-do-not-import/stream/jsonl.mjs +374 -576
  493. package/dist/unstable-core-do-not-import/stream/jsonl.mjs.map +1 -0
  494. package/dist/unstable-core-do-not-import/stream/sse.d.mts +112 -0
  495. package/dist/unstable-core-do-not-import/stream/sse.d.mts.map +1 -0
  496. package/dist/unstable-core-do-not-import/stream/sse.d.ts +77 -73
  497. package/dist/unstable-core-do-not-import/stream/sse.d.ts.map +1 -1
  498. package/dist/unstable-core-do-not-import/stream/sse.js +231 -361
  499. package/dist/unstable-core-do-not-import/stream/sse.mjs +231 -358
  500. package/dist/unstable-core-do-not-import/stream/sse.mjs.map +1 -0
  501. package/dist/unstable-core-do-not-import/stream/sse.types.d.mts +34 -0
  502. package/dist/unstable-core-do-not-import/stream/sse.types.d.mts.map +1 -0
  503. package/dist/unstable-core-do-not-import/stream/sse.types.d.ts +30 -27
  504. package/dist/unstable-core-do-not-import/stream/sse.types.d.ts.map +1 -1
  505. package/dist/unstable-core-do-not-import/stream/tracked.d.mts +34 -0
  506. package/dist/unstable-core-do-not-import/stream/tracked.d.mts.map +1 -0
  507. package/dist/unstable-core-do-not-import/stream/tracked.d.ts +20 -17
  508. package/dist/unstable-core-do-not-import/stream/tracked.d.ts.map +1 -1
  509. package/dist/unstable-core-do-not-import/stream/tracked.js +18 -18
  510. package/dist/unstable-core-do-not-import/stream/tracked.mjs +18 -16
  511. package/dist/unstable-core-do-not-import/stream/tracked.mjs.map +1 -0
  512. package/dist/unstable-core-do-not-import/stream/utils/asyncIterable.d.mts +23 -0
  513. package/dist/unstable-core-do-not-import/stream/utils/asyncIterable.d.mts.map +1 -0
  514. package/dist/unstable-core-do-not-import/stream/utils/asyncIterable.d.ts +12 -6
  515. package/dist/unstable-core-do-not-import/stream/utils/asyncIterable.d.ts.map +1 -1
  516. package/dist/unstable-core-do-not-import/stream/utils/asyncIterable.js +61 -159
  517. package/dist/unstable-core-do-not-import/stream/utils/asyncIterable.mjs +61 -156
  518. package/dist/unstable-core-do-not-import/stream/utils/asyncIterable.mjs.map +1 -0
  519. package/dist/unstable-core-do-not-import/stream/utils/createDeferred.d.mts +13 -0
  520. package/dist/unstable-core-do-not-import/stream/utils/createDeferred.d.mts.map +1 -0
  521. package/dist/unstable-core-do-not-import/stream/utils/createDeferred.d.ts +11 -5
  522. package/dist/unstable-core-do-not-import/stream/utils/createDeferred.d.ts.map +1 -1
  523. package/dist/unstable-core-do-not-import/stream/utils/createDeferred.js +15 -14
  524. package/dist/unstable-core-do-not-import/stream/utils/createDeferred.mjs +15 -12
  525. package/dist/unstable-core-do-not-import/stream/utils/createDeferred.mjs.map +1 -0
  526. package/dist/unstable-core-do-not-import/stream/utils/disposable.d.mts +23 -0
  527. package/dist/unstable-core-do-not-import/stream/utils/disposable.d.mts.map +1 -0
  528. package/dist/unstable-core-do-not-import/stream/utils/disposable.d.ts +8 -2
  529. package/dist/unstable-core-do-not-import/stream/utils/disposable.d.ts.map +1 -1
  530. package/dist/unstable-core-do-not-import/stream/utils/disposable.js +33 -39
  531. package/dist/unstable-core-do-not-import/stream/utils/disposable.mjs +33 -37
  532. package/dist/unstable-core-do-not-import/stream/utils/disposable.mjs.map +1 -0
  533. package/dist/unstable-core-do-not-import/stream/utils/mergeAsyncIterables.js +145 -235
  534. package/dist/unstable-core-do-not-import/stream/utils/mergeAsyncIterables.mjs +145 -232
  535. package/dist/unstable-core-do-not-import/stream/utils/mergeAsyncIterables.mjs.map +1 -0
  536. package/dist/unstable-core-do-not-import/stream/utils/readableStreamFrom.js +23 -21
  537. package/dist/unstable-core-do-not-import/stream/utils/readableStreamFrom.mjs +23 -19
  538. package/dist/unstable-core-do-not-import/stream/utils/readableStreamFrom.mjs.map +1 -0
  539. package/dist/unstable-core-do-not-import/stream/utils/timerResource.js +14 -20
  540. package/dist/unstable-core-do-not-import/stream/utils/timerResource.mjs +14 -17
  541. package/dist/unstable-core-do-not-import/stream/utils/timerResource.mjs.map +1 -0
  542. package/dist/unstable-core-do-not-import/stream/utils/withPing.js +41 -125
  543. package/dist/unstable-core-do-not-import/stream/utils/withPing.mjs +41 -122
  544. package/dist/unstable-core-do-not-import/stream/utils/withPing.mjs.map +1 -0
  545. package/dist/unstable-core-do-not-import/transformer.d.mts +106 -0
  546. package/dist/unstable-core-do-not-import/transformer.d.mts.map +1 -0
  547. package/dist/unstable-core-do-not-import/transformer.d.ts +68 -61
  548. package/dist/unstable-core-do-not-import/transformer.d.ts.map +1 -1
  549. package/dist/unstable-core-do-not-import/transformer.js +80 -90
  550. package/dist/unstable-core-do-not-import/transformer.mjs +80 -87
  551. package/dist/unstable-core-do-not-import/transformer.mjs.map +1 -0
  552. package/dist/unstable-core-do-not-import/types.d.mts +116 -0
  553. package/dist/unstable-core-do-not-import/types.d.mts.map +1 -0
  554. package/dist/unstable-core-do-not-import/types.d.ts +35 -46
  555. package/dist/unstable-core-do-not-import/types.d.ts.map +1 -1
  556. package/dist/unstable-core-do-not-import/types.js +5 -0
  557. package/dist/unstable-core-do-not-import/types.mjs +5 -0
  558. package/dist/unstable-core-do-not-import/types.mjs.map +1 -0
  559. package/dist/unstable-core-do-not-import/utils.d.mts +45 -0
  560. package/dist/unstable-core-do-not-import/utils.d.mts.map +1 -0
  561. package/dist/unstable-core-do-not-import/utils.d.ts +17 -14
  562. package/dist/unstable-core-do-not-import/utils.d.ts.map +1 -1
  563. package/dist/unstable-core-do-not-import/utils.js +58 -63
  564. package/dist/unstable-core-do-not-import/utils.mjs +58 -61
  565. package/dist/unstable-core-do-not-import/utils.mjs.map +1 -0
  566. package/dist/unstable-core-do-not-import.d.mts +40 -0
  567. package/dist/unstable-core-do-not-import.d.ts +40 -47
  568. package/dist/unstable-core-do-not-import.js +104 -107
  569. package/dist/unstable-core-do-not-import.mjs +32 -30
  570. package/dist/vendor/cookie-es/set-cookie/split.js +58 -75
  571. package/dist/vendor/cookie-es/set-cookie/split.mjs +58 -73
  572. package/dist/vendor/cookie-es/set-cookie/split.mjs.map +1 -0
  573. package/dist/vendor/standard-schema-v1/error.d.mts +21 -0
  574. package/dist/vendor/standard-schema-v1/error.d.mts.map +1 -0
  575. package/dist/vendor/standard-schema-v1/error.d.ts +18 -10
  576. package/dist/vendor/standard-schema-v1/error.d.ts.map +1 -1
  577. package/dist/vendor/standard-schema-v1/error.js +18 -26
  578. package/dist/vendor/standard-schema-v1/error.mjs +18 -24
  579. package/dist/vendor/standard-schema-v1/error.mjs.map +1 -0
  580. package/dist/vendor/standard-schema-v1/spec.d.mts +64 -0
  581. package/dist/vendor/standard-schema-v1/spec.d.mts.map +1 -0
  582. package/dist/vendor/standard-schema-v1/spec.d.ts +57 -53
  583. package/dist/vendor/standard-schema-v1/spec.d.ts.map +1 -1
  584. package/dist/vendor/unpromise/index.js +1 -0
  585. package/dist/vendor/unpromise/index.mjs +1 -0
  586. package/dist/vendor/unpromise/types.d.mts +34 -0
  587. package/dist/vendor/unpromise/types.d.mts.map +1 -0
  588. package/dist/vendor/unpromise/types.d.ts +18 -12
  589. package/dist/vendor/unpromise/types.d.ts.map +1 -1
  590. package/dist/vendor/unpromise/unpromise.d.mts +157 -0
  591. package/dist/vendor/unpromise/unpromise.d.mts.map +1 -0
  592. package/dist/vendor/unpromise/unpromise.d.ts +117 -81
  593. package/dist/vendor/unpromise/unpromise.d.ts.map +1 -1
  594. package/dist/vendor/unpromise/unpromise.js +230 -279
  595. package/dist/vendor/unpromise/unpromise.mjs +231 -277
  596. package/dist/vendor/unpromise/unpromise.mjs.map +1 -0
  597. package/http/package.json +1 -0
  598. package/observable/package.json +1 -0
  599. package/package.json +132 -56
  600. package/rpc/package.json +1 -0
  601. package/shared/package.json +1 -0
  602. package/src/@trpc/server/index.ts +1 -0
  603. package/src/adapters/aws-lambda/getPlanner.ts +22 -0
  604. package/src/adapters/aws-lambda/index.ts +40 -1
  605. package/src/adapters/ws.ts +2 -2
  606. package/src/unstable-core-do-not-import/clientish/serialize.ts +10 -0
  607. package/src/unstable-core-do-not-import/error/TRPCError.ts +2 -10
  608. package/src/unstable-core-do-not-import/http/contentType.ts +11 -12
  609. package/src/unstable-core-do-not-import/http/getHTTPStatusCode.ts +2 -0
  610. package/src/unstable-core-do-not-import/http/types.ts +1 -1
  611. package/src/unstable-core-do-not-import/procedure.ts +7 -0
  612. package/src/unstable-core-do-not-import/procedureBuilder.ts +7 -0
  613. package/src/unstable-core-do-not-import/rpc/codes.ts +13 -0
  614. package/src/unstable-core-do-not-import/rpc/index.ts +5 -1
  615. package/src/unstable-core-do-not-import/stream/sse.ts +1 -1
  616. package/src/unstable-core-do-not-import/stream/utils/asyncIterable.ts +6 -0
  617. package/unstable-core-do-not-import/package.json +1 -0
  618. package/dist/@trpc/server/http.d.ts +0 -8
  619. package/dist/@trpc/server/http.d.ts.map +0 -1
  620. package/dist/@trpc/server/rpc.d.ts +0 -3
  621. package/dist/@trpc/server/rpc.d.ts.map +0 -1
  622. package/dist/adapters/fastify/index.d.ts.map +0 -1
  623. package/dist/adapters/fetch/index.d.ts.map +0 -1
  624. package/dist/adapters/next-app-dir.d.ts.map +0 -1
  625. package/dist/adapters/node-http/index.d.ts.map +0 -1
  626. package/dist/adapters/node-http/writeResponse.d.ts +0 -18
  627. package/dist/adapters/node-http/writeResponse.d.ts.map +0 -1
  628. package/dist/http.d.ts.map +0 -1
  629. package/dist/index.d.ts.map +0 -1
  630. package/dist/node_modules/.pnpm/@rollup_plugin-typescript@12.1.2_rollup@4.34.8_tslib@2.8.1_typescript@5.8.2/node_modules/tslib/tslib.es6.js +0 -73
  631. package/dist/observable/index.d.ts.map +0 -1
  632. package/dist/rpc.d.ts.map +0 -1
  633. package/dist/shared.d.ts.map +0 -1
  634. package/dist/unstable-core-do-not-import/rpc/index.d.ts +0 -5
  635. package/dist/unstable-core-do-not-import/rpc/index.d.ts.map +0 -1
  636. package/dist/unstable-core-do-not-import/stream/utils/mergeAsyncIterables.d.ts +0 -17
  637. package/dist/unstable-core-do-not-import/stream/utils/mergeAsyncIterables.d.ts.map +0 -1
  638. package/dist/unstable-core-do-not-import/stream/utils/readableStreamFrom.d.ts +0 -8
  639. package/dist/unstable-core-do-not-import/stream/utils/readableStreamFrom.d.ts.map +0 -1
  640. package/dist/unstable-core-do-not-import/stream/utils/timerResource.d.ts +0 -5
  641. package/dist/unstable-core-do-not-import/stream/utils/timerResource.d.ts.map +0 -1
  642. package/dist/unstable-core-do-not-import/stream/utils/withPing.d.ts +0 -7
  643. package/dist/unstable-core-do-not-import/stream/utils/withPing.d.ts.map +0 -1
  644. package/dist/unstable-core-do-not-import.d.ts.map +0 -1
  645. package/dist/vendor/cookie-es/set-cookie/split.d.ts +0 -18
  646. package/dist/vendor/cookie-es/set-cookie/split.d.ts.map +0 -1
  647. package/dist/vendor/unpromise/index.d.ts +0 -3
  648. package/dist/vendor/unpromise/index.d.ts.map +0 -1
@@ -1,15 +1,14 @@
1
- /**
2
- * If you're making an adapter for tRPC and looking at this file for reference, you should import types and functions from `@trpc/server` and `@trpc/server/http`
3
- *
4
- * @example
5
- * ```ts
6
- * import type { AnyTRPCRouter } from '@trpc/server'
7
- * import type { HTTPBaseHandlerOptions } from '@trpc/server/http'
8
- * ```
9
- */
10
- import type * as express from 'express';
11
- import type { AnyRouter } from '../@trpc/server';
12
- import type { NodeHTTPCreateContextFnOptions, NodeHTTPHandlerOptions } from './node-http';
13
- export type CreateExpressContextOptions = NodeHTTPCreateContextFnOptions<express.Request, express.Response>;
14
- export declare function createExpressMiddleware<TRouter extends AnyRouter>(opts: NodeHTTPHandlerOptions<TRouter, express.Request, express.Response>): express.Handler;
1
+ import { AnyRouter } from "../unstable-core-do-not-import/router.js";
2
+ import { NodeHTTPCreateContextFnOptions, NodeHTTPHandlerOptions } from "./node-http/types.js";
3
+ import * as express from "express";
4
+
5
+ //#region src/adapters/express.d.ts
6
+
7
+ type CreateExpressContextOptions = NodeHTTPCreateContextFnOptions<express.Request, express.Response>;
8
+ declare function createExpressMiddleware<TRouter extends AnyRouter>(opts: NodeHTTPHandlerOptions<TRouter, express.Request, express.Response>): express.Handler;
9
+
10
+ //#endregion
11
+ //# sourceMappingURL=express.d.ts.map
12
+
13
+ export { CreateExpressContextOptions, createExpressMiddleware };
15
14
  //# sourceMappingURL=express.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"express.d.ts","sourceRoot":"","sources":["../../src/adapters/express.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,KAAK,KAAK,OAAO,MAAM,SAAS,CAAC;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAGjD,OAAO,KAAK,EACV,8BAA8B,EAC9B,sBAAsB,EACvB,MAAM,aAAa,CAAC;AAGrB,MAAM,MAAM,2BAA2B,GAAG,8BAA8B,CACtE,OAAO,CAAC,OAAO,EACf,OAAO,CAAC,QAAQ,CACjB,CAAC;AAEF,wBAAgB,uBAAuB,CAAC,OAAO,SAAS,SAAS,EAC/D,IAAI,EAAE,sBAAsB,CAAC,OAAO,EAAE,OAAO,CAAC,OAAO,EAAE,OAAO,CAAC,QAAQ,CAAC,GACvE,OAAO,CAAC,OAAO,CAqBjB"}
1
+ {"version":3,"file":"express.d.ts","names":[],"sources":["../../src/adapters/express.ts"],"sourcesContent":[],"mappings":";;;;;;AAwBuC,KAL3B,2BAAA,GAA8B,8BAKH,CAJrC,OAAA,CAAQ,OAI6B,EAHrC,OAAA,CAAQ,QAG6B,CAAA;AAAiB,iBAAxC,uBAAwC,CAAA,gBAAA,SAAA,CAAA,CAAA,IAAA,EAChD,sBADgD,CACzB,OADyB,EAChB,OAAA,CAAQ,OADQ,EACC,OAAA,CAAQ,QADT,CAAA,CAAA,EAErD,OAAA,CAAQ,OAF6C"}
@@ -1,38 +1,26 @@
1
- 'use strict';
1
+ const require__Users_julius_dev_trpc_packages_server_src_unstable_core_do_not_import_utils = require('../unstable-core-do-not-import/utils.js');
2
+ const require__Users_julius_dev_trpc_packages_server_src_adapters_node_http_nodeHTTPRequestHandler = require('./node-http/nodeHTTPRequestHandler.js');
2
3
 
3
- var utils = require('../unstable-core-do-not-import/utils.js');
4
- require('../vendor/unpromise/unpromise.js');
5
- require('../unstable-core-do-not-import/stream/utils/disposable.js');
6
- require('../unstable-core-do-not-import/rootConfig.js');
7
- var nodeHTTPRequestHandler = require('./node-http/nodeHTTPRequestHandler.js');
8
-
9
- /**
10
- * If you're making an adapter for tRPC and looking at this file for reference, you should import types and functions from `@trpc/server` and `@trpc/server/http`
11
- *
12
- * @example
13
- * ```ts
14
- * import type { AnyTRPCRouter } from '@trpc/server'
15
- * import type { HTTPBaseHandlerOptions } from '@trpc/server/http'
16
- * ```
17
- */ // eslint-disable-next-line no-restricted-imports
4
+ //#region src/adapters/express.ts
18
5
  function createExpressMiddleware(opts) {
19
- return (req, res)=>{
20
- let path = '';
21
- utils.run(async ()=>{
22
- path = req.path.slice(req.path.lastIndexOf('/') + 1);
23
- await nodeHTTPRequestHandler.nodeHTTPRequestHandler({
24
- ...opts,
25
- req,
26
- res,
27
- path
28
- });
29
- }).catch(nodeHTTPRequestHandler.internal_exceptionHandler({
30
- req,
31
- res,
32
- path,
33
- ...opts
34
- }));
35
- };
6
+ return (req, res) => {
7
+ let path = "";
8
+ require__Users_julius_dev_trpc_packages_server_src_unstable_core_do_not_import_utils.run(async () => {
9
+ path = req.path.slice(req.path.lastIndexOf("/") + 1);
10
+ await require__Users_julius_dev_trpc_packages_server_src_adapters_node_http_nodeHTTPRequestHandler.nodeHTTPRequestHandler({
11
+ ...opts,
12
+ req,
13
+ res,
14
+ path
15
+ });
16
+ }).catch(require__Users_julius_dev_trpc_packages_server_src_adapters_node_http_nodeHTTPRequestHandler.internal_exceptionHandler({
17
+ req,
18
+ res,
19
+ path,
20
+ ...opts
21
+ }));
22
+ };
36
23
  }
37
24
 
38
- exports.createExpressMiddleware = createExpressMiddleware;
25
+ //#endregion
26
+ exports.createExpressMiddleware = createExpressMiddleware;
@@ -1,36 +1,27 @@
1
- import { run } from '../unstable-core-do-not-import/utils.mjs';
2
- import '../vendor/unpromise/unpromise.mjs';
3
- import '../unstable-core-do-not-import/stream/utils/disposable.mjs';
4
- import '../unstable-core-do-not-import/rootConfig.mjs';
5
- import { nodeHTTPRequestHandler, internal_exceptionHandler } from './node-http/nodeHTTPRequestHandler.mjs';
1
+ import { run } from "../unstable-core-do-not-import/utils.mjs";
2
+ import { internal_exceptionHandler, nodeHTTPRequestHandler } from "./node-http/nodeHTTPRequestHandler.mjs";
6
3
 
7
- /**
8
- * If you're making an adapter for tRPC and looking at this file for reference, you should import types and functions from `@trpc/server` and `@trpc/server/http`
9
- *
10
- * @example
11
- * ```ts
12
- * import type { AnyTRPCRouter } from '@trpc/server'
13
- * import type { HTTPBaseHandlerOptions } from '@trpc/server/http'
14
- * ```
15
- */ // eslint-disable-next-line no-restricted-imports
4
+ //#region src/adapters/express.ts
16
5
  function createExpressMiddleware(opts) {
17
- return (req, res)=>{
18
- let path = '';
19
- run(async ()=>{
20
- path = req.path.slice(req.path.lastIndexOf('/') + 1);
21
- await nodeHTTPRequestHandler({
22
- ...opts,
23
- req,
24
- res,
25
- path
26
- });
27
- }).catch(internal_exceptionHandler({
28
- req,
29
- res,
30
- path,
31
- ...opts
32
- }));
33
- };
6
+ return (req, res) => {
7
+ let path = "";
8
+ run(async () => {
9
+ path = req.path.slice(req.path.lastIndexOf("/") + 1);
10
+ await nodeHTTPRequestHandler({
11
+ ...opts,
12
+ req,
13
+ res,
14
+ path
15
+ });
16
+ }).catch(internal_exceptionHandler({
17
+ req,
18
+ res,
19
+ path,
20
+ ...opts
21
+ }));
22
+ };
34
23
  }
35
24
 
25
+ //#endregion
36
26
  export { createExpressMiddleware };
27
+ //# sourceMappingURL=express.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"express.mjs","names":["opts: NodeHTTPHandlerOptions<TRouter, express.Request, express.Response>"],"sources":["../../src/adapters/express.ts"],"sourcesContent":["/**\n * If you're making an adapter for tRPC and looking at this file for reference, you should import types and functions from `@trpc/server` and `@trpc/server/http`\n *\n * @example\n * ```ts\n * import type { AnyTRPCRouter } from '@trpc/server'\n * import type { HTTPBaseHandlerOptions } from '@trpc/server/http'\n * ```\n */\nimport type * as express from 'express';\nimport type { AnyRouter } from '../@trpc/server';\n// eslint-disable-next-line no-restricted-imports\nimport { run } from '../unstable-core-do-not-import';\nimport type {\n NodeHTTPCreateContextFnOptions,\n NodeHTTPHandlerOptions,\n} from './node-http';\nimport { internal_exceptionHandler, nodeHTTPRequestHandler } from './node-http';\n\nexport type CreateExpressContextOptions = NodeHTTPCreateContextFnOptions<\n express.Request,\n express.Response\n>;\n\nexport function createExpressMiddleware<TRouter extends AnyRouter>(\n opts: NodeHTTPHandlerOptions<TRouter, express.Request, express.Response>,\n): express.Handler {\n return (req, res) => {\n let path = '';\n run(async () => {\n path = req.path.slice(req.path.lastIndexOf('/') + 1);\n\n await nodeHTTPRequestHandler({\n ...(opts as any),\n req,\n res,\n path,\n });\n }).catch(\n internal_exceptionHandler({\n req,\n res,\n path,\n ...opts,\n }),\n );\n };\n}\n"],"mappings":";;;;AAwBA,SAAgB,wBACdA,MACiB;AACjB,QAAO,CAAC,KAAK,QAAQ;EACnB,IAAI,OAAO;AACX,MAAI,YAAY;AACd,UAAO,IAAI,KAAK,MAAM,IAAI,KAAK,YAAY,IAAI,GAAG,EAAE;AAEpD,SAAM,uBAAuB;IAC3B,GAAI;IACJ;IACA;IACA;GACD,EAAC;EACH,EAAC,CAAC,MACD,0BAA0B;GACxB;GACA;GACA;GACA,GAAG;EACJ,EAAC,CACH;CACF;AACF"}
@@ -0,0 +1,18 @@
1
+ import { HTTPBaseHandlerOptions } from "../../unstable-core-do-not-import/http/types.mjs";
2
+ import { AnyRouter } from "../../unstable-core-do-not-import/router.mjs";
3
+ import { NodeHTTPCreateContextOption } from "../node-http/types.mjs";
4
+ import { FastifyReply, FastifyRequest } from "fastify";
5
+
6
+ //#region src/adapters/fastify/fastifyRequestHandler.d.ts
7
+
8
+ type FastifyHandlerOptions<TRouter extends AnyRouter, TRequest extends FastifyRequest, TResponse extends FastifyReply> = HTTPBaseHandlerOptions<TRouter, TRequest> & NodeHTTPCreateContextOption<TRouter, TRequest, TResponse>;
9
+ type FastifyRequestHandlerOptions<TRouter extends AnyRouter, TRequest extends FastifyRequest, TResponse extends FastifyReply> = FastifyHandlerOptions<TRouter, TRequest, TResponse> & {
10
+ req: TRequest;
11
+ res: TResponse;
12
+ path: string;
13
+ };
14
+ declare function fastifyRequestHandler<TRouter extends AnyRouter, TRequest extends FastifyRequest, TResponse extends FastifyReply>(opts: FastifyRequestHandlerOptions<TRouter, TRequest, TResponse>): Promise<void>;
15
+
16
+ //#endregion
17
+ export { FastifyHandlerOptions, fastifyRequestHandler as fastifyRequestHandler$1 };
18
+ //# sourceMappingURL=fastifyRequestHandler.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fastifyRequestHandler.d.mts","names":[],"sources":["../../../src/adapters/fastify/fastifyRequestHandler.ts"],"sourcesContent":[],"mappings":";;;;;;;AA6BI,KAJQ,qBAIR,CAAA,gBAHc,SAGd,EAAA,iBAFe,cAEf,EAAA,kBADgB,YAChB,CAAA,GAAA,sBAAA,CAAuB,OAAvB,EAAgC,QAAhC,CAAA,GACF,2BADE,CAC0B,OAD1B,EACmC,QADnC,EAC6C,SAD7C,CAAA;KAGC,4BAFyB,CAAA,gBAGZ,SAHY,EAAA,iBAIX,cAJW,EAAA,kBAKV,YALU,CAAA,GAM1B,qBAN0B,CAMJ,OANI,EAMK,QANL,EAMe,SANf,CAAA,GAAA;EAAO,GAAE,EAOhC,QAPgC;EAAQ,GAAE,EAQ1C,SAR0C;EAAS,IAAxD,EAAA,MAAA;AAA2B,CAAA;AAExB,iBAUiB,qBAVW,CAAA,gBAWf,SAXe,EAAA,iBAYd,cAZc,EAAA,kBAab,YAba,CAAA,CAAA,IAAA,EAczB,4BAdyB,CAcI,OAdJ,EAca,QAdb,EAcuB,SAdvB,CAAA,CAAA,EAciC,OAdjC,CAAA,IAAA,CAAA"}
@@ -1,22 +1,18 @@
1
- /**
2
- * If you're making an adapter for tRPC and looking at this file for reference, you should import types and functions from `@trpc/server` and `@trpc/server/http`
3
- *
4
- * @example
5
- * ```ts
6
- * import type { AnyTRPCRouter } from '@trpc/server'
7
- * import type { HTTPBaseHandlerOptions } from '@trpc/server/http'
8
- * ```
9
- */
10
- import type { FastifyReply, FastifyRequest } from 'fastify';
11
- import type { AnyRouter } from '../../@trpc/server';
12
- import { type HTTPBaseHandlerOptions } from '../../@trpc/server/http';
13
- import { type NodeHTTPCreateContextOption } from '../node-http';
14
- export type FastifyHandlerOptions<TRouter extends AnyRouter, TRequest extends FastifyRequest, TResponse extends FastifyReply> = HTTPBaseHandlerOptions<TRouter, TRequest> & NodeHTTPCreateContextOption<TRouter, TRequest, TResponse>;
1
+ import { HTTPBaseHandlerOptions } from "../../unstable-core-do-not-import/http/types.js";
2
+ import { AnyRouter } from "../../unstable-core-do-not-import/router.js";
3
+ import { NodeHTTPCreateContextOption } from "../node-http/types.js";
4
+ import { FastifyReply, FastifyRequest } from "fastify";
5
+
6
+ //#region src/adapters/fastify/fastifyRequestHandler.d.ts
7
+
8
+ type FastifyHandlerOptions<TRouter extends AnyRouter, TRequest extends FastifyRequest, TResponse extends FastifyReply> = HTTPBaseHandlerOptions<TRouter, TRequest> & NodeHTTPCreateContextOption<TRouter, TRequest, TResponse>;
15
9
  type FastifyRequestHandlerOptions<TRouter extends AnyRouter, TRequest extends FastifyRequest, TResponse extends FastifyReply> = FastifyHandlerOptions<TRouter, TRequest, TResponse> & {
16
- req: TRequest;
17
- res: TResponse;
18
- path: string;
10
+ req: TRequest;
11
+ res: TResponse;
12
+ path: string;
19
13
  };
20
- export declare function fastifyRequestHandler<TRouter extends AnyRouter, TRequest extends FastifyRequest, TResponse extends FastifyReply>(opts: FastifyRequestHandlerOptions<TRouter, TRequest, TResponse>): Promise<void>;
21
- export {};
14
+ declare function fastifyRequestHandler<TRouter extends AnyRouter, TRequest extends FastifyRequest, TResponse extends FastifyReply>(opts: FastifyRequestHandlerOptions<TRouter, TRequest, TResponse>): Promise<void>;
15
+
16
+ //#endregion
17
+ export { FastifyHandlerOptions, fastifyRequestHandler };
22
18
  //# sourceMappingURL=fastifyRequestHandler.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"fastifyRequestHandler.d.ts","sourceRoot":"","sources":["../../../src/adapters/fastify/fastifyRequestHandler.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,KAAK,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAE5D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAEpD,OAAO,EAEL,KAAK,sBAAsB,EAE5B,MAAM,yBAAyB,CAAC;AAGjC,OAAO,EAEL,KAAK,2BAA2B,EACjC,MAAM,cAAc,CAAC;AAEtB,MAAM,MAAM,qBAAqB,CAC/B,OAAO,SAAS,SAAS,EACzB,QAAQ,SAAS,cAAc,EAC/B,SAAS,SAAS,YAAY,IAC5B,sBAAsB,CAAC,OAAO,EAAE,QAAQ,CAAC,GAC3C,2BAA2B,CAAC,OAAO,EAAE,QAAQ,EAAE,SAAS,CAAC,CAAC;AAE5D,KAAK,4BAA4B,CAC/B,OAAO,SAAS,SAAS,EACzB,QAAQ,SAAS,cAAc,EAC/B,SAAS,SAAS,YAAY,IAC5B,qBAAqB,CAAC,OAAO,EAAE,QAAQ,EAAE,SAAS,CAAC,GAAG;IACxD,GAAG,EAAE,QAAQ,CAAC;IACd,GAAG,EAAE,SAAS,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,wBAAsB,qBAAqB,CACzC,OAAO,SAAS,SAAS,EACzB,QAAQ,SAAS,cAAc,EAC/B,SAAS,SAAS,YAAY,EAC9B,IAAI,EAAE,4BAA4B,CAAC,OAAO,EAAE,QAAQ,EAAE,SAAS,CAAC,iBAkCjE"}
1
+ {"version":3,"file":"fastifyRequestHandler.d.ts","names":[],"sources":["../../../src/adapters/fastify/fastifyRequestHandler.ts"],"sourcesContent":[],"mappings":";;;;;;;AA6BI,KAJQ,qBAIR,CAAA,gBAHc,SAGd,EAAA,iBAFe,cAEf,EAAA,kBADgB,YAChB,CAAA,GAAA,sBAAA,CAAuB,OAAvB,EAAgC,QAAhC,CAAA,GACF,2BADE,CAC0B,OAD1B,EACmC,QADnC,EAC6C,SAD7C,CAAA;KAGC,4BAFyB,CAAA,gBAGZ,SAHY,EAAA,iBAIX,cAJW,EAAA,kBAKV,YALU,CAAA,GAM1B,qBAN0B,CAMJ,OANI,EAMK,QANL,EAMe,SANf,CAAA,GAAA;EAAO,GAAE,EAOhC,QAPgC;EAAQ,GAAE,EAQ1C,SAR0C;EAAS,IAAxD,EAAA,MAAA;AAA2B,CAAA;AAExB,iBAUiB,qBAVW,CAAA,gBAWf,SAXe,EAAA,iBAYd,cAZc,EAAA,kBAab,YAba,CAAA,CAAA,IAAA,EAczB,4BAdyB,CAcI,OAdJ,EAca,QAdb,EAcuB,SAdvB,CAAA,CAAA,EAciC,OAdjC,CAAA,IAAA,CAAA"}
@@ -1,48 +1,31 @@
1
- 'use strict';
1
+ const require__Users_julius_dev_trpc_packages_server_src_unstable_core_do_not_import_http_resolveResponse = require('../../unstable-core-do-not-import/http/resolveResponse.js');
2
+ const require__Users_julius_dev_trpc_packages_server_src_adapters_node_http_incomingMessageToRequest = require('../node-http/incomingMessageToRequest.js');
2
3
 
3
- var resolveResponse = require('../../unstable-core-do-not-import/http/resolveResponse.js');
4
- require('../../unstable-core-do-not-import/rootConfig.js');
5
- require('../../vendor/unpromise/unpromise.js');
6
- require('../../unstable-core-do-not-import/stream/utils/disposable.js');
7
- var incomingMessageToRequest = require('../node-http/incomingMessageToRequest.js');
8
-
9
- /**
10
- * If you're making an adapter for tRPC and looking at this file for reference, you should import types and functions from `@trpc/server` and `@trpc/server/http`
11
- *
12
- * @example
13
- * ```ts
14
- * import type { AnyTRPCRouter } from '@trpc/server'
15
- * import type { HTTPBaseHandlerOptions } from '@trpc/server/http'
16
- * ```
17
- */ // @trpc/server/http
4
+ //#region src/adapters/fastify/fastifyRequestHandler.ts
18
5
  async function fastifyRequestHandler(opts) {
19
- const createContext = async (innerOpts)=>{
20
- return await opts.createContext?.({
21
- ...opts,
22
- ...innerOpts
23
- });
24
- };
25
- const incomingMessage = opts.req.raw;
26
- // monkey-path body to the IncomingMessage
27
- if ('body' in opts.req) {
28
- incomingMessage.body = opts.req.body;
29
- }
30
- const req = incomingMessageToRequest.incomingMessageToRequest(incomingMessage, opts.res.raw, {
31
- maxBodySize: null
32
- });
33
- const res = await resolveResponse.resolveResponse({
34
- ...opts,
35
- req,
36
- error: null,
37
- createContext,
38
- onError (o) {
39
- opts?.onError?.({
40
- ...o,
41
- req: opts.req
42
- });
43
- }
44
- });
45
- await opts.res.send(res);
6
+ const createContext = async (innerOpts) => {
7
+ return await opts.createContext?.({
8
+ ...opts,
9
+ ...innerOpts
10
+ });
11
+ };
12
+ const incomingMessage = opts.req.raw;
13
+ if ("body" in opts.req) incomingMessage.body = opts.req.body;
14
+ const req = require__Users_julius_dev_trpc_packages_server_src_adapters_node_http_incomingMessageToRequest.incomingMessageToRequest(incomingMessage, opts.res.raw, { maxBodySize: null });
15
+ const res = await require__Users_julius_dev_trpc_packages_server_src_unstable_core_do_not_import_http_resolveResponse.resolveResponse({
16
+ ...opts,
17
+ req,
18
+ error: null,
19
+ createContext,
20
+ onError(o) {
21
+ opts?.onError?.({
22
+ ...o,
23
+ req: opts.req
24
+ });
25
+ }
26
+ });
27
+ await opts.res.send(res);
46
28
  }
47
29
 
48
- exports.fastifyRequestHandler = fastifyRequestHandler;
30
+ //#endregion
31
+ exports.fastifyRequestHandler = fastifyRequestHandler;
@@ -1,46 +1,32 @@
1
- import { resolveResponse } from '../../unstable-core-do-not-import/http/resolveResponse.mjs';
2
- import '../../unstable-core-do-not-import/rootConfig.mjs';
3
- import '../../vendor/unpromise/unpromise.mjs';
4
- import '../../unstable-core-do-not-import/stream/utils/disposable.mjs';
5
- import { incomingMessageToRequest } from '../node-http/incomingMessageToRequest.mjs';
1
+ import { resolveResponse } from "../../unstable-core-do-not-import/http/resolveResponse.mjs";
2
+ import { incomingMessageToRequest } from "../node-http/incomingMessageToRequest.mjs";
6
3
 
7
- /**
8
- * If you're making an adapter for tRPC and looking at this file for reference, you should import types and functions from `@trpc/server` and `@trpc/server/http`
9
- *
10
- * @example
11
- * ```ts
12
- * import type { AnyTRPCRouter } from '@trpc/server'
13
- * import type { HTTPBaseHandlerOptions } from '@trpc/server/http'
14
- * ```
15
- */ // @trpc/server/http
4
+ //#region src/adapters/fastify/fastifyRequestHandler.ts
16
5
  async function fastifyRequestHandler(opts) {
17
- const createContext = async (innerOpts)=>{
18
- return await opts.createContext?.({
19
- ...opts,
20
- ...innerOpts
21
- });
22
- };
23
- const incomingMessage = opts.req.raw;
24
- // monkey-path body to the IncomingMessage
25
- if ('body' in opts.req) {
26
- incomingMessage.body = opts.req.body;
27
- }
28
- const req = incomingMessageToRequest(incomingMessage, opts.res.raw, {
29
- maxBodySize: null
30
- });
31
- const res = await resolveResponse({
32
- ...opts,
33
- req,
34
- error: null,
35
- createContext,
36
- onError (o) {
37
- opts?.onError?.({
38
- ...o,
39
- req: opts.req
40
- });
41
- }
42
- });
43
- await opts.res.send(res);
6
+ const createContext = async (innerOpts) => {
7
+ return await opts.createContext?.({
8
+ ...opts,
9
+ ...innerOpts
10
+ });
11
+ };
12
+ const incomingMessage = opts.req.raw;
13
+ if ("body" in opts.req) incomingMessage.body = opts.req.body;
14
+ const req = incomingMessageToRequest(incomingMessage, opts.res.raw, { maxBodySize: null });
15
+ const res = await resolveResponse({
16
+ ...opts,
17
+ req,
18
+ error: null,
19
+ createContext,
20
+ onError(o) {
21
+ opts?.onError?.({
22
+ ...o,
23
+ req: opts.req
24
+ });
25
+ }
26
+ });
27
+ await opts.res.send(res);
44
28
  }
45
29
 
30
+ //#endregion
46
31
  export { fastifyRequestHandler };
32
+ //# sourceMappingURL=fastifyRequestHandler.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fastifyRequestHandler.mjs","names":["opts: FastifyRequestHandlerOptions<TRouter, TRequest, TResponse>","createContext: ResolveHTTPRequestOptionsContextFn<TRouter>","incomingMessage: NodeHTTPRequest"],"sources":["../../../src/adapters/fastify/fastifyRequestHandler.ts"],"sourcesContent":["/**\n * If you're making an adapter for tRPC and looking at this file for reference, you should import types and functions from `@trpc/server` and `@trpc/server/http`\n *\n * @example\n * ```ts\n * import type { AnyTRPCRouter } from '@trpc/server'\n * import type { HTTPBaseHandlerOptions } from '@trpc/server/http'\n * ```\n */\nimport type { FastifyReply, FastifyRequest } from 'fastify';\n// @trpc/server\nimport type { AnyRouter } from '../../@trpc/server';\n// @trpc/server/http\nimport {\n resolveResponse,\n type HTTPBaseHandlerOptions,\n type ResolveHTTPRequestOptionsContextFn,\n} from '../../@trpc/server/http';\n// @trpc/server/node-http\nimport type { NodeHTTPRequest } from '../node-http';\nimport {\n incomingMessageToRequest,\n type NodeHTTPCreateContextOption,\n} from '../node-http';\n\nexport type FastifyHandlerOptions<\n TRouter extends AnyRouter,\n TRequest extends FastifyRequest,\n TResponse extends FastifyReply,\n> = HTTPBaseHandlerOptions<TRouter, TRequest> &\n NodeHTTPCreateContextOption<TRouter, TRequest, TResponse>;\n\ntype FastifyRequestHandlerOptions<\n TRouter extends AnyRouter,\n TRequest extends FastifyRequest,\n TResponse extends FastifyReply,\n> = FastifyHandlerOptions<TRouter, TRequest, TResponse> & {\n req: TRequest;\n res: TResponse;\n path: string;\n};\n\nexport async function fastifyRequestHandler<\n TRouter extends AnyRouter,\n TRequest extends FastifyRequest,\n TResponse extends FastifyReply,\n>(opts: FastifyRequestHandlerOptions<TRouter, TRequest, TResponse>) {\n const createContext: ResolveHTTPRequestOptionsContextFn<TRouter> = async (\n innerOpts,\n ) => {\n return await opts.createContext?.({\n ...opts,\n ...innerOpts,\n });\n };\n\n const incomingMessage: NodeHTTPRequest = opts.req.raw;\n\n // monkey-path body to the IncomingMessage\n if ('body' in opts.req) {\n incomingMessage.body = opts.req.body;\n }\n const req = incomingMessageToRequest(incomingMessage, opts.res.raw, {\n maxBodySize: null,\n });\n\n const res = await resolveResponse({\n ...opts,\n req,\n error: null,\n createContext,\n onError(o) {\n opts?.onError?.({\n ...o,\n req: opts.req,\n });\n },\n });\n\n await opts.res.send(res);\n}\n"],"mappings":";;;;AA0CA,eAAsB,sBAIpBA,MAAkE;CAClE,MAAMC,gBAA6D,OACjE,cACG;AACH,SAAO,MAAM,KAAK,gBAAgB;GAChC,GAAG;GACH,GAAG;EACJ,EAAC;CACH;CAED,MAAMC,kBAAmC,KAAK,IAAI;AAGlD,KAAI,UAAU,KAAK,IACjB,iBAAgB,OAAO,KAAK,IAAI;CAElC,MAAM,MAAM,yBAAyB,iBAAiB,KAAK,IAAI,KAAK,EAClE,aAAa,KACd,EAAC;CAEF,MAAM,MAAM,MAAM,gBAAgB;EAChC,GAAG;EACH;EACA,OAAO;EACP;EACA,QAAQ,GAAG;AACT,SAAM,UAAU;IACd,GAAG;IACH,KAAK,KAAK;GACX,EAAC;EACH;CACF,EAAC;AAEF,OAAM,KAAK,IAAI,KAAK,IAAI;AACzB"}
@@ -0,0 +1,20 @@
1
+ import { AnyRouter } from "../../unstable-core-do-not-import/router.mjs";
2
+ import { NodeHTTPCreateContextFnOptions } from "../node-http/types.mjs";
3
+ import { FastifyHandlerOptions } from "./fastifyRequestHandler.mjs";
4
+ import { FastifyInstance, FastifyReply, FastifyRequest } from "fastify";
5
+
6
+ //#region src/adapters/fastify/fastifyTRPCPlugin.d.ts
7
+
8
+ interface FastifyTRPCPluginOptions<TRouter extends AnyRouter> {
9
+ prefix?: string;
10
+ useWSS?: boolean;
11
+ trpcOptions: FastifyHandlerOptions<TRouter, FastifyRequest, FastifyReply>;
12
+ }
13
+ type CreateFastifyContextOptions = NodeHTTPCreateContextFnOptions<FastifyRequest, FastifyReply>;
14
+ declare function fastifyTRPCPlugin<TRouter extends AnyRouter>(fastify: FastifyInstance, opts: FastifyTRPCPluginOptions<TRouter>, done: (err?: Error) => void): void;
15
+
16
+ //#endregion
17
+ //# sourceMappingURL=fastifyTRPCPlugin.d.ts.map
18
+
19
+ export { CreateFastifyContextOptions, FastifyTRPCPluginOptions, fastifyTRPCPlugin as fastifyTRPCPlugin$1 };
20
+ //# sourceMappingURL=fastifyTRPCPlugin.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fastifyTRPCPlugin.d.mts","names":[],"sources":["../../../src/adapters/fastify/fastifyTRPCPlugin.ts"],"sourcesContent":[],"mappings":";;;;;;;AA2BoC,UAHnB,wBAGmB,CAAA,gBAHsB,SAGtB,CAAA,CAAA;EAGxB,MAAA,CAAA,EAAA,MAAA;EAA2B,MAAA,CAAA,EAAA,OAAA;EAAA,WACrC,EAJa,qBAIb,CAJmC,OAInC,EAJ4C,cAI5C,EAJ4D,YAI5D,CAAA;;AADwC,KAA9B,2BAAA,GAA8B,8BAAA,CACxC,cADwC,EAExC,YAFwC,CAAA;AAA8B,iBAKxD,iBALwD,CAAA,gBAKtB,SALsB,CAAA,CAAA,OAAA,EAM7D,eAN6D,EAAA,IAAA,EAOhE,wBAPgE,CAOvC,OAPuC,CAAA,EAAA,IAAA,EAAA,CAAA,GAAA,CAAA,EAQzD,KARyD,EAAA,GAAA,IAAA,CAAA,EAAA,IAAA;;;AAKxE"}
@@ -1,21 +1,20 @@
1
- /**
2
- * If you're making an adapter for tRPC and looking at this file for reference, you should import types and functions from `@trpc/server` and `@trpc/server/http`
3
- *
4
- * @example
5
- * ```ts
6
- * import type { AnyTRPCRouter } from '@trpc/server'
7
- * import type { HTTPBaseHandlerOptions } from '@trpc/server/http'
8
- * ```
9
- */
10
- import type { FastifyInstance, FastifyReply, FastifyRequest } from 'fastify';
11
- import type { AnyRouter } from '../../@trpc/server';
12
- import type { NodeHTTPCreateContextFnOptions } from '../node-http';
13
- import type { FastifyHandlerOptions } from './fastifyRequestHandler';
14
- export interface FastifyTRPCPluginOptions<TRouter extends AnyRouter> {
15
- prefix?: string;
16
- useWSS?: boolean;
17
- trpcOptions: FastifyHandlerOptions<TRouter, FastifyRequest, FastifyReply>;
1
+ import { AnyRouter } from "../../unstable-core-do-not-import/router.js";
2
+ import { NodeHTTPCreateContextFnOptions } from "../node-http/types.js";
3
+ import { FastifyHandlerOptions } from "./fastifyRequestHandler.js";
4
+ import { FastifyInstance, FastifyReply, FastifyRequest } from "fastify";
5
+
6
+ //#region src/adapters/fastify/fastifyTRPCPlugin.d.ts
7
+
8
+ interface FastifyTRPCPluginOptions<TRouter extends AnyRouter> {
9
+ prefix?: string;
10
+ useWSS?: boolean;
11
+ trpcOptions: FastifyHandlerOptions<TRouter, FastifyRequest, FastifyReply>;
18
12
  }
19
- export type CreateFastifyContextOptions = NodeHTTPCreateContextFnOptions<FastifyRequest, FastifyReply>;
20
- export declare function fastifyTRPCPlugin<TRouter extends AnyRouter>(fastify: FastifyInstance, opts: FastifyTRPCPluginOptions<TRouter>, done: (err?: Error) => void): void;
13
+ type CreateFastifyContextOptions = NodeHTTPCreateContextFnOptions<FastifyRequest, FastifyReply>;
14
+ declare function fastifyTRPCPlugin<TRouter extends AnyRouter>(fastify: FastifyInstance, opts: FastifyTRPCPluginOptions<TRouter>, done: (err?: Error) => void): void;
15
+
16
+ //#endregion
17
+ //# sourceMappingURL=fastifyTRPCPlugin.d.ts.map
18
+
19
+ export { CreateFastifyContextOptions, FastifyTRPCPluginOptions, fastifyTRPCPlugin };
21
20
  //# sourceMappingURL=fastifyTRPCPlugin.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"fastifyTRPCPlugin.d.ts","sourceRoot":"","sources":["../../../src/adapters/fastify/fastifyTRPCPlugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAE7E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAEpD,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,cAAc,CAAC;AAOnE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAGrE,MAAM,WAAW,wBAAwB,CAAC,OAAO,SAAS,SAAS;IACjE,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,WAAW,EAAE,qBAAqB,CAAC,OAAO,EAAE,cAAc,EAAE,YAAY,CAAC,CAAC;CAC3E;AAED,MAAM,MAAM,2BAA2B,GAAG,8BAA8B,CACtE,cAAc,EACd,YAAY,CACb,CAAC;AAEF,wBAAgB,iBAAiB,CAAC,OAAO,SAAS,SAAS,EACzD,OAAO,EAAE,eAAe,EACxB,IAAI,EAAE,wBAAwB,CAAC,OAAO,CAAC,EACvC,IAAI,EAAE,CAAC,GAAG,CAAC,EAAE,KAAK,KAAK,IAAI,QA0C5B"}
1
+ {"version":3,"file":"fastifyTRPCPlugin.d.ts","names":[],"sources":["../../../src/adapters/fastify/fastifyTRPCPlugin.ts"],"sourcesContent":[],"mappings":";;;;;;;AA2BoC,UAHnB,wBAGmB,CAAA,gBAHsB,SAGtB,CAAA,CAAA;EAGxB,MAAA,CAAA,EAAA,MAAA;EAA2B,MAAA,CAAA,EAAA,OAAA;EAAA,WACrC,EAJa,qBAIb,CAJmC,OAInC,EAJ4C,cAI5C,EAJ4D,YAI5D,CAAA;;AADwC,KAA9B,2BAAA,GAA8B,8BAAA,CACxC,cADwC,EAExC,YAFwC,CAAA;AAA8B,iBAKxD,iBALwD,CAAA,gBAKtB,SALsB,CAAA,CAAA,OAAA,EAM7D,eAN6D,EAAA,IAAA,EAOhE,wBAPgE,CAOvC,OAPuC,CAAA,EAAA,IAAA,EAAA,CAAA,GAAA,CAAA,EAQzD,KARyD,EAAA,GAAA,IAAA,CAAA,EAAA,IAAA;;;AAKxE"}
@@ -1,56 +1,36 @@
1
- 'use strict';
1
+ const require__Users_julius_dev_trpc_packages_server_src_adapters_ws = require('../ws.js');
2
+ const require__Users_julius_dev_trpc_packages_server_src_adapters_fastify_fastifyRequestHandler = require('./fastifyRequestHandler.js');
2
3
 
3
- var ws = require('../ws.js');
4
- var fastifyRequestHandler = require('./fastifyRequestHandler.js');
5
-
6
- /**
7
- * If you're making an adapter for tRPC and looking at this file for reference, you should import types and functions from `@trpc/server` and `@trpc/server/http`
8
- *
9
- * @example
10
- * ```ts
11
- * import type { AnyTRPCRouter } from '@trpc/server'
12
- * import type { HTTPBaseHandlerOptions } from '@trpc/server/http'
13
- * ```
14
- */ /// <reference types="@fastify/websocket" />
15
- // @trpc/server/ws
4
+ //#region src/adapters/fastify/fastifyTRPCPlugin.ts
16
5
  function fastifyTRPCPlugin(fastify, opts, done) {
17
- fastify.removeContentTypeParser('application/json');
18
- fastify.addContentTypeParser('application/json', {
19
- parseAs: 'string'
20
- }, function(_, body, _done) {
21
- _done(null, body);
22
- });
23
- let prefix = opts.prefix ?? '';
24
- // https://github.com/fastify/fastify-plugin/blob/fe079bef6557a83794bf437e14b9b9edb8a74104/plugin.js#L11
25
- // @ts-expect-error property 'default' does not exists on type ...
26
- if (typeof fastifyTRPCPlugin.default !== 'function') {
27
- prefix = ''; // handled by fastify internally
28
- }
29
- fastify.all(`${prefix}/:path`, async (req, res)=>{
30
- const path = req.params.path;
31
- await fastifyRequestHandler.fastifyRequestHandler({
32
- ...opts.trpcOptions,
33
- req,
34
- res,
35
- path
36
- });
37
- });
38
- if (opts.useWSS) {
39
- const trpcOptions = opts.trpcOptions;
40
- const onConnection = ws.getWSConnectionHandler({
41
- ...trpcOptions
42
- });
43
- fastify.get(prefix ?? '/', {
44
- websocket: true
45
- }, (socket, req)=>{
46
- onConnection(socket, req.raw);
47
- if (trpcOptions?.keepAlive?.enabled) {
48
- const { pingMs, pongWaitMs } = trpcOptions.keepAlive;
49
- ws.handleKeepAlive(socket, pingMs, pongWaitMs);
50
- }
51
- });
52
- }
53
- done();
6
+ fastify.removeContentTypeParser("application/json");
7
+ fastify.addContentTypeParser("application/json", { parseAs: "string" }, function(_, body, _done) {
8
+ _done(null, body);
9
+ });
10
+ let prefix = opts.prefix ?? "";
11
+ if (typeof fastifyTRPCPlugin.default !== "function") prefix = "";
12
+ fastify.all(`${prefix}/:path`, async (req, res) => {
13
+ const path = req.params.path;
14
+ await require__Users_julius_dev_trpc_packages_server_src_adapters_fastify_fastifyRequestHandler.fastifyRequestHandler({
15
+ ...opts.trpcOptions,
16
+ req,
17
+ res,
18
+ path
19
+ });
20
+ });
21
+ if (opts.useWSS) {
22
+ const trpcOptions = opts.trpcOptions;
23
+ const onConnection = require__Users_julius_dev_trpc_packages_server_src_adapters_ws.getWSConnectionHandler({ ...trpcOptions });
24
+ fastify.get(prefix ?? "/", { websocket: true }, (socket, req) => {
25
+ onConnection(socket, req.raw);
26
+ if (trpcOptions?.keepAlive?.enabled) {
27
+ const { pingMs, pongWaitMs } = trpcOptions.keepAlive;
28
+ require__Users_julius_dev_trpc_packages_server_src_adapters_ws.handleKeepAlive(socket, pingMs, pongWaitMs);
29
+ }
30
+ });
31
+ }
32
+ done();
54
33
  }
55
34
 
56
- exports.fastifyTRPCPlugin = fastifyTRPCPlugin;
35
+ //#endregion
36
+ exports.fastifyTRPCPlugin = fastifyTRPCPlugin;