@trpc/server 11.0.0-alpha-tmp-issues-5851-take-two.495 → 11.0.0-alpha-tmp-issues-5851-take-two.496

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,6 +1,6 @@
1
1
  {
2
2
  "bundleSize": 131370,
3
- "bundleOrigSize": 180751,
3
+ "bundleOrigSize": 180752,
4
4
  "bundleReduction": 27.32,
5
5
  "modules": [
6
6
  {
@@ -193,9 +193,9 @@
193
193
  "removedExports": [],
194
194
  "dependents": [
195
195
  "/src/unstable-core-do-not-import.ts",
196
+ "/src/unstable-core-do-not-import/http/resolveResponse.ts",
196
197
  "/src/unstable-core-do-not-import/initTRPC.ts",
197
- "/src/unstable-core-do-not-import/router.ts",
198
- "/src/unstable-core-do-not-import/http/resolveResponse.ts"
198
+ "/src/unstable-core-do-not-import/router.ts"
199
199
  ],
200
200
  "percent": 2.09,
201
201
  "reduction": 45.94
@@ -319,11 +319,11 @@
319
319
  "removedExports": [],
320
320
  "dependents": [
321
321
  "/src/unstable-core-do-not-import.ts",
322
+ "/src/unstable-core-do-not-import/http/parseConnectionParams.ts",
323
+ "/src/unstable-core-do-not-import/http/resolveResponse.ts",
322
324
  "/src/unstable-core-do-not-import/stream/sse.ts",
323
325
  "/src/unstable-core-do-not-import/middleware.ts",
324
326
  "/src/unstable-core-do-not-import/router.ts",
325
- "/src/unstable-core-do-not-import/http/parseConnectionParams.ts",
326
- "/src/unstable-core-do-not-import/http/resolveResponse.ts",
327
327
  "/src/unstable-core-do-not-import/http/contentType.ts",
328
328
  "/src/unstable-core-do-not-import/procedureBuilder.ts",
329
329
  "/src/unstable-core-do-not-import/stream/jsonl.ts"
@@ -393,8 +393,8 @@
393
393
  "removedExports": [],
394
394
  "dependents": [
395
395
  "/src/unstable-core-do-not-import.ts",
396
- "/src/unstable-core-do-not-import/error/getErrorShape.ts",
397
- "/src/unstable-core-do-not-import/http/resolveResponse.ts"
396
+ "/src/unstable-core-do-not-import/http/resolveResponse.ts",
397
+ "/src/unstable-core-do-not-import/error/getErrorShape.ts"
398
398
  ],
399
399
  "percent": 0.98,
400
400
  "reduction": 18.7
@@ -415,15 +415,15 @@
415
415
  "removedExports": [],
416
416
  "dependents": [
417
417
  "/src/unstable-core-do-not-import.ts",
418
+ "/src/unstable-core-do-not-import/http/getHTTPStatusCode.ts",
419
+ "/src/unstable-core-do-not-import/http/parseConnectionParams.ts",
420
+ "/src/unstable-core-do-not-import/http/resolveResponse.ts",
421
+ "/src/unstable-core-do-not-import/rpc/parseTRPCMessage.ts",
418
422
  "/src/unstable-core-do-not-import/error/TRPCError.ts",
419
423
  "/src/unstable-core-do-not-import/stream/sse.ts",
420
424
  "/src/unstable-core-do-not-import/transformer.ts",
421
425
  "/src/unstable-core-do-not-import/middleware.ts",
422
426
  "/src/unstable-core-do-not-import/router.ts",
423
- "/src/unstable-core-do-not-import/http/getHTTPStatusCode.ts",
424
- "/src/unstable-core-do-not-import/http/parseConnectionParams.ts",
425
- "/src/unstable-core-do-not-import/http/resolveResponse.ts",
426
- "/src/unstable-core-do-not-import/rpc/parseTRPCMessage.ts",
427
427
  "/src/unstable-core-do-not-import/http/contentType.ts",
428
428
  "/src/unstable-core-do-not-import/procedureBuilder.ts",
429
429
  "/src/unstable-core-do-not-import/stream/jsonl.ts"
@@ -598,7 +598,7 @@
598
598
  {
599
599
  "id": "/src/unstable-core-do-not-import/rootConfig.ts",
600
600
  "size": 343,
601
- "origSize": 3234,
601
+ "origSize": 3235,
602
602
  "renderedExports": [
603
603
  "isServerDefault"
604
604
  ],
@@ -608,7 +608,7 @@
608
608
  "/src/unstable-core-do-not-import/initTRPC.ts"
609
609
  ],
610
610
  "percent": 0.26,
611
- "reduction": 89.39
611
+ "reduction": 89.4
612
612
  },
613
613
  {
614
614
  "id": "/src/adapters/express.ts",
@@ -709,16 +709,6 @@
709
709
  "percent": 0.05,
710
710
  "reduction": 93.8
711
711
  },
712
- {
713
- "id": "/src/index.ts",
714
- "size": 0,
715
- "origSize": 32,
716
- "renderedExports": [],
717
- "removedExports": [],
718
- "dependents": [],
719
- "percent": 0,
720
- "reduction": 100
721
- },
722
712
  {
723
713
  "id": "/src/http.ts",
724
714
  "size": 0,
@@ -742,15 +732,12 @@
742
732
  "reduction": 100
743
733
  },
744
734
  {
745
- "id": "/src/unstable-core-do-not-import.ts",
735
+ "id": "/src/index.ts",
746
736
  "size": 0,
747
- "origSize": 2244,
737
+ "origSize": 32,
748
738
  "renderedExports": [],
749
739
  "removedExports": [],
750
- "dependents": [
751
- "/src/adapters/ws.ts",
752
- "/src/adapters/next-app-dir/nextAppDirCaller.ts"
753
- ],
740
+ "dependents": [],
754
741
  "percent": 0,
755
742
  "reduction": 100
756
743
  },
@@ -764,6 +751,19 @@
764
751
  "percent": 0,
765
752
  "reduction": 100
766
753
  },
754
+ {
755
+ "id": "/src/unstable-core-do-not-import.ts",
756
+ "size": 0,
757
+ "origSize": 2244,
758
+ "renderedExports": [],
759
+ "removedExports": [],
760
+ "dependents": [
761
+ "/src/adapters/ws.ts",
762
+ "/src/adapters/next-app-dir/nextAppDirCaller.ts"
763
+ ],
764
+ "percent": 0,
765
+ "reduction": 100
766
+ },
767
767
  {
768
768
  "id": "/src/adapters/next-app-dir.ts",
769
769
  "size": 0,
@@ -797,27 +797,27 @@
797
797
  "reduction": 100
798
798
  },
799
799
  {
800
- "id": "/src/adapters/node-http/index.ts",
800
+ "id": "/src/adapters/fetch/index.ts",
801
801
  "size": 0,
802
- "origSize": 111,
802
+ "origSize": 64,
803
803
  "renderedExports": [],
804
804
  "removedExports": [],
805
- "dependents": [
806
- "/src/adapters/express.ts",
807
- "/src/adapters/standalone.ts",
808
- "/src/adapters/next.ts",
809
- "/src/adapters/fastify/fastifyRequestHandler.ts"
810
- ],
805
+ "dependents": [],
811
806
  "percent": 0,
812
807
  "reduction": 100
813
808
  },
814
809
  {
815
- "id": "/src/adapters/fetch/index.ts",
810
+ "id": "/src/adapters/node-http/index.ts",
816
811
  "size": 0,
817
- "origSize": 64,
812
+ "origSize": 111,
818
813
  "renderedExports": [],
819
814
  "removedExports": [],
820
- "dependents": [],
815
+ "dependents": [
816
+ "/src/adapters/express.ts",
817
+ "/src/adapters/next.ts",
818
+ "/src/adapters/standalone.ts",
819
+ "/src/adapters/fastify/fastifyRequestHandler.ts"
820
+ ],
821
821
  "percent": 0,
822
822
  "reduction": 100
823
823
  }
@@ -68,7 +68,7 @@ export interface RootConfig<TTypes extends RootTypes> {
68
68
  * Enable server-sent events (SSE) subscriptions
69
69
  * @default true
70
70
  */
71
- enabled: boolean;
71
+ enabled?: boolean;
72
72
  } & Omit<SSEStreamProducerOptions, 'maxDepth' | 'data' | 'serialize'>;
73
73
  };
74
74
  }
@@ -1 +1 @@
1
- {"version":3,"file":"rootConfig.d.ts","sourceRoot":"","sources":["../../src/unstable-core-do-not-import/rootConfig.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AAC9E,OAAO,KAAK,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAC3E,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,cAAc,CAAC;AAE7D;;;GAGG;AACH,MAAM,WAAW,SAAS;IACxB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,iBAAiB,CAAC;IAC9B,WAAW,EAAE,OAAO,CAAC;CACtB;AAED;;GAEG;AACH,eAAO,MAAM,eAAe,EAAE,OAMmB,CAAC;AAElD;;;GAGG;AACH,MAAM,WAAW,UAAU,CAAC,MAAM,SAAS,SAAS;IAClD;;;OAGG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,WAAW,EAAE,uBAAuB,CAAC;IACrC;;;OAGG;IACH,cAAc,EAAE,cAAc,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC,YAAY,CAAC,CAAC,CA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AAS,CAAC;AAErE,MAAM,MAAM,YAAY,GAAG,eAAe,CAAC;IACzC,GAAG,EAAE,GAAG,CAAC;IACT,IAAI,EAAE,GAAG,CAAC;IACV,UAAU,EAAE,GAAG,CAAC;IAChB,WAAW,EAAE,GAAG,CAAC;CAClB,CAAC,CAAC;AAEH,KAAK,SAAS,CAAC,UAAU,SAAS,OAAO,EAAE,KAAK,IAAI,UAAU,SAAS,IAAI,GACvE,OAAO,CAAC,KAAK,CAAC,GACd,KAAK,CAAC;AAEV;;;GAGG;AACH,MAAM,MAAM,qBAAqB,CAC/B,QAAQ,EACR,SAAS,SAAS,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,IACvC,SAAS,CACX,MAAM,SAAS,QAAQ,GAAG,IAAI,GAAG,KAAK,EACtC;IACE;;QAEI;IACJ,aAAa,EAAE,SAAS,CAAC;CAC1B,CACF,CAAC"}
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.495+b70195a19",
3
+ "version": "11.0.0-alpha-tmp-issues-5851-take-two.496+f0729daa3",
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": "b70195a198a137a0252a4333f1880c7d3b373f43"
152
+ "gitHead": "f0729daa3e95b1f21cd082e04c21377b550f5625"
153
153
  }
@@ -79,7 +79,7 @@ export interface RootConfig<TTypes extends RootTypes> {
79
79
  * Enable server-sent events (SSE) subscriptions
80
80
  * @default true
81
81
  */
82
- enabled: boolean;
82
+ enabled?: boolean;
83
83
  } & Omit<SSEStreamProducerOptions, 'maxDepth' | 'data' | 'serialize'>;
84
84
  };
85
85
  }