v1.4.0
What's Changed
This release includes support for server-side interceptors! Here's a quick example:
import * as http from "http";
import routes from "./connect";
import { connectNodeAdapter } from "@connectrpc/connect-node";
import type { Interceptor } from "@connectrpc/connect";
const logger: Interceptor = (next) => async (req) => {
console.log(`recevied message on ${req.url}`);
return await next(req);
};
http
.createServer(
connectNodeAdapter({
routes,
interceptors: [logger],
}),
)
.listen(8080);
For more on them please see the docs.
Other Changes
- Add service and method in grpc-web unary response by @minimal1 in #984
- Document the
ts_nocheck
plugin option by @timostamm in #1012 - Remove node export condition by @smaye81 in #1017
- Avoid instanceof Message by @timostamm in #1023
New Contributors
Full Changelog: v1.3.0...v1.4.0