@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.
|
|
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": "
|
|
148
|
+
"gitHead": "c4b1d7458ec869f6c51469f7fcd84b517d53ffae"
|
|
149
149
|
}
|
package/skills/links/SKILL.md
CHANGED
|
@@ -9,7 +9,7 @@ description: >
|
|
|
9
9
|
maxItems, connectionParams, EventSource ponyfill.
|
|
10
10
|
type: core
|
|
11
11
|
library: trpc
|
|
12
|
-
library_version: '11.
|
|
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
|
|