Socket
Socket
Sign inDemoInstall

protobufjs

Package Overview
Dependencies
Maintainers
2
Versions
168
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

protobufjs - npm Package Versions

1
17

6.8.3

Diff

Changelog

Source

6.8.3

CLI

:hash: Use correct safeProp in json-module target, see #956<br />

dcode
published 6.8.2 •

Changelog

Source

6.8.2

Other

:hash: Include dist files in npm package, see #955<br />

dcode
published 6.8.1 •

Changelog

Source

6.8.1

Fixed

:hash: Prevent invalid JSDoc names when generating service methods, see #870<br /> :hash: Prevent parse errors when generating service method names, see #870<br /> :hash: Support parsing nested option-values with or without ':' (#951, fixes #946)<br /> :hash: Add support for reserved keyword in enums (#950, fixes #949)<br /> :hash: Unified safe property escapes and added a test for #834<br /> :hash: Fix codegen if type name starts with "Object"<br /> :hash: Fixed dependency for json-module to use "light".<br /> :hash: Basic support for URL prefixes in google.protobuf.Any types.<br /> :hash: fixed 'error is not defined linter warning when using static/static-module and es6<br /> :hash: Fixed wrong type_url for any type (no leading '.' allowed).<br /> :hash: Fixed fromObject() for google.protobuf.Any types.<br /> :hash: Handle case where 'extendee' is undefined in ext/descriptor<br />

CLI

:hash: Sanitize CR-only line endings (coming from jsdoc?)<br /> :hash: Make sure enum typings become generated (#884 didn't solve this)<br /> :hash: Remove exclude and include patterns from jsdoc config<br /> :hash: Skip defaults when generating proto3<br /> :hash: Wait for both the 'end' and 'close' event to happen before finishing in pbts, see #863<br /> :hash: Accept null for optional fields in generated static code<br /> :hash: Annotate TS classes with @implements<br /> :hash: Annotate virtual oneofs as string literal unions<br />

New

:hash: Also check for reserved ids and names in enums<br /> :hash: Also support 'reserved' in enum descriptors<br />

Other

:hash: Include just relevant files in npm package, fixes #781<br /> :hash: Fix travis build<br />

dcode
published 6.8.0 •

Changelog

Source

6.8.0

Breaking

:hash: Replaced Buffer and Long types with interfaces and removed stubs<br /> :hash: Removed Message#toObject in favor of having just the static version (unnecessary static code otherwise)<br /> :hash: Everything uses interfaces now instead of typedefs (SomethingProperties is now ISomething)<br /> :hash: ReflectionObject#toJSON properly omits explicit undefined values<br /> :hash: Initial implementation of TypeScript decorators<br /> :hash: Refactored protobuf.Class away<br /> :hash: TypeScript definitions now have (a lot of) generics<br /> :hash: Removed deprecated features<br />

Fixed

:hash: Added 'undefined' besides 'null' as a valid value of an optional field, fixes #826<br /> :hash: Fixed an issue with codegen typings, see #819<br /> :hash: Ported utf8 chunking mechanism to base64 as well, fixes #800<br /> :hash: Also be more verbose when defining properties for ES6, fixes #820<br /> :hash: Generate more verbose JSDoc comments for ES6 support, fixes #820<br /> :hash: Emit a maximum of one error var when generating verifiers, fixes #786<br /> :hash: Fixed missing semicolon after 'extensions' and 'reserved' when generating proto files, fixes #810<br /> :hash: Call npm with '--no-bin-links' when installing CLI deps, fixes #823<br /> :hash: Fix Reader argument conversion in static module<br /> :hash: Use JSDoc, they said, it documents code, they said. Fixes #770<br /> :hash: parser should not confuse previous trailing line comments with comments for the next declaration, see #762<br /> :hash: Types should not clear constructor with cache (fixes decorators)<br /> :hash: Namespace#lookup should also check in nested namespaces (wtf)<br /> :hash: Reader#bytes should also support plain arrays<br /> :hash: Fix markdown for pipe in code in table<br />

New

:hash: Upgrade to codegen 2<br /> :hash: ext/descriptor enables interoperability between reflection and descriptor.proto (experimental), see #757<br /> :hash: Added 'json' conversion option for proto3 JSON mapping compatibility of NaN and Infinity + additional documentation of util.toJSONOptions, see #351<br />

CLI

:hash: Use protobuf/minimal when pbjs target is static-module<br /> :hash: Added closure wrapper<br /> :hash: Various improvements to statically generated JSDoc, also fixes #772<br /> :hash: Check incompatible properties for namespaces only in tsd-jsdoc<br /> :hash: Additional tsd-jsdoc handling of properties inside of namespaces and TS specific API exposure<br /> :hash: Several improvements to tsd-jsdoc emitted comments<br /> :hash: Further TypeScript definition improvements<br /> :hash: Relieved tsd files from unnecessary comments<br /> :hash: Generate TS namespaces for vars and functions with properties<br /> :hash: Prefer @tstype over @type when generating typedefs (tsd-jsdoc)<br />

Docs

:hash: Replaced nullable types with explicit type|null for better tooling compatibility, also fixes #766 and fixes 767<br /> :hash: Added more info to ext/descriptor README, see #757<br /> :hash: Additional notes on ext/descriptor<br /> :hash: Updated CHANGELOG so everyone knows what's going on (and soon, breaking)<br /> :hash: Additional docs on TS/decorators usage<br />

Other

:hash: Updated dist files<br /> :hash: Added package-lock.json<br /> :hash: Minor formatting<br /> :hash: Generate files<br /> :hash: Remove the no-constructor arg<br /> :hash: Remove the ctor option.<br /> :hash: Add support to generate types for JSON object.<br /> :hash: aspromise performance pass<br /> :hash: codegen 2 performance pass, #653 might benefit<br /> :hash: Fixed minimal library including reflection functionality<br /> :hash: Minor compression ratio tuning<br /> :hash: Fixed failing test case + coverage<br /> :hash: Improved fromObject wrapper for google.protobuf.Any.<br /> :hash: Fixed failing tokenize test case<br /> :hash: Removed debug build, made it an extension<br /> :hash: Regenerated dist files<br /> :hash: Even more documentation and typings for ext/descriptor<br /> :hash: ext/descriptor docs<br /> :hash: Decorators coverage<br /> :hash: ext/descriptor support for various standard options, see #757<br /> :hash: ext/descriptor passes descriptor.proto test with no differences, see #757<br /> :hash: Properly remove unnecessary (packed) options from JSON descriptors<br /> :hash: Use typedefs in ext/descriptor (like everywhere else), see #757<br /> :hash: Fixed obvious issues with ext/descriptor, does not throw anymore when throwing descriptor.proto itself at it, see #757<br /> :hash: Added still missing root traversal to ext/descriptor, see #757<br /> :hash: Initial map fields support for ext/descriptor, see #757<br /> :hash: Added infrastructure for TypeScript support of extensions<br /> :hash: TypeScript generics improvements<br /> :hash: More ext/descriptor progress, see #757<br /> :hash: Just export the relevant namespace in ext/descriptor<br /> :hash: Initial descriptor.proto extension for reflection interoperability, see #757<br /> :hash: Moved custom wrappers to its own module instead, also makes the API easier to use manually, see #677<br /> :hash: Added infrastructure for custom wrapping/unwrapping of special types, see #677<br /> :hash: More decorator progress (MapField.d, optional Type.d)<br /> :hash: tsd-jsdoc now has limited generics support<br />

dcode
published 6.7.3 •

Changelog

Source

6.7.3

Other

:hash: long, @types/long and @types/node are just dependencies, see #753<br />

dcode
published 6.7.2 •

Changelog

Source

6.7.2

New

:hash: Split up NamespaceDescriptor to make nested plain namespaces a thing, see #749<br />

Docs

:hash: More README<br /> :hash: Replaced 'runtime message' with 'message instance' for clarity<br /> :hash: Rephrased the Usage section around the concept of valid messages<br /> :hash: Added toolset diagram to README<br />

Other

:hash: Touched benchmark output metrics once more<br /> :hash: Fixed failing browser test<br /> :hash: Output more human friendly metrics from benchmark<br /> :hash: Stripped down static bench code to what's necessary<br /> :hash: Revamped benchmark, now also covers Google's JS implementation<br /> :hash: Updated dependencies and dist files<br />

dcode
published 6.7.1 •

Changelog

Source

6.7.1

New

:hash: Made .verify behave more like .encode, see #710<br />

CLI

:hash: With null/undefined eliminated by constructors and .create, document message fields as non-optional where applicable (ideally used with TS & strictNullChecks), see #743<br /> :hash: Renamed --strict-long/message to --force-long/message with backward compatible aliases, see #741<br /> :hash: Keep $Properties with --strict-message but require actual instances within, see #741<br /> :hash: Added --strict-message option to pbjs to strictly reference message instances instead of $Properties, see #741<br />

Docs

:hash: Restructured README<br /> :hash: Added more information on typings usage, see #744<br /> :hash: Clarified typescript example in README, see #744<br /> :hash: Clarified that the service API targets clients consuming a service, see #742<br />

Other

:hash: Omit copying of undefined or null in constructors and .create, see #743<br />

dcode
published 6.7.0 •

Changelog

Source

6.7.0

Breaking

:hash: Namespace#lookupEnum should actually look up the reflected enum and not just its values<br /> :hash: Decoder now throws if required fields are missing, see #695 / #696<br />

Fixed

:hash: Added functionality to filter for multiple types at once in lookup(), used by lookupTypeOrEnum(), fixes #740<br /> :hash: Ensure that fields have been resolved when looking up js types in static target, see #731<br /> :hash: Properly copy fields array before sorting in toObject, fixes #729<br /> :hash: Actually emit TS compatible enums in static target if not aliases, see #720<br /> :hash: Hardened tokenize/parse, esp. comment parsing, see #713<br /> :hash: Exclude any fields part of some oneof when populating defaults in toObject, see #710<br /> :hash: Most of the parser is not case insensitive, see #705<br /> :hash: Retain options argument in Root#load when used with promises, see #684<br />

New

:hash: Created a micromodule from (currently still bundled) float support<br /> :hash: util.isset(obj, prop) can be used to test if a message property is considered to be set, see #728<br /> :hash: Implemented stubs for long.js / node buffers to be used where either one isn't wanted, see #718<br /> :hash: Simplified reusing / replacing internal constructors<br /> :hash: Constructors/.create always initialize proper mutable objects/arrays, see #700<br /> :hash: Verifiers return an error if multiple fields part of the same oneof are set, see #710<br /> :hash: Added oneofs: true to ConversionOptions, see #710<br /> :hash: Optional fields handle null just like undefined regardless of type see #709<br /> :hash: Encoders no longer examine virtual oneof properties but encode whatever is present, see #710<br /> :hash: pbjs now generates multiple exports when using ES6 syntax, see #686<br /> :hash: Sequentially serialize fields ordered by id, as of the spec.<br /> :hash: decode throws specific ProtocolError with a reference to the so far decoded message if required fields are missing + example<br /> :hash: Reader.create asserts that buffer is a valid buffer, see #695<br />

CLI

:hash: Exclude JSDoc on typedefs from generated d.ts files because typescript@next, see #737<br /> :hash: Prepare static code with estraverse instead of regular expressions, see #732<br /> :hash: Moved tsd-jsdoc to future cli package, see #716<br /> :hash: $Properties are just a type that's satisfied, not implemented, by classes, see #723<br /> :hash: More progress on decoupling the CLI<br /> :hash: Fixed computed array indexes not being renamed in static code, see #726<br /> :hash: Check upfront if key-var is required in static decoders with maps, see #726<br /> :hash: Fixed handling of stdout if callback is specified, see #724<br /> :hash: Preparations for moving the CLI to its own package, see #716<br /> :hash: Properly implement $Properties interface in JSDoc, see #723<br /> :hash: Recursively use $Properties inside of $Properties in static code, see #717<br /> :hash: Added --strict-long option to pbjs to always emit 'Long' instead of 'number|Long' (only relevant with long.js), see #718<br /> :hash: Statically emitted long type is 'Long' now instead of '$protobuf.Long', see #718<br /> :hash: Decoupled message properties as an interface in static code for TS intellisense support, see #717<br /> :hash: Static code statically resolves types[..], see #715<br />

Docs

:hash: Added type definitions for all possible JSON descriptors<br /> :hash: Explained the JSON structure in README and moved CLI specific information to the CLI package<br /> :hash: Added information on how to use the stubs to README, see #718<br /> :hash: Added 'What is a valid message' section to README<br /> :hash: Added a hint on using .create to initial example<br /> :hash: Even more usage for README<br /> :hash: Additional information on general usage (README)<br /> :hash: Restructured README to Installation, Usage and Examples sections<br /> :hash: Added a longish section on the correct use of the toolset to README<br /> :hash: Added a few additional notes on core methods to README, see #710<br /> :hash: Extended traverse-types example, see #693<br /> :hash: Better explain how .verify, .encode and .decode are connected<br /> :hash: Documented that Type#encode respectively Message.encode do not implicitly .verify, see #696 [ci-skip]<br /> :hash: Documented throwing behavior of Reader.create and Message.decode<br /> :hash: Added error handling notes to README, see #696<br />

Other

:hash: Use @protobufjs/float<br /> :hash: Rebuilt dist files for 6.7.0<br /> :hash: Updated deps, ts fixes and regenerated dist files<br /> :hash: Manually merged gentests improvements, fixes #733<br /> :hash: Make sure that util.Long is overridden by AMD loaders only if present, see #730<br /> :hash: Coverage for util.isset and service as a namespace<br /> :hash: Shortened !== undefined && !== null to equivalent != null in static code<br /> :hash: With stubs in place, 'number|Long' return values can be just 'Long' instead, see #718<br /> :hash: Just alias as the actual ideal type when using stubs, see #718<br /> :hash: General cleanup + regenerated dist/test files<br /> :hash: Simplified camel case regex, see #714<br /> :hash: Regenerated dist files and changelog for 6.7.0<br /> :hash: Retain alias order in static code for what it's worth, see #712<br /> :hash: Everything can be block- or line-style when parsing, see #713<br /> :hash: Determine necessary aliases depending on config, see #712<br /> :hash: Use more precise types for message-like plain objects<br /> :hash: Regenerated dist files<br /> :hash: Regenerated relevant files<br /> :hash: Moved field comparer to util<br /> :hash: Updated tests to use new simplified encoder logic<br /> :hash: Updated path to tsd-jsdoc template used by pbts, see #707<br /> :hash: Additional restructuring for moving configuration files out of the root folder<br /> :hash: Added codegen support for constructor functions, see #700<br /> :hash: Attempted to fix broken custom error test<br /> :hash: Trying out a more aggressive aproach for custom error subclasses<br /> :hash: Moved a few things out of the root folder<br /> :hash: Coverage for encoder compat. / protocolerror<br /> :hash: Updated dist and generated test files<br /> :hash: Added tslint<br /> :hash: Exclude dist/ from codeclimate checks<br /> :hash: Also lint cli utilities<br /> :hash: Cache any regexp instance (perf)<br /> :hash: Use code climate badges<br /> :hash: Updated travis to pipe to codeclimate, coverage<br /> :hash: More precise linter configuration<br /> :hash: Added codeclimate<br /> :hash: Moved cli deps placeholder creation to post install script<br />

dcode
published 6.6.5 •

Changelog

Source

6.6.5

Fixed

:hash: sfixed64 is not zig-zag encoded, see #692<br />

CLI

:hash: Added a placeholder to cli deps node_modules folder to make sure node can load from it<br />

Other

:hash: Restructured a few failing tests<br /> :hash: Traversal example + minimalistic documentation<br /> :hash: Added a custom getters/setters example for gRPC<br />

dcode
published 6.6.4 •

Changelog

Source

6.6.4

Fixed

:hash: Made sure that LongBits ctor is always called with unsigned 32 bits + static codegen compat., fixes #690<br /> :hash: Properly handle multiple ../.. in path.normalize, see #688<br /> :hash: Post-merge, also tackles #683 (packed option for repeated enum values)<br />

New

:hash: Verify accepts non-null objects only, see #685<br /> :hash: allow_alias enum option was not being honored. This case is now handled and a test case was added<br />

CLI

:hash: Added an experimental --sparse option to limit pbjs output to actually referenced types within main files<br />

Docs

:hash: Added explicit hint on Uint8Array to initial example, see #670<br />

Other

:hash: Ranges and names support for reserved fields, see #676<br /> :hash: Updated depdendencies / rebuilt dist files<br /> :hash: Use ?: instead of |undefined in .d.ts files<br /> :hash: Mark optional fields as possibly being undefined<br /> :hash: Added a few more common google types from google/api, see #433<br /> :hash: Minor optimizations to dependencies, build process and tsd<br />

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc