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.2.0
to
2.2.1
+7
-0
CHANGELOG.md
# Changelog
## [2.2.1](https://github.com/protobufjs/protobuf.js/compare/protobufjs-cli-v2.2.0...protobufjs-cli-v2.2.1) (2026-05-13)
### Performance Improvements
* Slightly optimize generated code ([#2242](https://github.com/protobufjs/protobuf.js/issues/2242)) ([c41160c](https://github.com/protobufjs/protobuf.js/commit/c41160cda6a5f65b0960b194e7f32dd7e7d5ed49))
## [2.2.0](https://github.com/protobufjs/protobuf.js/compare/protobufjs-cli-v2.0.3...protobufjs-cli-v2.2.0) (2026-05-09)

@@ -4,0 +11,0 @@

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

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

"peerDependencies": {
"protobufjs": ">=8.1.0 <9"
"protobufjs": ">=8.2.1 <9"
},

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

@@ -257,7 +257,10 @@ "use strict";

};
// replace this.ctor with the actual ctor
// replace generated constructor alias with the actual ctor
if (
node.type === "MemberExpression"
&& node.object.type === "ThisExpression"
&& node.property.type === "Identifier" && node.property.name === "ctor"
node.type === "Identifier"
&& node.name === "C"
&& (
(parent.type === "NewExpression" && parent.callee === node)
|| (parent.type === "BinaryExpression" && parent.operator === "instanceof" && parent.right === node)
)
)

@@ -264,0 +267,0 @@ return {