npm / @smithy/types
@smithy/types
What changed in @smithy/types 4, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-18.
8 new APIs and options5 behavior and defaults5 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli init@smithy/types 418 changes
New APIs and options 8
Adds per-request MetricsRecorder support through client.send options.
Allows passing a custom fetch function to fetch-http-handler.
Adds the MetricsRecorder interface for SSDK metrics.
Adds the MetricsRecorderFactory interface for SSDK metrics.
Allows credentials to be snapshotted for event-stream signing.
New checksum algorithms can be added via extension.
Adds a static union schema as a new type.
Types used by the package are now exported for developers to use.
Behavior and default changes 5
Downlevel types are now used with TypeScript versions earlier than 4.5, improving compatibility for those consumers.
The dist-cjs output now uses plain require/exports statements.
Default retries wait less between server errors and slightly longer between throttling errors, consume less retry capacity for throttling, and better parse retry-after headers.
Structure schemas now encode the required member count.
Protocol selection is easier for developers using the package.
Fixes and other changes 5
Updates types for compatibility with isolatedModules=true.
Moved endpoint instructions types from core to types to fix the type of the instruction supplier static method of Command classes.
Excludes SharedArrayBuffer from the recursive type transform.
Adds an eventStream indicator signal so NodeHttp2ConnectionManager does not reuse connections for event streams.
Resolved endpoint headers are applied to the final request.