Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{".":"8.0.3","cli":"2.0.3"}
{".":"8.2.0","cli":"2.2.0"}
49 changes: 49 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,54 @@
# Changelog

## [8.2.0](https://github.com/protobufjs/protobuf.js/compare/protobufjs-v8.0.3...protobufjs-v8.2.0) (2026-05-09)


### Features

* Add finishInto() for zero-copy serialization into existing buffers ([#2196](https://github.com/protobufjs/protobuf.js/issues/2196)) ([657d6f1](https://github.com/protobufjs/protobuf.js/commit/657d6f1328fa9bb55c5be2b8055e68f8da4da98b))
* Add textformat extension ([#2233](https://github.com/protobufjs/protobuf.js/issues/2233)) ([4639e29](https://github.com/protobufjs/protobuf.js/commit/4639e2960789f4cc58af1908934caaf14c1fadbc))
* **cli:** Add optional protoc-gen-pbjs plugin ([#2231](https://github.com/protobufjs/protobuf.js/issues/2231)) ([c9b6a2d](https://github.com/protobufjs/protobuf.js/commit/c9b6a2d2a6f81dd78812a6ce177fa7a5f9de885d))
* **cli:** Align json-module with static-module output ([#2227](https://github.com/protobufjs/protobuf.js/issues/2227)) ([a015091](https://github.com/protobufjs/protobuf.js/commit/a015091a5862bdae9eb213b6554ab7e5b36187cb))
* Roundtrip unknown fields ([#2209](https://github.com/protobufjs/protobuf.js/issues/2209)) ([76fa03c](https://github.com/protobufjs/protobuf.js/commit/76fa03c252542b607e4c81a4fe4db12aa1f948af))


### Bug Fixes

* Accept URL-safe base64 input ([#2207](https://github.com/protobufjs/protobuf.js/issues/2207)) ([57a3821](https://github.com/protobufjs/protobuf.js/commit/57a3821de0d2ffdac06973be49554dea0332bb7f))
* Also resolve common definitions by file name ([#2218](https://github.com/protobufjs/protobuf.js/issues/2218)) ([e533950](https://github.com/protobufjs/protobuf.js/commit/e533950dbdc1a5e31ca3611e711a9042019c18c3))
* Apply oneof last-value wins during decode ([#2193](https://github.com/protobufjs/protobuf.js/issues/2193)) ([cf35cdc](https://github.com/protobufjs/protobuf.js/commit/cf35cdc23237c06e7de603fa8fe36e47b7c037e0))
* Consistently handle scalar map keys ([#2186](https://github.com/protobufjs/protobuf.js/issues/2186)) ([29b1183](https://github.com/protobufjs/protobuf.js/commit/29b11834520bc4ab0bb377933e4efefbf95f93b2))
* Consistently reject truncated strings ([#2205](https://github.com/protobufjs/protobuf.js/issues/2205)) ([689e911](https://github.com/protobufjs/protobuf.js/commit/689e911efa3b7e81ea20f29ae2cd725566891c6a))
* Correct parsedOptions TypeScript types ([#2217](https://github.com/protobufjs/protobuf.js/issues/2217)) ([dbe8d77](https://github.com/protobufjs/protobuf.js/commit/dbe8d7775a46bebaf644461dce586fa29be242f6))
* Decode bool values from full varints ([#2192](https://github.com/protobufjs/protobuf.js/issues/2192)) ([7b8d5c1](https://github.com/protobufjs/protobuf.js/commit/7b8d5c111a5e517be219872fb36f4dcfe2b6d371))
* Decode fields by full wire tag ([#2197](https://github.com/protobufjs/protobuf.js/issues/2197)) ([f6264b1](https://github.com/protobufjs/protobuf.js/commit/f6264b1890e85885a22fa323d983f46b6ba9a05e))
* Decode missing map message values as empty messages ([#2206](https://github.com/protobufjs/protobuf.js/issues/2206)) ([51c1a4f](https://github.com/protobufjs/protobuf.js/commit/51c1a4fd77169565bc6248f996f698ee396c90f0))
* Generate TypeScript class properties for extensions ([#2187](https://github.com/protobufjs/protobuf.js/issues/2187)) ([ec04bee](https://github.com/protobufjs/protobuf.js/commit/ec04bee4a1aada80083d504f0c879dee6e293799))
* Harden parser input handling ([#2240](https://github.com/protobufjs/protobuf.js/issues/2240)) ([53a27fc](https://github.com/protobufjs/protobuf.js/commit/53a27fc4617b300f7db98eb172846c4f0e307e7a))
* Improve Deno and Bun compatibility ([#2228](https://github.com/protobufjs/protobuf.js/issues/2228)) ([6034af8](https://github.com/protobufjs/protobuf.js/commit/6034af80f5fa27ae84d1a5bc7d799e09905367ce))
* Improve descriptor extension interoperability ([#2232](https://github.com/protobufjs/protobuf.js/issues/2232)) ([effbbc4](https://github.com/protobufjs/protobuf.js/commit/effbbc4c5765426b4acb4044df53347f7a44ad42))
* Make optional Node module lookups bundler-safe ([#2237](https://github.com/protobufjs/protobuf.js/issues/2237)) ([366030b](https://github.com/protobufjs/protobuf.js/commit/366030b14ab8c0e690889d8810b69b2dfee4593a))
* Merge singular message fields while decoding ([#2195](https://github.com/protobufjs/protobuf.js/issues/2195)) ([14d9df7](https://github.com/protobufjs/protobuf.js/commit/14d9df796af789aca5ad7a54c67d9be8b84a818a))
* Omit proto3 implicit scalar defaults ([#2208](https://github.com/protobufjs/protobuf.js/issues/2208)) ([ea1b003](https://github.com/protobufjs/protobuf.js/commit/ea1b0037baf2af5b8c20d79ab62141bdc08eda09))
* Read non-minimal 32-bit varints correctly ([#2198](https://github.com/protobufjs/protobuf.js/issues/2198)) ([5650a07](https://github.com/protobufjs/protobuf.js/commit/5650a07301752f37a1c294e71574b50ef9d55eb4))
* Reject malformed field tag varints ([#2224](https://github.com/protobufjs/protobuf.js/issues/2224)) ([1904533](https://github.com/protobufjs/protobuf.js/commit/19045330c108b7fad9e97b787ed641f1637b13b2))
* Restore first-match namespace lookup ([#2235](https://github.com/protobufjs/protobuf.js/issues/2235)) ([4fb8900](https://github.com/protobufjs/protobuf.js/commit/4fb89005774d8f7e87094ff0b4055b2cda9abb24))
* Support proto2 extension groups ([#2181](https://github.com/protobufjs/protobuf.js/issues/2181)) ([1039194](https://github.com/protobufjs/protobuf.js/commit/103919422de361935d99a2bb92ead9ca749f0b17))
* Tighten key2Re regex with non-capturing group ([#2225](https://github.com/protobufjs/protobuf.js/issues/2225)) ([c87b149](https://github.com/protobufjs/protobuf.js/commit/c87b149adc52034363693980b735a63f5af9a266))
* Validate field and group tags while decoding ([#2200](https://github.com/protobufjs/protobuf.js/issues/2200)) ([c09d4f7](https://github.com/protobufjs/protobuf.js/commit/c09d4f74c1c9d33f2cb3971110f2af4fe51dff93))


### Performance Improvements

* Avoid constructor setup during resolve ([#2211](https://github.com/protobufjs/protobuf.js/issues/2211)) ([1bf3c07](https://github.com/protobufjs/protobuf.js/commit/1bf3c07e32e72258d6d9ad5b0fe858ce705df083))
* Preallocate arrays in converters ([#2219](https://github.com/protobufjs/protobuf.js/issues/2219)) ([62d2155](https://github.com/protobufjs/protobuf.js/commit/62d21559ce1c223ab26a2e998d3b2bce5d22c0d1))
* Reduce generated code overhead ([#2212](https://github.com/protobufjs/protobuf.js/issues/2212)) ([45ec503](https://github.com/protobufjs/protobuf.js/commit/45ec503c299ea16523e990b8a50cad977ef93e6a))
* Tweak reader varint32 and string cases ([#2220](https://github.com/protobufjs/protobuf.js/issues/2220)) ([4076ea8](https://github.com/protobufjs/protobuf.js/commit/4076ea84d0b1804d9a421a77c5cac8b141917833))

## 8.1.0 (skipped)

This version was skipped. Note that the 8.1.x-experimental line has diverged and should not be used.

## [8.0.3](https://github.com/protobufjs/protobuf.js/compare/protobufjs-v8.0.2...protobufjs-v8.0.3) (2026-04-27)


Expand Down
30 changes: 30 additions & 0 deletions cli/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,35 @@
# Changelog

## [2.2.0](https://github.com/protobufjs/protobuf.js/compare/protobufjs-cli-v2.0.3...protobufjs-cli-v2.2.0) (2026-05-09)


### Features

* **cli:** Add optional protoc-gen-pbjs plugin ([#2231](https://github.com/protobufjs/protobuf.js/issues/2231)) ([c9b6a2d](https://github.com/protobufjs/protobuf.js/commit/c9b6a2d2a6f81dd78812a6ce177fa7a5f9de885d))
* **cli:** Align json-module with static-module output ([#2227](https://github.com/protobufjs/protobuf.js/issues/2227)) ([a015091](https://github.com/protobufjs/protobuf.js/commit/a015091a5862bdae9eb213b6554ab7e5b36187cb))
* Roundtrip unknown fields ([#2209](https://github.com/protobufjs/protobuf.js/issues/2209)) ([76fa03c](https://github.com/protobufjs/protobuf.js/commit/76fa03c252542b607e4c81a4fe4db12aa1f948af))


### Bug Fixes

* Add eslint-disable default-case to generated files ([#2095](https://github.com/protobufjs/protobuf.js/issues/2095)) ([8723f3f](https://github.com/protobufjs/protobuf.js/commit/8723f3f4a1cea6409883fe77408083914ca054cd))
* Consistently handle scalar map keys ([#2186](https://github.com/protobufjs/protobuf.js/issues/2186)) ([29b1183](https://github.com/protobufjs/protobuf.js/commit/29b11834520bc4ab0bb377933e4efefbf95f93b2))
* Correct parsedOptions TypeScript types ([#2217](https://github.com/protobufjs/protobuf.js/issues/2217)) ([dbe8d77](https://github.com/protobufjs/protobuf.js/commit/dbe8d7775a46bebaf644461dce586fa29be242f6))
* Decode missing map message values as empty messages ([#2206](https://github.com/protobufjs/protobuf.js/issues/2206)) ([51c1a4f](https://github.com/protobufjs/protobuf.js/commit/51c1a4fd77169565bc6248f996f698ee396c90f0))
* Generate TypeScript class properties for extensions ([#2187](https://github.com/protobufjs/protobuf.js/issues/2187)) ([ec04bee](https://github.com/protobufjs/protobuf.js/commit/ec04bee4a1aada80083d504f0c879dee6e293799))
* Harden parser input handling ([#2240](https://github.com/protobufjs/protobuf.js/issues/2240)) ([53a27fc](https://github.com/protobufjs/protobuf.js/commit/53a27fc4617b300f7db98eb172846c4f0e307e7a))
* Improve Deno and Bun compatibility ([#2228](https://github.com/protobufjs/protobuf.js/issues/2228)) ([6034af8](https://github.com/protobufjs/protobuf.js/commit/6034af80f5fa27ae84d1a5bc7d799e09905367ce))
* Merge singular message fields while decoding ([#2195](https://github.com/protobufjs/protobuf.js/issues/2195)) ([14d9df7](https://github.com/protobufjs/protobuf.js/commit/14d9df796af789aca5ad7a54c67d9be8b84a818a))


### Performance Improvements

* Reduce generated code overhead ([#2212](https://github.com/protobufjs/protobuf.js/issues/2212)) ([45ec503](https://github.com/protobufjs/protobuf.js/commit/45ec503c299ea16523e990b8a50cad977ef93e6a))

## 2.1.0 (skipped)

This version was skipped.

## [2.0.3](https://github.com/protobufjs/protobuf.js/compare/protobufjs-cli-v2.0.2...protobufjs-cli-v2.0.3) (2026-04-28)


Expand Down
2 changes: 1 addition & 1 deletion cli/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion cli/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "protobufjs-cli",
"description": "Translates between file formats and generates static code as well as TypeScript definitions.",
"version": "2.0.3",
"version": "2.2.0",
"author": "Daniel Wirtz <dcode+protobufjs@dcode.io>",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "protobufjs",
"version": "8.0.3",
"version": "8.2.0",
"versionScheme": "~",
"description": "Protocol Buffers for JavaScript & TypeScript.",
"author": "Daniel Wirtz <dcode+protobufjs@dcode.io>",
Expand Down