Skip to content

v0.4.3

Compare
Choose a tag to compare
@paul-sachs paul-sachs released this 11 Sep 18:17
· 131 commits to main since this release
d763f1e

What's Changed

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