protobuf.js
protobuf.js copied to clipboard
Protocol Buffers for JavaScript & TypeScript.
protobuf.js version: 6.8.0 I'm encoding a very small payload and having it sent over socket io as an arraybuffer. However, for some reason, the bytelength of the underlying buffer of...
protobuf.js version: When I use `OneOf` keyword in our proto, google's protoc plugin will generate an enumration in .cc and .h file. But when I use protobufjs to convert the...
protobuf.js version: Hello, I encountered the following error when using protobuf 6.11.3 for file codec, indicating that eval and new Function()/Function() are not supported. How can I avoid this problem?...
I ran into an issue where an empty repeated option was throwing. This resolves it for me.
protobuf.js version: 7.2.0 Trying to use protobufjs in an ES module. ``` { "name": "myproject", "version": "1.0.0", "type": "module", "dependencies": { "protobufjs": "^7.2.0" }, "devDependencies": { "protobufjs-cli": "^1.1.0", "typescript": "^4.9.5"...
protobuf.js version: 7.2.3 See related code bellow: https://github.com/protobufjs/protobuf.js/blob/56b1e64979dae757b67a21d326e16acee39f2267/ext/descriptor/index.js#L207-L220 Looks like `Line 219` `type.oneofsArray` size may got `0`, so `type.oneofsArray[descriptor.field[i].oneofIndex]` will return `undefined`, when I add `&& type.oneofsArray.lengh > 0` in...
protobuf.js version: Sorry to disturb. Recently, I encountered a UTF decoding bug during coding, but I noticed that this bug was fixed 3 years ago, [here is the commit](https://github.com/protobufjs/protobuf.js/commit/75172cd11be137bbabd2fba7a02b15067695ebad). However,...
protobuf.js version: 7.2.5 I expect, when generates object from root object, fields has correct one of index if oneof is used. Today in all fields has default oneOfIndex = 0...
Update to correct command for building typescript definitions tp `npm run build:types`