Releases: webrpc/gen-golang
Releases · webrpc/gen-golang
v0.17.0
What's Changed
- Remove support for legacy errors by @VojtechVitek in #78
Full Changelog: v0.16.2...v0.17.0
v0.16.2
v0.16.1
What's Changed
- Update examples to latest webrpc, use tools submodule by @VojtechVitek in #76
- WebrpcMethods(), var methods indentation by @david-littlefarmer in #77
New Contributors
- @david-littlefarmer made their first contribution in #77
Full Changelog: v0.16.0...v0.16.1
v0.16.0
What's Changed
- Replace WithCause with WithCausef by @klaidliadon in #73
- Add client and server versions of generators (webrpc, schema and ridl schema) by @LukasJenicek in #72
- Mark deprecated methods and print which method use instead by @LukasJenicek in #74
Full Changelog: v0.15.0...v0.16.0
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