v0.4.3
What's Changed
- Add testing example to examples directory by @paul-sachs in #125
- Export service type from generated services by @paul-sachs in #159
Testing simplification
Exported serviced type allows you to directly use service with createRouterTransport
from @connectrpc/connect
with the exported service:
import { createRouterTransport } from "@connectrpc/connect";
import { ElizaService } from "./gen/eliza-ElizaService_connectquery";
...
const transport = createRouterTransport(({ service }) => {
service(ElizaService, {
say: () => ({
sentence: "Hello, world!",
}),
});
});
For more details, see example test here.
Full Changelog: v0.4.2...v0.4.3