Skip to content

Releases: restatedev/sdk-typescript

Release 1.8.3

18 Aug 14:32
Compare
Choose a tag to compare
  • Fix error handling when writing output (#584) (f11bc16)

Release 1.8.2

14 Aug 18:28
Compare
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
Compare
Choose a tag to compare

Release 1.8.0

31 Jul 11:40
Compare
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
Compare
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)

Release 1.7.2

02 Jul 22:51
Compare
Choose a tag to compare
  • Patch for cloudflare workers (b95f741)

Release 1.7.1

02 Jul 19:14
Compare
Choose a tag to compare

Release 1.7.0

02 Jul 19:05
Compare
Choose a tag to compare
  • 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

1.6.1

12 Jun 12:31
Compare
Choose a tag to compare
  • [e2e] Support unlimited concurrent streams (#546) (3374c7d)
  • delete logger from map on error (#548) (13e896f)
  • Typo in discovery when using the service documentation field. (#544) (fbb8197)
  • [E2E-Services]: Add Env MAX_CONCURRENT_STREAMS (#543) (9cc49c9)

v1.6.0

20 May 07:13
Compare
Choose a tag to compare

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

Full Changelog: v1.5.4...v1.6.0