Releases: restatedev/sdk-typescript
Release v1.10.2
What's Changed
- Update sdk-shared-core to 0.7.0 by @slinkydeveloper in #636
- Fix StandardSchemaSerde constructor by @slinkydeveloper in #637
Full Changelog: v1.10.1...v1.10.2
Release v1.10.1
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
- Test SDK against different templates (runtimes/bundler/...) by @nikrooz in #602
- Only publish packages inside
./packagesby @nikrooz in #603 - Better error message for
AbortErrorby @slinkydeveloper in #604 - Add
DO_NOT_TRACKto restate CI jobs by @nikrooz in #606 - Introduce the defaultSerde option by @slinkydeveloper in #605
- Little fix by @slinkydeveloper in #608
- Test suite 3.2 upgrade by @slinkydeveloper in #609
- Skip building docker image when service image is provided by @slinkydeveloper in #610
- Use unrepresentable with zod toJSONSchema by @slinkydeveloper in #613
- Run CI on release branches by @slinkydeveloper in #614
- Update Eslint and Typescript with stricter type checking by @nikrooz in #612
- Add better error description for negative duration by @slinkydeveloper in #617
- Switch to using
tsdownby @nikrooz in #618 - Update
crazy-max/ghaction-setup-dockerto v4 by @muhamadazmy in #621 - Reorg monorepo by @nikrooz in #619
- Add Standard Schema support with
restate.serde.schemaby @slinkydeveloper in #631 - Improve validation error message by @slinkydeveloper in #632
- Re-export standard schema instead of importing the package by @slinkydeveloper in #633
Full Changelog: v1.9.1...v1.10.1
Release 1.9.1
- 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
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
- Update shared core (#599) (d0b5bc9)
- Update versions (77d9c53)
- Zod v4 support (#598) (bed4b23)
- Deprecate endpoint() API (7bf6c68)
- Clarification on max attempts meaning (#596) (84b6b85)
- Test suite 3.1 (#595) (258feec)
- Service Protocol V6 + random seed (#593) (6a62407)
- [CI] support env vars and test artifact output parameters in integration.yaml (14cf983)
- Add retry policy configuration for service/handlers (#592) (a4c4d74)
- Revert "Flush early context run (#591)" (198f2d0)
- Flush early context run (#591) (51f2578)
- Bump CI to Node 20 (#589) (8122a0b)
- Fix localCompare usage in LambdaHandler (#588) (6e8c5ca)
- Lambda Compression (#586) (62ef7ab)
Release 1.8.4
Release 1.8.3
Release 1.8.2
Release 1.8.1
Release 1.8.0
- Replace chained
endpointAPI with unifiedcreateEndpointHandler(#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)