From 44beb5449288fc8fbd9560ef235d83556e5fe905 Mon Sep 17 00:00:00 2001 From: Stephanie DiBenedetto Date: Mon, 17 Nov 2025 03:58:10 -0800 Subject: [PATCH 1/2] Allow protobuf edition 2024 There are no relevant code generation changes for Edition 2024. This change just bumps the supported range so that Edition 2024 files successfully parse. --- generator/js_generator.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generator/js_generator.h b/generator/js_generator.h index 60a5221..ea4b37f 100644 --- a/generator/js_generator.h +++ b/generator/js_generator.h @@ -155,7 +155,7 @@ class Generator : public CodeGenerator { } Edition GetMinimumEdition() const override { return Edition::EDITION_PROTO2; } - Edition GetMaximumEdition() const override { return Edition::EDITION_2023; } + Edition GetMaximumEdition() const override { return Edition::EDITION_2024; } private: void GenerateHeader(const GeneratorOptions& options, From d2e57a5962535ecef1d2ebc9b908f2e7b5e69abc Mon Sep 17 00:00:00 2001 From: Stephanie DiBenedetto Date: Mon, 17 Nov 2025 04:45:58 -0800 Subject: [PATCH 2/2] bump version 4.0.0 -> 4.0.1 This release will add edition 2024 support. --- MODULE.bazel | 2 +- conformance/package.json | 2 +- package.json | 2 +- protobuf_javascript_release.bzl | 2 +- protoc_plugin/package.json | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/MODULE.bazel b/MODULE.bazel index d196447..2576f46 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -1,4 +1,4 @@ -module(name = "protobuf_javascript", version = "4.0.0") +module(name = "protobuf_javascript", version = "4.0.1") bazel_dep(name = "protobuf", version = "33.0", repo_name = "com_google_protobuf") bazel_dep(name = "rules_pkg", version = "1.0.1") diff --git a/conformance/package.json b/conformance/package.json index cd2bf43..0c97d19 100644 --- a/conformance/package.json +++ b/conformance/package.json @@ -11,7 +11,7 @@ "LICENSE.md" ], "dependencies": { - "google-protobuf": "file:../google-protobuf-4.0.0.tgz" + "google-protobuf": "file:../google-protobuf-4.0.1.tgz" }, "author": "Google Protocol Buffers Team", "license": "BSD-3-Clause" diff --git a/package.json b/package.json index f5830fd..993aeeb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "google-protobuf", - "version": "4.0.0", + "version": "4.0.1", "description": "Protocol Buffers for JavaScript", "main": "google-protobuf.js", "files": [ diff --git a/protobuf_javascript_release.bzl b/protobuf_javascript_release.bzl index 0dbb505..4bcaaad 100644 --- a/protobuf_javascript_release.bzl +++ b/protobuf_javascript_release.bzl @@ -3,7 +3,7 @@ load("@bazel_tools//tools/cpp:toolchain_utils.bzl", "find_cpp_toolchain") load("@rules_pkg//pkg:providers.bzl", "PackageVariablesInfo") -_PROTOBUF_JAVASCRIPT_VERSION = "4.0.0" +_PROTOBUF_JAVASCRIPT_VERSION = "4.0.1" def _package_naming_impl(ctx): values = {} diff --git a/protoc_plugin/package.json b/protoc_plugin/package.json index 413a18b..38b91d5 100644 --- a/protoc_plugin/package.json +++ b/protoc_plugin/package.json @@ -1,6 +1,6 @@ { "name": "@protocolbuffers/protoc-gen-js", - "version": "4.0.0", + "version": "4.0.1", "description": "Standalone distribution of the protoc-gen-js plugin for Protocol Buffers", "author": "Google Protocol Buffers Team", "license": "BSD-3-Clause",