@declaw/sdk 1.1.11 → 1.1.13

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 CHANGED
@@ -5,6 +5,33 @@ 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.13]
9
+
10
+ ### Changed
11
+
12
+ - `DECLAW_SDK_CONNECTIONS` default lowered from 100 to **64**, matching
13
+ the 1.1.10 baseline. Empirically faster on typical low-to-mid
14
+ concurrency workloads (~10% lower median TTI in our 3-mode bench at
15
+ 100 concurrent) because the smaller pool pays less TCP-setup overhead
16
+ on cold start. `DECLAW_SDK_MAX_CONCURRENT_STREAMS` default remains
17
+ **1000** (introduced in 1.1.12) so the effective in-flight ceiling is
18
+ **64,000 concurrent requests** per Node process — well above any
19
+ realistic burst load. Raise `DECLAW_SDK_CONNECTIONS=100` to lift the
20
+ ceiling to 100,000 if you need it.
21
+
22
+ ## [1.1.12]
23
+
24
+ ### Changed
25
+
26
+ - `DECLAW_SDK_CONNECTIONS` default lowered from 256 to **100**. Combined
27
+ with the existing `DECLAW_SDK_MAX_CONCURRENT_STREAMS=1000` default,
28
+ this gives an effective in-flight ceiling of **100,000 concurrent
29
+ requests** per Node process (vs 256,000 in 1.1.11). The lower default
30
+ reduces idle TCP socket count and keeps the per-connection stream
31
+ count well clear of the server's advertised
32
+ `SETTINGS_MAX_CONCURRENT_STREAMS=4096`. Both knobs remain
33
+ configurable via env vars for callers that need higher or lower caps.
34
+
8
35
  ## [1.1.11]
9
36
 
10
37
  ### 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 : 256;
251
+ const connections = Number.isFinite(connOverride) && connOverride > 0 ? connOverride : 64;
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({