Internal gRPC module configuration library for BergX Team, providing shared protobuf definitions, generated TypeScript types, and gRPC client/server utilities. Current stable version: 1.1.48. The package is maintained actively with an irregular release cadence. It includes proto files and generated TypeScript files for gRPC services, as well as utility types (powered by type-fest). Key differentiators: tightly coupled with BergX microservice architecture, uses Buf for proto generation (with pinned versions to avoid breaking changes), and requires VSCode-specific proto path configuration. Not published on npm; installed via Git SSH dependency.
npm install jr-common-microNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initialise a gRPC client by loading proto files with minimal configuration.
Pin buf and plugin versions to those specified in the repository. Do not update.
Add the protoc options block to .vscode/settings.json as shown in the README.
Ensure the installed type-fest version matches the one used during generation (see package.json).
Use only the main package export unless you need specific generated types.
Migrate all imports to ESM style as shown in the quickstart.
Add the dependency line: "@bergx/jr-common-micro": "git+ssh://git@github.com/BergX-Team/jr-common-micro.git#main" to package.json and run npm install.
Set the 'protoPath' config to an absolute path or a path relative to the project root, e.g., __dirname + '/../proto'.
Add the protoc options to .vscode/settings.json: { "protoc": { "options": ["--proto_path=${workspaceRoot}/proto"] } }