Releases: restatedev/sdk-typescript
Releases · restatedev/sdk-typescript
Release 1.8.3
Release 1.8.2
Release 1.8.1
Release 1.8.0
- Replace chained
endpoint
API 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)
Release 1.7.3
Release 1.7.2
- Patch for cloudflare workers (b95f741)
Release 1.7.1
- Update all the READMEs (1eaba7c)
Release 1.7.0
- You can now configure options of the services/objects/workflows directly in code. Similarly, it's possible to configure specific overrides of the same options on the handlers level. For example:
const greeter = service({
name: "greeter",
options: {
// Requests to greeter will retain the journal for two days
journalRetention: { days: 2 },
},
handlers: {
greet: async (ctx: Context, name: string) => {
return `Hello ${name}`;
},
anotherGreet: handlers.handler(
{
// Requests to this specific handler will retain the journal only for one day
journalRetention: { days: 1 },
},
async (ctx: Context, name: string) => {
return `Hello ${name}`;
}
),
}
});
NOTE: this feature is available only when the SDK is used in combination with Restate 1.4, trying to use it with Restate 1.3 will result in an error at discovery time.
- Introduced a new
Duration
type, used in all the APIs requiring time:
await ctx.sleep({ hours: 5, minutes: 30 });
- Improved the error reporting.
Changelog
- Update matrix (c8ded2a)
- Revert "Release 1.7.0" (caec26d)
- Release 1.7.0 (31e1945)
- Update start string of the SDK (#565) (017d5c8)
- Bump sdk-shared-core to 0.4.0 (#564) (c1fd578)
- Resolve leak on aborted invocation (#561) (8e8b54b)
- Replace setTimeout with setImmediate (#560) (bed96e5)
- Rebuild shared core, now update to use the new journal mismatch errors (#559) (2cd1da5)
- [tests] Remove the "catch" usages (#557) (68850ee)
- Add name to ctx.sleep (#556) (cf963e5)
- More handling of errors. This now improves a bit more the error handling situation (#555) (e50b7c5)
- Overhaul error handling/reporting (#554) (f81e7d9)
- Improve error handling (#552) (022894b)
- Handle case when delay is either 0 or undefined. (#553) (9453c8e)
- Endpoint manifest v3 (#551) (2b0bc2a)
- Duration data type (#550) (1bfce60)
1.6.1
v1.6.0
Renamed CombineablePromise
to RestatePromise
CombineablePromise
was renamed to RestatePromise
, and the CombineablePromise
is now a deprecated type alias, it will be removed in the upcoming releases.
What's Changed
- Support omitting content type for void handlers by @igalshilman in #532
- Fix tests by @nikrooz in #533
- Fix
this
type by @nikrooz in #534 - Small fixes by @mupperton in #538
- Validate sleep duration is non-negative. by @nikrooz in #537
- Add missing exported by @igalshilman in #540
- Add missing exports by @nikrooz in #542
- Add
api-extractor
check to catch missing exports by @nikrooz in #541
Full Changelog: v1.5.4...v1.6.0