Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

protobufjs-cli

Package Overview
Dependencies
Maintainers
3
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

protobufjs-cli - npm Package Compare versions

Comparing version
2.4.0
to
2.4.1
+18
-0
CHANGELOG.md
# Changelog
## [2.4.1](https://github.com/protobufjs/protobuf.js/compare/protobufjs-cli-v2.4.0...protobufjs-cli-v2.4.1) (2026-05-21)
### Bug Fixes
* Add no-mixed-operators eslint disable ([#2263](https://github.com/protobufjs/protobuf.js/issues/2263)) ([7d24d6a](https://github.com/protobufjs/protobuf.js/commit/7d24d6acb70d93d4cbc474132ee6b581e5162f8a))
* Preserve writer state in static encodeDelimited ([#2275](https://github.com/protobufjs/protobuf.js/issues/2275)) ([d28ec57](https://github.com/protobufjs/protobuf.js/commit/d28ec57e9eae7e1a67985ba76676c70534c42cab))
* Treat fixed64 as unsigned in converters ([#2265](https://github.com/protobufjs/protobuf.js/issues/2265)) ([d8a6983](https://github.com/protobufjs/protobuf.js/commit/d8a6983747150db0b0da11f85db78ffeed69c35a))
### Dependencies
* The following workspace dependencies were updated
* devDependencies
* protobufjs bumped from file:.. to 8.4.1
* peerDependencies
* protobufjs bumped from ^8.4.0 to ^8.4.1
## [2.4.0](https://github.com/protobufjs/protobuf.js/compare/protobufjs-cli-v2.3.0...protobufjs-cli-v2.4.0) (2026-05-18)

@@ -4,0 +22,0 @@

+2
-2
{
"name": "protobufjs-cli",
"description": "Translates between file formats and generates static code as well as TypeScript definitions.",
"version": "2.4.0",
"version": "2.4.1",
"author": "Daniel Wirtz <dcode+protobufjs@dcode.io>",

@@ -23,3 +23,3 @@ "repository": {

"peerDependencies": {
"protobufjs": ">=8.4.0 <9"
"protobufjs": "^8.4.1"
},

@@ -26,0 +26,0 @@ "dependencies": {

@@ -18,2 +18,3 @@ "use strict";

"no-magic-numbers",
"no-mixed-operators",
"no-prototype-builtins",

@@ -20,0 +21,0 @@ "no-redeclare",

@@ -637,3 +637,3 @@ "use strict";

+ JSON.stringify(field.typeDefault.unsigned)
+ ") : " + field.typeDefault.toNumber(field.type.charAt(0) === "u") + ";");
+ ") : " + field.typeDefault.toNumber(field.type === "uint64" || field.type === "fixed64") + ";");
else if (field.bytes) {

@@ -724,3 +724,3 @@ push(escapeName(type.name) + ".prototype" + prop + " = $util.newBuffer(" + JSON.stringify(Array.prototype.slice.call(field.typeDefault)) + ");");

++indent;
push("return this.encode(message, writer).ldelim();");
push("return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();");
--indent;

@@ -727,0 +727,0 @@ push("};");