Shared utilities and types for the nice-grpc and nice-grpc-web packages. Version 2.0.3 is the current stable release, with a focus on type-safe gRPC client and server implementations for Node.js and the browser. It provides common abstractions such as middleware interfaces, status codes, and metadata handling that are shared across both the gRPC and gRPC-Web implementations. This package is released as part of the nice-grpc monorepo, with a regular release cadence aligned with the main packages. Key differentiators from raw gRPC libraries: provides TypeScript-first middleware composition and type-safe service definitions.
npm install nice-grpc-commonNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates importing ClientMiddleware and ServiceDefinition for type-safe middleware composition.
Update imports to use 'nice-grpc-common'.
Replace any usage of 'Middleware' with 'ClientMiddleware' or 'ServerMiddleware'.
Install the corresponding main package: 'npm install nice-grpc' or 'npm install nice-grpc-web'.
Run 'npm install nice-grpc-common' and ensure correct spelling.
Upgrade to at least version 2.0.0, or check the actual exported names for your version.
Ensure you are not trying to instantiate or call 'ClientMiddleware'; it is a TypeScript type, not a class.