@trpc/server 11.0.0-alpha-tmp.171 → 11.0.0-alpha-tmp.173

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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "bundleSize": 52159,
3
- "bundleOrigSize": 72117,
4
- "bundleReduction": 27.67,
3
+ "bundleOrigSize": 72091,
4
+ "bundleReduction": 27.65,
5
5
  "modules": [
6
6
  {
7
7
  "id": "/src/adapters/ws.ts",
@@ -90,7 +90,7 @@
90
90
  {
91
91
  "id": "/src/adapters/node-http/nodeHTTPRequestHandler.ts",
92
92
  "size": 3539,
93
- "origSize": 4089,
93
+ "origSize": 4084,
94
94
  "renderedExports": [
95
95
  "nodeHTTPRequestHandler"
96
96
  ],
@@ -99,7 +99,7 @@
99
99
  "/src/adapters/node-http/index.ts"
100
100
  ],
101
101
  "percent": 6.79,
102
- "reduction": 13.45
102
+ "reduction": 13.34
103
103
  },
104
104
  {
105
105
  "id": "/src/adapters/fetch/fetchRequestHandler.ts",
@@ -361,14 +361,16 @@
361
361
  "origSize": 106,
362
362
  "renderedExports": [],
363
363
  "removedExports": [],
364
- "dependents": [],
364
+ "dependents": [
365
+ "/src/adapters/node-http/nodeHTTPRequestHandler.ts"
366
+ ],
365
367
  "percent": 0,
366
368
  "reduction": 100
367
369
  },
368
370
  {
369
371
  "id": "/src/index.ts",
370
372
  "size": 0,
371
- "origSize": 772,
373
+ "origSize": 751,
372
374
  "renderedExports": [],
373
375
  "removedExports": [],
374
376
  "dependents": [],
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file is here to make TypeScript happy.
3
+ *
4
+ * If you need to import anything from here, please open an issue.
5
+ */
6
+ export * from '@trpc/core';
7
+ //# sourceMappingURL=index.core.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.core.d.ts","sourceRoot":"","sources":["../src/index.core.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,cAAc,YAAY,CAAC"}
package/dist/index.d.ts CHANGED
@@ -1,22 +1,21 @@
1
- export { TRPCError } from '@trpc/core';
2
- export { initTRPC,
1
+ export { initTRPC, TRPCError,
3
2
  /**
4
3
  * @deprecated use `experimental_trpcMiddleware` instead
5
4
  */
6
- experimental_standaloneMiddleware, experimental_standaloneMiddleware as experimental_trpcMiddleware, type inferRouterInputs, type inferRouterOutputs, type inferProcedureInput, type inferProcedureOutput, type inferRouterError, } from '@trpc/core';
5
+ experimental_standaloneMiddleware, experimental_standaloneMiddleware as experimental_trpcMiddleware, type inferProcedureInput, type inferProcedureOutput, type inferRouterError, type inferRouterInputs, type inferRouterOutputs, } from './index.core';
7
6
  export type {
8
7
  /**
9
8
  * @deprecated
10
9
  * Use `Awaited<ReturnType<T>>` instead
11
10
  */
12
- inferAsyncReturnType, } from '@trpc/core';
13
- export type { AnyRouter as AnyTRPCRouter, AnyProcedure as AnyTRPCProcedure,
11
+ inferAsyncReturnType, } from './index.core';
12
+ export type {
14
13
  /**
15
- * @deprecated use `AnyTRPCRouter` instead
14
+ * @deprecated use `AnyTRPCProcedure` instead
16
15
  */
17
- AnyRouter,
16
+ AnyProcedure,
18
17
  /**
19
- * @deprecated use `AnyTRPCProcedure` instead
18
+ * @deprecated use `AnyTRPCRouter` instead
20
19
  */
21
- AnyProcedure, } from '@trpc/core';
20
+ AnyRouter, AnyProcedure as AnyTRPCProcedure, AnyRouter as AnyTRPCRouter, } from './index.core';
22
21
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,EACL,QAAQ;AACR;;GAEG;AACH,iCAAiC,EACjC,iCAAiC,IAAI,2BAA2B,EAChE,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EACzB,KAAK,gBAAgB,GACtB,MAAM,YAAY,CAAC;AAEpB,YAAY;AACV;;;GAGG;AACH,oBAAoB,GACrB,MAAM,YAAY,CAAC;AAEpB,YAAY,EACV,SAAS,IAAI,aAAa,EAC1B,YAAY,IAAI,gBAAgB;AAChC;;GAEG;AACH,SAAS;AACT;;GAEG;AACH,YAAY,GACb,MAAM,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EACR,SAAS;AACT;;GAEG;AACH,iCAAiC,EACjC,iCAAiC,IAAI,2BAA2B,EAChE,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EACzB,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,GACxB,MAAM,cAAc,CAAC;AAEtB,YAAY;AACV;;;GAGG;AACH,oBAAoB,GACrB,MAAM,cAAc,CAAC;AAEtB,YAAY;AACV;;GAEG;AACH,YAAY;AACZ;;GAEG;AACH,SAAS,EACT,YAAY,IAAI,gBAAgB,EAChC,SAAS,IAAI,aAAa,GAC3B,MAAM,cAAc,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trpc/server",
3
- "version": "11.0.0-alpha-tmp.171+9bdc993ce",
3
+ "version": "11.0.0-alpha-tmp.173+6814aa9e0",
4
4
  "description": "The tRPC server library",
5
5
  "author": "KATT",
6
6
  "license": "MIT",
@@ -131,7 +131,7 @@
131
131
  "access": "public"
132
132
  },
133
133
  "dependencies": {
134
- "@trpc/core": "11.0.0-alpha-tmp.171+9bdc993ce"
134
+ "@trpc/core": "11.0.0-alpha-tmp.173+6814aa9e0"
135
135
  },
136
136
  "devDependencies": {
137
137
  "@fastify/websocket": "^7.1.2",
@@ -170,5 +170,5 @@
170
170
  "funding": [
171
171
  "https://trpc.io/sponsor"
172
172
  ],
173
- "gitHead": "9bdc993ce388bce677d7f1a0502c95ed524d605b"
173
+ "gitHead": "6814aa9e0e066337d5f18728f6354422393ab290"
174
174
  }
@@ -7,7 +7,7 @@ import {
7
7
  ResolveHTTPRequestOptionsContextFn,
8
8
  resolveHTTPResponse,
9
9
  ResponseChunk,
10
- } from '@trpc/core/http';
10
+ } from '../../http';
11
11
  import { nodeHTTPJSONContentTypeHandler } from './content-type/json';
12
12
  import { NodeHTTPContentTypeHandler } from './internals/contentType';
13
13
  import {
@@ -0,0 +1,6 @@
1
+ /**
2
+ * This file is here to make TypeScript happy.
3
+ *
4
+ * If you need to import anything from here, please open an issue.
5
+ */
6
+ export * from '@trpc/core';
package/src/index.ts CHANGED
@@ -1,17 +1,17 @@
1
- export { TRPCError } from '@trpc/core';
2
1
  export {
3
2
  initTRPC,
3
+ TRPCError,
4
4
  /**
5
5
  * @deprecated use `experimental_trpcMiddleware` instead
6
6
  */
7
7
  experimental_standaloneMiddleware,
8
8
  experimental_standaloneMiddleware as experimental_trpcMiddleware,
9
- type inferRouterInputs,
10
- type inferRouterOutputs,
11
9
  type inferProcedureInput,
12
10
  type inferProcedureOutput,
13
11
  type inferRouterError,
14
- } from '@trpc/core';
12
+ type inferRouterInputs,
13
+ type inferRouterOutputs,
14
+ } from './index.core';
15
15
 
16
16
  export type {
17
17
  /**
@@ -19,17 +19,17 @@ export type {
19
19
  * Use `Awaited<ReturnType<T>>` instead
20
20
  */
21
21
  inferAsyncReturnType,
22
- } from '@trpc/core';
22
+ } from './index.core';
23
23
 
24
24
  export type {
25
- AnyRouter as AnyTRPCRouter,
26
- AnyProcedure as AnyTRPCProcedure,
27
- /**
28
- * @deprecated use `AnyTRPCRouter` instead
29
- */
30
- AnyRouter,
31
25
  /**
32
26
  * @deprecated use `AnyTRPCProcedure` instead
33
27
  */
34
28
  AnyProcedure,
35
- } from '@trpc/core';
29
+ /**
30
+ * @deprecated use `AnyTRPCRouter` instead
31
+ */
32
+ AnyRouter,
33
+ AnyProcedure as AnyTRPCProcedure,
34
+ AnyRouter as AnyTRPCRouter,
35
+ } from './index.core';