Releases: webrpc/gen-golang
Releases · webrpc/gen-golang
v0.15.0
What's Changed
- Improve error BadRequest messages by @VojtechVitek in #70
- Render annotations map for request paths and call onRequest hook if defined by @LukasJenicek in #71
This ridl definition:
service ExampleService
- Ping()
# Status endpoint
#
# gives you current status of running application
@internal
- Status() => (status: bool)
- Version() => (version: Version)
Rendered service.gen.go
var (
methods = map[string]method{
"/rpc/ExampleService/Status": {
Name: "Status",
Service: "ExampleService",
Annotations: map[string]string{"internal": ""},
},
"/rpc/ExampleService/Version": {
Name: "Version",
Service: "ExampleService",
Annotations: map[string]string{},
},
}
)
Full Changelog: v0.14.8...v0.15.0
v0.14.8
What's Changed
- render comments in webrpc methods by @LukasJenicek in #67
Full Changelog: v0.14.7...v0.14.8
v0.14.7: Add .WithCausef() shorthand for defining error cause
What's Changed
- Fix .Causef() syntax error (shadowed fmt pkg name) by @VojtechVitek in #66
- Error shorthand WithCausef (e.WithCause + fmt.Errof) by @klaidliadon in #65
Full Changelog: v0.14.5...v0.14.7
Supersedes v0.14.6, which contained a syntax error.
v0.14.6: Add .WithCausef() shorthand for defining error cause
v0.14.5
- Removes unused JSON decoder
v0.14.4
v0.14.2: Expose as Go module
Expose as Go module with //go:embed FS
v0.14.1
Fixes context propagation to HTTP requests.
v0.14.0
What's Changed
- Support enum strings by @LukasJenicek in #53
- Fix potential panic on multiple return values by @VojtechVitek in #55
- Add an extra condition in WebRPCError.Is to check against target nil … by @alinz in #54
- Regenerate examples by @VojtechVitek in #56
- Support webrpc SSE streaming by @VojtechVitek in #52
- Render godocs from parsed comments by @LukasJenicek in #57
New Contributors
Full Changelog: v0.13.7...v0.14.0