New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

protobufjs

Package Overview
Dependencies
Maintainers
1
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.1.0

Diff

Changelog

Source

6.1.0

Breaking

:hash: Removed as-function overload for Reader/Writer, profiler stub, optimized version of Reader#int32<br /> :hash: Refactored Prototype and inherits away, is now Class and Message for more intuitive documentation and type refs<br />

Fixed

:hash: Fixed failing test case on node < 6<br /> :hash: Fixed serialization order of sfixed64, fixes #536<br /> :hash: Fixed serialization order of fixed64, fallback to parseInt with no long lib, see #534<br /> :hash: Actually allow undefined as service method type, fixes #528<br /> :hash: Do not skip optional delimiter after aggregate options, fixes #520<br /> :hash: Verify empty base64 encoded strings for bytes fields, see #535<br /> :hash: wrong spell role should be rule<br /> :hash: decodeDelimited always forks if writer is specified, see #531<br /> :hash: Mimic spec-compliant behaviour in oneof getVirtual, see #523<br />

New

:hash: Initial base64 string support for bytes fields, see #535<br /> :hash: Initial type-checking verifier, see #526, added to bench out of competition<br /> :hash: Initial loadSync (node only), see #529<br /> :hash: Initial RPC service implementaion, see #529<br /> :hash: added 'defaults' option to Prototype#asJSON, see #521<br /> :hash: Use Uint8Array pool in browsers, just like node does with buffers<br /> :hash: Also validate map fields, see #526 (this really needs some tests)<br />

CLI

:hash: Added json-module target to pbjs, renamed static to static-module, see #522<br /> :hash: updated internals and static target to use immutable objects on prototypes<br />

Docs

:hash: Added a couple of alternative signatures, protobuf.load returns promise or undefined, aliased Reader/Writer-as-function signature with Reader/Writer.create for typed dialects, see #518<br /> :hash: Added variations for Root#load, see #527<br /> :hash: Added benchmark and profile related information to README<br /> :hash: Added service example to README, see #529<br /> :hash: README on tests<br /> :hash: Update README/dist to reflect recent changes<br /> :hash: Minimal documentation for micromodules<br /> :hash: Document all the callbacks, see #527<br /> :hash: Documented streaming-rpc example a bit<br />

Other

:hash: Removed the need for triple-slash references in .d.ts by providing a minimal Long interface, see #527, see #530<br /> :hash: Transition to micromodules<br /> :hash: Refactored argument order of utf8 for plausibility<br /> :hash: Restructured reusable micromodules<br /> :hash: Can't use Uint8Array#set on node < 6 buffers<br /> :hash: Test case for #531<br /> :hash: Safer signaling for synchronous load, see #529<br /> :hash: Proper end of stream signaling to rpcImpl, see #529<br /> :hash: Moved event emitter to util, also accepts listener context, see #529<br /> :hash: Probably the worst form of hiding require programmatically, see #527<br /> :hash: Attempt to hide require('fs') from webpack, see #527<br /> :hash: Trying out jsdoc variations, see #527<br /> :hash: by the way, why not include the json->proto functionality into "util"?<br /> :hash: Update proto.js<br /> :hash: Automatic profile generation and processing<br /> :hash: Generalized buffer pool and moved it to util<br /> :hash: Make shields visible on npm, yey<br /> :hash: More shields, I love shields, and maybe a workaround for travis timing out when sauce takes forever<br /> :hash: Trying SauceLabs with higher concurrency<br />

dcode
published 6.0.2 •

Changelog

Source

6.0.2

Fixed

:hash: Fix packable float/double see #513<br />

New

:hash: Handle oneofs in prototype ctor, add non-ES5 fallbacks, test case<br /> :hash: Be nice to AMD, allow reconfiguration of Reader/Writer interface<br />

CLI

:hash: Initial static codegen target for reference<br /> :hash: pbjs static target services support<br /> :hash: pbjs static target progress, uses customizable wrapper template<br /> :hash: Static pbjs target progress, now generates usable CommonJS code, see #512<br />

Docs

:hash: TypeScript example<br /> :hash: Adjectives, notes on browserify<br />

Other

:hash: Refactor runtime util into separate file, reader/writer uses runtime util<br /> :hash: Also optimize reader with what we have learned<br /> :hash: More (shameless) writer over-optimization<br /> :hash: Trading package size for float speed<br /> :hash: Skip defining getters and setters on IE8 entirely, automate defining fallbacks<br /> :hash: Unified proto/reflection/classes/static encoding API to always return a writer<br /> :hash: plain js utf8 is faster for short strings<br /> :hash: improve TypeScript support. add simple test script.<br /> :hash: Use long.js dependency in tests, reference types instead of paths in .d.ts see #503<br /> :hash: Restructured encoder / decoder to better support static code gen<br />

dcode
published 6.0.1 •

Changelog

Source

6.0.1

Fixed

:hash: Add support for long strings, fixes #509<br /> :hash: expose zero on LongBits, fixes #508<br /> :hash: Fixed issues with Root.fromJSON/#addJSON, search global for Long<br /> :hash: Properly exclude browserify's annoying _process, again, fixes #502<br /> :hash: Remember loaded files earlier to prevent race conditions, fixes #501<br /> :hash: Allow negative enum ids even if super inefficient (encodes as 10 bytes), fixes #499, fixes #500<br /> :hash: set resolvedResponseType on resolve(), fixes #497<br />

New

:hash: Initial take on runtime services, see #507<br /> :hash: Include dist/ in npm package for frontend use<br />

CLI

:hash: pbjs proto target field options, language-level compliance with jspb test.proto<br />

Docs

:hash: always use Uint8Array in docs for tsd, see #503<br /> :hash: Notes on dist files<br />

Other

:hash: Update eslint env<br /> :hash: Browser field in package.json isn't required<br />

dcode
published 6.0.0 •

Changelog

Source

7.0.0 (2022-07-08)

⚠ BREAKING CHANGES

  • drop support for Node 4, 6, 8, 10 (#1764)
  • move command line tool to a new package named protobufjs-cli (#1234)
  • encoding of empty Buffers (#1514)

Features

Bug Fixes

  • allow for an optional semicolon where there is an optional comma in parseOptionValue (#1571) (af1b449)
  • allow Windows unc paths to be resolved and normalized (#1351) (cd4aeda)
  • deps: patch minimatch vulnerability (#1704) (bac61b8)
  • deps: update dependency long to v5 (#1751) (dadc65e)
  • deps: use eslint 8.x (#1728) (fa01883)
  • do not fail if no process (#1440) (f2faa8c)
  • do not let setProperty change the prototype (#1731) (3357ef7)
  • docs: update CHANGELOG to match format of release-please (#1376) (15ed8a0)
  • drop support for Node 4, 6, 8, 10 (#1764) (50370dd)
  • encoding of empty Buffers (#1514) (b4cae07), closes #1500 #885
  • es6 export enum (#1446) (9f33784)
  • fix util.global (#1441) (742b8dc)
  • fromObject should not initialize oneof members (#1597) (90afe44)
  • google.protobuf.Any type_url fixes (#1068) (192f5f1)
  • handling of map entries with omitted key or value (#1348) (b950877)
  • handling properly fields with leading and trailing comments after field with trailing comment (#1593) (9011aac)
  • make node detection a bit more forgiving (#1445) (4e75f6d)
  • make parsedOptions appear in method JSON representation (#1506) (3d29969)
  • proper relative path to protobufjs in cli (#1753) (a1d6029)
  • properly parse empty messages in options (#1429) (7fbc79f)
  • proto3 optional scalars should default to null in reflection API (#1693) (d9144de)
  • replace deprecated String.prototype.substr() (#1701) (e33a84a)
  • scope variable for map field to avoid redeclaration (#1717) (#1718) (1d3c02a)
  • support for options with repeated_value: [ "foo", "bar" ] (#1574) (f5b893c)
  • typo in pbjs help text (#1552) (7f46dbe)
  • update minimal.js to evade override mistake (#1742) (e2f33a0)
  • updated isNode check (#1221) (#1363) (5564e7b)
  • utf8 -> utf16 decoding bug on surrogate pairs (#1486) (75172cd)
dcode
published 5.0.1 •

dcode
published 4.1.3 •

dcode
published 5.0.0 •

dcode
published 4.1.2 •

dcode
published 4.1.1 •

dcode
published 4.1.0 •

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