protobuf.js
protobuf.js copied to clipboard
Protocol Buffers for JavaScript & TypeScript.
Currently, trying to parse a .proto file with such construct results in an error: > Error: illegal token 'reserved' However, there's nothing in the Protocol Buffers specification[1] that would suggests...
`globalThis` is ready for ECMAScript standard. In strict mode `this` will be `undefined`, use globalThis the code will work in window and non-window contexts.
According to the protobuf conformance tests, it's valid for a varint to have unnecessary trailing zero bytes. This case wasn't being handled properly. Fixes #1067.
Protobuf.js `encode` method always sorts fields by their ID before writing a message to a byte array. However in some cases it may be necessary to tell protobuf.js to use...
Browser code should not rely on things that are not available in browser environments. Otherwise it throws error **global is undefined**. https://github.com/angular/angular-cli/issues/9827#issuecomment-369578814
Write field type's default value when clearing a OneOf field instead of null. This fixes a bug with the gRPC repository which depends on protobufjs5. Specifically proto3 asserts that nonexistent...
In current state when static code is minified, generated method names are replaced by single letter names. This make almost impossible to implement correctly transport layer for services. Those changes...
Fixed #843
Fixes #1652 . The int64 writer cannot handle the hash directly, because it interprets it as a string representation of a Long number, instead of a hash. This is obviously...