Socket
Book a DemoSign in
Socket

@trpc/client

Package Overview
Dependencies
Maintainers
2
Versions
1342
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@trpc/client - npm Package Compare versions

Comparing version
11.15.2-canary.2
to
11.15.2-canary.3
+2
-2
package.json
{
"name": "@trpc/client",
"type": "module",
"version": "11.15.2-canary.2+bdf2c6532",
"version": "11.15.2-canary.3+c4b1d7458",
"description": "The tRPC client library",

@@ -148,3 +148,3 @@ "author": "KATT",

},
"gitHead": "bdf2c6532e68afdccec30c50bfe44f94669bd865"
"gitHead": "c4b1d7458ec869f6c51469f7fcd84b517d53ffae"
}

@@ -10,3 +10,3 @@ ---

library: trpc
library_version: '11.14.0'
library_version: '11.15.1'
requires:

@@ -13,0 +13,0 @@ - server-setup

@@ -12,3 +12,3 @@ ---

library: trpc
library_version: '11.14.0'
library_version: '11.15.1'
requires:

@@ -277,2 +277,3 @@ - client-setup

maxURLLength: 2083,
// should be the same or lower than the server's maxBatchSize
maxItems: 10,

@@ -282,3 +283,3 @@ });

Both `maxURLLength` and `maxItems` default to `Infinity`, which can cause 413/414 HTTP errors on servers or CDNs with URL length limits.
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`.

@@ -285,0 +286,0 @@ Source: packages/client/src/links/httpBatchLink.ts

@@ -11,3 +11,3 @@ ---

library: trpc
library_version: '11.14.0'
library_version: '11.15.1'
requires:

@@ -14,0 +14,0 @@ - server-setup