Releases: restatedev/sdk-typescript
Releases · restatedev/sdk-typescript
1.4.0
Important for existing users: Upgrading to 1.4.0
requires re-discovery of the service, due to the updated service protocol. For more details, check out https://docs.restate.dev/operate/registration and https://docs.restate.dev/operate/upgrading#service-compatibility
New features
ctx.run
retry policy is now supported:
await ctx.run("make a payment", async () => {
// Do payment
}, {
// Bound the run to be retried for a max number of attempts
maxRetryAttempts: 10
});
- Add options in ingress client to accept
timeout
orsignal
(#451)
Notable changes
- Minimum Restate version is
>= 1.1
- Breaking: Cloudflare workers now MUST use the module
restate-sdk-cloudflare-workers
, rather thanrestate-sdk
. The module is identical torestate-sdk
, except some patches required to use the SDK on cloudflare workers.
Full changelog
- Add options in ingress client to accept
timeout
orsignal
(#451) (3e7e7f5) - Add 1.4 in compatibility matrix (#450) (d59dba7)
- Add run retry feature (#448) (ebcf898)
- Remove e2e repo tests (#449) (677d892)
- Require triple equals via eslint (#447) (5451ca5)
- Avoid null coercion to undefined (#446) (0cac0a2)
- Build test services Docker image (#444) (fd92190)
- [e2e] Add verification runner (#443) (2492321)
- Add nightly verification test GHA workflow (#442) (adb64d9)
- Add the implementation of the e2e interpreter/helper services (#441) (1c88738)
- Improve errors, propagating the error code (#440) (9d9254a)
- Bump to test suite 2.1 (#439) (61e60c1)
- Use request identity verification from shared core (#438) (e4fe954)
- Fix cloudflare workers (#437) (1b13f15)
- New core (#435) (df7f511)
- Normalise incoming paths before checking them against signature (#434) (9c73979)
- Added release note for SDK typescript and latest runtime release. (#433) (479936f)
- Improve type inference for workflows defied from an interface (#432) (e7d271c)
- Update compatibility matrix (e931fd8)
v1.3.3
- Avoid null coercion to undefined in serde implementation #446
Full Changelog: v1.3.2...v1.3.3
1.3.2
1.3.1
1.3.0
New features
- It is now possible to plug custom ser/de in many places, by implementing the
Serde
interface. TheSerde
interface is accepted in all the APIs where the SDK needs to perform serialization/deserializaiton, including the handlers input/output, the clients, state access methods,run
,awakeables
andpromises
. For more details on the usage, see https://docs.restate.dev/develop/ts/serialization/
Full Changelog: v1.2.1...v1.3.0
1.2.1
Full Changelog: v1.2.0...v1.2.1
1.2.0
What's Changed
- Make it possible to get extra args provided to functional handlers by @jackkleeman in #409
- Fix replaying detection in logger.ts by @jackkleeman in #411
- Move the e2e tests to a separate package by @igalshilman in #413
- Add KillTest e2e by @igalshilman in #414
Full Changelog: v1.1.2...v1.2.0
1.1.2
1.1.1
Release 1.1.0
New features:
- [client] Add 'raw' opt/sendOpt to skip JSON serde (#404) (3a866f9)
- Custom logger support (#400) (abdd44d)
- It is now possible to provide some type information when accessing Object/Workflow state (#401) (59b2047)
Other changes:
- ctx.invoke/invokeOneWay now accept a serialization and deserialization function. (#402) (dc5d77a)
- Remove remaining usages of lambdaHandler() by @jackkleeman in #392
- Avoid double warn re request signatures by @jackkleeman in #393
- Expose HttpCallError in restate-sdk-clients by @mupperton in #395
- Unify everything under GenericHandler using web-streams by @jackkleeman in #394
- Unify bidi and request response code paths by @jackkleeman in #397
- Use tsx in examples repo by @jackkleeman in #398
Thanks to everyone providing feedback and contributing to the project! We're very grateful for that and we look forward to more!
Full Changelog: v1.0.1...v1.1.0