npm / @smithy/types
@smithy/types
What changed in @smithy/types 2 to 4, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.
3 breaking8 new APIs and options6 behavior and defaults6 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli init@smithy/types 420 changes
Breaking changes 2
Operations aborted during retry-token acquisition, backoff, or custom retry-token delays now return AbortError immediately.
Node 16 support was dropped in this major release.
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.
@smithy/types 32 changes
Breaking changes 1
The minimum supported Node.js version is updated to Node.js 16.
Fixes and other changes 1
Type transforms are fixed for method signatures with no arguments.
@smithy/types 21 changes
Behavior and default changes 1
Streaming payload types were improved.