protobuf.js icon indicating copy to clipboard operation
protobuf.js copied to clipboard

Protocol Buffers for JavaScript & TypeScript.

Results 286 protobuf.js issues
Sort by recently updated
recently updated
newest added

Hi there :) *protocolbuf.js* fails to parse several schema of [Google's protobuf repository](https://github.com/protocolbuffers/protobuf). - [google/protobuf/util/message_differencer_unittest.proto](https://github.com/protocolbuffers/protobuf/blob/main/src/google/protobuf/util/message_differencer_unittest.proto) ``` Error: illegal token 'map' (line 67) ``` - [google/protobuf/unittest.proto](https://github.com/protocolbuffers/protobuf/blob/main/src/google/protobuf/unittest.proto) - [google/protobuf/unittest_custom_options.proto](https://github.com/protocolbuffers/protobuf/blob/main/src/google/protobuf/unittest_custom_options.proto) - [google/protobuf/unittest_lite.proto](https://github.com/protocolbuffers/protobuf/blob/main/src/google/protobuf/unittest_lite.proto) ```...

I have a `.proto` files, yet I'd prefer to use JSON descriptors as an input. Does this library provide a way to convert `.proto` to JSON descriptors? If not, is...

protobuf.js version: ```~6.8.6``` Hi folks, Thank you very much for maintaining this repository. I am trying to decode a message with protobuf.js in ``react`` that was encoded and send in...

protobuf.js version: 6.11.2 Trying to generate TypeScript definitions for this minimal reproducible example fails: ```proto syntax = "proto3"; message trueWireless {} ``` Running this succeeds: ```sh node .\node_modules\protobufjs\bin\pbjs -o sample.js...

protobuf.js version: 6.11.2 Generated `toObject` functions should assign the string version of enum value 0 if they see unknown values when `enums: String` option is provided. Given this protobuf 3...

protobuf.js version: ```js // comments /** * another comments **/ ``` if the code is : ```js // comments /** * another comments **/ ``` it will be OK

`this` may be `undefined` in strict mode, because source code may be wrapped by some lambda function before being executed. In this case, error will occur in the following code:...

It's very common the proto dependencies between many resources to use some import path base to keep its relative paths with consistence. This PR add "--proto_path" like feature to protobuf.js.

protobuf.js version: 6.11.x Given a proto ```proto message Command { oneof body { string error = 1; string result = 2; } } ``` It should output ```ts type ICommand...

I am currently using [grpc-web](https://github.com/grpc/grpc-web) in a React SPA-project. The backend is implemented with [gRPC for .NET](https://github.com/grpc/grpc-dotnet), which already implements a middleware to translate gRPC-Web to gRPC HTTP/2 (like a...