unstale

npm / protobufjs

protobufjs

What changed in protobufjs 7 to 8, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.

11 breaking24 security18 new APIs and options4 performance2 behavior and defaults3 tooling89 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli on npm

protobufjs 8122 changes

Breaking changes 7

Security 20

New APIs and options 9

Performance 4

Behavior and default changes 2

  • The CLI now resolves imports from the current working directory by default.

    8.7.1release notes

  • Unknown fields can now roundtrip.

    8.2.0release notes

Tooling 3

  • Generated typings are improved, affecting the types available to developers using protobufjs.

    8.3.0release notes

  • Adds an optional protoc-gen-pbjs plugin.

    8.2.0release notes

  • pbts supports .cjs and .mjs extensions.

    8.0.2release notes

Fixes and other changes 77

protobufjs 729 changes

Breaking changes 4

  • Encoding of empty Buffers changed.

    7.0.0release notes

  • fromObject no longer initializes oneof members.

    7.0.0release notes

  • Support for Node 4, 6, 8, and 10 was dropped; developers must use a supported Node.js version.

    7.0.0release notes

  • The command line tool moved to the protobufjs-cli package, so CLI users must use the new package.

    7.0.0release notes

Security 4

  • Miscellaneous utilities were hardened; the notes do not specify which utilities or the effects.

    7.6.1release notes

  • Parser hardening was backported to the 7.x release line.

    7.5.8release notes

  • CLI fixes were backported to the 7.x line.

    7.5.6release notes

  • Input hardening fixes were backported to the 7.x line.

    7.5.6release notes

New APIs and options 9

Fixes and other changes 12

  • Preserves null conversion behavior for fieldless messages.

    7.6.3release notes

  • Fixed ES6 enum exports.

    7.0.0release notes

  • Fixed type_url handling for google.protobuf.Any.

    7.0.0release notes

  • Fixed handling of map entries with an omitted key or value.

    7.0.0release notes

  • parsedOptions now appears in method JSON representations.

    7.0.0release notes

  • An optional semicolon is now allowed where an optional comma is accepted.

    7.0.0release notes

  • The library no longer fails when process is unavailable.

    7.0.0release notes

  • Proto3 optional scalars now default to null in the reflection API.

    7.0.0release notes

  • Fixed support for options using repeated_value arrays.

    7.0.0release notes

  • setProperty no longer changes the prototype.

    7.0.0release notes

  • Fixed UTF-8 to UTF-16 decoding for surrogate pairs.

    7.0.0release notes

  • Windows UNC paths can now be resolved and normalized.

    7.0.0release notes