From 5f138752d19de654b10fa4250334e72efd57157c Mon Sep 17 00:00:00 2001 From: Stephanie DiBenedetto Date: Thu, 14 Aug 2025 16:25:07 -0700 Subject: [PATCH] Prepare 4.0.0 release Notable inclusions: * edition 2023 support * improved binary serialization/deserialization * global result now only depends on globalThis There are no material changes to our JS API. However, serialization/deserialization and strict dependence on globalThis may be significant in terms of supported clients and behavior. We generally expect the new binary handling code to be more reliable and conformant. --- .github/workflows/build.yml | 2 +- package-lock.json | 4 ++-- package.json | 2 +- protobuf_javascript_release.bzl | 2 +- yarn.lock | 15 +++++++++++++++ 5 files changed, 20 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6fb046d..d5bd243 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -6,7 +6,7 @@ permissions: read-all # update in build.yml and codeql.yml at same time env: - PROTOC_VERSION: "31.0" + PROTOC_VERSION: "32.0" jobs: build: diff --git a/package-lock.json b/package-lock.json index 088cd4a..6239081 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "google-protobuf", - "version": "3.21.5", + "version": "4.0.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "google-protobuf", - "version": "3.21.5", + "version": "4.0.0", "license": "(BSD-3-Clause AND Apache-2.0)", "devDependencies": { "glob": "~7.1.4", diff --git a/package.json b/package.json index c35f530..68344e1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "google-protobuf", - "version": "3.21.4", + "version": "4.0.0", "description": "Protocol Buffers for JavaScript", "main": "google-protobuf.js", "files": [ diff --git a/protobuf_javascript_release.bzl b/protobuf_javascript_release.bzl index 3f9090a..0dbb505 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 = "3.21.4" +_PROTOBUF_JAVASCRIPT_VERSION = "4.0.0" def _package_naming_impl(ctx): values = {} diff --git a/yarn.lock b/yarn.lock index 814ae3a..27858e0 100644 --- a/yarn.lock +++ b/yarn.lock @@ -341,6 +341,11 @@ fs.realpath@^1.0.0: resolved "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz" integrity sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw== +fsevents@~2.3.2: + version "2.3.3" + resolved "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz" + integrity sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw== + function-bind@^1.1.2: version "1.1.2" resolved "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz" @@ -436,6 +441,16 @@ google-closure-compiler-linux@^20230802.0.0: resolved "https://registry.npmjs.org/google-closure-compiler-linux/-/google-closure-compiler-linux-20230802.0.0.tgz" integrity sha512-F13U4iSXiWeGtHOFS25LVem1s6zI+pJvXVPVR7zSib5ppoUJ0JXnABJQezUR3FnpxmnkALG4oIGW0syH9zPLZA== +google-closure-compiler-osx@^20230802.0.0: + version "20230802.0.0" + resolved "https://registry.npmjs.org/google-closure-compiler-osx/-/google-closure-compiler-osx-20230802.0.0.tgz" + integrity sha512-ANAi/ux92Tt+Na7vFDLeK2hRzotjC5j+nxoPtE0OcuNcbjji5dREKoJxkq7r0YwRTCzAFZszK5ip/NPdTOdCEg== + +google-closure-compiler-windows@^20230802.0.0: + version "20230802.0.0" + resolved "https://registry.npmjs.org/google-closure-compiler-windows/-/google-closure-compiler-windows-20230802.0.0.tgz" + integrity sha512-ZQPujoNiiUyTGl8zEGR/0yAygWnbMtX/NQ/S/EHVgq5nmYkvDEVuiVbgpPAmO9lzBTq0hvUTRRATZbTU2ISxgA== + google-closure-compiler@20230802.0.0: version "20230802.0.0" resolved "https://registry.npmjs.org/google-closure-compiler/-/google-closure-compiler-20230802.0.0.tgz"