protobuf.js
protobuf.js copied to clipboard
Protocol Buffers for JavaScript & TypeScript.
I took a stab at adding an ES Module build output using a Rollup build process similar to the existing browserify one. I think this should work but will likely...
protobuf.js version: 6.8.8 When generating static code with pbts I would expect there to be a `Message` interface with `encode`, `decode`, etc. There isn't, so implementing generic functions which accept...
protobuf.js version: 7.1.0 This is my proto definition: ``` package test; syntax = "proto3"; message Data { string dataVal = 1; string moreData = 2; } message Error { string...
protobuf.js version: 6.9.0 Hi! I want to use CLI to generate static code from my `.proto` file. I used the next command: ``` $ yarn pbjs -t static-module -w es6...
react-native: 0.65.1 protobufjs: 7.0.0 awesome.proto ```js package awesomepackage; syntax = "proto3"; message AwesomeMessage { string awesome_field = 1; } ``` index.js ```js let protoFile = require('../../assets/proto/awesome.proto'); ... protobuf.load( protoFile, function...
Some entities in proto file can be marked as deprecated. Let's keep deprecated tag for users to see it.
protobuf.js version: 6.8.8 Expo version: 30.0.2 I'm using protobufjs with Expo to develop React Native apps. And I have received the following warnings after each refresh: ``` Require cycle: ../protocol/node_modules/protobufjs/src/util/minimal.js...
protobuf.js version: 6.8.6 Any empty 'bytes' field on a message, will be decoded into an empty javascript array. The expected behavior is that it will be decoded into an empty...
protobuf.js version: 7.0.0 Hi, I would like to know how to create a message which contains a timestamp field. I followed some issues, but couldn't get it working on my...
protobuf.js version: 6.10.1 After importing `protobufjs/ext/descriptor`, I should be able to call the `fromDescriptor` and `toDescriptor` methods without Typescript complaining ```ts import { Message, Root } from 'protobufjs'; import *...