Skip to content

v0.10.0 interoperability tests

Compare
Choose a tag to compare
@github-actions github-actions released this 30 Dec 17:55
· 104 commits to master since this release
aabb887

Tested with the following targets:

Added new interoperability tests

We have defined a new interoperability test suite implementing the following schema:

webrpc = v1

name = Test
version = v0.10.0

service TestApi
  - GetEmpty()
  - GetError()
  
  - GetOne() => (one: Simple)
  - SendOne(one: Simple)

  - GetMulti() => (one: Simple, two: Simple, three: Simple)
  - SendMulti(one: Simple, two: Simple, three: Simple)
  
  - GetComplex() => (complex: Complex)
  - SendComplex(complex: Complex)

All generators are expected to implement TestApi schema and run client/server interoperability tests against a reference webrpc-test binaries).

For more info, see typescript or golang tests.

Breaking changes in ridl package Go API

-func NewParser(r *schema.Reader) *Parser
+func NewParser(fsys fs.FS, path string) *Parser

Breaking changes in gen package Go API

- func NewTemplateSource(proto *schema.WebRPCSchema, target string, config *Config) (*TemplateSource, error)
+ func NewTemplateSource(target string, config *Config) (*TemplateSource, error)

Changelog

Docker

docker pull ghcr.io/webrpc/webrpc-gen:v0.10.0

Example: docker run -v $PWD:$PWD ghcr.io/webrpc/webrpc-gen:v0.10.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.10.0" github.com/webrpc/webrpc/cmd/webrpc-gen@v0.10.0

Download binaries

macOS: amd64, arm64 (Apple Silicon)
Linux: amd64, arm64
Windows: amd64, arm64