@trpc/server 11.0.0-rc.754 → 11.0.0-rc.755

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": 199016,
3
- "bundleOrigSize": 230676,
4
- "bundleReduction": 13.72,
3
+ "bundleOrigSize": 230677,
4
+ "bundleReduction": 13.73,
5
5
  "modules": [
6
6
  {
7
7
  "id": "/src/unstable-core-do-not-import/http/resolveResponse.ts",
@@ -104,7 +104,7 @@
104
104
  {
105
105
  "id": "/src/unstable-core-do-not-import/stream/utils/mergeAsyncIterables.ts",
106
106
  "size": 8124,
107
- "origSize": 5154,
107
+ "origSize": 5148,
108
108
  "renderedExports": [
109
109
  "mergeAsyncIterables"
110
110
  ],
@@ -360,10 +360,10 @@
360
360
  "/src/unstable-core-do-not-import/router.ts",
361
361
  "/src/unstable-core-do-not-import/transformer.ts",
362
362
  "/src/unstable-core-do-not-import/middleware.ts",
363
+ "/src/unstable-core-do-not-import/rpc/parseTRPCMessage.ts",
363
364
  "/src/unstable-core-do-not-import/http/contentType.ts",
364
365
  "/src/unstable-core-do-not-import/http/abortError.ts",
365
366
  "/src/unstable-core-do-not-import/procedureBuilder.ts",
366
- "/src/unstable-core-do-not-import/rpc/parseTRPCMessage.ts",
367
367
  "/src/unstable-core-do-not-import/stream/jsonl.ts",
368
368
  "/src/unstable-core-do-not-import/stream/sse.ts"
369
369
  ],
@@ -770,7 +770,7 @@
770
770
  {
771
771
  "id": "/src/unstable-core-do-not-import/stream/utils/createDeferred.ts",
772
772
  "size": 309,
773
- "origSize": 417,
773
+ "origSize": 424,
774
774
  "renderedExports": [
775
775
  "createDeferred"
776
776
  ],
@@ -781,7 +781,7 @@
781
781
  "/src/unstable-core-do-not-import/stream/utils/mergeAsyncIterables.ts"
782
782
  ],
783
783
  "percent": 0.16,
784
- "reduction": 25.9
784
+ "reduction": 27.12
785
785
  },
786
786
  {
787
787
  "id": "/src/unstable-core-do-not-import/http/contentTypeParsers.ts",
@@ -881,6 +881,16 @@
881
881
  "percent": 0,
882
882
  "reduction": 100
883
883
  },
884
+ {
885
+ "id": "/src/rpc.ts",
886
+ "size": 0,
887
+ "origSize": 36,
888
+ "renderedExports": [],
889
+ "removedExports": [],
890
+ "dependents": [],
891
+ "percent": 0,
892
+ "reduction": 100
893
+ },
884
894
  {
885
895
  "id": "/src/unstable-core-do-not-import.ts",
886
896
  "size": 0,
@@ -899,16 +909,6 @@
899
909
  "percent": 0,
900
910
  "reduction": 100
901
911
  },
902
- {
903
- "id": "/src/rpc.ts",
904
- "size": 0,
905
- "origSize": 36,
906
- "renderedExports": [],
907
- "removedExports": [],
908
- "dependents": [],
909
- "percent": 0,
910
- "reduction": 100
911
- },
912
912
  {
913
913
  "id": "/src/shared.ts",
914
914
  "size": 0,
@@ -951,6 +951,16 @@
951
951
  "percent": 0,
952
952
  "reduction": 100
953
953
  },
954
+ {
955
+ "id": "/src/adapters/fetch/index.ts",
956
+ "size": 0,
957
+ "origSize": 64,
958
+ "renderedExports": [],
959
+ "removedExports": [],
960
+ "dependents": [],
961
+ "percent": 0,
962
+ "reduction": 100
963
+ },
954
964
  {
955
965
  "id": "/src/adapters/node-http/index.ts",
956
966
  "size": 0,
@@ -966,16 +976,6 @@
966
976
  ],
967
977
  "percent": 0,
968
978
  "reduction": 100
969
- },
970
- {
971
- "id": "/src/adapters/fetch/index.ts",
972
- "size": 0,
973
- "origSize": 64,
974
- "renderedExports": [],
975
- "removedExports": [],
976
- "dependents": [],
977
- "percent": 0,
978
- "reduction": 100
979
979
  }
980
980
  ],
981
981
  "moduleCount": 63
@@ -1,4 +1,4 @@
1
- export declare function createDeferred<TValue>(): {
1
+ export declare function createDeferred<TValue = void>(): {
2
2
  promise: Promise<TValue>;
3
3
  resolve: (value: TValue) => void;
4
4
  reject: (error: unknown) => void;
@@ -1 +1 @@
1
- {"version":3,"file":"createDeferred.d.ts","sourceRoot":"","sources":["../../../../src/unstable-core-do-not-import/stream/utils/createDeferred.ts"],"names":[],"mappings":"AACA,wBAAgB,cAAc,CAAC,MAAM;;qBACd,MAAM,KAAK,IAAI;oBAChB,OAAO,KAAK,IAAI;EAOrC;AACD,MAAM,MAAM,QAAQ,CAAC,MAAM,IAAI,UAAU,CAAC,OAAO,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"createDeferred.d.ts","sourceRoot":"","sources":["../../../../src/unstable-core-do-not-import/stream/utils/createDeferred.ts"],"names":[],"mappings":"AACA,wBAAgB,cAAc,CAAC,MAAM,GAAG,IAAI;;qBACrB,MAAM,KAAK,IAAI;oBAChB,OAAO,KAAK,IAAI;EAOrC;AACD,MAAM,MAAM,QAAQ,CAAC,MAAM,IAAI,UAAU,CAAC,OAAO,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trpc/server",
3
- "version": "11.0.0-rc.754+9e15916e9",
3
+ "version": "11.0.0-rc.755+358ea8ec7",
4
4
  "description": "The tRPC server library",
5
5
  "author": "KATT",
6
6
  "license": "MIT",
@@ -152,5 +152,5 @@
152
152
  "peerDependencies": {
153
153
  "typescript": ">=5.7.2"
154
154
  },
155
- "gitHead": "9e15916e9fc26a08c9936c4c706e996321d42958"
155
+ "gitHead": "358ea8ec7a3c2408ca1271836cacfaa7a9027797"
156
156
  }
@@ -1,5 +1,5 @@
1
1
  /* eslint-disable @typescript-eslint/no-non-null-assertion */
2
- export function createDeferred<TValue>() {
2
+ export function createDeferred<TValue = void>() {
3
3
  let resolve: (value: TValue) => void;
4
4
  let reject: (error: unknown) => void;
5
5
  const promise = new Promise<TValue>((res, rej) => {
@@ -73,7 +73,7 @@ interface MergedAsyncIterables<TYield>
73
73
  */
74
74
  export function mergeAsyncIterables<TYield>(): MergedAsyncIterables<TYield> {
75
75
  let state: 'idle' | 'pending' | 'done' = 'idle';
76
- let flushSignal = createDeferred<void>();
76
+ let flushSignal = createDeferred();
77
77
 
78
78
  /**
79
79
  * used while {@link state} is `idle`