Releases: restatedev/sdk-go
v0.13.2
Fix go.mod to allow go install to work
Full Changelog: v0.13.0...v0.13.2
v0.13.1
What's Changed
- Lambda support without httpadapter by @jackkleeman in #47
- fix: usage of
a deprecated Node.js version
in CI by @hamirmahal in #46
New Contributors
- @hamirmahal made their first contribution in #46
Full Changelog: v0.12.0...v0.13.0
v0.12.0
What's Changed
- Parse otel headers automatically + create otel example by @jackkleeman in #39
- Use 1.6 test suite by @slinkydeveloper in #41
- Implement workflows and durable promises by @jackkleeman in #40
- Update test suite by @jackkleeman in #44
Full Changelog: v0.11.0...v0.12.0
v0.11.0
This PR breaks essentially the entire API, as methods have been moved from Context.Run
et all to restate.Run(ctx)
et all, which is much more pleasant.
Serialisation issues will now always panic - this allows us to take error return values out of various api calls that don't need them.
The semantics of .Get() have changed - the zero value is now always returned if the key isn't found. You can check explicitly for this case by providing a pointer type eg *string. Get will now only return errors in the case of cancellation, which will also only happen if eager state is disabled, which is not the default. As such, errors from gets are now very unlikely and you can just return them without another thought.
It is also notable that you can now provide many more method signatures to .Reflect().
What's Changed
- Ensure servicemethod is logged by @jackkleeman in #28
- Use panics for serialisation errors by @jackkleeman in #32
- Add TerminalErrorf by @slinkydeveloper in #30
- Move headers and delays into requestoption/ send option by @jackkleeman in #34
- Always interact with ctx through facilitator functions by @jackkleeman in #35
- Allow more method signatures in .Reflect() by @jackkleeman in #33
- Remove err key not found by @jackkleeman in #36
Full Changelog: v0.10.0...v0.11.0
v0.10.0
There are several breaking changes in this release:
- NewServiceRouter et al -> NewService
- restate.Service and restate.Object -> restate.Reflect
- Sleep now returns an error, which is returned in the case of invocation cancellation
There is also a significant new feature; code generation. For other changes, see below
What's Changed
- Bump google.golang.org/protobuf from 1.32.0 to 1.33.0 by @dependabot in #15
- Bump golang.org/x/net from 0.21.0 to 0.23.0 by @dependabot in #16
- Enable go sdk to use the new restate-sdk-test-tool by @slinkydeveloper in #19
- Prepare integration.yaml for embedding in runtime repo by @slinkydeveloper in #22
- Add the rest of the test services by @jackkleeman in #23
- Avoid 'router' terminology by @jackkleeman in #25
- Support passing headers in calls by @jackkleeman in #17
- Add protoc-gen-go-restate by @jackkleeman in #18
- Add awakeable example by @jackkleeman in #26
- Test various cancellation behaviour by @jackkleeman in #24
- Unify restate.Service and restate.Object into restate.Reflect by @jackkleeman in #27
New Contributors
- @dependabot made their first contribution in #15
- @slinkydeveloper made their first contribution in #19
Full Changelog: v0.9.1...v0.10.0
v0.9.1
What's Changed
- Add doc comments everywhere by @jackkleeman in #13
- Add a mechanism to obtain immutable request parameters by @jackkleeman in #14
Full Changelog: v0.9.0...v0.9.1
v0.9.0
With v0.9.0, this repository is compatible with Restate v1, and is much closer to feature complete with other repos. Correctness has been validated using the Restate verification tests in restatedev/e2e. A 1.0 release will come when we have API stability, which will not come until we have some feedback from users.
What's Changed
- Update for 1.0 and implement basic awakeables by @jackkleeman in #2
- Async completions by @jackkleeman in #3
- Use panics where possible, implement selector by @jackkleeman in #4
- Bring handler registration closer in line to TS by @jackkleeman in #5
- Move logs to slog by @jackkleeman in #6
- Add rand implementation by @jackkleeman in #7
- Add identity implementation by @jackkleeman in #8
- Custom encoders by @jackkleeman in #9
- Move to Go 1.21.x by @jackkleeman in #10
- Implement shared context & various improvements by @jackkleeman in #11
- Verif fixes, simplify void by @jackkleeman in #12
New Contributors
- @jackkleeman made their first contribution in #2
Full Changelog: v0.8.2...v0.9.0