@trpc/server 11.0.0-alpha-tmp.162 → 11.0.0-alpha-tmp.163

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": 52040,
3
- "bundleOrigSize": 71699,
4
- "bundleReduction": 27.42,
3
+ "bundleOrigSize": 71917,
4
+ "bundleReduction": 27.64,
5
5
  "modules": [
6
6
  {
7
7
  "id": "/src/adapters/ws.ts",
@@ -324,14 +324,14 @@
324
324
  {
325
325
  "id": "/src/index.ts",
326
326
  "size": 18,
327
- "origSize": 687,
327
+ "origSize": 799,
328
328
  "renderedExports": [
329
329
  "foo"
330
330
  ],
331
331
  "removedExports": [],
332
332
  "dependents": [],
333
333
  "percent": 0.03,
334
- "reduction": 97.38
334
+ "reduction": 97.75
335
335
  },
336
336
  {
337
337
  "id": "/src/adapters/fastify/index.ts",
@@ -367,6 +367,16 @@
367
367
  "percent": 0,
368
368
  "reduction": 100
369
369
  },
370
+ {
371
+ "id": "/src/http.ts",
372
+ "size": 0,
373
+ "origSize": 106,
374
+ "renderedExports": [],
375
+ "removedExports": [],
376
+ "dependents": [],
377
+ "percent": 0,
378
+ "reduction": 100
379
+ },
370
380
  {
371
381
  "id": "/src/observable.ts",
372
382
  "size": 0,
@@ -398,5 +408,5 @@
398
408
  "reduction": 100
399
409
  }
400
410
  ],
401
- "moduleCount": 28
411
+ "moduleCount": 29
402
412
  }
package/dist/http.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ export * from '@trpc/core/http';
2
+ //# sourceMappingURL=http.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"http.d.ts","sourceRoot":"","sources":["../src/http.ts"],"names":[],"mappings":"AACA,cAAc,iBAAiB,CAAC"}
package/dist/http.js ADDED
@@ -0,0 +1,14 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var http = require('@trpc/core/http');
6
+
7
+
8
+
9
+ Object.keys(http).forEach(function (k) {
10
+ if (k !== 'default' && !exports.hasOwnProperty(k)) Object.defineProperty(exports, k, {
11
+ enumerable: true,
12
+ get: function () { return http[k]; }
13
+ });
14
+ });
package/dist/http.mjs ADDED
@@ -0,0 +1 @@
1
+ export * from '@trpc/core/http';
package/dist/index.d.ts CHANGED
@@ -10,10 +10,14 @@ export type {
10
10
  * Use `Awaited<ReturnType<T>>` instead
11
11
  */
12
12
  inferAsyncReturnType, } from '@trpc/core';
13
- export type { AnyRouter as AnyTRPCRouter,
13
+ export type { AnyRouter as AnyTRPCRouter, AnyProcedure as AnyTRPCProcedure,
14
14
  /**
15
15
  * @deprecated use `AnyTRPCRouter` instead
16
16
  */
17
- AnyRouter, } from '@trpc/core';
17
+ AnyRouter,
18
+ /**
19
+ * @deprecated use `AnyTRPCProcedure` instead
20
+ */
21
+ AnyProcedure, } from '@trpc/core';
18
22
  export declare const foo = "bar";
19
23
  //# 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;AAC1B;;GAEG;AACH,SAAS,GACV,MAAM,YAAY,CAAC;AAEpB,eAAO,MAAM,GAAG,QAAQ,CAAC"}
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;AAEpB,eAAO,MAAM,GAAG,QAAQ,CAAC"}
@@ -0,0 +1 @@
1
+ export * from '../dist/http';
package/http/index.js ADDED
@@ -0,0 +1 @@
1
+ module.exports = require('../dist/http');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trpc/server",
3
- "version": "11.0.0-alpha-tmp.162+b68ce2f51",
3
+ "version": "11.0.0-alpha-tmp.163+f6495f6a1",
4
4
  "description": "The tRPC server library",
5
5
  "author": "KATT",
6
6
  "license": "MIT",
@@ -94,6 +94,11 @@
94
94
  "require": "./dist/adapters/ws.js",
95
95
  "default": "./dist/adapters/ws.js"
96
96
  },
97
+ "./http": {
98
+ "import": "./dist/http.mjs",
99
+ "require": "./dist/http.js",
100
+ "default": "./dist/http.js"
101
+ },
97
102
  "./observable": {
98
103
  "import": "./dist/observable.mjs",
99
104
  "require": "./dist/observable.js",
@@ -116,6 +121,7 @@
116
121
  "README.md",
117
122
  "package.json",
118
123
  "adapters",
124
+ "http",
119
125
  "observable",
120
126
  "rpc",
121
127
  "shared",
@@ -125,7 +131,7 @@
125
131
  "access": "public"
126
132
  },
127
133
  "dependencies": {
128
- "@trpc/core": "11.0.0-alpha-tmp.162+b68ce2f51"
134
+ "@trpc/core": "11.0.0-alpha-tmp.163+f6495f6a1"
129
135
  },
130
136
  "devDependencies": {
131
137
  "@fastify/websocket": "^7.1.2",
@@ -164,5 +170,5 @@
164
170
  "funding": [
165
171
  "https://trpc.io/sponsor"
166
172
  ],
167
- "gitHead": "b68ce2f51be850f98f319a2b77217a34caba4b9f"
173
+ "gitHead": "f6495f6a14491373b56df2fc8383c8fbebfd4225"
168
174
  }
package/src/http.ts ADDED
@@ -0,0 +1,2 @@
1
+ // Note: this should likely be moved to a sort of `@trpc/plugin` package
2
+ export * from '@trpc/core/http';
package/src/index.ts CHANGED
@@ -23,10 +23,15 @@ export type {
23
23
 
24
24
  export type {
25
25
  AnyRouter as AnyTRPCRouter,
26
+ AnyProcedure as AnyTRPCProcedure,
26
27
  /**
27
28
  * @deprecated use `AnyTRPCRouter` instead
28
29
  */
29
30
  AnyRouter,
31
+ /**
32
+ * @deprecated use `AnyTRPCProcedure` instead
33
+ */
34
+ AnyProcedure,
30
35
  } from '@trpc/core';
31
36
 
32
37
  export const foo = 'bar';