@trpc/server 11.0.0-alpha-tmp-issues-5851-take-two.451 → 11.0.0-alpha-tmp-issues-5851-take-two.452

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": 131734,
3
- "bundleOrigSize": 181107,
4
- "bundleReduction": 27.26,
3
+ "bundleOrigSize": 181182,
4
+ "bundleReduction": 27.29,
5
5
  "modules": [
6
6
  {
7
7
  "id": "/src/unstable-core-do-not-import/stream/jsonl.ts",
@@ -518,6 +518,7 @@
518
518
  ],
519
519
  "removedExports": [],
520
520
  "dependents": [
521
+ "/src/unstable-core-do-not-import.ts",
521
522
  "/src/unstable-core-do-not-import/stream/sse.ts",
522
523
  "/src/unstable-core-do-not-import/stream/jsonl.ts",
523
524
  "/src/unstable-core-do-not-import/stream/utils/createReadableStream.ts"
@@ -741,25 +742,25 @@
741
742
  "reduction": 100
742
743
  },
743
744
  {
744
- "id": "/src/unstable-core-do-not-import.ts",
745
+ "id": "/src/shared.ts",
745
746
  "size": 0,
746
- "origSize": 2169,
747
+ "origSize": 653,
747
748
  "renderedExports": [],
748
749
  "removedExports": [],
749
- "dependents": [
750
- "/src/adapters/ws.ts",
751
- "/src/adapters/next-app-dir/nextAppDirCaller.ts"
752
- ],
750
+ "dependents": [],
753
751
  "percent": 0,
754
752
  "reduction": 100
755
753
  },
756
754
  {
757
- "id": "/src/shared.ts",
755
+ "id": "/src/unstable-core-do-not-import.ts",
758
756
  "size": 0,
759
- "origSize": 653,
757
+ "origSize": 2244,
760
758
  "renderedExports": [],
761
759
  "removedExports": [],
762
- "dependents": [],
760
+ "dependents": [
761
+ "/src/adapters/ws.ts",
762
+ "/src/adapters/next-app-dir/nextAppDirCaller.ts"
763
+ ],
763
764
  "percent": 0,
764
765
  "reduction": 100
765
766
  },
@@ -786,9 +787,9 @@
786
787
  "reduction": 100
787
788
  },
788
789
  {
789
- "id": "/src/adapters/fastify/index.ts",
790
+ "id": "/src/adapters/fetch/index.ts",
790
791
  "size": 0,
791
- "origSize": 78,
792
+ "origSize": 64,
792
793
  "renderedExports": [],
793
794
  "removedExports": [],
794
795
  "dependents": [],
@@ -796,9 +797,9 @@
796
797
  "reduction": 100
797
798
  },
798
799
  {
799
- "id": "/src/adapters/fetch/index.ts",
800
+ "id": "/src/adapters/fastify/index.ts",
800
801
  "size": 0,
801
- "origSize": 64,
802
+ "origSize": 78,
802
803
  "renderedExports": [],
803
804
  "removedExports": [],
804
805
  "dependents": [],
@@ -34,6 +34,7 @@ export * from './unstable-core-do-not-import/router';
34
34
  export * from './unstable-core-do-not-import/rpc';
35
35
  export * from './unstable-core-do-not-import/stream/jsonl';
36
36
  export * from './unstable-core-do-not-import/stream/sse';
37
+ export * from './unstable-core-do-not-import/stream/utils/createDeferred';
37
38
  export * from './unstable-core-do-not-import/transformer';
38
39
  export * from './unstable-core-do-not-import/types';
39
40
  export * from './unstable-core-do-not-import/utils';
@@ -1 +1 @@
1
- {"version":3,"file":"unstable-core-do-not-import.d.ts","sourceRoot":"","sources":["../src/unstable-core-do-not-import.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,cAAc,mDAAmD,CAAC;AAClE,cAAc,oDAAoD,CAAC;AACnE,cAAc,mDAAmD,CAAC;AAClE,cAAc,2CAA2C,CAAC;AAC1D,cAAc,+CAA+C,CAAC;AAC9D,cAAc,mDAAmD,CAAC;AAClE,cAAc,+CAA+C,CAAC;AAC9D,cAAc,yDAAyD,CAAC;AACxE,cAAc,gDAAgD,CAAC;AAC/D,cAAc,uDAAuD,CAAC;AACtE,cAAc,qDAAqD,CAAC;AACpE,cAAc,sDAAsD,CAAC;AACrE,cAAc,0DAA0D,CAAC;AACzE,cAAc,oDAAoD,CAAC;AACnE,cAAc,0CAA0C,CAAC;AACzD,cAAc,0CAA0C,CAAC;AACzD,cAAc,wCAAwC,CAAC;AACvD,cAAc,0CAA0C,CAAC;AACzD,cAAc,sCAAsC,CAAC;AACrD,cAAc,yCAAyC,CAAC;AACxD,cAAc,gDAAgD,CAAC;AAC/D,cAAc,0CAA0C,CAAC;AACzD,cAAc,sCAAsC,CAAC;AACrD,cAAc,mCAAmC,CAAC;AAClD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,0CAA0C,CAAC;AACzD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,qCAAqC,CAAC;AACpD,cAAc,qCAAqC,CAAC"}
1
+ {"version":3,"file":"unstable-core-do-not-import.d.ts","sourceRoot":"","sources":["../src/unstable-core-do-not-import.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,cAAc,mDAAmD,CAAC;AAClE,cAAc,oDAAoD,CAAC;AACnE,cAAc,mDAAmD,CAAC;AAClE,cAAc,2CAA2C,CAAC;AAC1D,cAAc,+CAA+C,CAAC;AAC9D,cAAc,mDAAmD,CAAC;AAClE,cAAc,+CAA+C,CAAC;AAC9D,cAAc,yDAAyD,CAAC;AACxE,cAAc,gDAAgD,CAAC;AAC/D,cAAc,uDAAuD,CAAC;AACtE,cAAc,qDAAqD,CAAC;AACpE,cAAc,sDAAsD,CAAC;AACrE,cAAc,0DAA0D,CAAC;AACzE,cAAc,oDAAoD,CAAC;AACnE,cAAc,0CAA0C,CAAC;AACzD,cAAc,0CAA0C,CAAC;AACzD,cAAc,wCAAwC,CAAC;AACvD,cAAc,0CAA0C,CAAC;AACzD,cAAc,sCAAsC,CAAC;AACrD,cAAc,yCAAyC,CAAC;AACxD,cAAc,gDAAgD,CAAC;AAC/D,cAAc,0CAA0C,CAAC;AACzD,cAAc,sCAAsC,CAAC;AACrD,cAAc,mCAAmC,CAAC;AAClD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,0CAA0C,CAAC;AACzD,cAAc,2DAA2D,CAAC;AAC1E,cAAc,2CAA2C,CAAC;AAC1D,cAAc,qCAAqC,CAAC;AACpD,cAAc,qCAAqC,CAAC"}
@@ -23,6 +23,7 @@ var codes = require('./unstable-core-do-not-import/rpc/codes.js');
23
23
  var parseTRPCMessage = require('./unstable-core-do-not-import/rpc/parseTRPCMessage.js');
24
24
  var jsonl = require('./unstable-core-do-not-import/stream/jsonl.js');
25
25
  var sse = require('./unstable-core-do-not-import/stream/sse.js');
26
+ var createDeferred = require('./unstable-core-do-not-import/stream/utils/createDeferred.js');
26
27
  var transformer = require('./unstable-core-do-not-import/transformer.js');
27
28
  var types = require('./unstable-core-do-not-import/types.js');
28
29
  var utils = require('./unstable-core-do-not-import/utils.js');
@@ -71,6 +72,8 @@ exports.sse = sse.sse;
71
72
  exports.sseHeaders = sse.sseHeaders;
72
73
  exports.sseStreamConsumer = sse.sseStreamConsumer;
73
74
  exports.sseStreamProducer = sse.sseStreamProducer;
75
+ exports.createDeferred = createDeferred.createDeferred;
76
+ exports.createTimeoutPromise = createDeferred.createTimeoutPromise;
74
77
  exports.defaultTransformer = transformer.defaultTransformer;
75
78
  exports.getDataTransformer = transformer.getDataTransformer;
76
79
  exports.transformResult = transformer.transformResult;
@@ -21,6 +21,7 @@ export { TRPC_ERROR_CODES_BY_KEY, TRPC_ERROR_CODES_BY_NUMBER } from './unstable-
21
21
  export { parseTRPCMessage } from './unstable-core-do-not-import/rpc/parseTRPCMessage.mjs';
22
22
  export { isPromise, jsonlStreamConsumer, jsonlStreamProducer } from './unstable-core-do-not-import/stream/jsonl.mjs';
23
23
  export { isSSEMessageEnvelope, sse, sseHeaders, sseStreamConsumer, sseStreamProducer } from './unstable-core-do-not-import/stream/sse.mjs';
24
+ export { createDeferred, createTimeoutPromise } from './unstable-core-do-not-import/stream/utils/createDeferred.mjs';
24
25
  export { defaultTransformer, getDataTransformer, transformResult, transformTRPCResponse } from './unstable-core-do-not-import/transformer.mjs';
25
26
  export { ERROR_SYMBOL } from './unstable-core-do-not-import/types.mjs';
26
27
  export { isAsyncIterable, isFunction, isObject, mergeWithoutOverrides, omitPrototype, run, unsetMarker } from './unstable-core-do-not-import/utils.mjs';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trpc/server",
3
- "version": "11.0.0-alpha-tmp-issues-5851-take-two.451+27b7d9bc9",
3
+ "version": "11.0.0-alpha-tmp-issues-5851-take-two.452+aa936a8f2",
4
4
  "description": "The tRPC server library",
5
5
  "author": "KATT",
6
6
  "license": "MIT",
@@ -149,5 +149,5 @@
149
149
  "funding": [
150
150
  "https://trpc.io/sponsor"
151
151
  ],
152
- "gitHead": "27b7d9bc9e6568fe608c8354a147274d0205c5bf"
152
+ "gitHead": "aa936a8f2cc2f671abfa3cbb27a55200ea539cba"
153
153
  }
@@ -34,6 +34,7 @@ export * from './unstable-core-do-not-import/router';
34
34
  export * from './unstable-core-do-not-import/rpc';
35
35
  export * from './unstable-core-do-not-import/stream/jsonl';
36
36
  export * from './unstable-core-do-not-import/stream/sse';
37
+ export * from './unstable-core-do-not-import/stream/utils/createDeferred';
37
38
  export * from './unstable-core-do-not-import/transformer';
38
39
  export * from './unstable-core-do-not-import/types';
39
40
  export * from './unstable-core-do-not-import/utils';