protobufjs-cli
Advanced tools
+18
-0
| # 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": { |
+1
-0
@@ -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("};"); |
155845
0.69%3433
0.03%