Skip to content

Releases: restatedev/sdk-typescript

Release v1.10.2

15 Jan 12:24

Choose a tag to compare

What's Changed

Full Changelog: v1.10.1...v1.10.2

Release v1.10.1

05 Jan 21:11

Choose a tag to compare

StandardSchema support

Introduced serde.schema API, allowing you to use any StandardSchema compliant library together with the Restate SDK:

import * as restate from "@restatedev/restate-sdk";

import { z } from "zod";

const Greeting = z.object({
  name: z.string(),
});
const GreetingResponse = z.object({
  result: z.string(),
});

const greeter = restate.service({
  name: "Greeter",
  handlers: {
    greet: restate.createServiceHandler(
      { 
          // New serde.schema API
          input: restate.serde.schema(Greeting), 
          output: restate.serde.schema(GreetingResponse)
      },
      handler
    ),
  },
});

Note for zod users: You can use this API with Zod 4.2+ already, removing the need to use the restate-sdk-zod package. If you're using Zod < 4.2, either update zod or keep using the restate-sdk-zod package, we will continue to support it for a while.

What's Changed

Full Changelog: v1.9.1...v1.10.1

Release 1.9.1

27 Oct 10:31

Choose a tag to compare

  • Run CI on release branches (9359989)
  • Use unrepresentable with zod toJSONSchema (#613) (86679aa)
  • Pull the services docker image in advance (e722738)
  • Skip building docker image when service image is provided (#610) (31dac34)
  • Test suite 3.2 upgrade (#609) (55966d7)
  • Better error message for AbortError (#604) (87dd8ee)
  • Typo in release-docs.yml (fb0c752)
  • Add github workflow for releasing tsdocs (163d2b3)

Release 1.9.0

16 Sep 12:40

Choose a tag to compare

Zod v4

Our integration module with zod now supports Zod v4.

If you're a Zod v3 users, we suggest to continue using @restatedev/restate-sdk-zod version 1.8.3, which is fully compatible with the SDK 1.9

Invocation retry policy

When used with Restate 1.5, you can now configure the invocation retry policy from the SDK directly. See https://github.com/restatedev/restate/releases/tag/v1.5.0 for more details on the new invocation retry policy configuration.

AWS Lambda compression

Restate server will now compress requests before sending them to AWS Lambda, when approaching the invocation payload limit. This allows for larger replays without hitting the PAYLOAD_TOO_LARGE error from Lambda.

Requires Restate 1.5 and re-registering the deployment. See https://github.com/restatedev/restate/releases/tag/v1.5.0 for more details.

Changes to ctx.rand

We have updated how the ctx.rand seed is generated. As usual with minor SDK releases, make sure to register a new deployment to register the new service revisions. Refer to the versioning documentation for more details.

Full changelog

Release 1.8.4

27 Aug 08:46

Choose a tag to compare

Release 1.8.3

18 Aug 14:32

Choose a tag to compare

  • Fix error handling when writing output (#584) (f11bc16)

Release 1.8.2

14 Aug 18:28

Choose a tag to compare

  • Make sure we pass through the serde stack and codec when sending requests with empty payload (#583) (e688685)
  • Allow passing journal value codec provider, rather than built codec directly. (#582) (620625b)
  • Introduce JournalValueCodec API (#581) (d756bb0)
  • Export cancelled error (#579) (8b51ed1)

Release 1.8.1

07 Aug 10:24

Choose a tag to compare

Release 1.8.0

31 Jul 11:40

Choose a tag to compare

  • Replace chained endpoint API with unified createEndpointHandler (#574) (31cb885)
  • Introduce DefaultServiceOptions, that are applied to every service bind to the endpoint. (#572) (f29ca9d)
  • Improve a bit the readmes, to make them look nicer. (#571) (2e5b1dc)
  • Typedocs configuration (#570) (0825d05)
  • Introduce RetryableError (#569) (40d129c)

Release 1.7.3

07 Jul 16:51

Choose a tag to compare

  • update .gitignore (46ebfaa)
  • asTerminalError to provide an easy mapping between domain model errors and Restate TerminalError (#562) (a2ee88b)
  • [types] Align VODefinition with Service and Workflow (#568) (4fbdae7)