@declaw/sdk 1.1.11 → 1.1.12
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/CHANGELOG.md +13 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,19 @@ All notable changes to the Declaw TypeScript / JavaScript SDK are documented in
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [1.1.12]
|
|
9
|
+
|
|
10
|
+
### Changed
|
|
11
|
+
|
|
12
|
+
- `DECLAW_SDK_CONNECTIONS` default lowered from 256 to **100**. Combined
|
|
13
|
+
with the existing `DECLAW_SDK_MAX_CONCURRENT_STREAMS=1000` default,
|
|
14
|
+
this gives an effective in-flight ceiling of **100,000 concurrent
|
|
15
|
+
requests** per Node process (vs 256,000 in 1.1.11). The lower default
|
|
16
|
+
reduces idle TCP socket count and keeps the per-connection stream
|
|
17
|
+
count well clear of the server's advertised
|
|
18
|
+
`SETTINGS_MAX_CONCURRENT_STREAMS=4096`. Both knobs remain
|
|
19
|
+
configurable via env vars for callers that need higher or lower caps.
|
|
20
|
+
|
|
8
21
|
## [1.1.11]
|
|
9
22
|
|
|
10
23
|
### Added
|
package/dist/index.cjs
CHANGED
|
@@ -248,7 +248,7 @@ function getDispatcher() {
|
|
|
248
248
|
}
|
|
249
249
|
const undici = await import("undici");
|
|
250
250
|
const connOverride = parseInt(process.env.DECLAW_SDK_CONNECTIONS || "", 10);
|
|
251
|
-
const connections = Number.isFinite(connOverride) && connOverride > 0 ? connOverride :
|
|
251
|
+
const connections = Number.isFinite(connOverride) && connOverride > 0 ? connOverride : 100;
|
|
252
252
|
const streamsOverride = parseInt(process.env.DECLAW_SDK_MAX_CONCURRENT_STREAMS || "", 10);
|
|
253
253
|
const maxConcurrentStreams = Number.isFinite(streamsOverride) && streamsOverride > 0 ? streamsOverride : 1e3;
|
|
254
254
|
return new undici.Agent({
|