Releases: foomo/gotsrpc
Releases · foomo/gotsrpc
v2.15.0-rc.2
What's Changed
- feat: 2.14.1 by @franklinkim in #96
- chore(deps): bump docker/setup-qemu-action from 3 to 4 by @dependabot[bot] in #95
- sec(deps): bump github.com/buger/jsonparser from 1.1.1 to 1.1.2 in the security group across 1 directory by @dependabot[bot] in #97
Full Changelog: v2.15.0-rc.1...v2.15.0-rc.2
v2.14.1
What's Changed
- chore(deps): bump docker/setup-buildx-action from 3 to 4 by @dependabot[bot] in #92
- feat: 2.14.1 by @franklinkim in #96
- chore(deps): bump docker/setup-qemu-action from 3 to 4 by @dependabot[bot] in #95
- sec(deps): bump github.com/buger/jsonparser from 1.1.1 to 1.1.2 in the security group across 1 directory by @dependabot[bot] in #97
Full Changelog: v2.14.0...v2.14.1
v2.15.0-rc.1
What's Changed
- chore(deps): bump docker/setup-buildx-action from 3 to 4 by @dependabot[bot] in #92
Full Changelog: v2.14.0...v2.15.0-rc.1
v2.14.0
What's Changed
- chore(deps): bump golangci/golangci-lint-action from 8 to 9 by @dependabot[bot] in #82
- chore(deps): bump actions/checkout from 5 to 6 by @dependabot[bot] in #84
- chore(deps): bump the updates group across 1 directory with 2 updates by @dependabot[bot] in #83
- chore: update repo by @franklinkim in #89
- chore: switch to lefthook by @franklinkim in #91
- fix: time encoding by @franklinkim in #87
Full Changelog: v2.13.0...v2.14.0
v2.14.0-rc.1
What's Changed
- chore(deps): bump golangci/golangci-lint-action from 8 to 9 by @dependabot[bot] in #82
- chore(deps): bump actions/checkout from 5 to 6 by @dependabot[bot] in #84
- chore(deps): bump the updates group across 1 directory with 2 updates by @dependabot[bot] in #83
- chore: update repo by @franklinkim in #89
- chore: switch to lefthook by @franklinkim in #91
Full Changelog: v2.13.0...v2.14.0-rc.1
v2.13.0
What's Changed
- chore(deps): bump actions/setup-node from 5 to 6 by @dependabot[bot] in #77
- fix: resolve variable name conflicts in GoRPC client generation by @quwe66 in #80
Context parameter
type Service interface {
Hello(ctx context.Context, args string) string
}Which will automatically pass the r.Context() through.
client.hello("foomo").then((err) => {
console.log(err);
});Errors can now be passed to the frontend
Add the generic error mapping
mappings:
github.com/foomo/gotsrpc/v2:
out: ./client/src/service-error.ts
structs:
- github.com/foomo/gotsrpc/v2.Errortype Service interface {
TypedError(ctx context.Context, msg string) error
CustomError(ctx context.Context, msg string) error
WrappedError(ctx context.Context, msg string) error
StandardError(ctx context.Context, msg string) error
}// {"m":"something went wrong: ups","p":"errors","t":"*errors.errorString","d":{}}
client.standardError("ups").then((err) => {
console.log(JSON.stringify(err));
});
// {"m":"something","p":"github.com/pkg/errors","t":"*errors.fundamental","d":{}}
client.typedError("ups").then((err) => {
console.log(JSON.stringify(err));
});
// {"m":"ups","p":"github.com/pkg/errors","t":"*errors.withMessage","d":{},"c":{"m":"something","p":"github.com/pkg/errors","t":"*errors.fundamental","d":{}}}
client.wrappedError("ups").then((err) => {
console.log(JSON.stringify(err));
});
// {"m":"ups","p":"github.com/foomo/gotsrpc/v2/example/context/service","t":"*service.MyError","d":{"payload":"ups"},"c":{"m":"something","p":"github.com/pkg/errors","t":"*errors.fundamental","d":{}}}
client.customError("ups").then((err) => {
console.log(JSON.stringify(err));
});New Contributors
Full Changelog: v2.12.0...v2.13.0
v2.12.0
v2.12.0-rc.1
Full Changelog: v2.11.0...v2.12.0-rc.1
v2.11.0
v2.10.0
What's Changed
- chore(deps): bump the gomod-update group with 2 updates by @dependabot in #67
- feat: go 1.24.0 & runtime goroot, gopath by @franklinkim in #65
Full Changelog: v2.9.2...v2.10.0