Back to Explore

smithy-lang/smithy-typescript

GitHub
64 updates · last 90 daysOpen source

Last release:

Smithy TypeScript provides reference implementations of Smithy code generators for producing TypeScript client and server SDK scaffolding from Smithy models. It includes a `typescript-client-codegen` plugin framework for generating extensible TypeScript clients for multiple JavaScript platforms (Node.js, Browser, React Native) and a `typescript-server-codegen` plugin framework for type-safe server scaffolding (developer preview).

Project status

  • Actively maintained, with an upstream push on 2026-11-05 and multiple package updates between 2026-10-26 and 2026-10-30.
  • Recent updates are frequent across the package set, mostly patches and incremental protocol, handler, signing, and logging improvements.

AI summary generated

AI-generated from public sources. May be inaccurate. Report

Recent updates

  • @smithy/fetch-http-handler@5.8.1

    Version 5.8.1 fixes retention of completed fetch responses by clearing the request timeout timer when the request settles. The change also adds tests covering both successful responses and failed requests.

  • @smithy/node-http-handler@4.14.2

    This patch keeps configured and service-default socket idle timeouts active while response bodies are being read, so stalled bodies now fail with `TimeoutError` instead of hanging. This changes timeout behavior for slow or paused body consumers, and updates `@smithy/core` and `@smithy/types`.

    Breaking
  • @smithy/core@3.39.0

    The documented @smithy/core 3.39.0 change makes retry-token acquisition, retry backoff, and custom retry-token delays respond immediately to aborts, and updates @smithy/types to 4.20.0. The diff also contains an unmentioned @smithy/node-http-handler 4.14.2 socket-timeout behavior change, a node-forge lockfile update, and additional integration-test and testbed changes.

    BreakingFeatures
  • @smithy/types@4.20.0

    This release improves cancellation behavior during retries. Aborted operations now return an `AbortError` immediately while acquiring retry tokens, waiting during backoff, or using custom retry-token delays.

  • @smithy/node-http-handler@4.14.1

    This patch fixes HTTP agent initialization for concurrent first requests, ensuring that calling `destroy()` closes every socket. It also updates `@smithy/core` to version 3.38.1.

  • @smithy/core@3.38.1

    @smithy/core@3.38.1 extends schema-based log filtering to redact sensitive fields nested inside list items and map values. The accompanying diff also includes a separate @smithy/node-http-handler patch that ensures concurrent initial requests share one HTTP Agent.

  • @smithy/undici-http-handler@3.2.5

    This patch release updates the Undici HTTP client and the Smithy core dependency. No other changes are described in the release notes.

  • @smithy/signature-v4@5.7.5

    This patch exports the shared `writeKey` helper and fixes canonical request signing to include headers whose names match Object prototype properties. It also updates `@smithy/core` to version 3.38.0.

    Features
  • @smithy/node-http-handler@4.14.0

    This release lets clients provide a service-level default idle timeout to the Node HTTP request handler. The timeout is used only when the handler has no idle timeout configured; the release also updates @smithy/core to 3.38.0.

    Features
  • @smithy/core@3.38.0

    @smithy/core 3.38.0 adds a service-provided idle-timeout fallback for request handlers and exports the shared `writeKey` helper. Canonical request signing now includes own headers whose names match Object prototype properties; the supplied changes show no undocumented breaking API changes.

    Features
  • @smithy/snapshot-testing@2.4.0

    This release adds Smithy RPC v2 JSON protocol support, including a snapshot response serializer for @smithy/snapshot-testing. It also updates @smithy/core and @smithy/node-http-handler.

    Features
  • @smithy/server-node@0.3.5

    This patch release updates dependencies for @smithy/server-node. The release notes do not describe any other changes or required migration steps.

  • @smithy/server-apigateway@0.3.5

    This patch release updates the package's dependencies. It includes @smithy/core@3.37.0 and @smithy/server-common@0.6.0; no other changes are described.

  • @smithy/server-common@0.6.0

    This release adds server-side Smithy RPC v2 JSON protocol support and improves conformance with the protocol specification. It also changes request matching and Unit responses, and corrects modeled error serialization and status-code handling.

    BreakingFeatures
  • @smithy/node-http-handler@4.13.0

    NodeHttpHandler and NodeHttp2Handler can now apply a service-defined default idle timeout using their own timers. This leaves the existing socketTimeout and requestTimeout settings unchanged.

    Features
  • @smithy/core@3.37.0

    @smithy/core 3.37.0 adds Smithy RPC v2 JSON support across the client, server, and snapshot-testing packages, and introduces a shared abstract base for RPC v2 protocols. It also changes RPC v2 JSON and CBOR clients to treat every HTTP status other than 200 as an error.

    BreakingFeatures
  • @smithy/core@3.36.2

    This patch primarily hardens Smithy event stream handling by adding validation for event stream header name and value sizes during encoding. It also changes how the runtime determines whether an operation is an event stream by caching schema-based detection and forwarding the resulting isEventStream flag into the node-http2-handler session selection.

  • @smithy/core@3.36.1

    This is a patch release of @smithy/core that fixes a JSON string serialization buffer-reservation bug. The main code change adjusts buffer preallocation logic in JsonShapeSerializer2 to ensure characters following 6-byte escape sequences plus the closing quote are always written within the reserved buffer.

  • @smithy/server-node@0.3.4

    This patch release adds framework-owned ServerRequest adapters for Node.js and API Gateway, improving how server requests are handled in supported environments. It also updates several smithy-related dependencies, including @smithy/server-common to 0.5.0 and @smithy/core to 3.36.0.

    Features
  • @smithy/server-apigateway@0.3.4

    This patch release adds framework-owned ServerRequest adapters for Node.js and API Gateway, improving how ServerRequest objects are adapted for API Gateway environments. It also updates key @smithy dependencies, including @smithy/server-common and @smithy/core.

    Features