@trpc/server 11.0.0-rc.637 → 11.0.0-rc.638

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 (68) hide show
  1. package/dist/adapters/aws-lambda/index.js +1 -1
  2. package/dist/adapters/aws-lambda/index.mjs +1 -1
  3. package/dist/adapters/express.js +1 -1
  4. package/dist/adapters/express.mjs +1 -1
  5. package/dist/adapters/fastify/fastifyRequestHandler.js +1 -1
  6. package/dist/adapters/fastify/fastifyRequestHandler.mjs +1 -1
  7. package/dist/adapters/fetch/fetchRequestHandler.js +1 -1
  8. package/dist/adapters/fetch/fetchRequestHandler.mjs +1 -1
  9. package/dist/adapters/next-app-dir/nextAppDirCaller.js +1 -1
  10. package/dist/adapters/next-app-dir/nextAppDirCaller.mjs +1 -1
  11. package/dist/adapters/next-app-dir/notFound.js +1 -1
  12. package/dist/adapters/next-app-dir/notFound.mjs +1 -1
  13. package/dist/adapters/next-app-dir/redirect.js +1 -1
  14. package/dist/adapters/next-app-dir/redirect.mjs +1 -1
  15. package/dist/adapters/next.js +1 -1
  16. package/dist/adapters/next.mjs +1 -1
  17. package/dist/adapters/node-http/incomingMessageToRequest.js +1 -1
  18. package/dist/adapters/node-http/incomingMessageToRequest.mjs +1 -1
  19. package/dist/adapters/node-http/nodeHTTPRequestHandler.js +1 -1
  20. package/dist/adapters/node-http/nodeHTTPRequestHandler.mjs +1 -1
  21. package/dist/adapters/node-http/writeResponse.js +1 -1
  22. package/dist/adapters/node-http/writeResponse.mjs +1 -1
  23. package/dist/adapters/standalone.js +1 -1
  24. package/dist/adapters/standalone.mjs +1 -1
  25. package/dist/adapters/ws.js +1 -1
  26. package/dist/adapters/ws.mjs +1 -1
  27. package/dist/bundle-analysis.json +61 -61
  28. package/dist/http.js +1 -1
  29. package/dist/http.mjs +1 -1
  30. package/dist/index.js +1 -1
  31. package/dist/index.mjs +1 -1
  32. package/dist/rpc.js +1 -1
  33. package/dist/rpc.mjs +1 -1
  34. package/dist/shared.js +1 -1
  35. package/dist/shared.mjs +1 -1
  36. package/dist/unstable-core-do-not-import/http/resolveResponse.d.ts.map +1 -1
  37. package/dist/unstable-core-do-not-import/http/resolveResponse.js +0 -1
  38. package/dist/unstable-core-do-not-import/http/resolveResponse.mjs +0 -1
  39. package/dist/unstable-core-do-not-import/stream/jsonl.d.ts +1 -1
  40. package/dist/unstable-core-do-not-import/stream/jsonl.d.ts.map +1 -1
  41. package/dist/unstable-core-do-not-import/stream/jsonl.js +73 -47
  42. package/dist/unstable-core-do-not-import/stream/jsonl.mjs +73 -47
  43. package/dist/unstable-core-do-not-import/stream/sse.d.ts +0 -1
  44. package/dist/unstable-core-do-not-import/stream/sse.d.ts.map +1 -1
  45. package/dist/unstable-core-do-not-import/stream/sse.js +2 -4
  46. package/dist/unstable-core-do-not-import/stream/sse.mjs +2 -4
  47. package/dist/unstable-core-do-not-import/stream/utils/asyncIterable.d.ts +0 -2
  48. package/dist/unstable-core-do-not-import/stream/utils/asyncIterable.d.ts.map +1 -1
  49. package/dist/unstable-core-do-not-import/stream/utils/asyncIterable.js +5 -8
  50. package/dist/unstable-core-do-not-import/stream/utils/asyncIterable.mjs +3 -6
  51. package/dist/unstable-core-do-not-import/stream/utils/{disposablePromiseTimer.d.ts → timerResource.d.ts} +2 -2
  52. package/dist/unstable-core-do-not-import/stream/utils/timerResource.d.ts.map +1 -0
  53. package/dist/unstable-core-do-not-import/stream/utils/{disposablePromiseTimer.js → timerResource.js} +2 -2
  54. package/dist/unstable-core-do-not-import/stream/utils/{disposablePromiseTimer.mjs → timerResource.mjs} +2 -2
  55. package/dist/unstable-core-do-not-import/stream/utils/withPing.d.ts.map +1 -1
  56. package/dist/unstable-core-do-not-import/stream/utils/withPing.js +3 -3
  57. package/dist/unstable-core-do-not-import/stream/utils/withPing.mjs +2 -2
  58. package/package.json +4 -3
  59. package/src/unstable-core-do-not-import/http/resolveResponse.ts +0 -1
  60. package/src/unstable-core-do-not-import/stream/jsonl.ts +81 -51
  61. package/src/unstable-core-do-not-import/stream/sse.ts +1 -3
  62. package/src/unstable-core-do-not-import/stream/utils/asyncIterable.ts +5 -11
  63. package/src/unstable-core-do-not-import/stream/utils/{disposablePromiseTimer.ts → timerResource.ts} +1 -1
  64. package/src/unstable-core-do-not-import/stream/utils/withPing.ts +2 -5
  65. package/dist/unstable-core-do-not-import/stream/utils/createServer.d.ts +0 -7
  66. package/dist/unstable-core-do-not-import/stream/utils/createServer.d.ts.map +0 -1
  67. package/dist/unstable-core-do-not-import/stream/utils/disposablePromiseTimer.d.ts.map +0 -1
  68. package/src/unstable-core-do-not-import/stream/utils/createServer.ts +0 -44
@@ -3,7 +3,7 @@
3
3
  var resolveResponse = require('../../unstable-core-do-not-import/http/resolveResponse.js');
4
4
  require('../../unstable-core-do-not-import/rootConfig.js');
5
5
  require('../../vendor/unpromise/unpromise.js');
6
- require('../../unstable-core-do-not-import/stream/utils/disposablePromiseTimer.js');
6
+ require('../../unstable-core-do-not-import/stream/utils/timerResource.js');
7
7
  var getPlanner = require('./getPlanner.js');
8
8
 
9
9
  function awsLambdaRequestHandler(opts) {
@@ -1,7 +1,7 @@
1
1
  import { resolveResponse } from '../../unstable-core-do-not-import/http/resolveResponse.mjs';
2
2
  import '../../unstable-core-do-not-import/rootConfig.mjs';
3
3
  import '../../vendor/unpromise/unpromise.mjs';
4
- import '../../unstable-core-do-not-import/stream/utils/disposablePromiseTimer.mjs';
4
+ import '../../unstable-core-do-not-import/stream/utils/timerResource.mjs';
5
5
  import { getPlanner } from './getPlanner.mjs';
6
6
 
7
7
  function awsLambdaRequestHandler(opts) {
@@ -2,7 +2,7 @@
2
2
 
3
3
  var utils = require('../unstable-core-do-not-import/utils.js');
4
4
  require('../vendor/unpromise/unpromise.js');
5
- require('../unstable-core-do-not-import/stream/utils/disposablePromiseTimer.js');
5
+ require('../unstable-core-do-not-import/stream/utils/timerResource.js');
6
6
  require('../unstable-core-do-not-import/rootConfig.js');
7
7
  var nodeHTTPRequestHandler = require('./node-http/nodeHTTPRequestHandler.js');
8
8
 
@@ -1,6 +1,6 @@
1
1
  import { run } from '../unstable-core-do-not-import/utils.mjs';
2
2
  import '../vendor/unpromise/unpromise.mjs';
3
- import '../unstable-core-do-not-import/stream/utils/disposablePromiseTimer.mjs';
3
+ import '../unstable-core-do-not-import/stream/utils/timerResource.mjs';
4
4
  import '../unstable-core-do-not-import/rootConfig.mjs';
5
5
  import { nodeHTTPRequestHandler, internal_exceptionHandler } from './node-http/nodeHTTPRequestHandler.mjs';
6
6
 
@@ -3,7 +3,7 @@
3
3
  var resolveResponse = require('../../unstable-core-do-not-import/http/resolveResponse.js');
4
4
  require('../../unstable-core-do-not-import/rootConfig.js');
5
5
  require('../../vendor/unpromise/unpromise.js');
6
- require('../../unstable-core-do-not-import/stream/utils/disposablePromiseTimer.js');
6
+ require('../../unstable-core-do-not-import/stream/utils/timerResource.js');
7
7
  var incomingMessageToRequest = require('../node-http/incomingMessageToRequest.js');
8
8
 
9
9
  /**
@@ -1,7 +1,7 @@
1
1
  import { resolveResponse } from '../../unstable-core-do-not-import/http/resolveResponse.mjs';
2
2
  import '../../unstable-core-do-not-import/rootConfig.mjs';
3
3
  import '../../vendor/unpromise/unpromise.mjs';
4
- import '../../unstable-core-do-not-import/stream/utils/disposablePromiseTimer.mjs';
4
+ import '../../unstable-core-do-not-import/stream/utils/timerResource.mjs';
5
5
  import { incomingMessageToRequest } from '../node-http/incomingMessageToRequest.mjs';
6
6
 
7
7
  /**
@@ -3,7 +3,7 @@
3
3
  var resolveResponse = require('../../unstable-core-do-not-import/http/resolveResponse.js');
4
4
  require('../../unstable-core-do-not-import/rootConfig.js');
5
5
  require('../../vendor/unpromise/unpromise.js');
6
- require('../../unstable-core-do-not-import/stream/utils/disposablePromiseTimer.js');
6
+ require('../../unstable-core-do-not-import/stream/utils/timerResource.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 { resolveResponse } from '../../unstable-core-do-not-import/http/resolveResponse.mjs';
2
2
  import '../../unstable-core-do-not-import/rootConfig.mjs';
3
3
  import '../../vendor/unpromise/unpromise.mjs';
4
- import '../../unstable-core-do-not-import/stream/utils/disposablePromiseTimer.mjs';
4
+ import '../../unstable-core-do-not-import/stream/utils/timerResource.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`
@@ -3,7 +3,7 @@
3
3
  var TRPCError = require('../../unstable-core-do-not-import/error/TRPCError.js');
4
4
  var formDataToObject = require('../../unstable-core-do-not-import/http/formDataToObject.js');
5
5
  require('../../vendor/unpromise/unpromise.js');
6
- require('../../unstable-core-do-not-import/stream/utils/disposablePromiseTimer.js');
6
+ require('../../unstable-core-do-not-import/stream/utils/timerResource.js');
7
7
  require('../../unstable-core-do-not-import/rootConfig.js');
8
8
  var redirect = require('./redirect.js');
9
9
  var rethrowNextErrors = require('./rethrowNextErrors.js');
@@ -1,7 +1,7 @@
1
1
  import { TRPCError, getTRPCErrorFromUnknown } from '../../unstable-core-do-not-import/error/TRPCError.mjs';
2
2
  import { formDataToObject } from '../../unstable-core-do-not-import/http/formDataToObject.mjs';
3
3
  import '../../vendor/unpromise/unpromise.mjs';
4
- import '../../unstable-core-do-not-import/stream/utils/disposablePromiseTimer.mjs';
4
+ import '../../unstable-core-do-not-import/stream/utils/timerResource.mjs';
5
5
  import '../../unstable-core-do-not-import/rootConfig.mjs';
6
6
  import { TRPCRedirectError } from './redirect.mjs';
7
7
  import { rethrowNextErrors } from './rethrowNextErrors.mjs';
@@ -2,7 +2,7 @@
2
2
 
3
3
  var TRPCError = require('../../unstable-core-do-not-import/error/TRPCError.js');
4
4
  require('../../vendor/unpromise/unpromise.js');
5
- require('../../unstable-core-do-not-import/stream/utils/disposablePromiseTimer.js');
5
+ require('../../unstable-core-do-not-import/stream/utils/timerResource.js');
6
6
  require('../../unstable-core-do-not-import/rootConfig.js');
7
7
 
8
8
  /**
@@ -1,6 +1,6 @@
1
1
  import { TRPCError } from '../../unstable-core-do-not-import/error/TRPCError.mjs';
2
2
  import '../../vendor/unpromise/unpromise.mjs';
3
- import '../../unstable-core-do-not-import/stream/utils/disposablePromiseTimer.mjs';
3
+ import '../../unstable-core-do-not-import/stream/utils/timerResource.mjs';
4
4
  import '../../unstable-core-do-not-import/rootConfig.mjs';
5
5
 
6
6
  /**
@@ -3,7 +3,7 @@
3
3
  var _define_property = require('../../node_modules/.pnpm/@swc_helpers@0.5.13/node_modules/@swc/helpers/esm/_define_property.js');
4
4
  var TRPCError = require('../../unstable-core-do-not-import/error/TRPCError.js');
5
5
  require('../../vendor/unpromise/unpromise.js');
6
- require('../../unstable-core-do-not-import/stream/utils/disposablePromiseTimer.js');
6
+ require('../../unstable-core-do-not-import/stream/utils/timerResource.js');
7
7
  require('../../unstable-core-do-not-import/rootConfig.js');
8
8
 
9
9
  /**
@@ -1,7 +1,7 @@
1
1
  import { _ as _define_property } from '../../node_modules/.pnpm/@swc_helpers@0.5.13/node_modules/@swc/helpers/esm/_define_property.mjs';
2
2
  import { TRPCError } from '../../unstable-core-do-not-import/error/TRPCError.mjs';
3
3
  import '../../vendor/unpromise/unpromise.mjs';
4
- import '../../unstable-core-do-not-import/stream/utils/disposablePromiseTimer.mjs';
4
+ import '../../unstable-core-do-not-import/stream/utils/timerResource.mjs';
5
5
  import '../../unstable-core-do-not-import/rootConfig.mjs';
6
6
 
7
7
  /**
@@ -3,7 +3,7 @@
3
3
  var utils = require('../unstable-core-do-not-import/utils.js');
4
4
  var TRPCError = require('../unstable-core-do-not-import/error/TRPCError.js');
5
5
  require('../vendor/unpromise/unpromise.js');
6
- require('../unstable-core-do-not-import/stream/utils/disposablePromiseTimer.js');
6
+ require('../unstable-core-do-not-import/stream/utils/timerResource.js');
7
7
  require('../unstable-core-do-not-import/rootConfig.js');
8
8
  var nodeHTTPRequestHandler = require('./node-http/nodeHTTPRequestHandler.js');
9
9
 
@@ -1,7 +1,7 @@
1
1
  import { run } from '../unstable-core-do-not-import/utils.mjs';
2
2
  import { TRPCError } from '../unstable-core-do-not-import/error/TRPCError.mjs';
3
3
  import '../vendor/unpromise/unpromise.mjs';
4
- import '../unstable-core-do-not-import/stream/utils/disposablePromiseTimer.mjs';
4
+ import '../unstable-core-do-not-import/stream/utils/timerResource.mjs';
5
5
  import '../unstable-core-do-not-import/rootConfig.mjs';
6
6
  import { nodeHTTPRequestHandler, internal_exceptionHandler } from './node-http/nodeHTTPRequestHandler.mjs';
7
7
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  var TRPCError = require('../../unstable-core-do-not-import/error/TRPCError.js');
4
4
  require('../../vendor/unpromise/unpromise.js');
5
- require('../../unstable-core-do-not-import/stream/utils/disposablePromiseTimer.js');
5
+ require('../../unstable-core-do-not-import/stream/utils/timerResource.js');
6
6
  require('../../unstable-core-do-not-import/rootConfig.js');
7
7
 
8
8
  function createBody(req, opts) {
@@ -1,6 +1,6 @@
1
1
  import { TRPCError } from '../../unstable-core-do-not-import/error/TRPCError.mjs';
2
2
  import '../../vendor/unpromise/unpromise.mjs';
3
- import '../../unstable-core-do-not-import/stream/utils/disposablePromiseTimer.mjs';
3
+ import '../../unstable-core-do-not-import/stream/utils/timerResource.mjs';
4
4
  import '../../unstable-core-do-not-import/rootConfig.mjs';
5
5
 
6
6
  function createBody(req, opts) {
@@ -7,7 +7,7 @@ var resolveResponse = require('../../unstable-core-do-not-import/http/resolveRes
7
7
  require('../../unstable-core-do-not-import/rootConfig.js');
8
8
  var transformer = require('../../unstable-core-do-not-import/transformer.js');
9
9
  require('../../vendor/unpromise/unpromise.js');
10
- require('../../unstable-core-do-not-import/stream/utils/disposablePromiseTimer.js');
10
+ require('../../unstable-core-do-not-import/stream/utils/timerResource.js');
11
11
  var incomingMessageToRequest = require('./incomingMessageToRequest.js');
12
12
  var writeResponse = require('./writeResponse.js');
13
13
 
@@ -5,7 +5,7 @@ import { resolveResponse } from '../../unstable-core-do-not-import/http/resolveR
5
5
  import '../../unstable-core-do-not-import/rootConfig.mjs';
6
6
  import { transformTRPCResponse } from '../../unstable-core-do-not-import/transformer.mjs';
7
7
  import '../../vendor/unpromise/unpromise.mjs';
8
- import '../../unstable-core-do-not-import/stream/utils/disposablePromiseTimer.mjs';
8
+ import '../../unstable-core-do-not-import/stream/utils/timerResource.mjs';
9
9
  import { incomingMessageToRequest } from './incomingMessageToRequest.mjs';
10
10
  import { writeResponse } from './writeResponse.mjs';
11
11
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  var isAbortError = require('../../unstable-core-do-not-import/http/isAbortError.js');
4
4
  require('../../vendor/unpromise/unpromise.js');
5
- require('../../unstable-core-do-not-import/stream/utils/disposablePromiseTimer.js');
5
+ require('../../unstable-core-do-not-import/stream/utils/timerResource.js');
6
6
  require('../../unstable-core-do-not-import/rootConfig.js');
7
7
 
8
8
  // eslint-disable-next-line no-restricted-imports
@@ -1,6 +1,6 @@
1
1
  import { isAbortError } from '../../unstable-core-do-not-import/http/isAbortError.mjs';
2
2
  import '../../vendor/unpromise/unpromise.mjs';
3
- import '../../unstable-core-do-not-import/stream/utils/disposablePromiseTimer.mjs';
3
+ import '../../unstable-core-do-not-import/stream/utils/timerResource.mjs';
4
4
  import '../../unstable-core-do-not-import/rootConfig.mjs';
5
5
 
6
6
  // eslint-disable-next-line no-restricted-imports
@@ -3,7 +3,7 @@
3
3
  var http = require('node:http');
4
4
  var utils = require('../unstable-core-do-not-import/utils.js');
5
5
  require('../vendor/unpromise/unpromise.js');
6
- require('../unstable-core-do-not-import/stream/utils/disposablePromiseTimer.js');
6
+ require('../unstable-core-do-not-import/stream/utils/timerResource.js');
7
7
  require('../unstable-core-do-not-import/rootConfig.js');
8
8
  var nodeHTTPRequestHandler = require('./node-http/nodeHTTPRequestHandler.js');
9
9
  var incomingMessageToRequest = require('./node-http/incomingMessageToRequest.js');
@@ -1,7 +1,7 @@
1
1
  import http from 'node:http';
2
2
  import { run } from '../unstable-core-do-not-import/utils.mjs';
3
3
  import '../vendor/unpromise/unpromise.mjs';
4
- import '../unstable-core-do-not-import/stream/utils/disposablePromiseTimer.mjs';
4
+ import '../unstable-core-do-not-import/stream/utils/timerResource.mjs';
5
5
  import '../unstable-core-do-not-import/rootConfig.mjs';
6
6
  import { nodeHTTPRequestHandler, internal_exceptionHandler } from './node-http/nodeHTTPRequestHandler.mjs';
7
7
  import { createURL } from './node-http/incomingMessageToRequest.mjs';
@@ -8,7 +8,7 @@ var parseTRPCMessage = require('../unstable-core-do-not-import/rpc/parseTRPCMess
8
8
  var observable = require('../observable/observable.js');
9
9
  var unpromise = require('../vendor/unpromise/unpromise.js');
10
10
  var tracked = require('../unstable-core-do-not-import/stream/tracked.js');
11
- require('../unstable-core-do-not-import/stream/utils/disposablePromiseTimer.js');
11
+ require('../unstable-core-do-not-import/stream/utils/timerResource.js');
12
12
  var transformer = require('../unstable-core-do-not-import/transformer.js');
13
13
  require('../unstable-core-do-not-import/rootConfig.js');
14
14
  var router = require('../unstable-core-do-not-import/router.js');
@@ -6,7 +6,7 @@ import { parseTRPCMessage } from '../unstable-core-do-not-import/rpc/parseTRPCMe
6
6
  import { isObservable, observableToAsyncIterable } from '../observable/observable.mjs';
7
7
  import { Unpromise } from '../vendor/unpromise/unpromise.mjs';
8
8
  import { isTrackedEnvelope } from '../unstable-core-do-not-import/stream/tracked.mjs';
9
- import '../unstable-core-do-not-import/stream/utils/disposablePromiseTimer.mjs';
9
+ import '../unstable-core-do-not-import/stream/utils/timerResource.mjs';
10
10
  import { transformTRPCResponse } from '../unstable-core-do-not-import/transformer.mjs';
11
11
  import '../unstable-core-do-not-import/rootConfig.mjs';
12
12
  import { callProcedure } from '../unstable-core-do-not-import/router.mjs';
@@ -1,12 +1,12 @@
1
1
  {
2
- "bundleSize": 167567,
3
- "bundleOrigSize": 218732,
4
- "bundleReduction": 23.39,
2
+ "bundleSize": 167858,
3
+ "bundleOrigSize": 219046,
4
+ "bundleReduction": 23.37,
5
5
  "modules": [
6
6
  {
7
7
  "id": "/src/unstable-core-do-not-import/http/resolveResponse.ts",
8
- "size": 21503,
9
- "origSize": 19791,
8
+ "size": 21420,
9
+ "origSize": 19724,
10
10
  "renderedExports": [
11
11
  "resolveResponse"
12
12
  ],
@@ -14,7 +14,7 @@
14
14
  "dependents": [
15
15
  "/src/unstable-core-do-not-import.ts"
16
16
  ],
17
- "percent": 12.83,
17
+ "percent": 12.76,
18
18
  "reduction": 0
19
19
  },
20
20
  {
@@ -30,13 +30,13 @@
30
30
  "dependents": [
31
31
  "/src/adapters/fastify/fastifyTRPCPlugin.ts"
32
32
  ],
33
- "percent": 10.01,
33
+ "percent": 9.99,
34
34
  "reduction": 0
35
35
  },
36
36
  {
37
37
  "id": "/src/unstable-core-do-not-import/stream/jsonl.ts",
38
- "size": 15675,
39
- "origSize": 16691,
38
+ "size": 16412,
39
+ "origSize": 17477,
40
40
  "renderedExports": [
41
41
  "isPromise",
42
42
  "jsonlStreamProducer",
@@ -47,7 +47,7 @@
47
47
  "/src/unstable-core-do-not-import.ts",
48
48
  "/src/unstable-core-do-not-import/http/resolveResponse.ts"
49
49
  ],
50
- "percent": 9.35,
50
+ "percent": 9.78,
51
51
  "reduction": 6.09
52
52
  },
53
53
  {
@@ -60,13 +60,13 @@
60
60
  ],
61
61
  "removedExports": [],
62
62
  "dependents": [],
63
- "percent": 7.05,
63
+ "percent": 7.03,
64
64
  "reduction": 14.14
65
65
  },
66
66
  {
67
67
  "id": "/src/unstable-core-do-not-import/stream/sse.ts",
68
- "size": 9727,
69
- "origSize": 12040,
68
+ "size": 9641,
69
+ "origSize": 11941,
70
70
  "renderedExports": [
71
71
  "sseStreamProducer",
72
72
  "sseStreamConsumer",
@@ -77,8 +77,8 @@
77
77
  "/src/unstable-core-do-not-import.ts",
78
78
  "/src/unstable-core-do-not-import/http/resolveResponse.ts"
79
79
  ],
80
- "percent": 5.8,
81
- "reduction": 19.21
80
+ "percent": 5.74,
81
+ "reduction": 19.26
82
82
  },
83
83
  {
84
84
  "id": "/src/unstable-core-do-not-import/http/contentType.ts",
@@ -92,7 +92,7 @@
92
92
  "/src/unstable-core-do-not-import.ts",
93
93
  "/src/unstable-core-do-not-import/http/resolveResponse.ts"
94
94
  ],
95
- "percent": 4.59,
95
+ "percent": 4.58,
96
96
  "reduction": 0
97
97
  },
98
98
  {
@@ -110,7 +110,7 @@
110
110
  "/src/unstable-core-do-not-import.ts",
111
111
  "/src/unstable-core-do-not-import/initTRPC.ts"
112
112
  ],
113
- "percent": 3.83,
113
+ "percent": 3.82,
114
114
  "reduction": 39.89
115
115
  },
116
116
  {
@@ -125,7 +125,7 @@
125
125
  "/src/unstable-core-do-not-import.ts",
126
126
  "/src/unstable-core-do-not-import/initTRPC.ts"
127
127
  ],
128
- "percent": 3.46,
128
+ "percent": 3.45,
129
129
  "reduction": 65.01
130
130
  },
131
131
  {
@@ -207,24 +207,9 @@
207
207
  "dependents": [
208
208
  "/src/adapters/next-app-dir.ts"
209
209
  ],
210
- "percent": 1.94,
210
+ "percent": 1.93,
211
211
  "reduction": 22.52
212
212
  },
213
- {
214
- "id": "/src/unstable-core-do-not-import/stream/utils/asyncIterable.ts",
215
- "size": 2776,
216
- "origSize": 2876,
217
- "renderedExports": [
218
- "withMaxDuration",
219
- "takeWithGrace"
220
- ],
221
- "removedExports": [],
222
- "dependents": [
223
- "/src/unstable-core-do-not-import/stream/sse.ts"
224
- ],
225
- "percent": 1.66,
226
- "reduction": 3.48
227
- },
228
213
  {
229
214
  "id": "/src/adapters/node-http/nodeHTTPRequestHandler.ts",
230
215
  "size": 2742,
@@ -237,7 +222,7 @@
237
222
  "dependents": [
238
223
  "/src/adapters/node-http/index.ts"
239
224
  ],
240
- "percent": 1.64,
225
+ "percent": 1.63,
241
226
  "reduction": 16.3
242
227
  },
243
228
  {
@@ -291,9 +276,24 @@
291
276
  "/src/unstable-core-do-not-import/initTRPC.ts",
292
277
  "/src/unstable-core-do-not-import/procedureBuilder.ts"
293
278
  ],
294
- "percent": 1.57,
279
+ "percent": 1.56,
295
280
  "reduction": 55.79
296
281
  },
282
+ {
283
+ "id": "/src/unstable-core-do-not-import/stream/utils/asyncIterable.ts",
284
+ "size": 2535,
285
+ "origSize": 2611,
286
+ "renderedExports": [
287
+ "withMaxDuration",
288
+ "takeWithGrace"
289
+ ],
290
+ "removedExports": [],
291
+ "dependents": [
292
+ "/src/unstable-core-do-not-import/stream/sse.ts"
293
+ ],
294
+ "percent": 1.51,
295
+ "reduction": 2.91
296
+ },
297
297
  {
298
298
  "id": "/src/unstable-core-do-not-import/utils.ts",
299
299
  "size": 2460,
@@ -373,7 +373,7 @@
373
373
  "dependents": [
374
374
  "/src/adapters/next-app-dir/nextAppDirCaller.ts"
375
375
  ],
376
- "percent": 1.27,
376
+ "percent": 1.26,
377
377
  "reduction": 5.53
378
378
  },
379
379
  {
@@ -394,7 +394,7 @@
394
394
  "/src/unstable-core-do-not-import/http/resolveResponse.ts",
395
395
  "/src/unstable-core-do-not-import/error/getErrorShape.ts"
396
396
  ],
397
- "percent": 1.25,
397
+ "percent": 1.24,
398
398
  "reduction": 18.54
399
399
  },
400
400
  {
@@ -517,8 +517,8 @@
517
517
  },
518
518
  {
519
519
  "id": "/src/unstable-core-do-not-import/stream/utils/withPing.ts",
520
- "size": 1192,
521
- "origSize": 1325,
520
+ "size": 1165,
521
+ "origSize": 1293,
522
522
  "renderedExports": [
523
523
  "PING_SYM",
524
524
  "withPing"
@@ -527,8 +527,8 @@
527
527
  "dependents": [
528
528
  "/src/unstable-core-do-not-import/stream/sse.ts"
529
529
  ],
530
- "percent": 0.71,
531
- "reduction": 10.04
530
+ "percent": 0.69,
531
+ "reduction": 9.9
532
532
  },
533
533
  {
534
534
  "id": "/src/adapters/fastify/fastifyRequestHandler.ts",
@@ -632,7 +632,7 @@
632
632
  "/src/unstable-core-do-not-import.ts",
633
633
  "/src/unstable-core-do-not-import/stream/sse.ts"
634
634
  ],
635
- "percent": 0.47,
635
+ "percent": 0.46,
636
636
  "reduction": 44.13
637
637
  },
638
638
  {
@@ -661,19 +661,19 @@
661
661
  "reduction": 66.61
662
662
  },
663
663
  {
664
- "id": "/src/unstable-core-do-not-import/stream/utils/disposablePromiseTimer.ts",
665
- "size": 655,
666
- "origSize": 651,
664
+ "id": "/src/unstable-core-do-not-import/stream/utils/timerResource.ts",
665
+ "size": 646,
666
+ "origSize": 642,
667
667
  "renderedExports": [
668
668
  "disposablePromiseTimerResult",
669
- "disposablePromiseTimer"
669
+ "timerResource"
670
670
  ],
671
671
  "removedExports": [],
672
672
  "dependents": [
673
673
  "/src/unstable-core-do-not-import/stream/utils/asyncIterable.ts",
674
674
  "/src/unstable-core-do-not-import/stream/utils/withPing.ts"
675
675
  ],
676
- "percent": 0.39,
676
+ "percent": 0.38,
677
677
  "reduction": 0
678
678
  },
679
679
  {
@@ -877,11 +877,11 @@
877
877
  "removedExports": [],
878
878
  "dependents": [
879
879
  "/src/adapters/express.ts",
880
- "/src/adapters/standalone.ts",
881
880
  "/src/adapters/next.ts",
881
+ "/src/adapters/standalone.ts",
882
882
  "/src/adapters/ws.ts",
883
- "/src/adapters/node-http/nodeHTTPRequestHandler.ts",
884
883
  "/src/adapters/next-app-dir/nextAppDirCaller.ts",
884
+ "/src/adapters/node-http/nodeHTTPRequestHandler.ts",
885
885
  "/src/adapters/node-http/writeResponse.ts"
886
886
  ],
887
887
  "percent": 0,
@@ -919,16 +919,6 @@
919
919
  "percent": 0,
920
920
  "reduction": 100
921
921
  },
922
- {
923
- "id": "/src/adapters/fetch/index.ts",
924
- "size": 0,
925
- "origSize": 64,
926
- "renderedExports": [],
927
- "removedExports": [],
928
- "dependents": [],
929
- "percent": 0,
930
- "reduction": 100
931
- },
932
922
  {
933
923
  "id": "/src/adapters/node-http/index.ts",
934
924
  "size": 0,
@@ -937,13 +927,23 @@
937
927
  "removedExports": [],
938
928
  "dependents": [
939
929
  "/src/adapters/express.ts",
940
- "/src/adapters/standalone.ts",
941
930
  "/src/adapters/next.ts",
931
+ "/src/adapters/standalone.ts",
942
932
  "/src/adapters/ws.ts",
943
933
  "/src/adapters/fastify/fastifyRequestHandler.ts"
944
934
  ],
945
935
  "percent": 0,
946
936
  "reduction": 100
937
+ },
938
+ {
939
+ "id": "/src/adapters/fetch/index.ts",
940
+ "size": 0,
941
+ "origSize": 64,
942
+ "renderedExports": [],
943
+ "removedExports": [],
944
+ "dependents": [],
945
+ "percent": 0,
946
+ "reduction": 100
947
947
  }
948
948
  ],
949
949
  "moduleCount": 62
package/dist/http.js CHANGED
@@ -6,7 +6,7 @@ var contentTypeParsers = require('./unstable-core-do-not-import/http/contentType
6
6
  var resolveResponse = require('./unstable-core-do-not-import/http/resolveResponse.js');
7
7
  require('./unstable-core-do-not-import/rootConfig.js');
8
8
  require('./vendor/unpromise/unpromise.js');
9
- require('./unstable-core-do-not-import/stream/utils/disposablePromiseTimer.js');
9
+ require('./unstable-core-do-not-import/stream/utils/timerResource.js');
10
10
 
11
11
 
12
12
 
package/dist/http.mjs CHANGED
@@ -4,4 +4,4 @@ export { octetInputParser } from './unstable-core-do-not-import/http/contentType
4
4
  export { resolveResponse } from './unstable-core-do-not-import/http/resolveResponse.mjs';
5
5
  import './unstable-core-do-not-import/rootConfig.mjs';
6
6
  import './vendor/unpromise/unpromise.mjs';
7
- import './unstable-core-do-not-import/stream/utils/disposablePromiseTimer.mjs';
7
+ import './unstable-core-do-not-import/stream/utils/timerResource.mjs';
package/dist/index.js CHANGED
@@ -5,7 +5,7 @@ var getErrorShape = require('./unstable-core-do-not-import/error/getErrorShape.j
5
5
  var TRPCError = require('./unstable-core-do-not-import/error/TRPCError.js');
6
6
  require('./vendor/unpromise/unpromise.js');
7
7
  var tracked = require('./unstable-core-do-not-import/stream/tracked.js');
8
- require('./unstable-core-do-not-import/stream/utils/disposablePromiseTimer.js');
8
+ require('./unstable-core-do-not-import/stream/utils/timerResource.js');
9
9
  var transformer = require('./unstable-core-do-not-import/transformer.js');
10
10
  var initTRPC = require('./unstable-core-do-not-import/initTRPC.js');
11
11
  var middleware = require('./unstable-core-do-not-import/middleware.js');
package/dist/index.mjs CHANGED
@@ -3,7 +3,7 @@ export { getErrorShape } from './unstable-core-do-not-import/error/getErrorShape
3
3
  export { TRPCError, getTRPCErrorFromUnknown } from './unstable-core-do-not-import/error/TRPCError.mjs';
4
4
  import './vendor/unpromise/unpromise.mjs';
5
5
  export { isTrackedEnvelope, sse, tracked } from './unstable-core-do-not-import/stream/tracked.mjs';
6
- import './unstable-core-do-not-import/stream/utils/disposablePromiseTimer.mjs';
6
+ import './unstable-core-do-not-import/stream/utils/timerResource.mjs';
7
7
  export { transformTRPCResponse } from './unstable-core-do-not-import/transformer.mjs';
8
8
  export { initTRPC } from './unstable-core-do-not-import/initTRPC.mjs';
9
9
  export { experimental_standaloneMiddleware, experimental_standaloneMiddleware as experimental_trpcMiddleware } from './unstable-core-do-not-import/middleware.mjs';
package/dist/rpc.js CHANGED
@@ -3,7 +3,7 @@
3
3
  var codes = require('./unstable-core-do-not-import/rpc/codes.js');
4
4
  var parseTRPCMessage = require('./unstable-core-do-not-import/rpc/parseTRPCMessage.js');
5
5
  require('./vendor/unpromise/unpromise.js');
6
- require('./unstable-core-do-not-import/stream/utils/disposablePromiseTimer.js');
6
+ require('./unstable-core-do-not-import/stream/utils/timerResource.js');
7
7
  require('./unstable-core-do-not-import/rootConfig.js');
8
8
 
9
9
 
package/dist/rpc.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  export { TRPC_ERROR_CODES_BY_KEY, TRPC_ERROR_CODES_BY_NUMBER } from './unstable-core-do-not-import/rpc/codes.mjs';
2
2
  export { parseTRPCMessage } from './unstable-core-do-not-import/rpc/parseTRPCMessage.mjs';
3
3
  import './vendor/unpromise/unpromise.mjs';
4
- import './unstable-core-do-not-import/stream/utils/disposablePromiseTimer.mjs';
4
+ import './unstable-core-do-not-import/stream/utils/timerResource.mjs';
5
5
  import './unstable-core-do-not-import/rootConfig.mjs';
package/dist/shared.js CHANGED
@@ -3,7 +3,7 @@
3
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
5
  require('./vendor/unpromise/unpromise.js');
6
- require('./unstable-core-do-not-import/stream/utils/disposablePromiseTimer.js');
6
+ require('./unstable-core-do-not-import/stream/utils/timerResource.js');
7
7
  require('./unstable-core-do-not-import/rootConfig.js');
8
8
 
9
9
 
package/dist/shared.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  export { createFlatProxy } from './unstable-core-do-not-import/createProxy.mjs';
2
2
  export { getErrorShape } from './unstable-core-do-not-import/error/getErrorShape.mjs';
3
3
  import './vendor/unpromise/unpromise.mjs';
4
- import './unstable-core-do-not-import/stream/utils/disposablePromiseTimer.mjs';
4
+ import './unstable-core-do-not-import/stream/utils/timerResource.mjs';
5
5
  import './unstable-core-do-not-import/rootConfig.mjs';