Skip to content

Releases: smithy-lang/smithy-typescript

@smithy/snapshot-testing@2.4.0

Choose a tag to compare

@github-actions github-actions released this 26 Oct 14:51
cb3a25c

Minor Changes

  • a90c7be: Add Smithy RPC v2 JSON protocol support: client protocol and JSON codec in @smithy/core, server protocol in @smithy/server-common, and the snapshot response serializer in @smithy/snapshot-testing.

Patch Changes

  • Updated dependencies [ac9ae43]
  • Updated dependencies [a90c7be]
  • Updated dependencies [a90c7be]
  • Updated dependencies [a90c7be]
    • @smithy/node-http-handler@4.13.0
    • @smithy/core@3.37.0

@smithy/server-node@0.3.5

Choose a tag to compare

@github-actions github-actions released this 26 Oct 14:51
cb3a25c

Patch Changes

  • Updated dependencies [a90c7be]
  • Updated dependencies [a90c7be]
  • Updated dependencies [a90c7be]
  • Updated dependencies [a90c7be]
  • Updated dependencies [a90c7be]
  • Updated dependencies [a90c7be]
  • Updated dependencies [a90c7be]
  • Updated dependencies [a90c7be]
  • Updated dependencies [a90c7be]
  • Updated dependencies [a90c7be]
    • @smithy/core@3.37.0
    • @smithy/server-common@0.6.0

@smithy/server-common@0.6.0

Choose a tag to compare

@github-actions github-actions released this 26 Oct 14:50
cb3a25c

Minor Changes

  • a90c7be: Add Smithy RPC v2 JSON protocol support: client protocol and JSON codec in @smithy/core, server protocol in @smithy/server-common, and the snapshot response serializer in @smithy/snapshot-testing.
  • a90c7be: Add SmithyRpcV2JsonServerProtocol, the server (SSDK) implementation of the Smithy RPC v2 JSON protocol.

Patch Changes

  • a90c7be: Tighten SmithyRpcV2JsonServerProtocol request claiming to require the POST method and an RPC v2 route-shaped path, per the Smithy RPC v2 specification, so a GET or an unrelated path is no longer claimed.
  • a90c7be: Resolve the concrete modeled error schema in SmithyRpcV2JsonServerProtocol.serializeError. The lookup now matches the thrown error's own class first (walking up the prototype chain only if it is not registered) instead of any registered ancestor, so a registered base service exception can no longer be selected for a subclass. The __type, serialized members, and @HttpError status all come from the concrete schema.
  • a90c7be: Serialize RPC v2 JSON operation errors through the modeled error schema. This emits the error's absolute Shape ID as __type (fixing the wrong namespace for errors modeled outside the service's default namespace) and encodes members according to their modeled types (fixing lost type information for members such as bigInteger/bigDecimal). Unmodeled errors keep the previous document-based fallback.
  • a90c7be: Honor the modeled @HttpError trait when resolving the status code for RPC v2 JSON error responses. serializeError now delegates to the shared resolveErrorStatusCode helper (explicit runtime status, then @HttpError, then the fault default) instead of only checking runtime status and falling back to 400/500, so a modeled @HttpError value is applied even when the runtime error carries no status.
  • a90c7be: Match the full RPC v2 JSON route in SmithyRpcV2JsonServerProtocol. The protocol now accepts an optional serviceName and verifies the request path's {serviceName} segment against it, and the route regex is anchored so paths for a different service or with trailing segments after the operation no longer match. Generated schema servers pass the modeled service name; when serviceName is omitted the service-name check is skipped (backward compatible).
  • a90c7be: Return an empty body and no Content-Type for RPC v2 JSON operations whose output targets the Unit shape, per the specification, instead of an empty JSON object with a Content-Type.
  • Updated dependencies [a90c7be]
  • Updated dependencies [a90c7be]
  • Updated dependencies [a90c7be]
    • @smithy/core@3.37.0

@smithy/server-apigateway@0.3.5

Choose a tag to compare

@github-actions github-actions released this 26 Oct 14:51
cb3a25c

Patch Changes

  • Updated dependencies [a90c7be]
  • Updated dependencies [a90c7be]
  • Updated dependencies [a90c7be]
  • Updated dependencies [a90c7be]
  • Updated dependencies [a90c7be]
  • Updated dependencies [a90c7be]
  • Updated dependencies [a90c7be]
  • Updated dependencies [a90c7be]
  • Updated dependencies [a90c7be]
  • Updated dependencies [a90c7be]
    • @smithy/core@3.37.0
    • @smithy/server-common@0.6.0

@smithy/node-http-handler@4.13.0

Choose a tag to compare

@github-actions github-actions released this 26 Oct 14:50
cb3a25c

Minor Changes

  • ac9ae43: Let NodeHttpHandler and NodeHttp2Handler apply a service default idle timeout on their own timers, leaving socketTimeout and requestTimeout unchanged.

Patch Changes

  • Updated dependencies [a90c7be]
  • Updated dependencies [a90c7be]
  • Updated dependencies [a90c7be]
    • @smithy/core@3.37.0

@smithy/core@3.37.0

Choose a tag to compare

@github-actions github-actions released this 26 Oct 14:50
cb3a25c

Minor Changes

  • a90c7be: Add AbstractRpcV2Protocol, a shared abstract base for the Smithy RPC v2 JSON and CBOR client protocols, deduplicating their request framing and response status handling.
  • a90c7be: Add Smithy RPC v2 JSON protocol support: client protocol and JSON codec in @smithy/core, server protocol in @smithy/server-common, and the snapshot response serializer in @smithy/snapshot-testing.

Patch Changes

  • a90c7be: Treat any non-200 response as an error in the Smithy RPC v2 JSON and CBOR client protocols, per the specification. RpcProtocol gains a protected isErrorResponse predicate (default unchanged: status >= 300) that both RPC v2 protocols override to status !== 200.

@smithy/core@3.36.2

Choose a tag to compare

@github-actions github-actions released this 21 Oct 16:59
d672517

Patch Changes

  • 76726da: Add event stream header size validations
  • 50f64b9: cache schema-based detection of event streams

@smithy/core@3.36.1

Choose a tag to compare

@github-actions github-actions released this 20 Oct 21:48
f9d8d22

Patch Changes

  • dbdacac: Keep the JSON string serializer's buffer reservation intact after 6-byte escape sequences so that the characters and closing quote that follow are always written within the buffer.

@smithy/server-node@0.3.4

Choose a tag to compare

@github-actions github-actions released this 13 Oct 14:56
685cb20

Patch Changes

  • af7d026: Add framework-owned ServerRequest adapters for Node.js and API Gateway.
  • Updated dependencies [ad1c37c]
  • Updated dependencies [1287f77]
  • Updated dependencies [22b8a6e]
  • Updated dependencies [ad1c37c]
    • @smithy/server-common@0.5.0
    • @smithy/core@3.36.0

@smithy/server-common@0.5.0

Choose a tag to compare

@github-actions github-actions released this 13 Oct 14:56
685cb20

Minor Changes

  • 1287f77: Add framework-owned request state and constructor configuration for schema service handlers while preserving legacy server runtime contracts.
  • ad1c37c: Add protocol-owned request claiming and operation routing for schema servers.

Patch Changes

  • ad1c37c: Resolve schema-server response status codes from modeled httpError traits.
  • Updated dependencies [22b8a6e]
    • @smithy/core@3.36.0