protobuf.js
protobuf.js copied to clipboard
Protocol Buffers for JavaScript & TypeScript.
protobuf.js version: ```js ``` ``` ```
protobuf.js version: ^7.2.6 This data is serialized to binary data using c++ protobuf, and can be deserialized using c++ or net ## message ```proto message SpLocation { optional int32 layer...
protobuf.js version: 7.2.6 Expected: compile source with editions https://protobuf.dev/editions/overview/ Actual: Fails. ```protobuf edition = "2023"; message Player {} ``` ``` Error: illegal token 'edition' (Player.proto, line 8) at illegal (/usr/lib/node_modules/protobufjs-cli/node_modules/protobufjs/src/parse.js:96:16)...
If a proto has `message Object`, the following code in `pbts` will emit lowercase `object` in the types, which won't compile. https://github.com/protobufjs/protobuf.js/blob/2f846fe09c1e4033bdfb63ea622a63dc7ae559db/cli/lib/tsd-jsdoc/publish.js#L298-L300 The resulting strings in the generated `.d.ts` will...
**protobuf.js** version: _6.8.6_ and latest one (_7.2.6_). I have a shell script I use to generate the type definitions from my proto files. It generates properly the **types.js**, but when...
This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [git-semver-tags](https://redirect.github.com/conventional-changelog/conventional-changelog/tree/master/packages/git-semver-tags#readme) ([source](https://redirect.github.com/conventional-changelog/conventional-changelog/tree/HEAD/packages/git-semver-tags)) | [`^4.0.0` -> `^8.0.0`](https://renovatebot.com/diffs/npm/git-semver-tags/4.1.1/8.0.0) | [](https://docs.renovatebot.com/merge-confidence/) |...
fix: RangeError [ERR_BUFFER_OUT_OF_BOUNDS] "length" is outside of buffer bounds since nodejs 22.7 call buf.utf8Write() conditionally, it will be called in buf.write() ref: https://github.com/protobufjs/protobuf.js/issues/2025
protobuf.js version: 7.4.0 It appears that the latest nodejs version (22.7.0) triggers this error: ` RangeError [ERR_BUFFER_OUT_OF_BOUNDS]: "length" is outside of buffer bounds ` at ![CleanShot 2024-08-23 at 09 21...
protobuf.js version: 7.2.6 https://github.com/protobufjs/protobuf.js/commit/75172cd11be137bbabd2fba7a02b15067695ebad, this commit has some problem. On v8, frequent string concatenation can generate a large number of ConsString objects, leading to increased memory usage. ```js // lib/utf8/index.js...
protobuf.js version: 7.1.2 We are parsing a `.proto` file in `proto3` format with `protobufjs.loadSync`. Using the resulting parsed objects, we need to distinguish between a field that is marked `optional`...