Skip to content

Sunset the @protobuf-ts/protoc package, switch to package protoc#734

Merged
timostamm merged 1 commit intomainfrom
Sunset-the-@protobuf-ts/protoc-package,-switch-to-package-protoc
Aug 22, 2025
Merged

Sunset the @protobuf-ts/protoc package, switch to package protoc#734
timostamm merged 1 commit intomainfrom
Sunset-the-@protobuf-ts/protoc-package,-switch-to-package-protoc

Conversation

@timostamm
Copy link
Owner

@protobuf-ts/protoc provides the Protobuf compiler protoc, which is otherwise cumbersome to install in an npm project. Unfortunately, its approach of downloading protoc on the fly has downsides, for example #723 and #507.

To solve this problem, I've set up a replacement: The npm package protoc is a very simple npm distribution of the protoc binary from https://github.com/protocolbuffers/protobuf/releases. For every upstream release, a new npm package version is published.

The package @protobuf-ts/protoc won't vanish from npmjs.com, but it won't see further development. I hope that's understandable, and that the new package is a useful replacement.

To migrate from @protobuf-ts/protoc to protoc:

npm remove @protobuf-ts/protoc
npm install protoc

If you have pinned your protoc version via config.protocVersion in package.json, install the corresponding version of protoc. If you import protobuf-ts.proto, add --proto_path ./node_modules/@protobuf-ts/plugin to your protoc call.

@timostamm timostamm merged commit 657e64e into main Aug 22, 2025
3 checks passed
@timostamm timostamm deleted the Sunset-the-@protobuf-ts/protoc-package,-switch-to-package-protoc branch August 22, 2025 17:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments