@trpc/server 11.0.0-next-beta.251 → 11.0.0-next-beta.254
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/adapters/aws-lambda/index.js +2 -2
- package/dist/adapters/aws-lambda/index.mjs +2 -2
- package/dist/adapters/aws-lambda/utils.js +1 -1
- package/dist/adapters/aws-lambda/utils.mjs +1 -1
- package/dist/adapters/fastify/fastifyRequestHandler.js +1 -1
- package/dist/adapters/fastify/fastifyRequestHandler.mjs +1 -1
- package/dist/adapters/fetch/fetchRequestHandler.js +1 -1
- package/dist/adapters/fetch/fetchRequestHandler.mjs +1 -1
- package/dist/adapters/next.js +2 -2
- package/dist/adapters/next.mjs +2 -2
- package/dist/adapters/node-http/content-type/json/getPostBody.js +1 -1
- package/dist/adapters/node-http/content-type/json/getPostBody.mjs +1 -1
- package/dist/adapters/node-http/content-type/json/index.js +1 -1
- package/dist/adapters/node-http/content-type/json/index.mjs +1 -1
- package/dist/adapters/node-http/nodeHTTPRequestHandler.js +1 -1
- package/dist/adapters/node-http/nodeHTTPRequestHandler.mjs +1 -1
- package/dist/adapters/ws.js +4 -4
- package/dist/adapters/ws.mjs +4 -4
- package/dist/bundle-analysis.json +74 -58
- package/dist/http.js +1 -1
- package/dist/http.mjs +1 -1
- package/dist/index.js +10 -10
- package/dist/index.mjs +5 -5
- package/dist/shared.js +3 -3
- package/dist/shared.mjs +2 -2
- package/dist/unstable-core-do-not-import/clientish/inference.d.ts +17 -0
- package/dist/unstable-core-do-not-import/clientish/inference.d.ts.map +1 -0
- package/dist/unstable-core-do-not-import/clientish/inferrable.d.ts +33 -0
- package/dist/unstable-core-do-not-import/clientish/inferrable.d.ts.map +1 -0
- package/dist/unstable-core-do-not-import/{serialize.d.ts → clientish/serialize.d.ts} +1 -1
- package/dist/unstable-core-do-not-import/clientish/serialize.d.ts.map +1 -0
- package/dist/unstable-core-do-not-import/procedure.d.ts +0 -9
- package/dist/unstable-core-do-not-import/procedure.d.ts.map +1 -1
- package/dist/unstable-core-do-not-import/rootConfig.d.ts +1 -1
- package/dist/unstable-core-do-not-import/rootConfig.d.ts.map +1 -1
- package/dist/unstable-core-do-not-import/router.d.ts +1 -6
- package/dist/unstable-core-do-not-import/router.d.ts.map +1 -1
- package/dist/unstable-core-do-not-import/types.js +11 -0
- package/dist/unstable-core-do-not-import/types.mjs +9 -0
- package/dist/unstable-core-do-not-import.d.ts +31 -0
- package/dist/unstable-core-do-not-import.d.ts.map +1 -0
- package/dist/unstable-core-do-not-import.js +64 -0
- package/dist/unstable-core-do-not-import.mjs +20 -0
- package/package.json +5 -5
- package/src/unstable-core-do-not-import/clientish/inference.ts +56 -0
- package/src/unstable-core-do-not-import/clientish/inferrable.ts +55 -0
- package/src/unstable-core-do-not-import/{serialize.ts → clientish/serialize.ts} +1 -1
- package/src/unstable-core-do-not-import/procedure.ts +0 -21
- package/src/unstable-core-do-not-import/rootConfig.ts +1 -1
- package/src/unstable-core-do-not-import/router.ts +1 -33
- package/src/unstable-core-do-not-import.ts +30 -0
- package/dist/unstable-core-do-not-import/TRPCInferrable.d.ts +0 -27
- package/dist/unstable-core-do-not-import/TRPCInferrable.d.ts.map +0 -1
- package/dist/unstable-core-do-not-import/index.d.ts +0 -38
- package/dist/unstable-core-do-not-import/index.d.ts.map +0 -1
- package/dist/unstable-core-do-not-import/index.js +0 -52
- package/dist/unstable-core-do-not-import/index.mjs +0 -17
- package/dist/unstable-core-do-not-import/serialize.d.ts.map +0 -1
- package/src/unstable-core-do-not-import/TRPCInferrable.ts +0 -44
- package/src/unstable-core-do-not-import/index.ts +0 -105
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var TRPCError = require('../../unstable-core-do-not-import/error/TRPCError.js');
|
|
4
3
|
require('../../unstable-core-do-not-import/rpc/codes.js');
|
|
5
|
-
require('../../unstable-core-do-not-import/
|
|
4
|
+
var TRPCError = require('../../unstable-core-do-not-import/error/TRPCError.js');
|
|
6
5
|
var resolveHTTPResponse = require('../../unstable-core-do-not-import/http/resolveHTTPResponse.js');
|
|
6
|
+
require('../../unstable-core-do-not-import/rootConfig.js');
|
|
7
7
|
var utils = require('./utils.js');
|
|
8
8
|
|
|
9
9
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { TRPCError } from '../../unstable-core-do-not-import/error/TRPCError.mjs';
|
|
2
1
|
import '../../unstable-core-do-not-import/rpc/codes.mjs';
|
|
3
|
-
import '../../unstable-core-do-not-import/
|
|
2
|
+
import { TRPCError } from '../../unstable-core-do-not-import/error/TRPCError.mjs';
|
|
4
3
|
import { resolveHTTPResponse } from '../../unstable-core-do-not-import/http/resolveHTTPResponse.mjs';
|
|
4
|
+
import '../../unstable-core-do-not-import/rootConfig.mjs';
|
|
5
5
|
import { getPath, getHTTPMethod, isPayloadV1, transformHeaders, isPayloadV2, UNKNOWN_PAYLOAD_FORMAT_VERSION_ERROR_MESSAGE } from './utils.mjs';
|
|
6
6
|
|
|
7
7
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var TRPCError = require('../../unstable-core-do-not-import/error/TRPCError.js');
|
|
4
3
|
require('../../unstable-core-do-not-import/rpc/codes.js');
|
|
4
|
+
var TRPCError = require('../../unstable-core-do-not-import/error/TRPCError.js');
|
|
5
5
|
require('../../unstable-core-do-not-import/rootConfig.js');
|
|
6
6
|
|
|
7
7
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { TRPCError } from '../../unstable-core-do-not-import/error/TRPCError.mjs';
|
|
2
1
|
import '../../unstable-core-do-not-import/rpc/codes.mjs';
|
|
2
|
+
import { TRPCError } from '../../unstable-core-do-not-import/error/TRPCError.mjs';
|
|
3
3
|
import '../../unstable-core-do-not-import/rootConfig.mjs';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
var node_stream = require('node:stream');
|
|
4
4
|
require('../../unstable-core-do-not-import/rpc/codes.js');
|
|
5
|
-
require('../../unstable-core-do-not-import/rootConfig.js');
|
|
6
5
|
var resolveHTTPResponse = require('../../unstable-core-do-not-import/http/resolveHTTPResponse.js');
|
|
7
6
|
var batchStreamFormatter = require('../../unstable-core-do-not-import/http/batchStreamFormatter.js');
|
|
7
|
+
require('../../unstable-core-do-not-import/rootConfig.js');
|
|
8
8
|
|
|
9
9
|
async function fastifyRequestHandler(opts) {
|
|
10
10
|
const createContext = async (innerOpts)=>{
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Readable } from 'node:stream';
|
|
2
2
|
import '../../unstable-core-do-not-import/rpc/codes.mjs';
|
|
3
|
-
import '../../unstable-core-do-not-import/rootConfig.mjs';
|
|
4
3
|
import { resolveHTTPResponse } from '../../unstable-core-do-not-import/http/resolveHTTPResponse.mjs';
|
|
5
4
|
import { getBatchStreamFormatter } from '../../unstable-core-do-not-import/http/batchStreamFormatter.mjs';
|
|
5
|
+
import '../../unstable-core-do-not-import/rootConfig.mjs';
|
|
6
6
|
|
|
7
7
|
async function fastifyRequestHandler(opts) {
|
|
8
8
|
const createContext = async (innerOpts)=>{
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
require('../../unstable-core-do-not-import/rpc/codes.js');
|
|
4
|
-
require('../../unstable-core-do-not-import/rootConfig.js');
|
|
5
4
|
var resolveHTTPResponse = require('../../unstable-core-do-not-import/http/resolveHTTPResponse.js');
|
|
6
5
|
var batchStreamFormatter = require('../../unstable-core-do-not-import/http/batchStreamFormatter.js');
|
|
6
|
+
require('../../unstable-core-do-not-import/rootConfig.js');
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* 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`
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import '../../unstable-core-do-not-import/rpc/codes.mjs';
|
|
2
|
-
import '../../unstable-core-do-not-import/rootConfig.mjs';
|
|
3
2
|
import { resolveHTTPResponse } from '../../unstable-core-do-not-import/http/resolveHTTPResponse.mjs';
|
|
4
3
|
import { getBatchStreamFormatter } from '../../unstable-core-do-not-import/http/batchStreamFormatter.mjs';
|
|
4
|
+
import '../../unstable-core-do-not-import/rootConfig.mjs';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
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`
|
package/dist/adapters/next.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var TRPCError = require('../unstable-core-do-not-import/error/TRPCError.js');
|
|
4
3
|
var getErrorShape = require('../unstable-core-do-not-import/error/getErrorShape.js');
|
|
5
|
-
require('../unstable-core-do-not-import/
|
|
4
|
+
var TRPCError = require('../unstable-core-do-not-import/error/TRPCError.js');
|
|
6
5
|
require('../unstable-core-do-not-import/rpc/codes.js');
|
|
6
|
+
require('../unstable-core-do-not-import/rootConfig.js');
|
|
7
7
|
var nodeHTTPRequestHandler = require('./node-http/nodeHTTPRequestHandler.js');
|
|
8
8
|
|
|
9
9
|
/**
|
package/dist/adapters/next.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { TRPCError } from '../unstable-core-do-not-import/error/TRPCError.mjs';
|
|
2
1
|
import { getErrorShape } from '../unstable-core-do-not-import/error/getErrorShape.mjs';
|
|
3
|
-
import '../unstable-core-do-not-import/
|
|
2
|
+
import { TRPCError } from '../unstable-core-do-not-import/error/TRPCError.mjs';
|
|
4
3
|
import '../unstable-core-do-not-import/rpc/codes.mjs';
|
|
4
|
+
import '../unstable-core-do-not-import/rootConfig.mjs';
|
|
5
5
|
import { nodeHTTPRequestHandler } from './node-http/nodeHTTPRequestHandler.mjs';
|
|
6
6
|
|
|
7
7
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var TRPCError = require('../../../../unstable-core-do-not-import/error/TRPCError.js');
|
|
4
3
|
require('../../../../unstable-core-do-not-import/rpc/codes.js');
|
|
4
|
+
var TRPCError = require('../../../../unstable-core-do-not-import/error/TRPCError.js');
|
|
5
5
|
require('../../../../unstable-core-do-not-import/rootConfig.js');
|
|
6
6
|
|
|
7
7
|
// @trpc/server
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { TRPCError } from '../../../../unstable-core-do-not-import/error/TRPCError.mjs';
|
|
2
1
|
import '../../../../unstable-core-do-not-import/rpc/codes.mjs';
|
|
2
|
+
import { TRPCError } from '../../../../unstable-core-do-not-import/error/TRPCError.mjs';
|
|
3
3
|
import '../../../../unstable-core-do-not-import/rootConfig.mjs';
|
|
4
4
|
|
|
5
5
|
// @trpc/server
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
require('../../../../unstable-core-do-not-import/rpc/codes.js');
|
|
4
|
-
require('../../../../unstable-core-do-not-import/rootConfig.js');
|
|
5
4
|
var contentType$1 = require('../../../../unstable-core-do-not-import/http/contentType.js');
|
|
5
|
+
require('../../../../unstable-core-do-not-import/rootConfig.js');
|
|
6
6
|
var contentType = require('../../internals/contentType.js');
|
|
7
7
|
var getPostBody = require('./getPostBody.js');
|
|
8
8
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '../../../../unstable-core-do-not-import/rpc/codes.mjs';
|
|
2
|
-
import '../../../../unstable-core-do-not-import/rootConfig.mjs';
|
|
3
2
|
import { getJsonContentTypeInputs } from '../../../../unstable-core-do-not-import/http/contentType.mjs';
|
|
3
|
+
import '../../../../unstable-core-do-not-import/rootConfig.mjs';
|
|
4
4
|
import { createNodeHTTPContentTypeHandler } from '../../internals/contentType.mjs';
|
|
5
5
|
import { getPostBody } from './getPostBody.mjs';
|
|
6
6
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
require('../../unstable-core-do-not-import/rpc/codes.js');
|
|
4
|
-
require('../../unstable-core-do-not-import/rootConfig.js');
|
|
5
4
|
var resolveHTTPResponse = require('../../unstable-core-do-not-import/http/resolveHTTPResponse.js');
|
|
6
5
|
var batchStreamFormatter = require('../../unstable-core-do-not-import/http/batchStreamFormatter.js');
|
|
6
|
+
require('../../unstable-core-do-not-import/rootConfig.js');
|
|
7
7
|
var index = require('./content-type/json/index.js');
|
|
8
8
|
|
|
9
9
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import '../../unstable-core-do-not-import/rpc/codes.mjs';
|
|
2
|
-
import '../../unstable-core-do-not-import/rootConfig.mjs';
|
|
3
2
|
import { resolveHTTPResponse } from '../../unstable-core-do-not-import/http/resolveHTTPResponse.mjs';
|
|
4
3
|
import { getBatchStreamFormatter } from '../../unstable-core-do-not-import/http/batchStreamFormatter.mjs';
|
|
4
|
+
import '../../unstable-core-do-not-import/rootConfig.mjs';
|
|
5
5
|
import { nodeHTTPJSONContentTypeHandler } from './content-type/json/index.mjs';
|
|
6
6
|
|
|
7
7
|
/**
|
package/dist/adapters/ws.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var TRPCError = require('../unstable-core-do-not-import/error/TRPCError.js');
|
|
4
3
|
var getErrorShape = require('../unstable-core-do-not-import/error/getErrorShape.js');
|
|
5
|
-
require('../unstable-core-do-not-import/
|
|
6
|
-
var router = require('../unstable-core-do-not-import/router.js');
|
|
7
|
-
var transformer = require('../unstable-core-do-not-import/transformer.js');
|
|
4
|
+
var TRPCError = require('../unstable-core-do-not-import/error/TRPCError.js');
|
|
8
5
|
require('../unstable-core-do-not-import/rpc/codes.js');
|
|
9
6
|
var parseTRPCMessage = require('../unstable-core-do-not-import/rpc/parseTRPCMessage.js');
|
|
7
|
+
var router = require('../unstable-core-do-not-import/router.js');
|
|
8
|
+
var transformer = require('../unstable-core-do-not-import/transformer.js');
|
|
9
|
+
require('../unstable-core-do-not-import/rootConfig.js');
|
|
10
10
|
var observable = require('../observable/observable.js');
|
|
11
11
|
|
|
12
12
|
/**
|
package/dist/adapters/ws.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { TRPCError, getTRPCErrorFromUnknown } from '../unstable-core-do-not-import/error/TRPCError.mjs';
|
|
2
1
|
import { getErrorShape } from '../unstable-core-do-not-import/error/getErrorShape.mjs';
|
|
3
|
-
import '../unstable-core-do-not-import/
|
|
4
|
-
import { callProcedure } from '../unstable-core-do-not-import/router.mjs';
|
|
5
|
-
import { transformTRPCResponse } from '../unstable-core-do-not-import/transformer.mjs';
|
|
2
|
+
import { TRPCError, getTRPCErrorFromUnknown } from '../unstable-core-do-not-import/error/TRPCError.mjs';
|
|
6
3
|
import '../unstable-core-do-not-import/rpc/codes.mjs';
|
|
7
4
|
import { parseTRPCMessage } from '../unstable-core-do-not-import/rpc/parseTRPCMessage.mjs';
|
|
5
|
+
import { callProcedure } from '../unstable-core-do-not-import/router.mjs';
|
|
6
|
+
import { transformTRPCResponse } from '../unstable-core-do-not-import/transformer.mjs';
|
|
7
|
+
import '../unstable-core-do-not-import/rootConfig.mjs';
|
|
8
8
|
import { isObservable } from '../observable/observable.mjs';
|
|
9
9
|
|
|
10
10
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
|
-
"bundleSize":
|
|
3
|
-
"bundleOrigSize":
|
|
4
|
-
"bundleReduction": 36.
|
|
2
|
+
"bundleSize": 91994,
|
|
3
|
+
"bundleOrigSize": 144814,
|
|
4
|
+
"bundleReduction": 36.47,
|
|
5
5
|
"modules": [
|
|
6
6
|
{
|
|
7
7
|
"id": "/src/adapters/ws.ts",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"dependents": [
|
|
15
15
|
"/src/adapters/fastify/fastifyTRPCPlugin.ts"
|
|
16
16
|
],
|
|
17
|
-
"percent": 10.
|
|
17
|
+
"percent": 10.74,
|
|
18
18
|
"reduction": 0
|
|
19
19
|
},
|
|
20
20
|
{
|
|
@@ -26,13 +26,13 @@
|
|
|
26
26
|
],
|
|
27
27
|
"removedExports": [],
|
|
28
28
|
"dependents": [],
|
|
29
|
-
"percent": 10.
|
|
29
|
+
"percent": 10.06,
|
|
30
30
|
"reduction": 21.53
|
|
31
31
|
},
|
|
32
32
|
{
|
|
33
33
|
"id": "/src/unstable-core-do-not-import/router.ts",
|
|
34
34
|
"size": 6040,
|
|
35
|
-
"origSize":
|
|
35
|
+
"origSize": 9620,
|
|
36
36
|
"renderedExports": [
|
|
37
37
|
"createRouterFactory",
|
|
38
38
|
"callProcedure",
|
|
@@ -41,12 +41,12 @@
|
|
|
41
41
|
],
|
|
42
42
|
"removedExports": [],
|
|
43
43
|
"dependents": [
|
|
44
|
-
"/src/unstable-core-do-not-import
|
|
44
|
+
"/src/unstable-core-do-not-import.ts",
|
|
45
45
|
"/src/unstable-core-do-not-import/http/resolveHTTPResponse.ts",
|
|
46
46
|
"/src/unstable-core-do-not-import/initTRPC.ts"
|
|
47
47
|
],
|
|
48
|
-
"percent": 6.
|
|
49
|
-
"reduction":
|
|
48
|
+
"percent": 6.57,
|
|
49
|
+
"reduction": 37.21
|
|
50
50
|
},
|
|
51
51
|
{
|
|
52
52
|
"id": "/src/unstable-core-do-not-import/procedureBuilder.ts",
|
|
@@ -58,10 +58,10 @@
|
|
|
58
58
|
],
|
|
59
59
|
"removedExports": [],
|
|
60
60
|
"dependents": [
|
|
61
|
-
"/src/unstable-core-do-not-import
|
|
61
|
+
"/src/unstable-core-do-not-import.ts",
|
|
62
62
|
"/src/unstable-core-do-not-import/initTRPC.ts"
|
|
63
63
|
],
|
|
64
|
-
"percent": 6.
|
|
64
|
+
"percent": 6.09,
|
|
65
65
|
"reduction": 51.52
|
|
66
66
|
},
|
|
67
67
|
{
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
"dependents": [
|
|
78
78
|
"/src/adapters/node-http/content-type/form-data/index.ts"
|
|
79
79
|
],
|
|
80
|
-
"percent": 5.
|
|
80
|
+
"percent": 5.41,
|
|
81
81
|
"reduction": 36.77
|
|
82
82
|
},
|
|
83
83
|
{
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
],
|
|
92
92
|
"removedExports": [],
|
|
93
93
|
"dependents": [],
|
|
94
|
-
"percent": 4.
|
|
94
|
+
"percent": 4.8,
|
|
95
95
|
"reduction": 32.71
|
|
96
96
|
},
|
|
97
97
|
{
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
"dependents": [
|
|
106
106
|
"/src/adapters/node-http/index.ts"
|
|
107
107
|
],
|
|
108
|
-
"percent": 4.
|
|
108
|
+
"percent": 4.41,
|
|
109
109
|
"reduction": 12.45
|
|
110
110
|
},
|
|
111
111
|
{
|
|
@@ -119,7 +119,7 @@
|
|
|
119
119
|
"dependents": [
|
|
120
120
|
"/src/adapters/fetch/index.ts"
|
|
121
121
|
],
|
|
122
|
-
"percent": 3.
|
|
122
|
+
"percent": 3.86,
|
|
123
123
|
"reduction": 9.42
|
|
124
124
|
},
|
|
125
125
|
{
|
|
@@ -135,7 +135,7 @@
|
|
|
135
135
|
"dependents": [
|
|
136
136
|
"/src/observable/index.ts"
|
|
137
137
|
],
|
|
138
|
-
"percent": 3.
|
|
138
|
+
"percent": 3.73,
|
|
139
139
|
"reduction": 5.43
|
|
140
140
|
},
|
|
141
141
|
{
|
|
@@ -170,7 +170,7 @@
|
|
|
170
170
|
"dependents": [
|
|
171
171
|
"/src/observable/index.ts"
|
|
172
172
|
],
|
|
173
|
-
"percent": 3.
|
|
173
|
+
"percent": 3.24,
|
|
174
174
|
"reduction": 0
|
|
175
175
|
},
|
|
176
176
|
{
|
|
@@ -182,9 +182,9 @@
|
|
|
182
182
|
],
|
|
183
183
|
"removedExports": [],
|
|
184
184
|
"dependents": [
|
|
185
|
-
"/src/unstable-core-do-not-import
|
|
185
|
+
"/src/unstable-core-do-not-import.ts"
|
|
186
186
|
],
|
|
187
|
-
"percent": 3.
|
|
187
|
+
"percent": 3.13,
|
|
188
188
|
"reduction": 38.95
|
|
189
189
|
},
|
|
190
190
|
{
|
|
@@ -199,12 +199,12 @@
|
|
|
199
199
|
],
|
|
200
200
|
"removedExports": [],
|
|
201
201
|
"dependents": [
|
|
202
|
-
"/src/unstable-core-do-not-import
|
|
202
|
+
"/src/unstable-core-do-not-import.ts",
|
|
203
203
|
"/src/unstable-core-do-not-import/http/resolveHTTPResponse.ts",
|
|
204
|
-
"/src/unstable-core-do-not-import/
|
|
205
|
-
"/src/unstable-core-do-not-import/
|
|
204
|
+
"/src/unstable-core-do-not-import/router.ts",
|
|
205
|
+
"/src/unstable-core-do-not-import/initTRPC.ts"
|
|
206
206
|
],
|
|
207
|
-
"percent": 2.
|
|
207
|
+
"percent": 2.98,
|
|
208
208
|
"reduction": 45.94
|
|
209
209
|
},
|
|
210
210
|
{
|
|
@@ -235,11 +235,11 @@
|
|
|
235
235
|
],
|
|
236
236
|
"removedExports": [],
|
|
237
237
|
"dependents": [
|
|
238
|
-
"/src/unstable-core-do-not-import
|
|
238
|
+
"/src/unstable-core-do-not-import.ts",
|
|
239
239
|
"/src/unstable-core-do-not-import/initTRPC.ts",
|
|
240
240
|
"/src/unstable-core-do-not-import/procedureBuilder.ts"
|
|
241
241
|
],
|
|
242
|
-
"percent": 2.
|
|
242
|
+
"percent": 2.8,
|
|
243
243
|
"reduction": 55.95
|
|
244
244
|
},
|
|
245
245
|
{
|
|
@@ -251,7 +251,7 @@
|
|
|
251
251
|
],
|
|
252
252
|
"removedExports": [],
|
|
253
253
|
"dependents": [],
|
|
254
|
-
"percent": 2.
|
|
254
|
+
"percent": 2.76,
|
|
255
255
|
"reduction": 31.37
|
|
256
256
|
},
|
|
257
257
|
{
|
|
@@ -265,14 +265,14 @@
|
|
|
265
265
|
],
|
|
266
266
|
"removedExports": [],
|
|
267
267
|
"dependents": [
|
|
268
|
-
"/src/unstable-core-do-not-import
|
|
268
|
+
"/src/unstable-core-do-not-import.ts",
|
|
269
269
|
"/src/unstable-core-do-not-import/http/resolveHTTPResponse.ts",
|
|
270
270
|
"/src/unstable-core-do-not-import/http/contentType.ts",
|
|
271
|
-
"/src/unstable-core-do-not-import/middleware.ts",
|
|
272
271
|
"/src/unstable-core-do-not-import/router.ts",
|
|
272
|
+
"/src/unstable-core-do-not-import/middleware.ts",
|
|
273
273
|
"/src/unstable-core-do-not-import/procedureBuilder.ts"
|
|
274
274
|
],
|
|
275
|
-
"percent": 1.
|
|
275
|
+
"percent": 1.88,
|
|
276
276
|
"reduction": 19.47
|
|
277
277
|
},
|
|
278
278
|
{
|
|
@@ -286,7 +286,7 @@
|
|
|
286
286
|
"dependents": [
|
|
287
287
|
"/src/unstable-core-do-not-import/http/resolveHTTPResponse.ts"
|
|
288
288
|
],
|
|
289
|
-
"percent": 1.
|
|
289
|
+
"percent": 1.78,
|
|
290
290
|
"reduction": 34.79
|
|
291
291
|
},
|
|
292
292
|
{
|
|
@@ -298,7 +298,7 @@
|
|
|
298
298
|
],
|
|
299
299
|
"removedExports": [],
|
|
300
300
|
"dependents": [],
|
|
301
|
-
"percent": 1.
|
|
301
|
+
"percent": 1.74,
|
|
302
302
|
"reduction": 29.12
|
|
303
303
|
},
|
|
304
304
|
{
|
|
@@ -324,7 +324,7 @@
|
|
|
324
324
|
"dependents": [
|
|
325
325
|
"/src/adapters/fastify/index.ts"
|
|
326
326
|
],
|
|
327
|
-
"percent": 1.
|
|
327
|
+
"percent": 1.66,
|
|
328
328
|
"reduction": 32.84
|
|
329
329
|
},
|
|
330
330
|
{
|
|
@@ -337,9 +337,9 @@
|
|
|
337
337
|
],
|
|
338
338
|
"removedExports": [],
|
|
339
339
|
"dependents": [
|
|
340
|
-
"/src/unstable-core-do-not-import
|
|
341
|
-
"/src/unstable-core-do-not-import/
|
|
342
|
-
"/src/unstable-core-do-not-import/
|
|
340
|
+
"/src/unstable-core-do-not-import.ts",
|
|
341
|
+
"/src/unstable-core-do-not-import/router.ts",
|
|
342
|
+
"/src/unstable-core-do-not-import/initTRPC.ts"
|
|
343
343
|
],
|
|
344
344
|
"percent": 1.64,
|
|
345
345
|
"reduction": 5.58
|
|
@@ -355,7 +355,7 @@
|
|
|
355
355
|
"dependents": [
|
|
356
356
|
"/src/adapters/node-http/content-type/form-data/fileUploadHandler.ts"
|
|
357
357
|
],
|
|
358
|
-
"percent": 1.
|
|
358
|
+
"percent": 1.51,
|
|
359
359
|
"reduction": 0
|
|
360
360
|
},
|
|
361
361
|
{
|
|
@@ -413,16 +413,16 @@
|
|
|
413
413
|
],
|
|
414
414
|
"removedExports": [],
|
|
415
415
|
"dependents": [
|
|
416
|
-
"/src/unstable-core-do-not-import
|
|
416
|
+
"/src/unstable-core-do-not-import.ts",
|
|
417
417
|
"/src/unstable-core-do-not-import/rpc/codes.ts",
|
|
418
418
|
"/src/unstable-core-do-not-import/error/TRPCError.ts",
|
|
419
|
-
"/src/unstable-core-do-not-import/middleware.ts",
|
|
420
419
|
"/src/unstable-core-do-not-import/router.ts",
|
|
421
420
|
"/src/unstable-core-do-not-import/transformer.ts",
|
|
421
|
+
"/src/unstable-core-do-not-import/middleware.ts",
|
|
422
422
|
"/src/unstable-core-do-not-import/rpc/parseTRPCMessage.ts",
|
|
423
423
|
"/src/unstable-core-do-not-import/procedureBuilder.ts"
|
|
424
424
|
],
|
|
425
|
-
"percent": 1.
|
|
425
|
+
"percent": 1.09,
|
|
426
426
|
"reduction": 35.76
|
|
427
427
|
},
|
|
428
428
|
{
|
|
@@ -434,9 +434,10 @@
|
|
|
434
434
|
],
|
|
435
435
|
"removedExports": [],
|
|
436
436
|
"dependents": [
|
|
437
|
+
"/src/unstable-core-do-not-import.ts",
|
|
437
438
|
"/src/unstable-core-do-not-import/procedureBuilder.ts"
|
|
438
439
|
],
|
|
439
|
-
"percent": 1.
|
|
440
|
+
"percent": 1.08,
|
|
440
441
|
"reduction": 56.07
|
|
441
442
|
},
|
|
442
443
|
{
|
|
@@ -507,7 +508,7 @@
|
|
|
507
508
|
],
|
|
508
509
|
"removedExports": [],
|
|
509
510
|
"dependents": [
|
|
510
|
-
"/src/unstable-core-do-not-import
|
|
511
|
+
"/src/unstable-core-do-not-import.ts",
|
|
511
512
|
"/src/unstable-core-do-not-import/http/resolveHTTPResponse.ts"
|
|
512
513
|
],
|
|
513
514
|
"percent": 0.68,
|
|
@@ -516,17 +517,17 @@
|
|
|
516
517
|
{
|
|
517
518
|
"id": "/src/unstable-core-do-not-import/rootConfig.ts",
|
|
518
519
|
"size": 343,
|
|
519
|
-
"origSize":
|
|
520
|
+
"origSize": 2140,
|
|
520
521
|
"renderedExports": [
|
|
521
522
|
"isServerDefault"
|
|
522
523
|
],
|
|
523
524
|
"removedExports": [],
|
|
524
525
|
"dependents": [
|
|
525
|
-
"/src/unstable-core-do-not-import
|
|
526
|
+
"/src/unstable-core-do-not-import.ts",
|
|
526
527
|
"/src/unstable-core-do-not-import/initTRPC.ts"
|
|
527
528
|
],
|
|
528
529
|
"percent": 0.37,
|
|
529
|
-
"reduction": 83.
|
|
530
|
+
"reduction": 83.97
|
|
530
531
|
},
|
|
531
532
|
{
|
|
532
533
|
"id": "/src/adapters/express.ts",
|
|
@@ -554,6 +555,20 @@
|
|
|
554
555
|
"percent": 0.32,
|
|
555
556
|
"reduction": 35.11
|
|
556
557
|
},
|
|
558
|
+
{
|
|
559
|
+
"id": "/src/unstable-core-do-not-import/types.ts",
|
|
560
|
+
"size": 221,
|
|
561
|
+
"origSize": 4055,
|
|
562
|
+
"renderedExports": [
|
|
563
|
+
"ERROR_SYMBOL"
|
|
564
|
+
],
|
|
565
|
+
"removedExports": [],
|
|
566
|
+
"dependents": [
|
|
567
|
+
"/src/unstable-core-do-not-import.ts"
|
|
568
|
+
],
|
|
569
|
+
"percent": 0.24,
|
|
570
|
+
"reduction": 94.55
|
|
571
|
+
},
|
|
557
572
|
{
|
|
558
573
|
"id": "/src/adapters/node-http/internals/contentType.ts",
|
|
559
574
|
"size": 116,
|
|
@@ -572,17 +587,17 @@
|
|
|
572
587
|
{
|
|
573
588
|
"id": "/src/unstable-core-do-not-import/procedure.ts",
|
|
574
589
|
"size": 75,
|
|
575
|
-
"origSize":
|
|
590
|
+
"origSize": 1956,
|
|
576
591
|
"renderedExports": [
|
|
577
592
|
"procedureTypes"
|
|
578
593
|
],
|
|
579
594
|
"removedExports": [],
|
|
580
595
|
"dependents": [
|
|
581
|
-
"/src/unstable-core-do-not-import
|
|
596
|
+
"/src/unstable-core-do-not-import.ts",
|
|
582
597
|
"/src/unstable-core-do-not-import/rpc/parseTRPCMessage.ts"
|
|
583
598
|
],
|
|
584
599
|
"percent": 0.08,
|
|
585
|
-
"reduction":
|
|
600
|
+
"reduction": 96.17
|
|
586
601
|
},
|
|
587
602
|
{
|
|
588
603
|
"id": "/src/unstable-core-do-not-import/error/formatter.ts",
|
|
@@ -593,8 +608,9 @@
|
|
|
593
608
|
],
|
|
594
609
|
"removedExports": [],
|
|
595
610
|
"dependents": [
|
|
596
|
-
"/src/unstable-core-do-not-import
|
|
597
|
-
"/src/unstable-core-do-not-import/router.ts"
|
|
611
|
+
"/src/unstable-core-do-not-import.ts",
|
|
612
|
+
"/src/unstable-core-do-not-import/router.ts",
|
|
613
|
+
"/src/unstable-core-do-not-import/initTRPC.ts"
|
|
598
614
|
],
|
|
599
615
|
"percent": 0.07,
|
|
600
616
|
"reduction": 93.8
|
|
@@ -640,24 +656,24 @@
|
|
|
640
656
|
"reduction": 100
|
|
641
657
|
},
|
|
642
658
|
{
|
|
643
|
-
"id": "/src/
|
|
659
|
+
"id": "/src/unstable-core-do-not-import.ts",
|
|
644
660
|
"size": 0,
|
|
645
|
-
"origSize":
|
|
661
|
+
"origSize": 1552,
|
|
646
662
|
"renderedExports": [],
|
|
647
663
|
"removedExports": [],
|
|
648
|
-
"dependents": [
|
|
649
|
-
"/src/adapters/ws.ts"
|
|
650
|
-
],
|
|
664
|
+
"dependents": [],
|
|
651
665
|
"percent": 0,
|
|
652
666
|
"reduction": 100
|
|
653
667
|
},
|
|
654
668
|
{
|
|
655
|
-
"id": "/src/
|
|
669
|
+
"id": "/src/observable/index.ts",
|
|
656
670
|
"size": 0,
|
|
657
|
-
"origSize":
|
|
671
|
+
"origSize": 293,
|
|
658
672
|
"renderedExports": [],
|
|
659
673
|
"removedExports": [],
|
|
660
|
-
"dependents": [
|
|
674
|
+
"dependents": [
|
|
675
|
+
"/src/adapters/ws.ts"
|
|
676
|
+
],
|
|
661
677
|
"percent": 0,
|
|
662
678
|
"reduction": 100
|
|
663
679
|
},
|
|
@@ -696,5 +712,5 @@
|
|
|
696
712
|
"reduction": 100
|
|
697
713
|
}
|
|
698
714
|
],
|
|
699
|
-
"moduleCount":
|
|
715
|
+
"moduleCount": 49
|
|
700
716
|
}
|
package/dist/http.js
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
var getHTTPStatusCode = require('./unstable-core-do-not-import/http/getHTTPStatusCode.js');
|
|
4
4
|
require('./unstable-core-do-not-import/rpc/codes.js');
|
|
5
|
-
require('./unstable-core-do-not-import/rootConfig.js');
|
|
6
5
|
var resolveHTTPResponse = require('./unstable-core-do-not-import/http/resolveHTTPResponse.js');
|
|
7
6
|
var batchStreamFormatter = require('./unstable-core-do-not-import/http/batchStreamFormatter.js');
|
|
8
7
|
var contentType = require('./unstable-core-do-not-import/http/contentType.js');
|
|
8
|
+
require('./unstable-core-do-not-import/rootConfig.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
package/dist/http.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { getHTTPStatusCode, getHTTPStatusCodeFromError } from './unstable-core-do-not-import/http/getHTTPStatusCode.mjs';
|
|
2
2
|
import './unstable-core-do-not-import/rpc/codes.mjs';
|
|
3
|
-
import './unstable-core-do-not-import/rootConfig.mjs';
|
|
4
3
|
export { resolveHTTPResponse } from './unstable-core-do-not-import/http/resolveHTTPResponse.mjs';
|
|
5
4
|
export { getBatchStreamFormatter } from './unstable-core-do-not-import/http/batchStreamFormatter.mjs';
|
|
6
5
|
export { getJsonContentTypeInputs } from './unstable-core-do-not-import/http/contentType.mjs';
|
|
6
|
+
import './unstable-core-do-not-import/rootConfig.mjs';
|
package/dist/index.js
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var createProxy = require('./unstable-core-do-not-import/createProxy.js');
|
|
4
4
|
var getErrorShape = require('./unstable-core-do-not-import/error/getErrorShape.js');
|
|
5
|
+
var TRPCError = require('./unstable-core-do-not-import/error/TRPCError.js');
|
|
6
|
+
require('./unstable-core-do-not-import/rpc/codes.js');
|
|
7
|
+
var router = require('./unstable-core-do-not-import/router.js');
|
|
8
|
+
var transformer = require('./unstable-core-do-not-import/transformer.js');
|
|
5
9
|
var initTRPC = require('./unstable-core-do-not-import/initTRPC.js');
|
|
6
10
|
var middleware = require('./unstable-core-do-not-import/middleware.js');
|
|
7
11
|
require('./unstable-core-do-not-import/rootConfig.js');
|
|
8
|
-
var router = require('./unstable-core-do-not-import/router.js');
|
|
9
|
-
var transformer = require('./unstable-core-do-not-import/transformer.js');
|
|
10
|
-
var createProxy = require('./unstable-core-do-not-import/createProxy.js');
|
|
11
|
-
require('./unstable-core-do-not-import/rpc/codes.js');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
+
exports.createTRPCFlatProxy = createProxy.createFlatProxy;
|
|
16
|
+
exports.getErrorShape = getErrorShape.getErrorShape;
|
|
15
17
|
exports.TRPCError = TRPCError.TRPCError;
|
|
16
18
|
exports.getTRPCErrorFromUnknown = TRPCError.getTRPCErrorFromUnknown;
|
|
17
|
-
exports.getErrorShape = getErrorShape.getErrorShape;
|
|
18
|
-
exports.initTRPC = initTRPC.initTRPC;
|
|
19
|
-
exports.experimental_standaloneMiddleware = middleware.experimental_standaloneMiddleware;
|
|
20
|
-
exports.experimental_trpcMiddleware = middleware.experimental_standaloneMiddleware;
|
|
21
19
|
exports.callProcedure = router.callProcedure;
|
|
22
20
|
exports.callTRPCProcedure = router.callProcedure;
|
|
23
21
|
exports.transformTRPCResponse = transformer.transformTRPCResponse;
|
|
24
|
-
exports.
|
|
22
|
+
exports.initTRPC = initTRPC.initTRPC;
|
|
23
|
+
exports.experimental_standaloneMiddleware = middleware.experimental_standaloneMiddleware;
|
|
24
|
+
exports.experimental_trpcMiddleware = middleware.experimental_standaloneMiddleware;
|