Releases: webrpc/webrpc
v0.15.0
What's Changed
- Support enum strings by @LukasJenicek in #247
- regenerate examples with latest gen-golang by @LukasJenicek in #250
- do not create cache directory if there is 0 templates by @LukasJenicek in #249
- get all required fields by @LukasJenicek in #253
- parse comments and store them to webrpc.schema by @LukasJenicek in #252
Full Changelog: v0.14.0...v0.15.0
v0.14.3
Changelog
- 428039b: parse comments and store them to webrpc.schema (#252) (@LukasJenicek)
Docker
docker pull ghcr.io/webrpc/webrpc-gen:v0.14.3
Example: docker run -v $PWD:$PWD ghcr.io/webrpc/webrpc-gen:v0.14.3 -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.14.3" github.com/webrpc/webrpc/cmd/webrpc-gen@v0.14.3
Download binaries
macOS: amd64, arm64 (Apple Silicon)
Linux: amd64, arm64
Windows: amd64, arm64
v0.14.2
Changelog
- 4e2e933: do not create cache directory if there is 0 templates (#249) (@LukasJenicek)
- 8797f91: get all required fields (#253) (@LukasJenicek)
- bce5907: regenerate examples with latest gen-golang (#250) (@LukasJenicek)
Docker
docker pull ghcr.io/webrpc/webrpc-gen:v0.14.2
Example: docker run -v $PWD:$PWD ghcr.io/webrpc/webrpc-gen:v0.14.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.14.2" github.com/webrpc/webrpc/cmd/webrpc-gen@v0.14.2
Download binaries
macOS: amd64, arm64 (Apple Silicon)
Linux: amd64, arm64
Windows: amd64, arm64
v0.14.1
v0.14.0
v0.13.1
Changelog
- edf4584: Bump to v0.14.0-dev (@VojtechVitek)
- 241d7fa: Regenerate examples (@VojtechVitek)
- babbc63: Update to golang@v0.13.1 (#230) (@VojtechVitek)
- 704ae5a: Update to golang@v0.13.3 (#234) (@VojtechVitek)
Docker
docker pull ghcr.io/webrpc/webrpc-gen:v0.13.1
Example: docker run -v $PWD:$PWD ghcr.io/webrpc/webrpc-gen:v0.13.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.13.1" github.com/webrpc/webrpc/cmd/webrpc-gen@v0.13.1
Download binaries
macOS: amd64, arm64 (Apple Silicon)
Linux: amd64, arm64
Windows: amd64, arm64
v0.13.0
Changelog
- 6af57de: ridl rpc succinct form (#229) (@pkieltyka)
Docker
docker pull ghcr.io/webrpc/webrpc-gen:v0.13.0
Example: docker run -v $PWD:$PWD ghcr.io/webrpc/webrpc-gen:v0.13.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.13.0" github.com/webrpc/webrpc/cmd/webrpc-gen@v0.13.0
Download binaries
macOS: amd64, arm64 (Apple Silicon)
Linux: amd64, arm64
Windows: amd64, arm64
v0.12.1
Changelog
- 5e6cf30: Add -target=debug to print schema object incl. Go type information (#225) (@VojtechVitek)
- 20c8d34: Add v0.12.0 changelog (@VojtechVitek)
- 94a3be4: Bump to v0.13.0-dev (#220) (@VojtechVitek)
- c1485fb: Fix panic (@VojtechVitek)
- 57f34b2: Generate .json schema in tests folder (@VojtechVitek)
- e85039a: Generate code to the output file even on formatting error (#223) (@VojtechVitek)
- 38f3328: Implement dump template function (#221) (@VojtechVitek)
- d25eb32: Implement hasField template function (#222) (@VojtechVitek)
- 31da006: Implement stderrPrint template function, suppress output (#224) (@VojtechVitek)
- bbb62bb: Indent -target=debug output with tabs for better readability (@VojtechVitek)
- 2bdd3f5: Make -target=debug output idempotent, track tests schema (#226) (@VojtechVitek)
- 414f37b: Update to golang@v0.12.5: Simplify Enums to TextMarshalers (#228) (@VojtechVitek)
- 54390e6: errors, add WebrpcInternalError and set HTTPStatus 400 default on ErrWebrpcRequestFailed (@pkieltyka)
- 21b85db: make generate (@VojtechVitek)
- 7bb6bd8: webrpc-gen: Add -target=json CLI flag (#219) (@VojtechVitek)
- ca6fbe4: webrpc-gen: Print custom targets properly (@VojtechVitek)
Docker
docker pull ghcr.io/webrpc/webrpc-gen:v0.12.1
Example: docker run -v $PWD:$PWD ghcr.io/webrpc/webrpc-gen:v0.12.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.12.1" github.com/webrpc/webrpc/cmd/webrpc-gen@v0.12.1
Download binaries
macOS: amd64, arm64 (Apple Silicon)
Linux: amd64, arm64
Windows: amd64, arm64
v0.12.0
Changelog
- 35b6b82: Fix duplicate or invalid json fields (#218) (@VojtechVitek)
Fixes #66
The following invalid/duplicate fields (in JSON) will now error out.
struct Simple
- Field1: string
+ json = _invalid
struct Simple
- Field1: string
+ json = field_1
- Field2: string
+ json = field_1
struct Simple
- Field1: string
- Field2: string
+ json = Field1
Breaking change:
Go users are expected to use go.tag.json
in RIDL instead of json
for special tags like ,omitempty
or ,string
.
- FieldName
- + json = field_name,omitempty
+ + json = field_name
+ + go.tag.json = field_name,omitempty
Docker
docker pull ghcr.io/webrpc/webrpc-gen:v0.12.0
Example: docker run -v $PWD:$PWD ghcr.io/webrpc/webrpc-gen:v0.12.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.12.0" github.com/webrpc/webrpc/cmd/webrpc-gen@v0.12.0
Download binaries
macOS: amd64, arm64 (Apple Silicon)
Linux: amd64, arm64
Windows: amd64, arm64
v0.11.3
Changelog
- 199cc32: Bump semver from 5.7.0 to 5.7.2 in /_examples/node-ts/webapp (#212) (@dependabot[bot])
- 2138cff: Remove github.com/pkg/errors (#216) (@VojtechVitek)
- 4beb9b2: Update to latest typescript@v0.11.2 generator (#217) (@VojtechVitek)
- ffdb764: add Unauthorized and PermissionDenied types in golang-basics example (@pkieltyka)
- feb0a66: cosmetic, errors should be defined before services (@pkieltyka)
- 7fe8d0a: example (golang-basics): demo how to use ErrorWithCause(..) (@pkieltyka)
Docker
docker pull ghcr.io/webrpc/webrpc-gen:v0.11.3
Example: docker run -v $PWD:$PWD ghcr.io/webrpc/webrpc-gen:v0.11.3 -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.11.3" github.com/webrpc/webrpc/cmd/webrpc-gen@v0.11.3
Download binaries
macOS: amd64, arm64 (Apple Silicon)
Linux: amd64, arm64
Windows: amd64, arm64