@trpc/client 11.15.2-canary.2 → 11.15.2-canary.3

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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@trpc/client",
3
3
  "type": "module",
4
- "version": "11.15.2-canary.2+bdf2c6532",
4
+ "version": "11.15.2-canary.3+c4b1d7458",
5
5
  "description": "The tRPC client library",
6
6
  "author": "KATT",
7
7
  "license": "MIT",
@@ -145,5 +145,5 @@
145
145
  "bin": {
146
146
  "intent": "./bin/intent.js"
147
147
  },
148
- "gitHead": "bdf2c6532e68afdccec30c50bfe44f94669bd865"
148
+ "gitHead": "c4b1d7458ec869f6c51469f7fcd84b517d53ffae"
149
149
  }
@@ -7,7 +7,7 @@ description: >
7
7
  inferRouterOutputs. AbortController signal support. TRPCClientError typing.
8
8
  type: core
9
9
  library: trpc
10
- library_version: '11.14.0'
10
+ library_version: '11.15.1'
11
11
  requires:
12
12
  - server-setup
13
13
  sources:
@@ -9,7 +9,7 @@ description: >
9
9
  maxItems, connectionParams, EventSource ponyfill.
10
10
  type: core
11
11
  library: trpc
12
- library_version: '11.14.0'
12
+ library_version: '11.15.1'
13
13
  requires:
14
14
  - client-setup
15
15
  sources:
@@ -273,11 +273,12 @@ Correct:
273
273
  httpBatchLink({
274
274
  url: 'http://localhost:3000/trpc',
275
275
  maxURLLength: 2083,
276
+ // should be the same or lower than the server's maxBatchSize
276
277
  maxItems: 10,
277
278
  });
278
279
  ```
279
280
 
280
- Both `maxURLLength` and `maxItems` default to `Infinity`, which can cause 413/414 HTTP errors on servers or CDNs with URL length limits.
281
+ Both `maxURLLength` and `maxItems` default to `Infinity`, which can cause 413/414 HTTP errors on servers or CDNs with URL length limits. When the server sets `maxBatchSize`, set `maxItems` to the same or lower value so the client auto-splits batches instead of triggering a `400 Bad Request`.
281
282
 
282
283
  Source: packages/client/src/links/httpBatchLink.ts
283
284
 
@@ -8,7 +8,7 @@ description: >
8
8
  client constructor.
9
9
  type: composition
10
10
  library: trpc
11
- library_version: '11.14.0'
11
+ library_version: '11.15.1'
12
12
  requires:
13
13
  - server-setup
14
14
  - client-setup