@trpc/server 10.0.0-alpha.41 → 10.0.0-alpha.42

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,4 +1,4 @@
1
- import { a as getErrorFromUnknown } from './TRPCError-b7fa0c31.mjs';
1
+ import { g as getErrorFromUnknown } from './TRPCError-97212592.mjs';
2
2
  import { o as observable } from './observable-cfedfa30.mjs';
3
3
 
4
4
  function subscriptionPullFactory(opts) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trpc/server",
3
- "version": "10.0.0-alpha.41",
3
+ "version": "10.0.0-alpha.42",
4
4
  "description": "tRPC Server",
5
5
  "author": "KATT",
6
6
  "license": "MIT",
@@ -35,9 +35,9 @@
35
35
  "default": "./dist/index.js"
36
36
  },
37
37
  "./adapters/aws-lambda": {
38
- "import": "./dist/adapters/aws-lambda.mjs",
39
- "require": "./dist/adapters/aws-lambda.js",
40
- "default": "./dist/adapters/aws-lambda.js"
38
+ "import": "./dist/adapters/aws-lambda/index.mjs",
39
+ "require": "./dist/adapters/aws-lambda/index.js",
40
+ "default": "./dist/adapters/aws-lambda/index.js"
41
41
  },
42
42
  "./adapters/express": {
43
43
  "import": "./dist/adapters/express.mjs",
@@ -116,6 +116,7 @@
116
116
  "@types/hash-sum": "^1.0.0",
117
117
  "@types/ws": "^8.2.0",
118
118
  "abort-controller": "^3.0.0",
119
+ "aws-lambda": "^1.0.7",
119
120
  "devalue": "^2.0.1",
120
121
  "esbuild": "^0.14.38",
121
122
  "express": "^4.17.1",
@@ -139,5 +140,5 @@
139
140
  "dependencies": {
140
141
  "tslib": "^2.1.0"
141
142
  },
142
- "gitHead": "927344f2dd01312598720f0165a8f7ad3972761d"
143
+ "gitHead": "d5909785e8d024ef7869d9f5423dbe3bfd80cd59"
143
144
  }
@@ -81,24 +81,6 @@ export interface ProcedureBuilder<TParams extends ProcedureParams> {
81
81
  ): $ProcedureReturnInput extends ProcedureBuilder<infer $TParams>
82
82
  ? CreateProcedureReturnInput<TParams, $TParams>
83
83
  : never;
84
-
85
- /** @deprecated **/
86
- resolve<$TOutput>(
87
- resolver: (
88
- opts: ResolveOptions<TParams>,
89
- ) => MaybePromise<FallbackValue<TParams['_output_in'], $TOutput>>,
90
- ): UnsetMarker extends TParams['_output_out']
91
- ? Procedure<
92
- Overwrite<
93
- TParams,
94
- {
95
- _output_in: $TOutput;
96
- _output_out: $TOutput;
97
- }
98
- >
99
- >
100
- : Procedure<TParams>;
101
-
102
84
  /**
103
85
  * Query procedure
104
86
  */
@@ -229,10 +211,6 @@ export function createBuilder<TConfig extends RootConfig>(
229
211
  meta: meta as Record<string, unknown>,
230
212
  }) as AnyProcedureBuilder;
231
213
  },
232
- /** @deprecated **/
233
- resolve(resolver) {
234
- return createResolver(_def, resolver);
235
- },
236
214
  unstable_concat(builder) {
237
215
  return createNewBuilder(_def, builder._def) as any;
238
216
  },
@@ -20,6 +20,7 @@ export interface ProcedureOptions {
20
20
  }
21
21
 
22
22
  /**
23
+ * FIXME: this should only take 1 generic argument instead of a list
23
24
  * @internal
24
25
  */
25
26
  export interface ProcedureParams<