@trpc/server 11.0.0-rc.642 → 11.0.0-rc.643

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
  'use strict';
2
2
 
3
- var nextNavigation = require('next/navigation.js');
3
+ var nextNavigation = require('next/navigation');
4
4
  var redirect = require('./redirect.js');
5
5
 
6
6
  function _interopNamespaceDefault(e) {
@@ -1,4 +1,4 @@
1
- import * as nextNavigation from 'next/navigation.js';
1
+ import * as nextNavigation from 'next/navigation';
2
2
  import { TRPCRedirectError } from './redirect.mjs';
3
3
 
4
4
  /**
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "bundleSize": 168625,
3
- "bundleOrigSize": 220107,
3
+ "bundleOrigSize": 220104,
4
4
  "bundleReduction": 23.39,
5
5
  "modules": [
6
6
  {
@@ -238,9 +238,9 @@
238
238
  "removedExports": [],
239
239
  "dependents": [
240
240
  "/src/unstable-core-do-not-import.ts",
241
+ "/src/unstable-core-do-not-import/http/resolveResponse.ts",
241
242
  "/src/unstable-core-do-not-import/initTRPC.ts",
242
- "/src/unstable-core-do-not-import/router.ts",
243
- "/src/unstable-core-do-not-import/http/resolveResponse.ts"
243
+ "/src/unstable-core-do-not-import/router.ts"
244
244
  ],
245
245
  "percent": 1.62,
246
246
  "reduction": 45.98
@@ -315,13 +315,13 @@
315
315
  "removedExports": [],
316
316
  "dependents": [
317
317
  "/src/unstable-core-do-not-import.ts",
318
+ "/src/unstable-core-do-not-import/http/getHTTPStatusCode.ts",
319
+ "/src/unstable-core-do-not-import/http/parseConnectionParams.ts",
320
+ "/src/unstable-core-do-not-import/http/resolveResponse.ts",
318
321
  "/src/unstable-core-do-not-import/error/TRPCError.ts",
319
322
  "/src/unstable-core-do-not-import/transformer.ts",
320
323
  "/src/unstable-core-do-not-import/middleware.ts",
321
324
  "/src/unstable-core-do-not-import/router.ts",
322
- "/src/unstable-core-do-not-import/http/getHTTPStatusCode.ts",
323
- "/src/unstable-core-do-not-import/http/parseConnectionParams.ts",
324
- "/src/unstable-core-do-not-import/http/resolveResponse.ts",
325
325
  "/src/unstable-core-do-not-import/rpc/parseTRPCMessage.ts",
326
326
  "/src/unstable-core-do-not-import/http/contentType.ts",
327
327
  "/src/unstable-core-do-not-import/http/isAbortError.ts",
@@ -365,7 +365,7 @@
365
365
  {
366
366
  "id": "/src/adapters/next-app-dir/rethrowNextErrors.ts",
367
367
  "size": 2120,
368
- "origSize": 2244,
368
+ "origSize": 2241,
369
369
  "renderedExports": [
370
370
  "rethrowNextErrors"
371
371
  ],
@@ -374,7 +374,7 @@
374
374
  "/src/adapters/next-app-dir/nextAppDirCaller.ts"
375
375
  ],
376
376
  "percent": 1.26,
377
- "reduction": 5.53
377
+ "reduction": 5.4
378
378
  },
379
379
  {
380
380
  "id": "/src/unstable-core-do-not-import/http/getHTTPStatusCode.ts",
@@ -391,8 +391,8 @@
391
391
  "removedExports": [],
392
392
  "dependents": [
393
393
  "/src/unstable-core-do-not-import.ts",
394
- "/src/unstable-core-do-not-import/error/getErrorShape.ts",
395
- "/src/unstable-core-do-not-import/http/resolveResponse.ts"
394
+ "/src/unstable-core-do-not-import/http/resolveResponse.ts",
395
+ "/src/unstable-core-do-not-import/error/getErrorShape.ts"
396
396
  ],
397
397
  "percent": 1.24,
398
398
  "reduction": 18.54
@@ -409,10 +409,10 @@
409
409
  "removedExports": [],
410
410
  "dependents": [
411
411
  "/src/unstable-core-do-not-import.ts",
412
- "/src/unstable-core-do-not-import/middleware.ts",
413
- "/src/unstable-core-do-not-import/router.ts",
414
412
  "/src/unstable-core-do-not-import/http/parseConnectionParams.ts",
415
413
  "/src/unstable-core-do-not-import/http/resolveResponse.ts",
414
+ "/src/unstable-core-do-not-import/middleware.ts",
415
+ "/src/unstable-core-do-not-import/router.ts",
416
416
  "/src/unstable-core-do-not-import/http/contentType.ts",
417
417
  "/src/unstable-core-do-not-import/procedureBuilder.ts",
418
418
  "/src/unstable-core-do-not-import/stream/sse.ts"
@@ -759,8 +759,8 @@
759
759
  ],
760
760
  "removedExports": [],
761
761
  "dependents": [
762
- "/src/unstable-core-do-not-import/error/TRPCError.ts",
763
762
  "/src/vendor/unpromise/unpromise.ts",
763
+ "/src/unstable-core-do-not-import/error/TRPCError.ts",
764
764
  "/src/unstable-core-do-not-import/stream/jsonl.ts",
765
765
  "/src/adapters/next-app-dir/redirect.ts"
766
766
  ],
@@ -827,6 +827,18 @@
827
827
  "percent": 0.04,
828
828
  "reduction": 93.9
829
829
  },
830
+ {
831
+ "id": "/src/http.ts",
832
+ "size": 0,
833
+ "origSize": 37,
834
+ "renderedExports": [],
835
+ "removedExports": [],
836
+ "dependents": [
837
+ "/src/adapters/ws.ts"
838
+ ],
839
+ "percent": 0,
840
+ "reduction": 100
841
+ },
830
842
  {
831
843
  "id": "/src/index.ts",
832
844
  "size": 0,
@@ -838,21 +850,19 @@
838
850
  "reduction": 100
839
851
  },
840
852
  {
841
- "id": "/src/http.ts",
853
+ "id": "/src/rpc.ts",
842
854
  "size": 0,
843
- "origSize": 37,
855
+ "origSize": 36,
844
856
  "renderedExports": [],
845
857
  "removedExports": [],
846
- "dependents": [
847
- "/src/adapters/ws.ts"
848
- ],
858
+ "dependents": [],
849
859
  "percent": 0,
850
860
  "reduction": 100
851
861
  },
852
862
  {
853
- "id": "/src/rpc.ts",
863
+ "id": "/src/shared.ts",
854
864
  "size": 0,
855
- "origSize": 36,
865
+ "origSize": 653,
856
866
  "renderedExports": [],
857
867
  "removedExports": [],
858
868
  "dependents": [],
@@ -868,8 +878,8 @@
868
878
  "dependents": [
869
879
  "/src/adapters/express.ts",
870
880
  "/src/adapters/next.ts",
871
- "/src/adapters/standalone.ts",
872
881
  "/src/adapters/ws.ts",
882
+ "/src/adapters/standalone.ts",
873
883
  "/src/adapters/node-http/nodeHTTPRequestHandler.ts",
874
884
  "/src/adapters/next-app-dir/nextAppDirCaller.ts",
875
885
  "/src/adapters/node-http/writeResponse.ts"
@@ -877,16 +887,6 @@
877
887
  "percent": 0,
878
888
  "reduction": 100
879
889
  },
880
- {
881
- "id": "/src/shared.ts",
882
- "size": 0,
883
- "origSize": 653,
884
- "renderedExports": [],
885
- "removedExports": [],
886
- "dependents": [],
887
- "percent": 0,
888
- "reduction": 100
889
- },
890
890
  {
891
891
  "id": "/src/adapters/next-app-dir.ts",
892
892
  "size": 0,
@@ -919,6 +919,16 @@
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
+ },
922
932
  {
923
933
  "id": "/src/adapters/node-http/index.ts",
924
934
  "size": 0,
@@ -928,22 +938,12 @@
928
938
  "dependents": [
929
939
  "/src/adapters/express.ts",
930
940
  "/src/adapters/next.ts",
931
- "/src/adapters/standalone.ts",
932
941
  "/src/adapters/ws.ts",
942
+ "/src/adapters/standalone.ts",
933
943
  "/src/adapters/fastify/fastifyRequestHandler.ts"
934
944
  ],
935
945
  "percent": 0,
936
946
  "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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trpc/server",
3
- "version": "11.0.0-rc.642+5c904587e",
3
+ "version": "11.0.0-rc.643+0914e43c5",
4
4
  "description": "The tRPC server library",
5
5
  "author": "KATT",
6
6
  "license": "MIT",
@@ -150,15 +150,8 @@
150
150
  "funding": [
151
151
  "https://trpc.io/sponsor"
152
152
  ],
153
- "optionalDependencies": {
154
- "@types/aws-lambda": "*",
155
- "express": "*",
156
- "fastify": "*",
157
- "next": "*",
158
- "ws": "*"
159
- },
160
153
  "peerDependencies": {
161
154
  "typescript": ">=5.6.2"
162
155
  },
163
- "gitHead": "5c904587e6f3e3eaadb1bbd80d6aa38d20c00800"
156
+ "gitHead": "0914e43c5b230048a960fdc573c1c86d33b3a054"
164
157
  }
@@ -1,4 +1,4 @@
1
- import * as nextNavigation from 'next/navigation.js';
1
+ import * as nextNavigation from 'next/navigation';
2
2
  import type { TRPCError } from '../../@trpc/server';
3
3
  import { TRPCRedirectError } from './redirect';
4
4