Releases: webrpc/webrpc
v0.18.0
Changelog
- Adds sprig v3 (and few more) functions to Go template functions API, see https://github.com/Masterminds/sprig/tree/v3.2.3
Docker
docker pull ghcr.io/webrpc/webrpc-gen:v0.18.0
Example: docker run -v $PWD:$PWD ghcr.io/webrpc/webrpc-gen:v0.18.0 -schema=$PWD/api.ridl -target=golang
Homebrew
brew tap webrpc/tap
brew install webrpc-gen
Build from source
go install -ldflags="-s -w -X github.com/webrpc/webrpc.VERSION=v0.18.0" github.com/webrpc/webrpc/cmd/webrpc-gen@v0.18.0
Download binaries
macOS: amd64, arm64 (Apple Silicon)
Linux: amd64, arm64
Windows: amd64, arm64
v0.17.2
Changelog
Docker
docker pull ghcr.io/webrpc/webrpc-gen:v0.17.2
Example: docker run -v $PWD:$PWD ghcr.io/webrpc/webrpc-gen:v0.17.2 -schema=$PWD/api.ridl -target=golang
Homebrew
brew tap webrpc/tap
brew install webrpc-gen
Build from source
go install -ldflags="-s -w -X github.com/webrpc/webrpc.VERSION=v0.17.2" github.com/webrpc/webrpc/cmd/webrpc-gen@v0.17.2
Download binaries
macOS: amd64, arm64 (Apple Silicon)
Linux: amd64, arm64
Windows: amd64, arm64
v0.17.1
Changelog
- Add example of the new webrpc Streaming feature
- Updates all dependencies
- Drops support of Go 1.16, 1.17, 1.18 in favor of updating
golang.org/x/*
packages - The latest supported Go is 1.19 from now on
Docker
docker pull ghcr.io/webrpc/webrpc-gen:v0.17.1
Example: docker run -v $PWD:$PWD ghcr.io/webrpc/webrpc-gen:v0.17.1 -schema=$PWD/api.ridl -target=golang
Homebrew
brew tap webrpc/tap
brew install webrpc-gen
Build from source
go install -ldflags="-s -w -X github.com/webrpc/webrpc.VERSION=v0.17.1" github.com/webrpc/webrpc/cmd/webrpc-gen@v0.17.1
Download binaries
macOS: amd64, arm64 (Apple Silicon)
Linux: amd64, arm64
Windows: amd64, arm64
v0.17.0
Changelog
- Adds support for Webrpc streaming
- See example at https://github.com/webrpc/webrpc/tree/master/_examples/golang-sse
Docker
docker pull ghcr.io/webrpc/webrpc-gen:v0.17.0
Example: docker run -v $PWD:$PWD ghcr.io/webrpc/webrpc-gen:v0.17.0 -schema=$PWD/api.ridl -target=golang
Homebrew
brew tap webrpc/tap
brew install webrpc-gen
Build from source
go install -ldflags="-s -w -X github.com/webrpc/webrpc.VERSION=v0.17.0" github.com/webrpc/webrpc/cmd/webrpc-gen@v0.17.0
Download binaries
macOS: amd64, arm64 (Apple Silicon)
Linux: amd64, arm64
Windows: amd64, arm64
v0.16.2
What's Changed
- keep empty lines while parsing comments by @LukasJenicek in #272
Full Changelog: v0.16.1...v0.16.2
v0.16.1
What's Changed
- fix parsing comments with http scheme and fqdn by @LukasJenicek in #270
- use different url in tests by @LukasJenicek in #271
Full Changelog: v0.16.0...v0.16.1
v0.16.0
Changelog
-
webrpc-gen
now embeds default templates officially supported by Webrpc project:golang
typescript
javascript
openapi
kotlin
-
This means if you run
webrpc-gen -target=golang
, the template won't be pulled from remote git repo, since it's embedded in the binary. -
We want to guarantee stability/reproducibility of
-target=golang
tag. -
The version of these templates is managed via Go modules (go.mod file).
-
Internal comments
- if a comment is written as
#! etc etc
the bang after the#
will denote the line / entry as an internal comment and will not be included in the comments list, it will just be skipped
- if a comment is written as
Docker
docker pull ghcr.io/webrpc/webrpc-gen:v0.16.0
Example: docker run -v $PWD:$PWD ghcr.io/webrpc/webrpc-gen:v0.16.0 -schema=$PWD/api.ridl -target=golang
Homebrew
brew tap webrpc/tap
brew install webrpc-gen
Build from source
go install -ldflags="-s -w -X github.com/webrpc/webrpc.VERSION=v0.16.0" github.com/webrpc/webrpc/cmd/webrpc-gen@v0.16.0
Download binaries
macOS: amd64, arm64 (Apple Silicon)
Linux: amd64, arm64
Windows: amd64, arm64
v0.15.5
Changelog
Infers webrpc version if imported from another Go module (or git history).
Useful if you import webrpc into your Go project and invoke it via
go run github.com/webrpc/webrpc/cmd/webrpc-gen
Docker
docker pull ghcr.io/webrpc/webrpc-gen:v0.15.5
Example: docker run -v $PWD:$PWD ghcr.io/webrpc/webrpc-gen:v0.15.5 -schema=$PWD/api.ridl -target=golang
Homebrew
brew tap webrpc/tap
brew install webrpc-gen
Build from source
go install -ldflags="-s -w -X github.com/webrpc/webrpc.VERSION=v0.15.5" github.com/webrpc/webrpc/cmd/webrpc-gen@v0.15.5
Download binaries
macOS: amd64, arm64 (Apple Silicon)
Linux: amd64, arm64
Windows: amd64, arm64
v0.15.2
What's Changed
- parse multiline comments 2 lines and more by @LukasJenicek in #258
- bump webrpc version by @LukasJenicek in #259
Full Changelog: v0.15.1...v0.15.2
v0.15.1
Changelog
- 6028e0d: Add replaceAll function to template functions (#257) (@LukasJenicek)
Docker
docker pull ghcr.io/webrpc/webrpc-gen:v0.15.1
Example: docker run -v $PWD:$PWD ghcr.io/webrpc/webrpc-gen:v0.15.1 -schema=$PWD/api.ridl -target=golang
Homebrew
brew tap webrpc/tap
brew install webrpc-gen
Build from source
go install -ldflags="-s -w -X github.com/webrpc/webrpc.VERSION=v0.15.1" github.com/webrpc/webrpc/cmd/webrpc-gen@v0.15.1
Download binaries
macOS: amd64, arm64 (Apple Silicon)
Linux: amd64, arm64
Windows: amd64, arm64