From 6a7ecedc948c223bddef0396c0aa2ea509aded20 Mon Sep 17 00:00:00 2001 From: Paul Johnston Date: Mon, 6 Oct 2025 14:16:43 -0600 Subject: [PATCH 01/40] Fix closure-js output --- BUILD.bazel | 95 +++++++++++++------------------------- binary/bytesource_alias.js | 9 ++++ binary/encoder.js | 9 ++++ binary/utils.js | 1 + generator/js_generator.cc | 3 +- internal_public.js | 2 +- message.js | 4 +- 7 files changed, 56 insertions(+), 67 deletions(-) create mode 100644 binary/bytesource_alias.js diff --git a/BUILD.bazel b/BUILD.bazel index 62355ce..f989623 100644 --- a/BUILD.bazel +++ b/BUILD.bazel @@ -2,10 +2,6 @@ # # See also code generation logic under generator/ -load("@rules_pkg//:mappings.bzl", "pkg_attributes", "pkg_files", "strip_prefix") -load("@rules_pkg//:pkg.bzl", "pkg_tar", "pkg_zip") -load("//:protobuf_javascript_release.bzl", "package_naming") - config_setting( name = "x64_x86_windows", values = {"cpu": "x64_x86_windows"}, @@ -31,65 +27,38 @@ config_setting( values = {"cpu": "darwin_x86_64"}, ) -package_naming( - name = "protobuf_javascript_pkg_naming", - platform = select({ - ":k8": "linux-x86_64", # currently the only supported build type in Github Actions - ":x64_x86_windows": "win32", - ":x64_windows": "win64", - ":darwin_arm64": "osx-aarch_64", - ":darwin_x86_64": "osx-x86_64", - "//conditions:default": "" # continues with current behavior when no --cpu is specified allowing existing internal builds to function - }) -) - -pkg_files( - name = "plugin_files", - srcs = ["//generator:protoc-gen-js"], - attributes = pkg_attributes(mode = "0555"), - prefix = "bin/", -) - -pkg_files( - name = "dist_files", - srcs = glob([ - "google/protobuf/*.js", - "google/protobuf/compiler/*.js" - ]) + [ - "google-protobuf.js", - "package.json", - "README.md", - "LICENSE.md", - "LICENSE-asserts.md", - ], - strip_prefix = strip_prefix.from_root(""), -) - -pkg_tar( - name = "dist_tar", - srcs = [ - ":dist_files", - ":plugin_files", - ], - extension = "tar.gz", - package_file_name = "protobuf-javascript-{version}-{platform}.tar.gz", - package_variables = ":protobuf_javascript_pkg_naming", -) - -pkg_zip( - name = "dist_zip", - srcs = [ - ":dist_files", - ":plugin_files", - ], - package_file_name = "protobuf-javascript-{version}-{platform}.zip", - package_variables = ":protobuf_javascript_pkg_naming", -) - filegroup( - name = "dist_all", + name = "javascript", srcs = [ - ":dist_tar", - ":dist_zip", - ] + "asserts.js", + "binary/any_field_type.js", + "binary/arith.js", + "binary/binary_constants.js", + "binary/bytesource.js", + "binary/bytesource_alias.js", + "binary/decoder.js", + "binary/decoder_alias.js", + "binary/encoder.js", + "binary/encoder_alias.js", + "binary/errors.js", + "binary/internal_buffer.js", + "binary/reader.js", + "binary/reader_alias.js", + "binary/repeated_field_type.js", + "binary/scalar_field_type.js", + "binary/test_utils.js", + "binary/utf8.js", + "binary/utils.js", + "binary/writer.js", + "binary/writer_alias.js", + "bytestring.js", + "debug.js", + "internal_bytes.js", + "internal_options.js", + "internal_public.js", + "map.js", + "message.js", + "unsafe_bytestring.js", + ], + visibility = ["//visibility:public"], ) diff --git a/binary/bytesource_alias.js b/binary/bytesource_alias.js new file mode 100644 index 0000000..2815ee5 --- /dev/null +++ b/binary/bytesource_alias.js @@ -0,0 +1,9 @@ +/** + * @fileoverview Legacy alias for the old namespace used by encoder.js + */ +goog.module('jspb.ByteSource'); +goog.module.declareLegacyNamespace(); + +const { ByteSource } = goog.require('jspb.binary.bytesource'); + +exports = ByteSource; diff --git a/binary/encoder.js b/binary/encoder.js index 216bd14..e1d787a 100755 --- a/binary/encoder.js +++ b/binary/encoder.js @@ -191,6 +191,15 @@ class BinaryEncoder { this.writeSplitVarint64(utils.getSplit64Low(), utils.getSplit64High()); } + /** + * Encodes a BigInt into its wire-format, zigzag-encoded varint + * representation and stores it in the buffer. + * @param {bigint} value The BigInt to convert. + */ + writeZigzagVarint64BigInt(value) { + this.writeZigzagVarint64String(value.toString()); + } + /** * Encodes a JavaScript decimal string into its wire-format, zigzag-encoded * varint representation and stores it in the buffer. Integers not diff --git a/binary/utils.js b/binary/utils.js index 6664fe2..088015a 100755 --- a/binary/utils.js +++ b/binary/utils.js @@ -12,6 +12,7 @@ goog.module.declareLegacyNamespace(); const BinaryConstants = goog.require('jspb.BinaryConstants'); const { assert } = goog.require('goog.asserts'); const { isBigIntAvailable } = goog.require('jspb.internal_options'); +const { ByteSource } = goog.require('jspb.binary.bytesource'); const { ByteString } = goog.require('jspb.bytestring'); const { decodeStringToUint8Array } = goog.require('goog.crypt.base64'); const { unsafeUint8ArrayFromByteString } = goog.require('jspb.unsafe_bytestring'); diff --git a/generator/js_generator.cc b/generator/js_generator.cc index a1619fa..7ba8bf0 100644 --- a/generator/js_generator.cc +++ b/generator/js_generator.cc @@ -1855,6 +1855,7 @@ void Generator::GenerateRequiresImpl(const GeneratorOptions& options, required->insert("jspb.internal.public_for_gencode"); required->insert("jspb.BinaryReader"); required->insert("jspb.BinaryWriter"); + required->insert("jspb.binary.bytesource"); } if (require_extension) { required->insert("jspb.ExtensionFieldBinaryInfo"); @@ -3016,7 +3017,7 @@ void Generator::GenerateClassDeserializeBinary(const GeneratorOptions& options, printer->Print( "/**\n" " * Deserializes binary data (in protobuf wire format).\n" - " * @param {jspb.ByteSource} bytes The bytes to deserialize.\n" + " * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.\n" " * @return {!$class$}\n" " */\n" "$class$.deserializeBinary = function(bytes) {\n" diff --git a/internal_public.js b/internal_public.js index cf4a61d..03d52f0 100644 --- a/internal_public.js +++ b/internal_public.js @@ -12,7 +12,7 @@ goog.module.declareLegacyNamespace(); const asserts = goog.require('goog.asserts'); const { BinaryReader } = goog.require('jspb.binary.reader'); const { BinaryWriter } = goog.requireType('jspb.binary.writer'); -const {Map: JspbMap} = goog.requireType('jspb.Map'); +const JspbMap = goog.requireType('jspb.Map'); /** * Write this Map field in wire format to a BinaryWriter, using the given diff --git a/message.js b/message.js index f4db81a..430cb52 100644 --- a/message.js +++ b/message.js @@ -1876,7 +1876,7 @@ jspb.Message.clone_ = function(obj) { // NOTE:redundant null check existing for NTI compatibility. // see b/70515949 clonedArray[i] = (typeof o == 'object') ? - jspb.Message.clone_(jspb.asserts.assert(o)) : + jspb.Message.clone_(/** @type {!Object} */(jspb.asserts.assert(o))) : o; } } @@ -1892,7 +1892,7 @@ jspb.Message.clone_ = function(obj) { // NOTE:redundant null check existing for NTI compatibility. // see b/70515949 clone[key] = (typeof o == 'object') ? - jspb.Message.clone_(jspb.asserts.assert(o)) : + jspb.Message.clone_(/** @type {!Object} */(jspb.asserts.assert(o))) : o; } } From ec3bc7f4430fb399610d57f62efc962557980581 Mon Sep 17 00:00:00 2001 From: Paul Johnston Date: Wed, 8 Oct 2025 15:31:14 -0600 Subject: [PATCH 02/40] Revert BUILD file change, remove bigint handling in writer.js --- BUILD.bazel | 95 ++++++++++++++++++++++++++++++++---------------- binary/writer.js | 8 ---- 2 files changed, 63 insertions(+), 40 deletions(-) diff --git a/BUILD.bazel b/BUILD.bazel index f989623..62355ce 100644 --- a/BUILD.bazel +++ b/BUILD.bazel @@ -2,6 +2,10 @@ # # See also code generation logic under generator/ +load("@rules_pkg//:mappings.bzl", "pkg_attributes", "pkg_files", "strip_prefix") +load("@rules_pkg//:pkg.bzl", "pkg_tar", "pkg_zip") +load("//:protobuf_javascript_release.bzl", "package_naming") + config_setting( name = "x64_x86_windows", values = {"cpu": "x64_x86_windows"}, @@ -27,38 +31,65 @@ config_setting( values = {"cpu": "darwin_x86_64"}, ) -filegroup( - name = "javascript", +package_naming( + name = "protobuf_javascript_pkg_naming", + platform = select({ + ":k8": "linux-x86_64", # currently the only supported build type in Github Actions + ":x64_x86_windows": "win32", + ":x64_windows": "win64", + ":darwin_arm64": "osx-aarch_64", + ":darwin_x86_64": "osx-x86_64", + "//conditions:default": "" # continues with current behavior when no --cpu is specified allowing existing internal builds to function + }) +) + +pkg_files( + name = "plugin_files", + srcs = ["//generator:protoc-gen-js"], + attributes = pkg_attributes(mode = "0555"), + prefix = "bin/", +) + +pkg_files( + name = "dist_files", + srcs = glob([ + "google/protobuf/*.js", + "google/protobuf/compiler/*.js" + ]) + [ + "google-protobuf.js", + "package.json", + "README.md", + "LICENSE.md", + "LICENSE-asserts.md", + ], + strip_prefix = strip_prefix.from_root(""), +) + +pkg_tar( + name = "dist_tar", srcs = [ - "asserts.js", - "binary/any_field_type.js", - "binary/arith.js", - "binary/binary_constants.js", - "binary/bytesource.js", - "binary/bytesource_alias.js", - "binary/decoder.js", - "binary/decoder_alias.js", - "binary/encoder.js", - "binary/encoder_alias.js", - "binary/errors.js", - "binary/internal_buffer.js", - "binary/reader.js", - "binary/reader_alias.js", - "binary/repeated_field_type.js", - "binary/scalar_field_type.js", - "binary/test_utils.js", - "binary/utf8.js", - "binary/utils.js", - "binary/writer.js", - "binary/writer_alias.js", - "bytestring.js", - "debug.js", - "internal_bytes.js", - "internal_options.js", - "internal_public.js", - "map.js", - "message.js", - "unsafe_bytestring.js", + ":dist_files", + ":plugin_files", ], - visibility = ["//visibility:public"], + extension = "tar.gz", + package_file_name = "protobuf-javascript-{version}-{platform}.tar.gz", + package_variables = ":protobuf_javascript_pkg_naming", +) + +pkg_zip( + name = "dist_zip", + srcs = [ + ":dist_files", + ":plugin_files", + ], + package_file_name = "protobuf-javascript-{version}-{platform}.zip", + package_variables = ":protobuf_javascript_pkg_naming", +) + +filegroup( + name = "dist_all", + srcs = [ + ":dist_tar", + ":dist_zip", + ] ) diff --git a/binary/writer.js b/binary/writer.js index e3874de..0a0302c 100755 --- a/binary/writer.js +++ b/binary/writer.js @@ -430,10 +430,6 @@ class BinaryWriter { this.encoder_.writeZigzagVarint64(/** @type {number} */(value)); break; - case 'bigint': - this.encoder_.writeZigzagVarint64BigInt(/** @type {bigint} */(value)); - break; - default: this.encoder_.writeZigzagVarint64String(/** @type {string} */(value)); break; @@ -1425,10 +1421,6 @@ class BinaryWriter { this.encoder_.writeZigzagVarint64(v); break; - case 'bigint': - this.encoder_.writeZigzagVarint64BigInt(/** @type {bigint} */(v)); - break; - default: this.encoder_.writeZigzagVarint64String(/** @type {string} */(v)); break; From 5c70f21bdb000c6e50ff0b61e1b5d453ae94e0ba Mon Sep 17 00:00:00 2001 From: Paul Johnston Date: Wed, 8 Oct 2025 15:32:22 -0600 Subject: [PATCH 03/40] remove writeZigzagVarint64BigInt --- binary/encoder.js | 9 --------- 1 file changed, 9 deletions(-) diff --git a/binary/encoder.js b/binary/encoder.js index e1d787a..4bc849f 100755 --- a/binary/encoder.js +++ b/binary/encoder.js @@ -190,15 +190,6 @@ class BinaryEncoder { utils.splitZigzag64(value); this.writeSplitVarint64(utils.getSplit64Low(), utils.getSplit64High()); } - - /** - * Encodes a BigInt into its wire-format, zigzag-encoded varint - * representation and stores it in the buffer. - * @param {bigint} value The BigInt to convert. - */ - writeZigzagVarint64BigInt(value) { - this.writeZigzagVarint64String(value.toString()); - } /** * Encodes a JavaScript decimal string into its wire-format, zigzag-encoded From e63a2793a7e99a33c6168b1686f0f2a62463abe2 Mon Sep 17 00:00:00 2001 From: Stephanie DiBenedetto Date: Sun, 28 Sep 2025 15:31:18 -0700 Subject: [PATCH 04/40] Add --version flag for protoc-gen-js This flag is intended to be used directly against protoc-gen-js (e.g. protoc-gen-js --version) as opposed to being passed to the plugin via protoc. Additionally, in order to make version updating a bit easier (and more consistent), we also script version management based on the top-level package.json. --- BUILD.bazel | 6 ++++-- MODULE.bazel.lock | 10 ++++++---- conformance/package.json | 2 +- generate-version-header.js | 14 ++++++++++++++ generator/BUILD.bazel | 9 +++++++++ generator/protoc-gen-js.cc | 9 +++++++++ package.json | 1 + update-bazel-versions.js | 28 ++++++++++++++++++++++++++++ 8 files changed, 72 insertions(+), 7 deletions(-) create mode 100644 generate-version-header.js create mode 100644 update-bazel-versions.js diff --git a/BUILD.bazel b/BUILD.bazel index 62355ce..6604d3a 100644 --- a/BUILD.bazel +++ b/BUILD.bazel @@ -1,4 +1,4 @@ -# Protobuf JS runtime +# Protobuf JavaScript runtime # # See also code generation logic under generator/ @@ -6,6 +6,8 @@ load("@rules_pkg//:mappings.bzl", "pkg_attributes", "pkg_files", "strip_prefix") load("@rules_pkg//:pkg.bzl", "pkg_tar", "pkg_zip") load("//:protobuf_javascript_release.bzl", "package_naming") +exports_files(["generate-version-header.js", "package.json"]) + config_setting( name = "x64_x86_windows", values = {"cpu": "x64_x86_windows"}, @@ -55,7 +57,7 @@ pkg_files( srcs = glob([ "google/protobuf/*.js", "google/protobuf/compiler/*.js" - ]) + [ + ], allow_empty = True) + [ "google-protobuf.js", "package.json", "README.md", diff --git a/MODULE.bazel.lock b/MODULE.bazel.lock index 86b517a..8a6d97e 100644 --- a/MODULE.bazel.lock +++ b/MODULE.bazel.lock @@ -15,7 +15,8 @@ "https://bcr.bazel.build/modules/abseil-cpp/20250512.1/source.json": "d725d73707d01bb46ab3ca59ba408b8e9bd336642ca77a2269d4bfb8bbfd413d", "https://bcr.bazel.build/modules/apple_support/1.11.1/MODULE.bazel": "1843d7cd8a58369a444fc6000e7304425fba600ff641592161d9f15b179fb896", "https://bcr.bazel.build/modules/apple_support/1.15.1/MODULE.bazel": "a0556fefca0b1bb2de8567b8827518f94db6a6e7e7d632b4c48dc5f865bc7c85", - "https://bcr.bazel.build/modules/apple_support/1.15.1/source.json": "517f2b77430084c541bc9be2db63fdcbb7102938c5f64c17ee60ffda2e5cf07b", + "https://bcr.bazel.build/modules/apple_support/1.23.1/MODULE.bazel": "53763fed456a968cf919b3240427cf3a9d5481ec5466abc9d5dc51bc70087442", + "https://bcr.bazel.build/modules/apple_support/1.23.1/source.json": "d888b44312eb0ad2c21a91d026753f330caa48a25c9b2102fae75eb2b0dcfdd2", "https://bcr.bazel.build/modules/bazel_features/1.1.1/MODULE.bazel": "27b8c79ef57efe08efccbd9dd6ef70d61b4798320b8d3c134fd571f78963dbcd", "https://bcr.bazel.build/modules/bazel_features/1.11.0/MODULE.bazel": "f9382337dd5a474c3b7d334c2f83e50b6eaedc284253334cf823044a26de03e8", "https://bcr.bazel.build/modules/bazel_features/1.15.0/MODULE.bazel": "d38ff6e517149dc509406aca0db3ad1efdd890a85e049585b7234d04238e2a4d", @@ -24,6 +25,7 @@ "https://bcr.bazel.build/modules/bazel_features/1.19.0/MODULE.bazel": "59adcdf28230d220f0067b1f435b8537dd033bfff8db21335ef9217919c7fb58", "https://bcr.bazel.build/modules/bazel_features/1.21.0/MODULE.bazel": "675642261665d8eea09989aa3b8afb5c37627f1be178382c320d1b46afba5e3b", "https://bcr.bazel.build/modules/bazel_features/1.23.0/MODULE.bazel": "fd1ac84bc4e97a5a0816b7fd7d4d4f6d837b0047cf4cbd81652d616af3a6591a", + "https://bcr.bazel.build/modules/bazel_features/1.27.0/MODULE.bazel": "621eeee06c4458a9121d1f104efb80f39d34deff4984e778359c60eaf1a8cb65", "https://bcr.bazel.build/modules/bazel_features/1.3.0/MODULE.bazel": "cdcafe83ec318cda34e02948e81d790aab8df7a929cec6f6969f13a489ccecd9", "https://bcr.bazel.build/modules/bazel_features/1.30.0/MODULE.bazel": "a14b62d05969a293b80257e72e597c2da7f717e1e69fa8b339703ed6731bec87", "https://bcr.bazel.build/modules/bazel_features/1.30.0/source.json": "b07e17f067fe4f69f90b03b36ef1e08fe0d1f3cac254c1241a1818773e3423bc", @@ -111,8 +113,8 @@ "https://bcr.bazel.build/modules/rules_java/7.2.0/MODULE.bazel": "06c0334c9be61e6cef2c8c84a7800cef502063269a5af25ceb100b192453d4ab", "https://bcr.bazel.build/modules/rules_java/7.3.2/MODULE.bazel": "50dece891cfdf1741ea230d001aa9c14398062f2b7c066470accace78e412bc2", "https://bcr.bazel.build/modules/rules_java/7.6.1/MODULE.bazel": "2f14b7e8a1aa2f67ae92bc69d1ec0fa8d9f827c4e17ff5e5f02e91caa3b2d0fe", - "https://bcr.bazel.build/modules/rules_java/8.12.0/MODULE.bazel": "8e6590b961f2defdfc2811c089c75716cb2f06c8a4edeb9a8d85eaa64ee2a761", - "https://bcr.bazel.build/modules/rules_java/8.12.0/source.json": "cbd5d55d9d38d4008a7d00bee5b5a5a4b6031fcd4a56515c9accbcd42c7be2ba", + "https://bcr.bazel.build/modules/rules_java/8.14.0/MODULE.bazel": "717717ed40cc69994596a45aec6ea78135ea434b8402fb91b009b9151dd65615", + "https://bcr.bazel.build/modules/rules_java/8.14.0/source.json": "8a88c4ca9e8759da53cddc88123880565c520503321e2566b4e33d0287a3d4bc", "https://bcr.bazel.build/modules/rules_java/8.3.2/MODULE.bazel": "7336d5511ad5af0b8615fdc7477535a2e4e723a357b6713af439fe8cf0195017", "https://bcr.bazel.build/modules/rules_java/8.5.1/MODULE.bazel": "d8a9e38cc5228881f7055a6079f6f7821a073df3744d441978e7a43e20226939", "https://bcr.bazel.build/modules/rules_java/8.6.1/MODULE.bazel": "f4808e2ab5b0197f094cabce9f4b006a27766beb6a9975931da07099560ca9c2", @@ -207,7 +209,7 @@ }, "@@rules_kotlin+//src/main/starlark/core/repositories:bzlmod_setup.bzl%rules_kotlin_extensions": { "general": { - "bzlTransitiveDigest": "hUTp2w+RUVdL7ma5esCXZJAFnX7vLbVfLd7FwnQI6bU=", + "bzlTransitiveDigest": "OlvsB0HsvxbR8ZN+J9Vf00X/+WVz/Y/5Xrq2LgcVfdo=", "usagesDigest": "QI2z8ZUR+mqtbwsf2fLqYdJAkPOHdOV+tF2yVAUgRzw=", "recordedFileInputs": {}, "recordedDirentsInputs": {}, diff --git a/conformance/package.json b/conformance/package.json index 5a68739..cd2bf43 100644 --- a/conformance/package.json +++ b/conformance/package.json @@ -11,7 +11,7 @@ "LICENSE.md" ], "dependencies": { - "google-protobuf": "file:../google-protobuf-3.21.4.tgz" + "google-protobuf": "file:../google-protobuf-4.0.0.tgz" }, "author": "Google Protocol Buffers Team", "license": "BSD-3-Clause" diff --git a/generate-version-header.js b/generate-version-header.js new file mode 100644 index 0000000..c21ca67 --- /dev/null +++ b/generate-version-header.js @@ -0,0 +1,14 @@ +const fs = require('fs'); +const path = require('path'); + +const version = require('./package.json').version; +const headerContent = `// Generated by generate-version-header.js +#ifndef PROTOBUF_JAVASCRIPT_VERSION_H__ +#define PROTOBUF_JAVASCRIPT_VERSION_H__ + +const char* const kProtobufJavascriptVersion = "${version}"; + +#endif // PROTOBUF_JAVASCRIPT_VERSION_H__ +`; + +fs.writeFileSync(process.argv[2], headerContent); diff --git a/generator/BUILD.bazel b/generator/BUILD.bazel index b2df875..ac7756d 100644 --- a/generator/BUILD.bazel +++ b/generator/BUILD.bazel @@ -1,3 +1,11 @@ +genrule( + name = "generate_version_header", + srcs = ["//:package.json"], + outs = ["version.h"], + cmd = "node $(location //:generate-version-header.js) $(OUTS)", + tools = ["//:generate-version-header.js"], +) + cc_binary( name = "protoc-gen-js", srcs = [ @@ -6,6 +14,7 @@ cc_binary( "protoc-gen-js.cc", "well_known_types_embed.cc", "well_known_types_embed.h", + ":version.h", ], visibility = ["//visibility:public"], deps = [ diff --git a/generator/protoc-gen-js.cc b/generator/protoc-gen-js.cc index 731406e..e1b406a 100644 --- a/generator/protoc-gen-js.cc +++ b/generator/protoc-gen-js.cc @@ -29,10 +29,19 @@ // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #include +#include +#include #include "generator/js_generator.h" +#include "generator/version.h" int main(int argc, char** argv) { + for (int i = 1; i < argc; ++i) { + if (std::string(argv[i]) == "--version") { + std::cout << "protoc-gen-js version " << kProtobufJavascriptVersion << std::endl; + return 0; + } + } std::unique_ptr generator( new google::protobuf::compiler::js::Generator()); return google::protobuf::compiler::PluginMain(argc, argv, generator.get()); diff --git a/package.json b/package.json index 68344e1..f5830fd 100644 --- a/package.json +++ b/package.json @@ -21,6 +21,7 @@ "jasmine": "~3.5.0" }, "scripts": { + "prebuild": "node update-bazel-versions.js", "build": "node ./node_modules/gulp/bin/gulp.js dist", "test": "node ./node_modules/gulp/bin/gulp.js test", "clean": "node ./node_modules/gulp/bin/gulp.js clean" diff --git a/update-bazel-versions.js b/update-bazel-versions.js new file mode 100644 index 0000000..9e8ee79 --- /dev/null +++ b/update-bazel-versions.js @@ -0,0 +1,28 @@ +const fs = require('fs'); +const path = require('path'); + +const version = require('./package.json').version; + +// Update MODULE.bazel +const moduleBazelPath = path.join(__dirname, 'MODULE.bazel'); +let moduleBazelContent = fs.readFileSync(moduleBazelPath, 'utf8'); +moduleBazelContent = moduleBazelContent.replace(/version = ".*"/, `version = "${version}"`); +fs.writeFileSync(moduleBazelPath, moduleBazelContent); + +// Update protobuf_javascript_release.bzl +const releaseBzlPath = path.join(__dirname, 'protobuf_javascript_release.bzl'); +let releaseBzlContent = fs.readFileSync(releaseBzlPath, 'utf8'); +releaseBzlContent = releaseBzlContent.replace(/_PROTOBUF_JAVASCRIPT_VERSION = ".*"/, `_PROTOBUF_JAVASCRIPT_VERSION = "${version}"`); +fs.writeFileSync(releaseBzlPath, releaseBzlContent); + +// Update conformance/package.json +const conformancePackageJsonPath = + path.join(__dirname, 'conformance', 'package.json'); +let conformancePackageJsonContent = + fs.readFileSync(conformancePackageJsonPath, 'utf8'); +const conformancePackageJson = JSON.parse(conformancePackageJsonContent); +conformancePackageJson.dependencies['google-protobuf'] = + `file:../google-protobuf-${version}.tgz`; +fs.writeFileSync( + conformancePackageJsonPath, + JSON.stringify(conformancePackageJson, null, 2) + '\n'); From bc95baf885b2caf948eeee154068e83da1604773 Mon Sep 17 00:00:00 2001 From: Stephanie DiBenedetto Date: Fri, 10 Oct 2025 14:39:59 -0700 Subject: [PATCH 05/40] add standlone protoc-gen-js npm package (@protocolbuffers/protoc-gen-js) for convenience --- protoc_plugin/.gitignore | 3 + protoc_plugin/LICENSE.md | 29 +++++++ protoc_plugin/bin/.gitkeep | 0 protoc_plugin/cli.js | 8 ++ protoc_plugin/download-protoc-gen-js.js | 111 ++++++++++++++++++++++++ protoc_plugin/index.js | 5 ++ protoc_plugin/package-lock.json | 32 +++++++ protoc_plugin/package.json | 25 ++++++ 8 files changed, 213 insertions(+) create mode 100644 protoc_plugin/.gitignore create mode 100644 protoc_plugin/LICENSE.md create mode 100644 protoc_plugin/bin/.gitkeep create mode 100644 protoc_plugin/cli.js create mode 100644 protoc_plugin/download-protoc-gen-js.js create mode 100644 protoc_plugin/index.js create mode 100644 protoc_plugin/package-lock.json create mode 100644 protoc_plugin/package.json diff --git a/protoc_plugin/.gitignore b/protoc_plugin/.gitignore new file mode 100644 index 0000000..19dc4e7 --- /dev/null +++ b/protoc_plugin/.gitignore @@ -0,0 +1,3 @@ +node_modules/ +bin/protoc-gen-js* +protocolbuffers-protoc-gen-js-*.tgz diff --git a/protoc_plugin/LICENSE.md b/protoc_plugin/LICENSE.md new file mode 100644 index 0000000..2e5a388 --- /dev/null +++ b/protoc_plugin/LICENSE.md @@ -0,0 +1,29 @@ +BSD 3-Clause License + +Copyright (c) 2025, Google Inc. +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +3. Neither the name of the copyright holder nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/protoc_plugin/bin/.gitkeep b/protoc_plugin/bin/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/protoc_plugin/cli.js b/protoc_plugin/cli.js new file mode 100644 index 0000000..004ec8e --- /dev/null +++ b/protoc_plugin/cli.js @@ -0,0 +1,8 @@ +#!/usr/bin/env node + +const child_process = require("child_process"); +const PLUGIN = require("./"); + +child_process + .spawn(PLUGIN, process.argv.slice(2), { stdio: "inherit" }) + .on("exit", (code) => process.exit(code)); diff --git a/protoc_plugin/download-protoc-gen-js.js b/protoc_plugin/download-protoc-gen-js.js new file mode 100644 index 0000000..2bb89cf --- /dev/null +++ b/protoc_plugin/download-protoc-gen-js.js @@ -0,0 +1,111 @@ +const fs = require('fs'); +const os = require('os'); +const path = require('path'); +const AdmZip = require('adm-zip'); + +const VERSION = '4.0.0'; +const BIN_DIR = path.join(__dirname, 'bin'); + +function getZipFilename(currentSystem) { + return `protobuf-javascript-${VERSION}-${currentSystem}.zip`; +} + +function getDownloadUrl(currentSystem) { + return `https://github.com/protocolbuffers/protobuf-javascript/releases/download/v${VERSION}/${getZipFilename(currentSystem)}`; +} + +function unzip(zipFile, destDir, binaryName) { + return new Promise((resolve, reject) => { + const zip = new AdmZip(zipFile); + + // Paths may be inconsistent between platforms. On MacOS and Windows, + // the path seems to include the archive name while it doesn't on linux. + // There's only one thing named protoc-gen-js(.exe), so just look for + // that instead of trying to get the exact "entryName". + const entries = zip.getEntries(); + let found = false; + for (const entry of entries) { + if (entry.name === binaryName) { + zip.extractEntryTo(entry, destDir, false, true); + found = true; + break; + } + } + + if (found) { + resolve(); + } else { + reject(new Error(`Binary ${binaryName} not found in zip file ${zipFile}`)); + } + }); +} + +function getCurrentSystem() { + const platform = os.platform(); + const arch = os.arch(); + + if (platform === 'darwin') { + if (arch === 'x64') { + return 'osx-x86_64'; + } + if (arch === 'arm64') { + return 'osx-aarch_64'; + } + } else if (platform === 'win32' && arch === 'x64') { + return 'win64'; + } else if (platform === 'linux') { + if (arch === 'x64') { + return 'linux-x86_64'; + } + if (arch === 'arm64') { + return 'linux-aarch_64'; + } + if (arch === 's390x') { + return 'linux-s390_64'; + } + } + + console.error(`Unsupported platform: ${platform} ${arch}`); + process.exit(1); +} + +async function main() { + try { + await fs.promises.mkdir(BIN_DIR, { recursive: true }); + const currentSystem = getCurrentSystem(); + + + const downloadUrl = getDownloadUrl(currentSystem); + const zipFile = path.join(__dirname, getZipFilename(currentSystem)); + const isWindows = os.platform() === 'win32'; + const binaryName = isWindows ? 'protoc-gen-js.exe' : 'protoc-gen-js'; + const binaryPath = path.join(BIN_DIR, binaryName); + + console.log(`Downloading ${downloadUrl}`); + const response = await fetch(downloadUrl); + if (!response.ok) { + throw new Error( + `Failed to download: ${response.status} ${response.statusText}` + ); + } + const buffer = await response.arrayBuffer(); + await fs.promises.writeFile(zipFile, Buffer.from(buffer)); + + console.log('Unzipping...'); + await unzip(zipFile, BIN_DIR, binaryName); + + await fs.promises.unlink(zipFile); + + console.log(`Making ${binaryPath} executable...`); + if (!isWindows) { + await fs.promises.chmod(binaryPath, 0o755); + } + + console.log('Done!'); + } catch (err) { + console.error(`Failed to install protoc-gen-js: ${err.message}`); + process.exit(1); + } +} + +main(); \ No newline at end of file diff --git a/protoc_plugin/index.js b/protoc_plugin/index.js new file mode 100644 index 0000000..663fbb6 --- /dev/null +++ b/protoc_plugin/index.js @@ -0,0 +1,5 @@ +const path = require("path"); +const BIN_DIR = path.resolve(__dirname, "bin"); +const EXT = process.platform === "win32" ? ".exe" : ""; + +module.exports = path.resolve(BIN_DIR, "protoc-gen-js" + EXT); diff --git a/protoc_plugin/package-lock.json b/protoc_plugin/package-lock.json new file mode 100644 index 0000000..22d820d --- /dev/null +++ b/protoc_plugin/package-lock.json @@ -0,0 +1,32 @@ +{ + "name": "@protocolbuffers/protoc-gen-js", + "version": "4.0.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "@protocolbuffers/protoc-gen-js", + "version": "4.0.0", + "hasInstallScript": true, + "license": "BSD-3-Clause", + "dependencies": { + "adm-zip": "^0.5.16" + }, + "bin": { + "protoc-gen-js": "cli.js" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/adm-zip": { + "version": "0.5.16", + "resolved": "https://registry.npmjs.org/adm-zip/-/adm-zip-0.5.16.tgz", + "integrity": "sha512-TGw5yVi4saajsSEgz25grObGHEUaDrniwvA2qwSC060KfqGPdglhvPMA2lPIoxs3PQIItj2iag35fONcQqgUaQ==", + "license": "MIT", + "engines": { + "node": ">=12.0" + } + } + } +} diff --git a/protoc_plugin/package.json b/protoc_plugin/package.json new file mode 100644 index 0000000..460e538 --- /dev/null +++ b/protoc_plugin/package.json @@ -0,0 +1,25 @@ +{ + "name": "@protocolbuffers/protoc-gen-js", + "version": "4.0.0", + "description": "Standalone distribution of the protoc-gen-js plugin for Protocol Buffers", + "author": "Google Protocol Buffers Team", + "license": "BSD-3-Clause", + "repository": { + "type": "git", + "url": "https://github.com/protocolbuffers/protobuf-javascript.git" + }, + "type": "commonjs", + "main": "index.js", + "bin": { + "protoc-gen-js": "cli.js" + }, + "scripts": { + "postinstall": "node download-protoc-gen-js.js" + }, + "dependencies": { + "adm-zip": "^0.5.16" + }, + "engines": { + "node": ">=18.0.0" + } +} From 4a683cdb0f40256df08eb89546be303cc5a1b8ea Mon Sep 17 00:00:00 2001 From: Stephanie DiBenedetto Date: Mon, 13 Oct 2025 17:29:34 -0700 Subject: [PATCH 06/40] protoc_plugin: normalize git repo URL with npm pkg fix --- protoc_plugin/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protoc_plugin/package.json b/protoc_plugin/package.json index 460e538..413a18b 100644 --- a/protoc_plugin/package.json +++ b/protoc_plugin/package.json @@ -6,7 +6,7 @@ "license": "BSD-3-Clause", "repository": { "type": "git", - "url": "https://github.com/protocolbuffers/protobuf-javascript.git" + "url": "git+https://github.com/protocolbuffers/protobuf-javascript.git" }, "type": "commonjs", "main": "index.js", From 373d074155c9fe849e46cc05a92acc69441d16d9 Mon Sep 17 00:00:00 2001 From: Stephanie DiBenedetto Date: Fri, 17 Oct 2025 08:53:07 -0700 Subject: [PATCH 07/40] bump protobuf to v33 --- .github/workflows/build.yml | 2 +- MODULE.bazel | 2 +- MODULE.bazel.lock | 55 ++++++++++--------------------------- 3 files changed, 17 insertions(+), 42 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 045bfca..4cf1caf 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: "32.0" + PROTOC_VERSION: "33.0" jobs: build: diff --git a/MODULE.bazel b/MODULE.bazel index d120d61..d196447 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -1,5 +1,5 @@ module(name = "protobuf_javascript", version = "4.0.0") -bazel_dep(name = "protobuf", version = "32.0", repo_name = "com_google_protobuf") +bazel_dep(name = "protobuf", version = "33.0", repo_name = "com_google_protobuf") bazel_dep(name = "rules_pkg", version = "1.0.1") bazel_dep(name = "abseil-cpp", version = "20250512.1") diff --git a/MODULE.bazel.lock b/MODULE.bazel.lock index 8a6d97e..c7f541f 100644 --- a/MODULE.bazel.lock +++ b/MODULE.bazel.lock @@ -24,11 +24,11 @@ "https://bcr.bazel.build/modules/bazel_features/1.18.0/MODULE.bazel": "1be0ae2557ab3a72a57aeb31b29be347bcdc5d2b1eb1e70f39e3851a7e97041a", "https://bcr.bazel.build/modules/bazel_features/1.19.0/MODULE.bazel": "59adcdf28230d220f0067b1f435b8537dd033bfff8db21335ef9217919c7fb58", "https://bcr.bazel.build/modules/bazel_features/1.21.0/MODULE.bazel": "675642261665d8eea09989aa3b8afb5c37627f1be178382c320d1b46afba5e3b", - "https://bcr.bazel.build/modules/bazel_features/1.23.0/MODULE.bazel": "fd1ac84bc4e97a5a0816b7fd7d4d4f6d837b0047cf4cbd81652d616af3a6591a", "https://bcr.bazel.build/modules/bazel_features/1.27.0/MODULE.bazel": "621eeee06c4458a9121d1f104efb80f39d34deff4984e778359c60eaf1a8cb65", "https://bcr.bazel.build/modules/bazel_features/1.3.0/MODULE.bazel": "cdcafe83ec318cda34e02948e81d790aab8df7a929cec6f6969f13a489ccecd9", "https://bcr.bazel.build/modules/bazel_features/1.30.0/MODULE.bazel": "a14b62d05969a293b80257e72e597c2da7f717e1e69fa8b339703ed6731bec87", - "https://bcr.bazel.build/modules/bazel_features/1.30.0/source.json": "b07e17f067fe4f69f90b03b36ef1e08fe0d1f3cac254c1241a1818773e3423bc", + "https://bcr.bazel.build/modules/bazel_features/1.33.0/MODULE.bazel": "8b8dc9d2a4c88609409c3191165bccec0e4cb044cd7a72ccbe826583303459f6", + "https://bcr.bazel.build/modules/bazel_features/1.33.0/source.json": "13617db3930328c2cd2807a0f13d52ca870ac05f96db9668655113265147b2a6", "https://bcr.bazel.build/modules/bazel_features/1.4.1/MODULE.bazel": "e45b6bb2350aff3e442ae1111c555e27eac1d915e77775f6fdc4b351b758b5d7", "https://bcr.bazel.build/modules/bazel_features/1.9.1/MODULE.bazel": "8f679097876a9b609ad1f60249c49d68bfab783dd9be012faf9d82547b14815a", "https://bcr.bazel.build/modules/bazel_skylib/1.0.3/MODULE.bazel": "bcb0fd896384802d1ad283b4e4eb4d718eebd8cb820b0a2c3a347fb971afd9d8", @@ -42,7 +42,8 @@ "https://bcr.bazel.build/modules/bazel_skylib/1.6.1/MODULE.bazel": "8fdee2dbaace6c252131c00e1de4b165dc65af02ea278476187765e1a617b917", "https://bcr.bazel.build/modules/bazel_skylib/1.7.0/MODULE.bazel": "0db596f4563de7938de764cc8deeabec291f55e8ec15299718b93c4423e9796d", "https://bcr.bazel.build/modules/bazel_skylib/1.7.1/MODULE.bazel": "3120d80c5861aa616222ec015332e5f8d3171e062e3e804a2a0253e1be26e59b", - "https://bcr.bazel.build/modules/bazel_skylib/1.7.1/source.json": "f121b43eeefc7c29efbd51b83d08631e2347297c95aac9764a701f2a6a2bb953", + "https://bcr.bazel.build/modules/bazel_skylib/1.8.1/MODULE.bazel": "88ade7293becda963e0e3ea33e7d54d3425127e0a326e0d17da085a5f1f03ff6", + "https://bcr.bazel.build/modules/bazel_skylib/1.8.1/source.json": "7ebaefba0b03efe59cac88ed5bbc67bcf59a3eff33af937345ede2a38b2d368a", "https://bcr.bazel.build/modules/buildozer/7.1.2/MODULE.bazel": "2e8dd40ede9c454042645fd8d8d0cd1527966aa5c919de86661e62953cd73d84", "https://bcr.bazel.build/modules/buildozer/7.1.2/source.json": "c9028a501d2db85793a6996205c8de120944f50a0d570438fcae0457a5f9d1f8", "https://bcr.bazel.build/modules/google_benchmark/1.8.2/MODULE.bazel": "a70cf1bba851000ba93b58ae2f6d76490a9feb74192e57ab8e8ff13c34ec50cb", @@ -75,8 +76,8 @@ "https://bcr.bazel.build/modules/protobuf/29.0/MODULE.bazel": "319dc8bf4c679ff87e71b1ccfb5a6e90a6dbc4693501d471f48662ac46d04e4e", "https://bcr.bazel.build/modules/protobuf/29.1/MODULE.bazel": "557c3457560ff49e122ed76c0bc3397a64af9574691cb8201b4e46d4ab2ecb95", "https://bcr.bazel.build/modules/protobuf/3.19.0/MODULE.bazel": "6b5fbb433f760a99a22b18b6850ed5784ef0e9928a72668b66e4d7ccd47db9b0", - "https://bcr.bazel.build/modules/protobuf/32.0/MODULE.bazel": "0741cf24f8e1185286578069060e905ed67d68eef5990bfa3dea3fc1afba14c7", - "https://bcr.bazel.build/modules/protobuf/32.0/source.json": "1e278267d3642ab361dc460cc1f2d8e607e8292b9b3f799a47181a3acf4f3294", + "https://bcr.bazel.build/modules/protobuf/33.0/MODULE.bazel": "c5270efb4aad37a2f893536076518793f409ea7df07a06df995d848d1690f21c", + "https://bcr.bazel.build/modules/protobuf/33.0/source.json": "cd7ac80ad863190b9151281a85acc11d77b5bde2ba56443a7215da2d4ace6da3", "https://bcr.bazel.build/modules/pybind11_bazel/2.11.1/MODULE.bazel": "88af1c246226d87e65be78ed49ecd1e6f5e98648558c14ce99176da041dc378e", "https://bcr.bazel.build/modules/pybind11_bazel/2.12.0/MODULE.bazel": "e6f4c20442eaa7c90d7190d8dc539d0ab422f95c65a57cc59562170c58ae3d34", "https://bcr.bazel.build/modules/pybind11_bazel/2.12.0/source.json": "6900fdc8a9e95866b8c0d4ad4aba4d4236317b5c1cd04c502df3f0d33afed680", @@ -151,8 +152,8 @@ "https://bcr.bazel.build/modules/rules_python/0.33.2/MODULE.bazel": "3e036c4ad8d804a4dad897d333d8dce200d943df4827cb849840055be8d2e937", "https://bcr.bazel.build/modules/rules_python/0.4.0/MODULE.bazel": "9208ee05fd48bf09ac60ed269791cf17fb343db56c8226a720fbb1cdf467166c", "https://bcr.bazel.build/modules/rules_python/0.40.0/MODULE.bazel": "9d1a3cd88ed7d8e39583d9ffe56ae8a244f67783ae89b60caafc9f5cf318ada7", - "https://bcr.bazel.build/modules/rules_python/1.4.1/MODULE.bazel": "8991ad45bdc25018301d6b7e1d3626afc3c8af8aaf4bc04f23d0b99c938b73a6", - "https://bcr.bazel.build/modules/rules_python/1.4.1/source.json": "8ec8c90c70ccacc4de8ca1b97f599e756fb59173e898ee08b733006650057c07", + "https://bcr.bazel.build/modules/rules_python/1.6.0/MODULE.bazel": "7e04ad8f8d5bea40451cf80b1bd8262552aa73f841415d20db96b7241bd027d8", + "https://bcr.bazel.build/modules/rules_python/1.6.0/source.json": "e980f654cf66ec4928672f41fc66c4102b5ea54286acf4aecd23256c84211be6", "https://bcr.bazel.build/modules/rules_shell/0.2.0/MODULE.bazel": "fda8a652ab3c7d8fee214de05e7a9916d8b28082234e8d2c0094505c5268ed3c", "https://bcr.bazel.build/modules/rules_shell/0.3.0/MODULE.bazel": "de4402cd12f4cc8fda2354fce179fdb068c0b9ca1ec2d2b17b3e21b24c1a937b", "https://bcr.bazel.build/modules/rules_shell/0.3.0/source.json": "c55ed591aa5009401ddf80ded9762ac32c358d2517ee7820be981e2de9756cf3", @@ -176,37 +177,6 @@ }, "selectedYankedVersions": {}, "moduleExtensions": { - "@@apple_support+//crosstool:setup.bzl%apple_cc_configure_extension": { - "general": { - "bzlTransitiveDigest": "E970FlMbwpgJPdPUQzatKh6BMfeE0ZpWABvwshh7Tmg=", - "usagesDigest": "EJfdUgbJdIRboG70S9dz8HhGVkL2/s3qFQ9xht8y2Rs=", - "recordedFileInputs": {}, - "recordedDirentsInputs": {}, - "envVariables": {}, - "generatedRepoSpecs": { - "local_config_apple_cc_toolchains": { - "repoRuleId": "@@apple_support+//crosstool:setup.bzl%_apple_cc_autoconf_toolchains", - "attributes": {} - }, - "local_config_apple_cc": { - "repoRuleId": "@@apple_support+//crosstool:setup.bzl%_apple_cc_autoconf", - "attributes": {} - } - }, - "recordedRepoMappingEntries": [ - [ - "apple_support+", - "bazel_tools", - "bazel_tools" - ], - [ - "bazel_tools", - "rules_cc", - "rules_cc+" - ] - ] - } - }, "@@rules_kotlin+//src/main/starlark/core/repositories:bzlmod_setup.bzl%rules_kotlin_extensions": { "general": { "bzlTransitiveDigest": "OlvsB0HsvxbR8ZN+J9Vf00X/+WVz/Y/5Xrq2LgcVfdo=", @@ -273,8 +243,8 @@ }, "@@rules_python+//python/uv:uv.bzl%uv": { "general": { - "bzlTransitiveDigest": "Xpqjnjzy6zZ90Es9Wa888ZLHhn7IsNGbph/e6qoxzw8=", - "usagesDigest": "4JapxcpS0mL3524k0TZJffAtVyuRjDHZvN9kBRxxF1U=", + "bzlTransitiveDigest": "PmZM/pIkZKEDDL68TohlKJrWPYKL5VwUw3MA7kmm6fk=", + "usagesDigest": "p80sy6cYQuWxx5jhV3fOTu+N9EyIUFG9+F7UC/nhXic=", "recordedFileInputs": {}, "recordedDirentsInputs": {}, "envVariables": {}, @@ -299,6 +269,11 @@ } }, "recordedRepoMappingEntries": [ + [ + "rules_python+", + "bazel_tools", + "bazel_tools" + ], [ "rules_python+", "platforms", From 25fe480461c75d74a4c1cd92963b73c90def2987 Mon Sep 17 00:00:00 2001 From: Stephanie DiBenedetto Date: Thu, 23 Oct 2025 21:17:50 -0700 Subject: [PATCH 08/40] Update READMEs and add keywords for npm --- README.md | 3 ++- protoc_plugin/README.md | 25 +++++++++++++++++++++++++ protoc_plugin/package.json | 5 +++-- 3 files changed, 30 insertions(+), 3 deletions(-) create mode 100644 protoc_plugin/README.md diff --git a/README.md b/README.md index 6b83397..2e1aec1 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,8 @@ To use Protocol Buffers with JavaScript, you need two main components: Project Status === -This project is currently in a working state. +As of v4.0.0, you can directly install the `protoc-gen-js` plugin from npm as +[@protocolbuffers/protoc-gen-js](https://www.npmjs.com/package/@protocolbuffers/protoc-gen-js). **Support Status** diff --git a/protoc_plugin/README.md b/protoc_plugin/README.md new file mode 100644 index 0000000..8f30ac7 --- /dev/null +++ b/protoc_plugin/README.md @@ -0,0 +1,25 @@ +This package is an official distribution of protoc-gen-js plugin generating +javascript protobuf messages with protoc. + +Aside from this package, you will need: + +1. [protoc](https://github.com/protocolbuffers/protobuf/releases), the protobuf compiler. +2. The protobuf-javascript runtime, obtainable from [npm as google-protobuf](https://www.npmjs.com/package/google-protobuf). + +Usage: + +```js +// Assuming you installed this package as: npm install --save-dev @protocolbuffers/protoc-gen-js + +protoc --plugin=./node_modules/.bin/protoc-gen-js --js_out=import_style=commonjs,binary:. messages.proto +``` + +`protoc` will search PATH for `protoc-gen-js` if `--plugin` is omitted. + +This command will generate javascript protobuf files (with a `_pb.js` suffix for +commonjs imports) alongside their respective schema files +(e.g. `messages_pb.js`). + +Please see our +[full documentation](https://github.com/protocolbuffers/protobuf-javascript/blob/main/docs/index.md) +for more detailed usage instructions along with the generated code API. diff --git a/protoc_plugin/package.json b/protoc_plugin/package.json index 413a18b..83a2263 100644 --- a/protoc_plugin/package.json +++ b/protoc_plugin/package.json @@ -1,9 +1,10 @@ { "name": "@protocolbuffers/protoc-gen-js", - "version": "4.0.0", - "description": "Standalone distribution of the protoc-gen-js plugin for Protocol Buffers", + "version": "4.0.0-1", + "description": "Official standalone distribution of the protoc-gen-js plugin for Protocol Buffers", "author": "Google Protocol Buffers Team", "license": "BSD-3-Clause", + "keywords": ["protocol buffers", "protobuf", "protoc-gen-js", "google-protobuf", "protobuf-javascript"], "repository": { "type": "git", "url": "git+https://github.com/protocolbuffers/protobuf-javascript.git" From d22123912d2c334f8c118dbe679dddc760797e44 Mon Sep 17 00:00:00 2001 From: Stephanie DiBenedetto Date: Sat, 25 Oct 2025 12:01:36 -0700 Subject: [PATCH 09/40] update intel macos build runner Github's macos-13 runner is deprecated and will be phased out over the course of November 2025. The next oldest intel macos runner is macos-14-large. --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4cf1caf..0dd6f43 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -77,7 +77,7 @@ jobs: - os: macos-14 cpu: darwin_arm64 bazel_target: dist_zip - - os: macos-13 + - os: macos-14-large cpu: darwin_x86_64 bazel_target: dist_zip From e50318a2b264b66b26ab6f5a4ecbea39872baf45 Mon Sep 17 00:00:00 2001 From: Stephanie DiBenedetto Date: Mon, 17 Nov 2025 18:23:48 +0100 Subject: [PATCH 10/40] Allow edition 2024 (#259) * 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. bump version 4.0.0 -> 4.0.1 --- MODULE.bazel | 2 +- conformance/package.json | 2 +- generator/js_generator.h | 2 +- package.json | 2 +- protobuf_javascript_release.bzl | 2 +- protoc_plugin/package.json | 2 +- 6 files changed, 6 insertions(+), 6 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/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, 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 83a2263..b9a355c 100644 --- a/protoc_plugin/package.json +++ b/protoc_plugin/package.json @@ -1,6 +1,6 @@ { "name": "@protocolbuffers/protoc-gen-js", - "version": "4.0.0-1", + "version": "4.0.1", "description": "Official standalone distribution of the protoc-gen-js plugin for Protocol Buffers", "author": "Google Protocol Buffers Team", "license": "BSD-3-Clause", From 9f216f392e74820070c4a6e31e3f8a5f092ecc38 Mon Sep 17 00:00:00 2001 From: Stephanie DiBenedetto Date: Tue, 9 Dec 2025 16:32:43 +0100 Subject: [PATCH 11/40] Update to goog.modules (#260) --- asserts.js | 50 +- commonjs/rewrite_tests_for_commonjs.js | 3 +- debug.js | 54 ++- extension_field_binary_info.js | 72 +++ extension_field_info.js | 104 +++++ gulpfile.js | 4 +- map.js | 164 ++++--- message.js | 616 +++++++++++-------------- 8 files changed, 599 insertions(+), 468 deletions(-) create mode 100644 extension_field_binary_info.js create mode 100644 extension_field_info.js diff --git a/asserts.js b/asserts.js index 5ac5850..9ade06b 100644 --- a/asserts.js +++ b/asserts.js @@ -9,7 +9,8 @@ * invariants runtime. */ -goog.provide('jspb.asserts'); +goog.module('jspb.asserts'); +goog.module.declareLegacyNamespace(); /** * Throws an exception with the given message and "Assertion failed" prefixed @@ -20,7 +21,7 @@ goog.provide('jspb.asserts'); * @param {!Array<*>} givenArgs The substitution arguments for givenMessage. * @throws {Error} When the value is not a number. */ -jspb.asserts.doAssertFailure = function(defaultMessage, defaultArgs, givenMessage, givenArgs) { +function doAssertFailure(defaultMessage, defaultArgs, givenMessage, givenArgs) { let message = 'Assertion failed'; let args; if (givenMessage) { @@ -46,13 +47,12 @@ jspb.asserts.doAssertFailure = function(defaultMessage, defaultArgs, givenMessag * @return {T} The value of the condition. * @throws {Error} When the condition evaluates to false. */ - -jspb.asserts.assert = function(condition, opt_message, ...args) { +function assert(condition, opt_message, ...args) { if (!condition) { - jspb.asserts.doAssertFailure('', null, opt_message, args); + doAssertFailure('', null, opt_message, args); } return condition; -}; +} /** @@ -63,14 +63,14 @@ jspb.asserts.assert = function(condition, opt_message, ...args) { * @return {string} The value, guaranteed to be a string when asserts enabled. * @throws {Error} When the value is not a string. */ -jspb.asserts.assertString = function(value, opt_message, ...args) { +function assertString(value, opt_message, ...args) { if (typeof value !== 'string') { - jspb.asserts.doAssertFailure( + doAssertFailure( 'Expected string but got %s: %s.', [goog.typeOf(value), value], opt_message, args); } return /** @type {string} */ (value); -}; +} /** @@ -81,14 +81,14 @@ jspb.asserts.assertString = function(value, opt_message, ...args) { * @return {!Array} The value, guaranteed to be a non-null array. * @throws {Error} When the value is not an array. */ -jspb.asserts.assertArray = function(value, opt_message, ...args) { +function assertArray(value, opt_message, ...args) { if (!Array.isArray(value)) { - jspb.asserts.doAssertFailure( + doAssertFailure( 'Expected array but got %s: %s.', [goog.typeOf(value), value], opt_message, args); } return /** @type {!Array} */ (value); -}; +} /** * Triggers a failure. This function is useful in case when we want to add a @@ -98,7 +98,7 @@ jspb.asserts.assertArray = function(value, opt_message, ...args) { * switch(type) { * case FOO: doSomething(); break; * case BAR: doSomethingElse(); break; - * default: jspb.asserts.JspbFail('Unrecognized type: ' + type); + * default: jspb.asserts.fail('Unrecognized type: ' + type); * // We have only 2 types - "default:" section is unreachable code. * } * @@ -108,11 +108,11 @@ jspb.asserts.assertArray = function(value, opt_message, ...args) { * @return {void} * @throws {Error} Failure. */ -jspb.asserts.fail = function(opt_message, ...args) { +function fail(opt_message, ...args) { throw new Error( 'Failure' + (opt_message ? ': ' + opt_message : ''), args); -}; +} /** * Checks if the value is an instance of the user-defined type. @@ -130,15 +130,15 @@ jspb.asserts.fail = function(opt_message, ...args) { * @return {T} * @template T */ -jspb.asserts.assertInstanceof = function(value, type, opt_message, ...args) { +function assertInstanceof(value, type, opt_message, ...args) { if (!(value instanceof type)) { - jspb.asserts.doAssertFailure( + doAssertFailure( 'Expected instanceof %s but got %s.', - [jspb.asserts.getType(type), jspb.asserts.getType(value)], + [getType(type), getType(value)], opt_message, args); } return value; -}; +} /** * Returns the type of a value. If a constructor is passed, and a suitable @@ -147,7 +147,7 @@ jspb.asserts.assertInstanceof = function(value, type, opt_message, ...args) { * @return {string} The best display name for the value, or 'unknown type name'. * @private */ -jspb.asserts.getType = function(value) { +function getType(value) { if (value instanceof Function) { return value.displayName || value.name || 'unknown type name'; } else if (value instanceof Object) { @@ -157,3 +157,13 @@ jspb.asserts.getType = function(value) { return value === null ? 'null' : typeof value; } } + +exports = { + doAssertFailure, + assert, + assertString, + assertArray, + fail, + assertInstanceof, + getType +}; diff --git a/commonjs/rewrite_tests_for_commonjs.js b/commonjs/rewrite_tests_for_commonjs.js index 8b13c28..9cd5579 100644 --- a/commonjs/rewrite_tests_for_commonjs.js +++ b/commonjs/rewrite_tests_for_commonjs.js @@ -63,12 +63,11 @@ var module = null; var pkg = null; // Header: goes in every file at the top. -console.log("var global = Function('return this')();"); +console.log("var global = globalThis;"); console.log("var googleProtobuf = require('google-protobuf');"); console.log("var testdeps = require('testdeps_commonjs');"); console.log("global.COMPILED = testdeps.COMPILED;"); console.log("global.goog = testdeps.goog;"); -console.log("global.jspb = googleProtobuf.jspb;"); console.log(""); lineReader.on('line', function (line) { diff --git a/debug.js b/debug.js index 88abaeb..081912a 100644 --- a/debug.js +++ b/debug.js @@ -32,14 +32,15 @@ * @fileoverview Utilities to debug JSPB based proto objects. */ -goog.provide('jspb.debug'); +goog.module('jspb.debug'); +goog.module.declareLegacyNamespace(); -goog.require('goog.array'); -goog.require('goog.object'); +const googArray = goog.require('goog.array'); +const googObject = goog.require('goog.object'); -goog.require('jspb.asserts'); -goog.require('jspb.Map'); -goog.require('jspb.Message'); +const asserts = goog.require('jspb.asserts'); +const Map = goog.require('jspb.Map'); +const Message = goog.require('jspb.Message'); /** @@ -49,22 +50,21 @@ goog.require('jspb.Message'); * work in obfuscated and or optimized code. * Use this in environments where {@see jspb.Message.prototype.toObject} is * not available for code size reasons. - * @param {jspb.Message} message A jspb.Message. + * @param {Message} message A jspb.Message. * @return {Object} - * @export */ -jspb.debug.dump = function(message) { +function dump(message) { if (!goog.DEBUG) { return null; } - jspb.asserts.assertInstanceof(message, jspb.Message, + asserts.assertInstanceof(message, Message, 'jspb.Message instance expected'); /** @type {Object} */ var object = message; - jspb.asserts.assert(object['getExtension'], + asserts.assert(object['getExtension'], 'Only unobfuscated and unoptimized compilation modes supported.'); - return /** @type {Object} */ (jspb.debug.dump_(message)); -}; + return /** @type {Object} */ (dump_(message)); +} /** @@ -75,7 +75,7 @@ jspb.debug.dump = function(message) { * @return {*} * @private */ -jspb.debug.dump_ = function(thing) { +function dump_(thing) { var type = goog.typeOf(thing); var message = thing; // Copy because we don't want type inference on thing. if (type == 'number' || type == 'string' || type == 'boolean' || @@ -90,20 +90,20 @@ jspb.debug.dump_ = function(thing) { } if (type == 'array') { - jspb.asserts.assertArray(thing); - return goog.array.map(thing, jspb.debug.dump_); + asserts.assertArray(thing); + return googArray.map(thing, dump_); } - if (message instanceof jspb.Map) { + if (message instanceof Map) { var mapObject = {}; var entries = message.entries(); for (var entry = entries.next(); !entry.done; entry = entries.next()) { - mapObject[entry.value[0]] = jspb.debug.dump_(entry.value[1]); + mapObject[entry.value[0]] = dump_(entry.value[1]); } return mapObject; } - jspb.asserts.assertInstanceof(message, jspb.Message, + asserts.assertInstanceof(message, Message, 'Only messages expected: ' + thing); var ctor = message.constructor; var messageName = ctor.name || ctor.displayName; @@ -117,7 +117,7 @@ jspb.debug.dump_ = function(thing) { var has = 'has' + match[1]; if (!thing[has] || thing[has]()) { var val = thing[name](); - object[jspb.debug.formatFieldName_(match[1])] = jspb.debug.dump_(val); + object[formatFieldName_(match[1])] = dump_(val); } } } @@ -132,18 +132,18 @@ jspb.debug.dump_ = function(thing) { if (/^\d+$/.test(id)) { var ext = ctor['extensions'][id]; var extVal = thing.getExtension(ext); - var fieldName = goog.object.getKeys(ext.fieldName)[0]; + var fieldName = googObject.getKeys(ext.fieldName)[0]; if (extVal != null) { if (!extensionsObject) { extensionsObject = object['$extensions'] = {}; } - extensionsObject[jspb.debug.formatFieldName_(fieldName)] = - jspb.debug.dump_(extVal); + extensionsObject[formatFieldName_(fieldName)] = + dump_(extVal); } } } return object; -}; +} /** @@ -153,9 +153,13 @@ jspb.debug.dump_ = function(thing) { * @return {string} * @private */ -jspb.debug.formatFieldName_ = function(name) { +function formatFieldName_(name) { // Name may be in TitleCase. return name.replace(/^[A-Z]/, function(c) { return c.toLowerCase(); }); +} + +exports = { + dump }; diff --git a/extension_field_binary_info.js b/extension_field_binary_info.js new file mode 100644 index 0000000..4f79100 --- /dev/null +++ b/extension_field_binary_info.js @@ -0,0 +1,72 @@ +// Protocol Buffers - Google's data interchange format +// Copyright 2008 Google Inc. All rights reserved. +// https://protobuf.dev/ +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +/** + * @fileoverview Definition of jspb.ExtensionFieldBinaryInfo. + */ + +goog.module('jspb.ExtensionFieldBinaryInfo'); +goog.module.declareLegacyNamespace(); + +const ExtensionFieldInfo = goog.require('jspb.ExtensionFieldInfo'); +goog.requireType('jspb.BinaryReader'); +goog.requireType('jspb.BinaryWriter'); + +/** + * Stores binary-related information for a single extension field. + * @param {!ExtensionFieldInfo} fieldInfo + * @param {function(this:jspb.BinaryReader,number,?,?)} binaryReaderFn + * @param {function(this:jspb.BinaryWriter,number,?) + * |function(this:jspb.BinaryWriter,number,?,?,?,?,?)} binaryWriterFn + * @param {function(?,?)=} opt_binaryMessageSerializeFn + * @param {function(?,?)=} opt_binaryMessageDeserializeFn + * @param {boolean=} opt_isPacked + * @constructor + * @struct + * @template T + */ +const ExtensionFieldBinaryInfo = function ( + fieldInfo, binaryReaderFn, binaryWriterFn, opt_binaryMessageSerializeFn, + opt_binaryMessageDeserializeFn, opt_isPacked) { + /** @const */ + this.fieldInfo = fieldInfo; + /** @const */ + this.binaryReaderFn = binaryReaderFn; + /** @const */ + this.binaryWriterFn = binaryWriterFn; + /** @const */ + this.binaryMessageSerializeFn = opt_binaryMessageSerializeFn; + /** @const */ + this.binaryMessageDeserializeFn = opt_binaryMessageDeserializeFn; + /** @const */ + this.isPacked = opt_isPacked; +}; + +exports = ExtensionFieldBinaryInfo; diff --git a/extension_field_info.js b/extension_field_info.js new file mode 100644 index 0000000..ff83177 --- /dev/null +++ b/extension_field_info.js @@ -0,0 +1,104 @@ +// Protocol Buffers - Google's data interchange format +// Copyright 2008 Google Inc. All rights reserved. +// https://protobuf.dev/ +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +/** + * @fileoverview Definition of jspb.ExtensionFieldInfo. + */ + +goog.module('jspb.ExtensionFieldInfo'); +goog.module.declareLegacyNamespace(); + +// We need to reference jspb.Message for type annotations, but we want to avoid +// a circular dependency that would cause a runtime error. +goog.forwardDeclare('jspb.Message'); + +/** + * Stores information for a single extension field. + * + * For example, an extension field defined like so: + * + * extend BaseMessage { + * optional MyMessage my_field = 123; + * } + * + * will result in an ExtensionFieldInfo object with these properties: + * + * { + * fieldIndex: 123, + * fieldName: {my_field_renamed: 0}, + * ctor: proto.example.MyMessage, + * toObjectFn: proto.example.MyMessage.toObject, + * isRepeated: 0 + * } + * + * We include `toObjectFn` to allow the JSCompiler to perform dead-code removal + * on unused toObject() methods. + * + * If an extension field is primitive, ctor and toObjectFn will be null. + * isRepeated should be 0 or 1. + * + * binary{Reader,Writer}Fn and (if message type) binaryMessageSerializeFn are + * always provided. binaryReaderFn and binaryWriterFn are references to the + * appropriate methods on BinaryReader/BinaryWriter to read/write the value of + * this extension, and binaryMessageSerializeFn is a reference to the message + * class's .serializeBinary method, if available. + * + * @param {number} fieldNumber + * @param {Object} fieldName This has the extension field name as a property. + * @param {?function(new: jspb.Message, Array=)} ctor + * @param {?function((boolean|undefined),!jspb.Message):!Object} toObjectFn + * @param {number} isRepeated + * @constructor + * @struct + * @template T + */ +const ExtensionFieldInfo = function ( + fieldNumber, fieldName, ctor, toObjectFn, isRepeated) { + /** @const */ + this.fieldIndex = fieldNumber; + /** @const */ + this.fieldName = fieldName; + /** @const */ + this.ctor = ctor; + /** @const */ + this.toObjectFn = toObjectFn; + /** @const */ + this.isRepeated = isRepeated; +}; + +/** + * @return {boolean} Does this field represent a sub Message? + * @export + */ +ExtensionFieldInfo.prototype.isMessageType = function () { + return !!this.ctor; +}; + +exports = ExtensionFieldInfo; diff --git a/gulpfile.js b/gulpfile.js index 3703193..6140b1a 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -177,6 +177,8 @@ function getClosureCompilerCommand(exportsFile, outputFile) { '--js=internal_public.js', '--js=map.js', '--js=message.js', + '--js=extension_field_info.js', + '--js=extension_field_binary_info.js', '--js=bytestring.js', '--js=unsafe_bytestring.js', '--js=binary/**.js', @@ -228,7 +230,7 @@ function commonjs_out(cb) { function closure_make_deps(cb) { exec( - './node_modules/.bin/closure-make-deps --closure-path=. --file=node_modules/google-closure-library/closure/goog/deps.js bytestring.js internal_bytes.js internal_options.js internal_public.js binary/arith.js binary/bytesource.js binary/binary_constants.js binary/decoder.js binary/decoder_alias.js binary/encoder.js binary/encoder_alias.js binary/errors.js binary/internal_buffer.js binary/reader.js binary/reader_alias.js binary/test_utils.js binary/utf8.js binary/utils.js binary/writer.js binary/writer_alias.js asserts.js debug.js map.js message.js node_loader.js test_bootstrap.js unsafe_bytestring.js > deps.js', + './node_modules/.bin/closure-make-deps --closure-path=. --file=node_modules/google-closure-library/closure/goog/deps.js bytestring.js internal_bytes.js internal_options.js internal_public.js binary/arith.js binary/bytesource.js binary/binary_constants.js binary/decoder.js binary/decoder_alias.js binary/encoder.js binary/encoder_alias.js binary/errors.js binary/internal_buffer.js binary/reader.js binary/reader_alias.js binary/test_utils.js binary/utf8.js binary/utils.js binary/writer.js binary/writer_alias.js asserts.js debug.js map.js message.js extension_field_info.js extension_field_binary_info.js node_loader.js test_bootstrap.js unsafe_bytestring.js > deps.js', make_exec_logging_callback(cb)); } diff --git a/map.js b/map.js index e917941..e46087c 100644 --- a/map.js +++ b/map.js @@ -32,10 +32,44 @@ /** * @fileoverview */ -goog.provide('jspb.Map'); +// Protocol Buffers - Google's data interchange format +// Copyright 2008 Google Inc. All rights reserved. +// https://protobuf.dev/ +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +/** + * @fileoverview + */ +goog.module('jspb.Map'); +goog.module.declareLegacyNamespace(); -goog.require('jspb.asserts'); +const asserts = goog.require('jspb.asserts'); goog.requireType('jspb.BinaryReader'); goog.requireType('jspb.BinaryWriter'); @@ -60,15 +94,14 @@ goog.requireType('jspb.BinaryWriter'); * * @constructor * @struct - * @export */ -jspb.Map = function(arr, opt_valueCtor) { +const Map = function (arr, opt_valueCtor) { /** @const @private */ this.arr_ = arr; /** @const @private */ this.valueCtor_ = opt_valueCtor; - /** @type {!Object>} @private */ + /** @type {!Object>} @private */ this.map_ = {}; /** @@ -84,16 +117,39 @@ jspb.Map = function(arr, opt_valueCtor) { }; +/** + * @param {K} key The entry's key. + * @param {V=} opt_value The entry's value wrapper. + * @constructor + * @struct + * @template K, V + * @private + */ +const Entry_ = function (key, opt_value) { + /** @const {K} */ + this.key = key; + + // The JSPB-serializable value. For primitive types this will be of type V. + // For message types it will be an array. + /** @type {V} */ + this.value = opt_value; + + // Only used for submessage values. + /** @type {V} */ + this.valueWrapper = undefined; +}; + + /** * Load initial content from underlying array. * @private */ -jspb.Map.prototype.loadFromArray_ = function() { +Map.prototype.loadFromArray_ = function () { for (var i = 0; i < this.arr_.length; i++) { var record = this.arr_[i]; var key = record[0]; var value = record[1]; - this.map_[key.toString()] = new jspb.Map.Entry_(key, value); + this.map_[key.toString()] = new Entry_(key, value); } this.arrClean = true; }; @@ -104,7 +160,7 @@ jspb.Map.prototype.loadFromArray_ = function() { * @return {!Array>} * @export */ -jspb.Map.prototype.toArray = function() { +Map.prototype.toArray = function () { if (this.arrClean) { if (this.valueCtor_) { // We need to recursively sync maps in submessages to their arrays. @@ -149,7 +205,7 @@ jspb.Map.prototype.toArray = function() { * @return {!Array>} * @export */ -jspb.Map.prototype.toObject = function(includeInstance, valueToObject) { +Map.prototype.toObject = function (includeInstance, valueToObject) { var rawArray = this.toArray(); var entries = []; for (var i = 0; i < rawArray.length; i++) { @@ -157,7 +213,7 @@ jspb.Map.prototype.toObject = function(includeInstance, valueToObject) { this.wrapEntry_(entry); var valueWrapper = /** @type {V|undefined} */ (entry.valueWrapper); if (valueWrapper) { - jspb.asserts.assert(valueToObject); + asserts.assert(valueToObject); entries.push([entry.key, valueToObject(includeInstance, valueWrapper)]); } else { entries.push([entry.key, entry.value]); @@ -178,11 +234,11 @@ jspb.Map.prototype.toObject = function(includeInstance, valueToObject) { * The constructor for type V. * @param {function(!Object):V} valueFromObject * The fromObject function for type V. - * @return {!jspb.Map} + * @return {!Map} * @export */ -jspb.Map.fromObject = function(entries, valueCtor, valueFromObject) { - var result = new jspb.Map([], valueCtor); +Map.fromObject = function (entries, valueCtor, valueFromObject) { + var result = new Map([], valueCtor); for (var i = 0; i < entries.length; i++) { var key = entries[i][0]; var value = valueFromObject(entries[i][1]); @@ -200,7 +256,7 @@ jspb.Map.fromObject = function(entries, valueCtor, valueFromObject) { * @constructor @struct * @private */ -jspb.Map.ArrayIteratorIterable_ = function(arr) { +const ArrayIteratorIterable_ = function (arr) { /** @type {number} @private */ this.idx_ = 0; @@ -210,7 +266,7 @@ jspb.Map.ArrayIteratorIterable_ = function(arr) { /** @override @final */ -jspb.Map.ArrayIteratorIterable_.prototype.next = function() { +ArrayIteratorIterable_.prototype.next = function () { if (this.idx_ < this.arr_.length) { return {done: false, value: this.arr_[this.idx_++]}; } else { @@ -220,7 +276,7 @@ jspb.Map.ArrayIteratorIterable_.prototype.next = function() { if (typeof(Symbol) != 'undefined') { /** @override */ - jspb.Map.ArrayIteratorIterable_.prototype[Symbol.iterator] = function() { + ArrayIteratorIterable_.prototype[Symbol.iterator] = function () { return this; }; } @@ -231,7 +287,7 @@ if (typeof(Symbol) != 'undefined') { * @return {number} * @export */ -jspb.Map.prototype.getLength = function() { +Map.prototype.getLength = function () { return this.stringKeys_().length; }; @@ -240,7 +296,7 @@ jspb.Map.prototype.getLength = function() { * Clears the map. * @export */ -jspb.Map.prototype.clear = function() { +Map.prototype.clear = function () { this.map_ = {}; this.arrClean = false; }; @@ -250,12 +306,12 @@ jspb.Map.prototype.clear = function() { * Deletes a particular key from the map. * N.B.: differs in name from ES6 Map's `delete` because IE8 does not support * reserved words as property names. - * @this {jspb.Map} + * @this {Map} * @param {K} key * @return {boolean} Whether any entry with this key was deleted. * @export */ -jspb.Map.prototype.del = function(key) { +Map.prototype.del = function (key) { var keyValue = key.toString(); var hadKey = this.map_.hasOwnProperty(keyValue); delete this.map_[keyValue]; @@ -274,7 +330,7 @@ jspb.Map.prototype.del = function(key) { * @return {!Array>} * @export */ -jspb.Map.prototype.getEntryList = function() { +Map.prototype.getEntryList = function () { var entries = []; var strKeys = this.stringKeys_(); strKeys.sort(); @@ -292,7 +348,7 @@ jspb.Map.prototype.getEntryList = function() { * @return {!IteratorIterable>} The iterator-iterable. * @export */ -jspb.Map.prototype.entries = function() { +Map.prototype.entries = function () { var entries = []; var strKeys = this.stringKeys_(); strKeys.sort(); @@ -300,7 +356,7 @@ jspb.Map.prototype.entries = function() { var entry = this.map_[strKeys[i]]; entries.push([entry.key, this.wrapEntry_(entry)]); } - return new jspb.Map.ArrayIteratorIterable_(entries); + return new ArrayIteratorIterable_(entries); }; @@ -309,7 +365,7 @@ jspb.Map.prototype.entries = function() { * @return {!IteratorIterable} The iterator-iterable. * @export */ -jspb.Map.prototype.keys = function() { +Map.prototype.keys = function () { var keys = []; var strKeys = this.stringKeys_(); strKeys.sort(); @@ -317,7 +373,7 @@ jspb.Map.prototype.keys = function() { var entry = this.map_[strKeys[i]]; keys.push(entry.key); } - return new jspb.Map.ArrayIteratorIterable_(keys); + return new ArrayIteratorIterable_(keys); }; @@ -326,7 +382,7 @@ jspb.Map.prototype.keys = function() { * @return {!IteratorIterable} The iterator-iterable. * @export */ -jspb.Map.prototype.values = function() { +Map.prototype.values = function () { var values = []; var strKeys = this.stringKeys_(); strKeys.sort(); @@ -334,18 +390,18 @@ jspb.Map.prototype.values = function() { var entry = this.map_[strKeys[i]]; values.push(this.wrapEntry_(entry)); } - return new jspb.Map.ArrayIteratorIterable_(values); + return new ArrayIteratorIterable_(values); }; /** * Iterates over entries in the map, calling a function on each. * @template T - * @param {function(this:T, V, K, ?jspb.Map)} cb + * @param {function(this:T, V, K, ?Map)} cb * @param {T=} opt_thisArg * @export */ -jspb.Map.prototype.forEach = function(cb, opt_thisArg) { +Map.prototype.forEach = function (cb, opt_thisArg) { var strKeys = this.stringKeys_(); strKeys.sort(); for (var i = 0; i < strKeys.length; i++) { @@ -359,11 +415,11 @@ jspb.Map.prototype.forEach = function(cb, opt_thisArg) { * Sets a key in the map to the given value. * @param {K} key The key * @param {V} value The value - * @return {!jspb.Map} + * @return {!Map} * @export */ -jspb.Map.prototype.set = function(key, value) { - var entry = new jspb.Map.Entry_(key); +Map.prototype.set = function (key, value) { + var entry = new Entry_(key); if (this.valueCtor_) { entry.valueWrapper = value; // .toArray() on a message returns a reference to the underlying array @@ -381,11 +437,11 @@ jspb.Map.prototype.set = function(key, value) { /** * Helper: lazily construct a wrapper around an entry, if needed, and return the * user-visible type. - * @param {!jspb.Map.Entry_} entry + * @param {!Entry_} entry * @return {V} * @private */ -jspb.Map.prototype.wrapEntry_ = function(entry) { +Map.prototype.wrapEntry_ = function (entry) { if (this.valueCtor_) { if (!entry.valueWrapper) { entry.valueWrapper = new this.valueCtor_(entry.value); @@ -403,7 +459,7 @@ jspb.Map.prototype.wrapEntry_ = function(entry) { * @return {V|undefined} The value, or `undefined` if key not present * @export */ -jspb.Map.prototype.get = function(key) { +Map.prototype.get = function (key) { var keyValue = key.toString(); var entry = this.map_[keyValue]; if (entry) { @@ -420,7 +476,7 @@ jspb.Map.prototype.get = function(key) { * @return {boolean} `true` if the key is present * @export */ -jspb.Map.prototype.has = function(key) { +Map.prototype.has = function (key) { var keyValue = key.toString(); return (keyValue in this.map_); }; @@ -431,7 +487,7 @@ jspb.Map.prototype.has = function(key) { * when a key/value pair submessage is encountered. If the Key is undefined, * we should default it to 0. * @template K, V - * @param {!jspb.Map} map + * @param {!Map} map * @param {!jspb.BinaryReader} reader * @param {function(this:jspb.BinaryReader):K} keyReaderFn * The method on BinaryReader that reads type K from the stream. @@ -457,7 +513,7 @@ jspb.Map.prototype.has = function(key) { * @export * */ -jspb.Map.deserializeBinary = function(map, reader, keyReaderFn, valueReaderFn, +Map.deserializeBinary = function (map, reader, keyReaderFn, valueReaderFn, opt_valueReaderCallback, opt_defaultKey, opt_defaultValue) { var key = opt_defaultKey; @@ -475,7 +531,7 @@ jspb.Map.deserializeBinary = function(map, reader, keyReaderFn, valueReaderFn, } else if (field == 2) { // Value. if (map.valueCtor_) { - jspb.asserts.assert(opt_valueReaderCallback); + asserts.assert(opt_valueReaderCallback); if (!value) { // Old generator still doesn't provide default value message. // Need this for backward compatibility. @@ -490,8 +546,8 @@ jspb.Map.deserializeBinary = function(map, reader, keyReaderFn, valueReaderFn, } } - jspb.asserts.assert(key != undefined); - jspb.asserts.assert(value != undefined); + asserts.assert(key != undefined); + asserts.assert(value != undefined); map.set(key, value); }; @@ -502,7 +558,7 @@ jspb.Map.deserializeBinary = function(map, reader, keyReaderFn, valueReaderFn, * @return {!Array} * @private */ -jspb.Map.prototype.stringKeys_ = function() { +Map.prototype.stringKeys_ = function () { var m = this.map_; var ret = []; for (var p in m) { @@ -513,26 +569,4 @@ jspb.Map.prototype.stringKeys_ = function() { return ret; }; - - -/** - * @param {K} key The entry's key. - * @param {V=} opt_value The entry's value wrapper. - * @constructor - * @struct - * @template K, V - * @private - */ -jspb.Map.Entry_ = function(key, opt_value) { - /** @const {K} */ - this.key = key; - - // The JSPB-serializable value. For primitive types this will be of type V. - // For message types it will be an array. - /** @type {V} */ - this.value = opt_value; - - // Only used for submessage values. - /** @type {V} */ - this.valueWrapper = undefined; -}; +exports = Map; diff --git a/message.js b/message.js index 430cb52..066389e 100644 --- a/message.js +++ b/message.js @@ -35,111 +35,17 @@ * @author mwr@google.com (Mark Rawling) */ -goog.provide('jspb.ExtensionFieldBinaryInfo'); -goog.provide('jspb.ExtensionFieldInfo'); -goog.provide('jspb.Message'); +goog.module('jspb.Message'); +goog.module.declareLegacyNamespace(); -goog.require('goog.array'); -goog.require('goog.crypt.base64'); +const googArray = goog.require('goog.array'); +const googCryptBase64 = goog.require('goog.crypt.base64'); -goog.require('jspb.asserts'); -goog.require('jspb.binary.reader'); -goog.require('jspb.Map'); - - -/** - * Stores information for a single extension field. - * - * For example, an extension field defined like so: - * - * extend BaseMessage { - * optional MyMessage my_field = 123; - * } - * - * will result in an ExtensionFieldInfo object with these properties: - * - * { - * fieldIndex: 123, - * fieldName: {my_field_renamed: 0}, - * ctor: proto.example.MyMessage, - * toObjectFn: proto.example.MyMessage.toObject, - * isRepeated: 0 - * } - * - * We include `toObjectFn` to allow the JSCompiler to perform dead-code removal - * on unused toObject() methods. - * - * If an extension field is primitive, ctor and toObjectFn will be null. - * isRepeated should be 0 or 1. - * - * binary{Reader,Writer}Fn and (if message type) binaryMessageSerializeFn are - * always provided. binaryReaderFn and binaryWriterFn are references to the - * appropriate methods on BinaryReader/BinaryWriter to read/write the value of - * this extension, and binaryMessageSerializeFn is a reference to the message - * class's .serializeBinary method, if available. - * - * @param {number} fieldNumber - * @param {Object} fieldName This has the extension field name as a property. - * @param {?function(new: jspb.Message, Array=)} ctor - * @param {?function((boolean|undefined),!jspb.Message):!Object} toObjectFn - * @param {number} isRepeated - * @constructor - * @struct - * @template T - * @export - */ -jspb.ExtensionFieldInfo = function( - fieldNumber, fieldName, ctor, toObjectFn, isRepeated) { - /** @const */ - this.fieldIndex = fieldNumber; - /** @const */ - this.fieldName = fieldName; - /** @const */ - this.ctor = ctor; - /** @const */ - this.toObjectFn = toObjectFn; - /** @const */ - this.isRepeated = isRepeated; -}; - -/** - * Stores binary-related information for a single extension field. - * @param {!jspb.ExtensionFieldInfo} fieldInfo - * @param {function(this:jspb.BinaryReader,number,?,?)} binaryReaderFn - * @param {function(this:jspb.BinaryWriter,number,?) - * |function(this:jspb.BinaryWriter,number,?,?,?,?,?)} binaryWriterFn - * @param {function(?,?)=} opt_binaryMessageSerializeFn - * @param {function(?,?)=} opt_binaryMessageDeserializeFn - * @param {boolean=} opt_isPacked - * @constructor - * @struct - * @template T - * @export - */ -jspb.ExtensionFieldBinaryInfo = function( - fieldInfo, binaryReaderFn, binaryWriterFn, opt_binaryMessageSerializeFn, - opt_binaryMessageDeserializeFn, opt_isPacked) { - /** @const */ - this.fieldInfo = fieldInfo; - /** @const */ - this.binaryReaderFn = binaryReaderFn; - /** @const */ - this.binaryWriterFn = binaryWriterFn; - /** @const */ - this.binaryMessageSerializeFn = opt_binaryMessageSerializeFn; - /** @const */ - this.binaryMessageDeserializeFn = opt_binaryMessageDeserializeFn; - /** @const */ - this.isPacked = opt_isPacked; -}; - -/** - * @return {boolean} Does this field represent a sub Message? - * @export - */ -jspb.ExtensionFieldInfo.prototype.isMessageType = function() { - return !!this.ctor; -}; +const asserts = goog.require('jspb.asserts'); +const { BinaryReader } = goog.require('jspb.binary.reader'); +const Map = goog.require('jspb.Map'); +const ExtensionFieldInfo = goog.require('jspb.ExtensionFieldInfo'); +const ExtensionFieldBinaryInfo = goog.require('jspb.ExtensionFieldBinaryInfo'); /** @@ -156,14 +62,13 @@ jspb.ExtensionFieldInfo.prototype.isMessageType = function() { * or use a lambda that knows the type: * someFunction(()=>instanceOfKnownProto.serializeBinary()); * or, if you don't care about code size, just suppress the - * WARNING - Property serializeBinary never defined on jspb.Message + * WARNING - Property serializeBinary never defined on Message * and call it the intuitive way. * * @constructor * @struct - * @export */ -jspb.Message = function() {}; +const Message = function () { }; /** @@ -175,8 +80,8 @@ jspb.Message = function() {}; * in an application. * @export */ -jspb.Message.GENERATE_TO_OBJECT = - goog.define('jspb.Message.GENERATE_TO_OBJECT', true); +Message.GENERATE_TO_OBJECT = + goog.define('Message.GENERATE_TO_OBJECT', true); /** @@ -189,8 +94,8 @@ jspb.Message.GENERATE_TO_OBJECT = * By default this is enabled for test code only. * @export */ -jspb.Message.GENERATE_FROM_OBJECT = goog.define( - 'jspb.Message.GENERATE_FROM_OBJECT', !goog.DISALLOW_TEST_ONLY_CODE); +Message.GENERATE_FROM_OBJECT = goog.define( + 'Message.GENERATE_FROM_OBJECT', !goog.DISALLOW_TEST_ONLY_CODE); /** @@ -198,8 +103,8 @@ jspb.Message.GENERATE_FROM_OBJECT = goog.define( * this off if you do not use toString in your project and want to trim it * from the compiled JS. */ -jspb.Message.GENERATE_TO_STRING = - goog.define('jspb.Message.GENERATE_TO_STRING', true); +Message.GENERATE_TO_STRING = + goog.define('Message.GENERATE_TO_STRING', true); /** @@ -207,8 +112,8 @@ jspb.Message.GENERATE_TO_STRING = * local (e.g. not from another iframe) and thus safely classified with * instanceof Array. */ -jspb.Message.ASSUME_LOCAL_ARRAYS = - goog.define('jspb.Message.ASSUME_LOCAL_ARRAYS', false); +Message.ASSUME_LOCAL_ARRAYS = + goog.define('Message.ASSUME_LOCAL_ARRAYS', false); // TODO(jakubvrana): Turn this off by default. @@ -219,8 +124,8 @@ jspb.Message.ASSUME_LOCAL_ARRAYS = * backwards compatible. Projects are advised to turn this flag always off. * @private */ -jspb.Message.SERIALIZE_EMPTY_TRAILING_FIELDS = - goog.define('jspb.Message.SERIALIZE_EMPTY_TRAILING_FIELDS', true); +Message.SERIALIZE_EMPTY_TRAILING_FIELDS = + goog.define('Message.SERIALIZE_EMPTY_TRAILING_FIELDS', true); /** @@ -228,7 +133,7 @@ jspb.Message.SERIALIZE_EMPTY_TRAILING_FIELDS = * @type {boolean} * @private */ -jspb.Message.SUPPORTS_UINT8ARRAY_ = (typeof Uint8Array == 'function'); +Message.SUPPORTS_UINT8ARRAY_ = (typeof Uint8Array == 'function'); /** @@ -236,7 +141,7 @@ jspb.Message.SUPPORTS_UINT8ARRAY_ = (typeof Uint8Array == 'function'); * @type {!Array} * @private */ -jspb.Message.prototype.array; +Message.prototype.array; /** @@ -246,7 +151,7 @@ jspb.Message.prototype.array; * @type {Object} * @private */ -jspb.Message.prototype.wrappers_; +Message.prototype.wrappers_; /** @@ -255,7 +160,7 @@ jspb.Message.prototype.wrappers_; * @type {Object} * @private */ -jspb.Message.prototype.extensionObject_; +Message.prototype.extensionObject_; /** @@ -264,7 +169,7 @@ jspb.Message.prototype.extensionObject_; * @type {number} * @private */ -jspb.Message.prototype.pivot_; +Message.prototype.pivot_; /** @@ -273,7 +178,7 @@ jspb.Message.prototype.pivot_; * has no id. * @private */ -jspb.Message.prototype.messageId_; +Message.prototype.messageId_; /** @@ -282,13 +187,13 @@ jspb.Message.prototype.messageId_; * and for booleans stored as numbers (0 or 1). * @private {!Object|undefined} */ -jspb.Message.prototype.convertedPrimitiveFields_; +Message.prototype.convertedPrimitiveFields_; /** * Repeated fields numbers. * @protected {?Array|undefined} */ -jspb.Message.prototype.repeatedFields; +Message.prototype.repeatedFields; @@ -298,7 +203,7 @@ jspb.Message.prototype.repeatedFields; * has no id. * @export */ -jspb.Message.prototype.getJsPbMessageId = function() { +Message.prototype.getJsPbMessageId = function () { return this.messageId_; }; @@ -310,41 +215,41 @@ jspb.Message.prototype.getJsPbMessageId = function() { * @type {number} * @private */ -jspb.Message.prototype.arrayIndexOffset_; +Message.prototype.arrayIndexOffset_; /** * Returns the index into msg.array at which the proto field with tag number * fieldNumber will be located. - * @param {!jspb.Message} msg Message for which we're calculating an index. + * @param {!Message} msg Message for which we're calculating an index. * @param {number} fieldNumber The field number. * @return {number} The index. * @private */ -jspb.Message.getIndex_ = function(msg, fieldNumber) { +Message.getIndex_ = function (msg, fieldNumber) { return fieldNumber + msg.arrayIndexOffset_; }; // This is only here to ensure we are not back sliding on ES6 requirements for // protos in g3. -jspb.Message.hiddenES6Property_ = class {}; +Message.hiddenES6Property_ = class { }; /** * Returns the tag number based on the index in msg.array. - * @param {!jspb.Message} msg Message for which we're calculating an index. + * @param {!Message} msg Message for which we're calculating an index. * @param {number} index The tag number. * @return {number} The field number. * @private */ -jspb.Message.getFieldNumber_ = function(msg, index) { +Message.getFieldNumber_ = function (msg, index) { return index - msg.arrayIndexOffset_; }; /** * Initializes a JsPb Message. - * @param {!jspb.Message} msg The JsPb proto to modify. + * @param {!Message} msg The JsPb proto to modify. * @param {Array|undefined} data An initial data array. * @param {string|number} messageId For response messages, the message id or '' * if no message id is specified. For non-response messages, 0. @@ -357,7 +262,7 @@ jspb.Message.getFieldNumber_ = function(msg, index) { * each of the message's oneof unions. * @export */ -jspb.Message.initialize = function( +Message.initialize = function ( msg, data, messageId, suggestedPivot, repeatedFields, opt_oneofFields) { msg.wrappers_ = null; if (!data) { @@ -369,10 +274,10 @@ jspb.Message.initialize = function( // which would otherwise go unused. msg.arrayIndexOffset_ = messageId === 0 ? -1 : 0; msg.array = data; - jspb.Message.initPivotAndExtensionObject_(msg, suggestedPivot); + Message.initPivotAndExtensionObject_(msg, suggestedPivot); msg.convertedPrimitiveFields_ = {}; - if (!jspb.Message.SERIALIZE_EMPTY_TRAILING_FIELDS) { + if (!Message.SERIALIZE_EMPTY_TRAILING_FIELDS) { // TODO(jakubvrana): This is same for all instances, move to prototype. // TODO(jakubvrana): There are indexOf calls on this in serialization, // consider switching to a set. @@ -383,13 +288,13 @@ jspb.Message.initialize = function( for (var i = 0; i < repeatedFields.length; i++) { var fieldNumber = repeatedFields[i]; if (fieldNumber < msg.pivot_) { - var index = jspb.Message.getIndex_(msg, fieldNumber); + var index = Message.getIndex_(msg, fieldNumber); msg.array[index] = - msg.array[index] || jspb.Message.EMPTY_LIST_SENTINEL_; + msg.array[index] || Message.EMPTY_LIST_SENTINEL_; } else { - jspb.Message.maybeInitEmptyExtensionObject_(msg); + Message.maybeInitEmptyExtensionObject_(msg); msg.extensionObject_[fieldNumber] = msg.extensionObject_[fieldNumber] || - jspb.Message.EMPTY_LIST_SENTINEL_; + Message.EMPTY_LIST_SENTINEL_; } } } @@ -398,7 +303,7 @@ jspb.Message.initialize = function( // Compute the oneof case for each union. This ensures only one value is // set in the union. for (var i = 0; i < opt_oneofFields.length; i++) { - jspb.Message.computeOneofCase(msg, opt_oneofFields[i]); + Message.computeOneofCase(msg, opt_oneofFields[i]); } } }; @@ -412,7 +317,7 @@ jspb.Message.initialize = function( * present. * @private @const {!Object} */ -jspb.Message.EMPTY_LIST_SENTINEL_ = +Message.EMPTY_LIST_SENTINEL_ = goog.DEBUG && Object.freeze ? Object.freeze([]) : []; @@ -422,8 +327,8 @@ jspb.Message.EMPTY_LIST_SENTINEL_ = * @return {boolean} True if the provided object is an array. * @private */ -jspb.Message.isArray_ = function(o) { - return jspb.Message.ASSUME_LOCAL_ARRAYS ? o instanceof Array : +Message.isArray_ = function (o) { + return Message.ASSUME_LOCAL_ARRAYS ? o instanceof Array : Array.isArray(o); }; @@ -433,7 +338,7 @@ jspb.Message.isArray_ = function(o) { * @return {boolean} True if the provided object is an extension object. * @private */ -jspb.Message.isExtensionObject_ = function(o) { +Message.isExtensionObject_ = function (o) { // Normal fields are never objects, so we can be sure that if we find an // object here, then it's the extension object. However, we must ensure that // the object is not an array, since arrays are valid field values (bytes @@ -441,8 +346,8 @@ jspb.Message.isExtensionObject_ = function(o) { // NOTE(lukestebbing): We avoid looking at .length to avoid a JIT bug // in Safari on iOS 8. See the description of CL/86511464 for details. return ( - o !== null && typeof o == 'object' && !jspb.Message.isArray_(o) && - !(jspb.Message.SUPPORTS_UINT8ARRAY_ && o instanceof Uint8Array)); + o !== null && typeof o == 'object' && !Message.isArray_(o) && + !(Message.SUPPORTS_UINT8ARRAY_ && o instanceof Uint8Array)); }; @@ -452,11 +357,11 @@ jspb.Message.isExtensionObject_ = function(o) { * decides the pivot of the message based on suggestedPivot without * materializing the extension object. * - * @param {!jspb.Message} msg The JsPb proto to modify. + * @param {!Message} msg The JsPb proto to modify. * @param {number} suggestedPivot See description for initialize(). * @private */ -jspb.Message.initPivotAndExtensionObject_ = function(msg, suggestedPivot) { +Message.initPivotAndExtensionObject_ = function (msg, suggestedPivot) { // There are 3 variants that need to be dealt with which are the // combination of whether there exists an extension object (EO) and // whether there is a suggested pivot (SP). @@ -470,8 +375,8 @@ jspb.Message.initPivotAndExtensionObject_ = function(msg, suggestedPivot) { if (msgLength) { lastIndex = msgLength - 1; var obj = msg.array[lastIndex]; - if (jspb.Message.isExtensionObject_(obj)) { - msg.pivot_ = jspb.Message.getFieldNumber_(msg, lastIndex); + if (Message.isExtensionObject_(obj)) { + msg.pivot_ = Message.getFieldNumber_(msg, lastIndex); msg.extensionObject_ = obj; return; } @@ -481,7 +386,7 @@ jspb.Message.initPivotAndExtensionObject_ = function(msg, suggestedPivot) { // If a extension object is not present, set the pivot value as being // after the last value in the array to avoid overwriting values, etc. msg.pivot_ = Math.max( - suggestedPivot, jspb.Message.getFieldNumber_(msg, lastIndex + 1)); + suggestedPivot, Message.getFieldNumber_(msg, lastIndex + 1)); // Avoid changing the shape of the proto with an empty extension object by // deferring the materialization of the extension object until the first // time a field set into it (may be due to getting a repeated proto field @@ -497,11 +402,11 @@ jspb.Message.initPivotAndExtensionObject_ = function(msg, suggestedPivot) { /** * Creates an empty extensionObject_ if non exists. - * @param {!jspb.Message} msg The JsPb proto to modify. + * @param {!Message} msg The JsPb proto to modify. * @private */ -jspb.Message.maybeInitEmptyExtensionObject_ = function(msg) { - var pivotIndex = jspb.Message.getIndex_(msg, msg.pivot_); +Message.maybeInitEmptyExtensionObject_ = function (msg) { + var pivotIndex = Message.getIndex_(msg, msg.pivot_); if (!msg.array[pivotIndex]) { msg.extensionObject_ = msg.array[pivotIndex] = {}; } @@ -522,8 +427,8 @@ jspb.Message.maybeInitEmptyExtensionObject_ = function(msg) { * @template T * @export */ -jspb.Message.toObjectList = function(field, toObjectFn, opt_includeInstance) { - // Not using goog.array.map in the generated code to keep it small. +Message.toObjectList = function (field, toObjectFn, opt_includeInstance) { +// Not using googArray.map in the generated code to keep it small. // And not using it here to avoid a function call. var result = []; for (var i = 0; i < field.length; i++) { @@ -535,17 +440,17 @@ jspb.Message.toObjectList = function(field, toObjectFn, opt_includeInstance) { /** * Adds a proto's extension data to a Soy rendering object. - * @param {!jspb.Message} proto The proto whose extensions to convert. + * @param {!Message} proto The proto whose extensions to convert. * @param {!Object} obj The Soy object to add converted extension data to. * @param {!Object} extensions The proto class' registered extensions. - * @param {function(this:?, jspb.ExtensionFieldInfo) : *} getExtensionFn + * @param {function(this:?, ExtensionFieldInfo) : *} getExtensionFn * The proto class' getExtension function. Passed for effective dead code * removal. * @param {boolean=} opt_includeInstance Whether to include the JSPB instance * for transitional soy proto support: http://goto/soy-param-migration * @export */ -jspb.Message.toObjectExtension = function( +Message.toObjectExtension = function ( proto, obj, extensions, getExtensionFn, opt_includeInstance) { for (var fieldNumber in extensions) { var fieldInfo = extensions[fieldNumber]; @@ -560,12 +465,12 @@ jspb.Message.toObjectExtension = function( obj[name] = value; } else { if (fieldInfo.isRepeated) { - obj[name] = jspb.Message.toObjectList( - /** @type {!Array} */ (value), + obj[name] = Message.toObjectList( + /** @type {!Array} */(value), fieldInfo.toObjectFn, opt_includeInstance); } else { obj[name] = fieldInfo.toObjectFn( - opt_includeInstance, /** @type {!jspb.Message} */ (value)); + opt_includeInstance, /** @type {!Message} */(value)); } } } @@ -575,15 +480,15 @@ jspb.Message.toObjectExtension = function( /** * Writes a proto's extension data to a binary-format output stream. - * @param {!jspb.Message} proto The proto whose extensions to convert. + * @param {!Message} proto The proto whose extensions to convert. * @param {*} writer The binary-format writer to write to. * @param {!Object} extensions The proto class' registered extensions. - * @param {function(this:jspb.Message,!jspb.ExtensionFieldInfo) : *} + * @param {function(this:Message,!ExtensionFieldInfo) : *} * getExtensionFn The proto class' getExtension function. Passed for * effective dead code removal. * @export */ -jspb.Message.serializeBinaryExtensions = function( +Message.serializeBinaryExtensions = function ( proto, writer, extensions, getExtensionFn) { for (var fieldNumber in extensions) { var binaryFieldInfo = extensions[fieldNumber]; @@ -628,15 +533,15 @@ jspb.Message.serializeBinaryExtensions = function( /** * Reads an extension field from the given reader and, if a valid extension, * sets the extension value. - * @param {!jspb.Message} msg A jspb proto. + * @param {!Message} msg A jspb proto. * @param {!jspb.BinaryReader} reader * @param {!Object} extensions The extensions object. - * @param {function(this:jspb.Message,!jspb.ExtensionFieldInfo)} getExtensionFn - * @param {function(this:jspb.Message,!jspb.ExtensionFieldInfo, ?)} + * @param {function(this:Message,!ExtensionFieldInfo)} getExtensionFn + * @param {function(this:Message,!ExtensionFieldInfo, ?)} * setExtensionFn * @export */ -jspb.Message.readBinaryExtension = function( +Message.readBinaryExtension = function ( msg, reader, extensions, getExtensionFn, setExtensionFn) { var binaryFieldInfo = extensions[reader.getFieldNumber()]; if (!binaryFieldInfo) { @@ -682,17 +587,17 @@ jspb.Message.readBinaryExtension = function( /** * Gets the value of a non-extension field. - * @param {!jspb.Message} msg A jspb proto. + * @param {!Message} msg A jspb proto. * @param {number} fieldNumber The field number. * @return {string|number|boolean|Uint8Array|Array|null|undefined} * The field's value. * @export */ -jspb.Message.getField = function(msg, fieldNumber) { +Message.getField = function (msg, fieldNumber) { if (fieldNumber < msg.pivot_) { - var index = jspb.Message.getIndex_(msg, fieldNumber); + var index = Message.getIndex_(msg, fieldNumber); var val = msg.array[index]; - if (val === jspb.Message.EMPTY_LIST_SENTINEL_) { + if (val === Message.EMPTY_LIST_SENTINEL_) { return msg.array[index] = []; } return val; @@ -701,7 +606,7 @@ jspb.Message.getField = function(msg, fieldNumber) { return undefined; } var val = msg.extensionObject_[fieldNumber]; - if (val === jspb.Message.EMPTY_LIST_SENTINEL_) { + if (val === Message.EMPTY_LIST_SENTINEL_) { return msg.extensionObject_[fieldNumber] = []; } return val; @@ -711,26 +616,26 @@ jspb.Message.getField = function(msg, fieldNumber) { /** * Gets the value of a non-extension repeated field. - * @param {!jspb.Message} msg A jspb proto. + * @param {!Message} msg A jspb proto. * @param {number} fieldNumber The field number. * @return {!Array} * The field's value. * @export */ -jspb.Message.getRepeatedField = function(msg, fieldNumber) { - return /** @type {!Array} */ (jspb.Message.getField(msg, fieldNumber)); +Message.getRepeatedField = function (msg, fieldNumber) { + return /** @type {!Array} */ (Message.getField(msg, fieldNumber)); }; /** * Gets the value of an optional float or double field. - * @param {!jspb.Message} msg A jspb proto. + * @param {!Message} msg A jspb proto. * @param {number} fieldNumber The field number. * @return {?number|undefined} The field's value. * @export */ -jspb.Message.getOptionalFloatingPointField = function(msg, fieldNumber) { - var value = jspb.Message.getField(msg, fieldNumber); +Message.getOptionalFloatingPointField = function (msg, fieldNumber) { + var value = Message.getField(msg, fieldNumber); // Converts "NaN", "Infinity" and "-Infinity" to their corresponding numbers. return value == null ? value : +value; }; @@ -738,13 +643,13 @@ jspb.Message.getOptionalFloatingPointField = function(msg, fieldNumber) { /** * Gets the value of an optional boolean field. - * @param {!jspb.Message} msg A jspb proto. + * @param {!Message} msg A jspb proto. * @param {number} fieldNumber The field number. * @return {?boolean|undefined} The field's value. * @export */ -jspb.Message.getBooleanField = function(msg, fieldNumber) { - var value = jspb.Message.getField(msg, fieldNumber); +Message.getBooleanField = function (msg, fieldNumber) { + var value = Message.getField(msg, fieldNumber); // TODO(b/122673075): always return null when the value is null-ish. return value == null ? (value) : !!value; }; @@ -752,13 +657,13 @@ jspb.Message.getBooleanField = function(msg, fieldNumber) { /** * Gets the value of a repeated float or double field. - * @param {!jspb.Message} msg A jspb proto. + * @param {!Message} msg A jspb proto. * @param {number} fieldNumber The field number. * @return {!Array} The field's value. * @export */ -jspb.Message.getRepeatedFloatingPointField = function(msg, fieldNumber) { - var values = jspb.Message.getRepeatedField(msg, fieldNumber); +Message.getRepeatedFloatingPointField = function (msg, fieldNumber) { + var values = Message.getRepeatedField(msg, fieldNumber); if (!msg.convertedPrimitiveFields_) { msg.convertedPrimitiveFields_ = {}; } @@ -775,13 +680,13 @@ jspb.Message.getRepeatedFloatingPointField = function(msg, fieldNumber) { /** * Gets the value of a repeated boolean field. - * @param {!jspb.Message} msg A jspb proto. + * @param {!Message} msg A jspb proto. * @param {number} fieldNumber The field number. * @return {!Array} The field's value. * @export */ -jspb.Message.getRepeatedBooleanField = function(msg, fieldNumber) { - var values = jspb.Message.getRepeatedField(msg, fieldNumber); +Message.getRepeatedBooleanField = function (msg, fieldNumber) { + var values = Message.getRepeatedField(msg, fieldNumber); if (!msg.convertedPrimitiveFields_) { msg.convertedPrimitiveFields_ = {}; } @@ -802,14 +707,14 @@ jspb.Message.getRepeatedBooleanField = function(msg, fieldNumber) { * @return {?string} The field's coerced value. * @export */ -jspb.Message.bytesAsB64 = function(value) { +Message.bytesAsB64 = function (value) { if (value == null || typeof value === 'string') { return value; } - if (jspb.Message.SUPPORTS_UINT8ARRAY_ && value instanceof Uint8Array) { - return goog.crypt.base64.encodeByteArray(value); + if (Message.SUPPORTS_UINT8ARRAY_ && value instanceof Uint8Array) { + return googCryptBase64.encodeByteArray(value); } - jspb.asserts.fail('Cannot coerce to b64 string: ' + goog.typeOf(value)); + asserts.fail('Cannot coerce to b64 string: ' + goog.typeOf(value)); return null; }; @@ -822,14 +727,14 @@ jspb.Message.bytesAsB64 = function(value) { * @return {?Uint8Array} The field's coerced value. * @export */ -jspb.Message.bytesAsU8 = function(value) { +Message.bytesAsU8 = function (value) { if (value == null || value instanceof Uint8Array) { return value; } if (typeof value === 'string') { - return goog.crypt.base64.decodeStringToUint8Array(value); + return googCryptBase64.decodeStringToUint8Array(value); } - jspb.asserts.fail('Cannot coerce to Uint8Array: ' + goog.typeOf(value)); + asserts.fail('Cannot coerce to Uint8Array: ' + goog.typeOf(value)); return null; }; @@ -841,12 +746,12 @@ jspb.Message.bytesAsU8 = function(value) { * @return {!Array} The field's coerced value. * @export */ -jspb.Message.bytesListAsB64 = function(value) { - jspb.Message.assertConsistentTypes_(value); +Message.bytesListAsB64 = function (value) { + Message.assertConsistentTypes_(value); if (!value.length || typeof value[0] === 'string') { return /** @type {!Array} */ (value); } - return goog.array.map(value, jspb.Message.bytesAsB64); + return googArray.map(value, Message.bytesAsB64); }; @@ -859,12 +764,12 @@ jspb.Message.bytesListAsB64 = function(value) { * @return {!Array} The field's coerced value. * @export */ -jspb.Message.bytesListAsU8 = function(value) { - jspb.Message.assertConsistentTypes_(value); +Message.bytesListAsU8 = function (value) { + Message.assertConsistentTypes_(value); if (!value.length || value[0] instanceof Uint8Array) { return /** @type {!Array} */ (value); } - return goog.array.map(value, jspb.Message.bytesAsU8); + return googArray.map(value, Message.bytesAsU8); }; @@ -873,12 +778,12 @@ jspb.Message.bytesListAsU8 = function(value) { * @param {Array?} array The array to test. * @private */ -jspb.Message.assertConsistentTypes_ = function(array) { +Message.assertConsistentTypes_ = function (array) { if (goog.DEBUG && array && array.length > 1) { var expected = goog.typeOf(array[0]); - goog.array.forEach(array, function(e) { + googArray.forEach(array, function (e) { if (goog.typeOf(e) != expected) { - jspb.asserts.fail( + asserts.fail( 'Inconsistent type in JSPB repeated field array. ' + 'Got ' + goog.typeOf(e) + ' expected ' + expected); } @@ -892,14 +797,14 @@ jspb.Message.assertConsistentTypes_ = function(array) { * primitives) semantics. Returns `defaultValue` if the field is not otherwise * set. * @template T - * @param {!jspb.Message} msg A jspb proto. + * @param {!Message} msg A jspb proto. * @param {number} fieldNumber The field number. * @param {T} defaultValue The default value. * @return {T} The field's value. * @export */ -jspb.Message.getFieldWithDefault = function(msg, fieldNumber, defaultValue) { - var value = jspb.Message.getField(msg, fieldNumber); +Message.getFieldWithDefault = function (msg, fieldNumber, defaultValue) { + var value = Message.getField(msg, fieldNumber); if (value == null) { return defaultValue; } else { @@ -912,15 +817,15 @@ jspb.Message.getFieldWithDefault = function(msg, fieldNumber, defaultValue) { * Gets the value of a boolean field, with proto3 (non-nullable primitives) * semantics. Returns `defaultValue` if the field is not otherwise set. * @template T - * @param {!jspb.Message} msg A jspb proto. + * @param {!Message} msg A jspb proto. * @param {number} fieldNumber The field number. * @param {boolean} defaultValue The default value. * @return {boolean} The field's value. * @export */ -jspb.Message.getBooleanFieldWithDefault = function( +Message.getBooleanFieldWithDefault = function ( msg, fieldNumber, defaultValue) { - var value = jspb.Message.getBooleanField(msg, fieldNumber); + var value = Message.getBooleanField(msg, fieldNumber); if (value == null) { return defaultValue; } else { @@ -934,15 +839,15 @@ jspb.Message.getBooleanFieldWithDefault = function( * primitives) semantics. Returns `defaultValue` if the field is not otherwise * set. * @template T - * @param {!jspb.Message} msg A jspb proto. + * @param {!Message} msg A jspb proto. * @param {number} fieldNumber The field number. * @param {number} defaultValue The default value. * @return {number} The field's value. * @export */ -jspb.Message.getFloatingPointFieldWithDefault = function( +Message.getFloatingPointFieldWithDefault = function ( msg, fieldNumber, defaultValue) { - var value = jspb.Message.getOptionalFloatingPointField(msg, fieldNumber); + var value = Message.getOptionalFloatingPointField(msg, fieldNumber); if (value == null) { return defaultValue; } else { @@ -954,13 +859,13 @@ jspb.Message.getFloatingPointFieldWithDefault = function( /** * Alias for getFieldWithDefault used by older generated code. * @template T - * @param {!jspb.Message} msg A jspb proto. + * @param {!Message} msg A jspb proto. * @param {number} fieldNumber The field number. * @param {T} defaultValue The default value. * @return {T} The field's value. * @export */ -jspb.Message.getFieldProto3 = jspb.Message.getFieldWithDefault; +Message.getFieldProto3 = Message.getFieldWithDefault; /** @@ -972,14 +877,14 @@ jspb.Message.getFieldProto3 = jspb.Message.getFieldWithDefault; * construction time, and the map may be constructed here). * * @template K, V - * @param {!jspb.Message} msg + * @param {!Message} msg * @param {number} fieldNumber * @param {boolean|undefined} noLazyCreate * @param {?=} opt_valueCtor - * @return {!jspb.Map|undefined} + * @return {!Map|undefined} * @export */ -jspb.Message.getMapField = function( +Message.getMapField = function ( msg, fieldNumber, noLazyCreate, opt_valueCtor) { if (!msg.wrappers_) { msg.wrappers_ = {}; @@ -988,16 +893,16 @@ jspb.Message.getMapField = function( if (fieldNumber in msg.wrappers_) { return msg.wrappers_[fieldNumber]; } - var arr = jspb.Message.getField(msg, fieldNumber); + var arr = Message.getField(msg, fieldNumber); // Wrap the underlying elements array with a Map. if (!arr) { if (noLazyCreate) { return undefined; } arr = []; - jspb.Message.setField(msg, fieldNumber, arr); + Message.setField(msg, fieldNumber, arr); } - return msg.wrappers_[fieldNumber] = new jspb.Map( + return msg.wrappers_[fieldNumber] = new Map( /** @type {!Array>} */ (arr), opt_valueCtor); }; @@ -1011,13 +916,13 @@ jspb.Message.getMapField = function( * @template T * @export */ -jspb.Message.setField = function(msg, fieldNumber, value) { +Message.setField = function (msg, fieldNumber, value) { // TODO(b/35241823): replace this with a bounded generic when available - jspb.asserts.assertInstanceof(msg, jspb.Message); + asserts.assertInstanceof(msg, Message); if (fieldNumber < msg.pivot_) { - msg.array[jspb.Message.getIndex_(msg, fieldNumber)] = value; + msg.array[Message.getIndex_(msg, fieldNumber)] = value; } else { - jspb.Message.maybeInitEmptyExtensionObject_(msg); + Message.maybeInitEmptyExtensionObject_(msg); msg.extensionObject_[fieldNumber] = value; } return msg; @@ -1033,8 +938,8 @@ jspb.Message.setField = function(msg, fieldNumber, value) { * @template T * @export */ -jspb.Message.setProto3IntField = function(msg, fieldNumber, value) { - return jspb.Message.setFieldIgnoringDefault_(msg, fieldNumber, value, 0); +Message.setProto3IntField = function (msg, fieldNumber, value) { + return Message.setFieldIgnoringDefault_(msg, fieldNumber, value, 0); }; @@ -1047,8 +952,8 @@ jspb.Message.setProto3IntField = function(msg, fieldNumber, value) { * @template T * @export */ -jspb.Message.setProto3FloatField = function(msg, fieldNumber, value) { - return jspb.Message.setFieldIgnoringDefault_(msg, fieldNumber, value, 0.0); +Message.setProto3FloatField = function (msg, fieldNumber, value) { + return Message.setFieldIgnoringDefault_(msg, fieldNumber, value, 0.0); }; @@ -1061,8 +966,8 @@ jspb.Message.setProto3FloatField = function(msg, fieldNumber, value) { * @template T * @export */ -jspb.Message.setProto3BooleanField = function(msg, fieldNumber, value) { - return jspb.Message.setFieldIgnoringDefault_(msg, fieldNumber, value, false); +Message.setProto3BooleanField = function (msg, fieldNumber, value) { + return Message.setFieldIgnoringDefault_(msg, fieldNumber, value, false); }; @@ -1075,8 +980,8 @@ jspb.Message.setProto3BooleanField = function(msg, fieldNumber, value) { * @template T * @export */ -jspb.Message.setProto3StringField = function(msg, fieldNumber, value) { - return jspb.Message.setFieldIgnoringDefault_(msg, fieldNumber, value, ''); +Message.setProto3StringField = function (msg, fieldNumber, value) { + return Message.setFieldIgnoringDefault_(msg, fieldNumber, value, ''); }; @@ -1089,8 +994,8 @@ jspb.Message.setProto3StringField = function(msg, fieldNumber, value) { * @template T * @export */ -jspb.Message.setProto3BytesField = function(msg, fieldNumber, value) { - return jspb.Message.setFieldIgnoringDefault_(msg, fieldNumber, value, ''); +Message.setProto3BytesField = function (msg, fieldNumber, value) { + return Message.setFieldIgnoringDefault_(msg, fieldNumber, value, ''); }; @@ -1103,8 +1008,8 @@ jspb.Message.setProto3BytesField = function(msg, fieldNumber, value) { * @template T * @export */ -jspb.Message.setProto3EnumField = function(msg, fieldNumber, value) { - return jspb.Message.setFieldIgnoringDefault_(msg, fieldNumber, value, 0); +Message.setProto3EnumField = function (msg, fieldNumber, value) { + return Message.setFieldIgnoringDefault_(msg, fieldNumber, value, 0); }; @@ -1118,8 +1023,8 @@ jspb.Message.setProto3EnumField = function(msg, fieldNumber, value) { * @template T * @export */ -jspb.Message.setProto3StringIntField = function(msg, fieldNumber, value) { - return jspb.Message.setFieldIgnoringDefault_(msg, fieldNumber, value, '0'); +Message.setProto3StringIntField = function (msg, fieldNumber, value) { + return Message.setFieldIgnoringDefault_(msg, fieldNumber, value, '0'); }; /** @@ -1134,16 +1039,16 @@ jspb.Message.setProto3StringIntField = function(msg, fieldNumber, value) { * @template T * @private */ -jspb.Message.setFieldIgnoringDefault_ = function( +Message.setFieldIgnoringDefault_ = function ( msg, fieldNumber, value, defaultValue) { // TODO(b/35241823): replace this with a bounded generic when available - jspb.asserts.assertInstanceof(msg, jspb.Message); + asserts.assertInstanceof(msg, Message); if (value !== defaultValue) { - jspb.Message.setField(msg, fieldNumber, value); + Message.setField(msg, fieldNumber, value); } else if (fieldNumber < msg.pivot_) { - msg.array[jspb.Message.getIndex_(msg, fieldNumber)] = null; + msg.array[Message.getIndex_(msg, fieldNumber)] = null; } else { - jspb.Message.maybeInitEmptyExtensionObject_(msg); + Message.maybeInitEmptyExtensionObject_(msg); delete msg.extensionObject_[fieldNumber]; } return msg; @@ -1160,10 +1065,10 @@ jspb.Message.setFieldIgnoringDefault_ = function( * @template T * @export */ -jspb.Message.addToRepeatedField = function(msg, fieldNumber, value, opt_index) { +Message.addToRepeatedField = function (msg, fieldNumber, value, opt_index) { // TODO(b/35241823): replace this with a bounded generic when available - jspb.asserts.assertInstanceof(msg, jspb.Message); - var arr = jspb.Message.getRepeatedField(msg, fieldNumber); + asserts.assertInstanceof(msg, Message); + var arr = Message.getRepeatedField(msg, fieldNumber); if (opt_index != undefined) { arr.splice(opt_index, 0, value); } else { @@ -1184,17 +1089,17 @@ jspb.Message.addToRepeatedField = function(msg, fieldNumber, value, opt_index) { * @template T * @export */ -jspb.Message.setOneofField = function(msg, fieldNumber, oneof, value) { +Message.setOneofField = function (msg, fieldNumber, oneof, value) { // TODO(b/35241823): replace this with a bounded generic when available - jspb.asserts.assertInstanceof(msg, jspb.Message); - var currentCase = jspb.Message.computeOneofCase(msg, oneof); + asserts.assertInstanceof(msg, Message); + var currentCase = Message.computeOneofCase(msg, oneof); if (currentCase && currentCase !== fieldNumber && value !== undefined) { if (msg.wrappers_ && currentCase in msg.wrappers_) { msg.wrappers_[currentCase] = undefined; } - jspb.Message.setField(msg, currentCase, undefined); + Message.setField(msg, currentCase, undefined); } - return jspb.Message.setField(msg, fieldNumber, value); + return Message.setField(msg, fieldNumber, value); }; @@ -1210,30 +1115,30 @@ jspb.Message.setOneofField = function(msg, fieldNumber, oneof, value) { * with the greatest field number (directly corresponding to the greatest * array index). * - * @param {!jspb.Message} msg A jspb proto. + * @param {!Message} msg A jspb proto. * @param {!Array} oneof The field numbers belonging to the union. * @return {number} The field number currently set in the union, or 0 if none. * @export */ -jspb.Message.computeOneofCase = function(msg, oneof) { +Message.computeOneofCase = function (msg, oneof) { var oneofField; var oneofValue; for (var i = 0; i < oneof.length; i++) { var fieldNumber = oneof[i]; - var value = jspb.Message.getField(msg, fieldNumber); + var value = Message.getField(msg, fieldNumber); if (value != null) { oneofField = fieldNumber; oneofValue = value; - jspb.Message.setField(msg, fieldNumber, undefined); + Message.setField(msg, fieldNumber, undefined); } } if (oneofField) { - // NB: We know the value is unique, so we can call jspb.Message.setField + // NB: We know the value is unique, so we can call Message.setField // directly instead of jpsb.Message.setOneofField. Also, setOneofField // calls this function. - jspb.Message.setField(msg, oneofField, oneofValue); + Message.setField(msg, oneofField, oneofValue); return oneofField; } @@ -1243,61 +1148,61 @@ jspb.Message.computeOneofCase = function(msg, oneof) { /** * Gets and wraps a proto field on access. - * @param {!jspb.Message} msg A jspb proto. - * @param {function(new:jspb.Message, Array)} ctor Constructor for the field. + * @param {!Message} msg A jspb proto. + * @param {function(new:Message, Array)} ctor Constructor for the field. * @param {number} fieldNumber The field number. * @param {number=} opt_required True (1) if this is a required field. - * @return {jspb.Message} The field as a jspb proto. + * @return {Message} The field as a jspb proto. * @export */ -jspb.Message.getWrapperField = function(msg, ctor, fieldNumber, opt_required) { +Message.getWrapperField = function (msg, ctor, fieldNumber, opt_required) { // TODO(mwr): Consider copying data and/or arrays. if (!msg.wrappers_) { msg.wrappers_ = {}; } if (!msg.wrappers_[fieldNumber]) { - var data = /** @type {Array} */ (jspb.Message.getField(msg, fieldNumber)); + var data = /** @type {Array} */ (Message.getField(msg, fieldNumber)); if (opt_required || data) { // TODO(mwr): Remove existence test for always valid default protos. msg.wrappers_[fieldNumber] = new ctor(data); } } - return /** @type {jspb.Message} */ (msg.wrappers_[fieldNumber]); + return /** @type {Message} */ (msg.wrappers_[fieldNumber]); }; /** * Gets and wraps a repeated proto field on access. - * @param {!jspb.Message} msg A jspb proto. - * @param {function(new:jspb.Message, Array)} ctor Constructor for the field. + * @param {!Message} msg A jspb proto. + * @param {function(new:Message, Array)} ctor Constructor for the field. * @param {number} fieldNumber The field number. - * @return {!Array} The repeated field as an array of protos. + * @return {!Array} The repeated field as an array of protos. * @export */ -jspb.Message.getRepeatedWrapperField = function(msg, ctor, fieldNumber) { - jspb.Message.wrapRepeatedField_(msg, ctor, fieldNumber); +Message.getRepeatedWrapperField = function (msg, ctor, fieldNumber) { + Message.wrapRepeatedField_(msg, ctor, fieldNumber); var val = msg.wrappers_[fieldNumber]; - if (val == jspb.Message.EMPTY_LIST_SENTINEL_) { + if (val == Message.EMPTY_LIST_SENTINEL_) { val = msg.wrappers_[fieldNumber] = []; } - return /** @type {!Array} */ (val); + return /** @type {!Array} */ (val); }; /** * Wraps underlying array into proto message representation if it wasn't done * before. - * @param {!jspb.Message} msg A jspb proto. - * @param {function(new:jspb.Message, ?Array)} ctor Constructor for the field. + * @param {!Message} msg A jspb proto. + * @param {function(new:Message, ?Array)} ctor Constructor for the field. * @param {number} fieldNumber The field number. * @private */ -jspb.Message.wrapRepeatedField_ = function(msg, ctor, fieldNumber) { +Message.wrapRepeatedField_ = function (msg, ctor, fieldNumber) { if (!msg.wrappers_) { msg.wrappers_ = {}; } if (!msg.wrappers_[fieldNumber]) { - var data = jspb.Message.getRepeatedField(msg, fieldNumber); + var data = Message.getRepeatedField(msg, fieldNumber); for (var wrappers = [], i = 0; i < data.length; i++) { wrappers[i] = new ctor(data[i]); } @@ -1310,21 +1215,21 @@ jspb.Message.wrapRepeatedField_ = function(msg, ctor, fieldNumber) { * Sets a proto field and syncs it to the backing array. * @param {T} msg A jspb proto. * @param {number} fieldNumber The field number. - * @param {?jspb.Message|?jspb.Map|undefined} value A new value for this proto + * @param {?Message|?Map|undefined} value A new value for this proto * field. * @return {T} the msg * @template T * @export */ -jspb.Message.setWrapperField = function(msg, fieldNumber, value) { +Message.setWrapperField = function (msg, fieldNumber, value) { // TODO(b/35241823): replace this with a bounded generic when available - jspb.asserts.assertInstanceof(msg, jspb.Message); + asserts.assertInstanceof(msg, Message); if (!msg.wrappers_) { msg.wrappers_ = {}; } var data = value ? value.toArray() : value; msg.wrappers_[fieldNumber] = value; - return jspb.Message.setField(msg, fieldNumber, data); + return Message.setField(msg, fieldNumber, data); }; @@ -1334,20 +1239,20 @@ jspb.Message.setWrapperField = function(msg, fieldNumber, value) { * @param {T} msg A jspb proto. * @param {number} fieldNumber The field number. * @param {!Array} oneof The fields belonging to the union. - * @param {jspb.Message|undefined} value A new value for this proto field. + * @param {Message|undefined} value A new value for this proto field. * @return {T} the msg * @template T * @export */ -jspb.Message.setOneofWrapperField = function(msg, fieldNumber, oneof, value) { +Message.setOneofWrapperField = function (msg, fieldNumber, oneof, value) { // TODO(b/35241823): replace this with a bounded generic when available - jspb.asserts.assertInstanceof(msg, jspb.Message); + asserts.assertInstanceof(msg, Message); if (!msg.wrappers_) { msg.wrappers_ = {}; } var data = value ? value.toArray() : value; msg.wrappers_[fieldNumber] = value; - return jspb.Message.setOneofField(msg, fieldNumber, oneof, data); + return Message.setOneofField(msg, fieldNumber, oneof, data); }; @@ -1355,14 +1260,14 @@ jspb.Message.setOneofWrapperField = function(msg, fieldNumber, oneof, value) { * Sets a repeated proto field and syncs it to the backing array. * @param {T} msg A jspb proto. * @param {number} fieldNumber The field number. - * @param {Array|undefined} value An array of protos. + * @param {Array|undefined} value An array of protos. * @return {T} the msg * @template T * @export */ -jspb.Message.setRepeatedWrapperField = function(msg, fieldNumber, value) { +Message.setRepeatedWrapperField = function (msg, fieldNumber, value) { // TODO(b/35241823): replace this with a bounded generic when available - jspb.asserts.assertInstanceof(msg, jspb.Message); + asserts.assertInstanceof(msg, Message); if (!msg.wrappers_) { msg.wrappers_ = {}; } @@ -1371,13 +1276,13 @@ jspb.Message.setRepeatedWrapperField = function(msg, fieldNumber, value) { data[i] = value[i].toArray(); } msg.wrappers_[fieldNumber] = value; - return jspb.Message.setField(msg, fieldNumber, data); + return Message.setField(msg, fieldNumber, data); }; /** * Add a message to a repeated proto field. - * @param {!jspb.Message} msg A jspb proto. + * @param {!Message} msg A jspb proto. * @param {number} fieldNumber The field number. * @param {T_CHILD|undefined} value Proto that will be added to the * repeated field. @@ -1397,15 +1302,15 @@ jspb.Message.setRepeatedWrapperField = function(msg, fieldNumber, value) { * =: * @export */ -jspb.Message.addToRepeatedWrapperField = function( +Message.addToRepeatedWrapperField = function ( msg, fieldNumber, value, ctor, index) { - jspb.Message.wrapRepeatedField_(msg, ctor, fieldNumber); + Message.wrapRepeatedField_(msg, ctor, fieldNumber); var wrapperArray = msg.wrappers_[fieldNumber]; if (!wrapperArray) { wrapperArray = msg.wrappers_[fieldNumber] = []; } var insertedValue = value ? value : new ctor(); - var array = jspb.Message.getRepeatedField(msg, fieldNumber); + var array = Message.getRepeatedField(msg, fieldNumber); if (index != undefined) { wrapperArray.splice(index, 0, insertedValue); array.splice(index, 0, insertedValue.toArray()); @@ -1435,14 +1340,14 @@ jspb.Message.addToRepeatedWrapperField = function( * @template T * @export */ -jspb.Message.toMap = function( +Message.toMap = function ( field, mapKeyGetterFn, opt_toObjectFn, opt_includeInstance) { var result = {}; for (var i = 0; i < field.length; i++) { result[mapKeyGetterFn.call(field[i])] = opt_toObjectFn ? opt_toObjectFn.call( field[i], opt_includeInstance, - /** @type {!jspb.Message} */ (field[i])) : + /** @type {!Message} */(field[i])) : field[i]; } return result; @@ -1453,7 +1358,7 @@ jspb.Message.toMap = function( * Syncs all map fields' contents back to their underlying arrays. * @private */ -jspb.Message.prototype.syncMapFields_ = function() { +Message.prototype.syncMapFields_ = function () { // This iterates over submessage, map, and repeated fields, which is intended. // Submessages can contain maps which also need to be synced. // @@ -1488,14 +1393,14 @@ jspb.Message.prototype.syncMapFields_ = function() { * @return {!Array} The proto represented as an array. * @export */ -jspb.Message.prototype.toArray = function() { +Message.prototype.toArray = function () { this.syncMapFields_(); return this.array; }; -if (jspb.Message.GENERATE_TO_STRING) { +if (Message.GENERATE_TO_STRING) { /** * Creates a string representation of the internal data array of this proto. *

NOTE: This string is *not* suitable for use in server requests. @@ -1503,7 +1408,7 @@ if (jspb.Message.GENERATE_TO_STRING) { * @override * @export */ - jspb.Message.prototype.toString = function() { + Message.prototype.toString = function () { this.syncMapFields_(); return this.array.toString(); }; @@ -1511,12 +1416,12 @@ if (jspb.Message.GENERATE_TO_STRING) { /** * Gets the value of the extension field from the extended object. - * @param {jspb.ExtensionFieldInfo} fieldInfo Specifies the field to get. + * @param {ExtensionFieldInfo} fieldInfo Specifies the field to get. * @return {T} The value of the field. * @template T * @export */ -jspb.Message.prototype.getExtension = function(fieldInfo) { +Message.prototype.getExtension = function (fieldInfo) { if (!this.extensionObject_) { return undefined; } @@ -1527,7 +1432,7 @@ jspb.Message.prototype.getExtension = function(fieldInfo) { if (fieldInfo.isRepeated) { if (fieldInfo.isMessageType()) { if (!this.wrappers_[fieldNumber]) { - this.wrappers_[fieldNumber] = goog.array.map( + this.wrappers_[fieldNumber] = googArray.map( this.extensionObject_[fieldNumber] || [], function(arr) { return new fieldInfo.ctor(arr); }); @@ -1553,29 +1458,29 @@ jspb.Message.prototype.getExtension = function(fieldInfo) { /** * Sets the value of the extension field in the extended object. - * @param {jspb.ExtensionFieldInfo} fieldInfo Specifies the field to set. - * @param {jspb.Message|string|Uint8Array|number|boolean|Array?} value The value + * @param {ExtensionFieldInfo} fieldInfo Specifies the field to set. + * @param {Message|string|Uint8Array|number|boolean|Array?} value The value * to set. * @return {THIS} For chaining * @this {THIS} * @template THIS * @export */ -jspb.Message.prototype.setExtension = function(fieldInfo, value) { +Message.prototype.setExtension = function (fieldInfo, value) { // Cast self, since the inferred THIS is unknown inside the function body. // https://github.com/google/closure-compiler/issues/1411#issuecomment-232442220 - var self = /** @type {!jspb.Message} */ (this); + var self = /** @type {!Message} */ (this); if (!self.wrappers_) { self.wrappers_ = {}; } - jspb.Message.maybeInitEmptyExtensionObject_(self); + Message.maybeInitEmptyExtensionObject_(self); var fieldNumber = fieldInfo.fieldIndex; if (fieldInfo.isRepeated) { value = value || []; if (fieldInfo.isMessageType()) { self.wrappers_[fieldNumber] = value; - self.extensionObject_[fieldNumber] = goog.array.map( - /** @type {!Array} */ (value), function(msg) { + self.extensionObject_[fieldNumber] = googArray.map( + /** @type {!Array} */(value), function (msg) { return msg.toArray(); }); } else { @@ -1585,7 +1490,7 @@ jspb.Message.prototype.setExtension = function(fieldInfo, value) { if (fieldInfo.isMessageType()) { self.wrappers_[fieldNumber] = value; self.extensionObject_[fieldNumber] = - value ? /** @type {!jspb.Message} */ (value).toArray() : value; + value ? /** @type {!Message} */ (value).toArray() : value; } else { self.extensionObject_[fieldNumber] = value; } @@ -1606,9 +1511,9 @@ jspb.Message.prototype.setExtension = function(fieldInfo, value) { * the same if the only difference between them is due to trailing * null/undefined values. * - * @param {!jspb.Message} m1 The first message object. - * @param {!jspb.Message} m2 The second message object. - * @return {!jspb.Message} The difference returned as a proto message. + * @param {!Message} m1 The first message object. + * @param {!Message} m2 The second message object. + * @return {!Message} The difference returned as a proto message. * Note that the returned message may be missing required fields. This is * currently tolerated in Js, but would cause an error if you tried to * send such a proto to the server. You can access the raw difference @@ -1616,7 +1521,7 @@ jspb.Message.prototype.setExtension = function(fieldInfo, value) { * @throws {Error} If the messages are responses with different types. * @export */ -jspb.Message.difference = function(m1, m2) { +Message.difference = function (m1, m2) { if (!(m1 instanceof m2.constructor)) { throw new Error('Messages have different types.'); } @@ -1630,7 +1535,7 @@ jspb.Message.difference = function(m1, m2) { start = 1; } for (var i = start; i < length; i++) { - if (!jspb.Message.compareFields(arr1[i], arr2[i])) { + if (!Message.compareFields(arr1[i], arr2[i])) { res[i] = arr2[i]; } } @@ -1640,16 +1545,16 @@ jspb.Message.difference = function(m1, m2) { /** * Tests whether two messages are equal. - * @param {jspb.Message|undefined} m1 The first message object. - * @param {jspb.Message|undefined} m2 The second message object. + * @param {Message|undefined} m1 The first message object. + * @param {Message|undefined} m2 The second message object. * @return {boolean} true if both messages are null/undefined, or if both are * of the same type and have the same field values. * @export */ -jspb.Message.equals = function(m1, m2) { +Message.equals = function (m1, m2) { return m1 == m2 || (!!(m1 && m2) && (m1 instanceof m2.constructor) && - jspb.Message.compareFields(m1.toArray(), m2.toArray())); + Message.compareFields(m1.toArray(), m2.toArray())); }; @@ -1661,7 +1566,7 @@ jspb.Message.equals = function(m1, m2) { * equal. * @export */ -jspb.Message.compareExtensions = function(extension1, extension2) { +Message.compareExtensions = function (extension1, extension2) { extension1 = extension1 || {}; extension2 = extension2 || {}; @@ -1673,7 +1578,7 @@ jspb.Message.compareExtensions = function(extension1, extension2) { keys[name] = 0; } for (name in keys) { - if (!jspb.Message.compareFields(extension1[name], extension2[name])) { + if (!Message.compareFields(extension1[name], extension2[name])) { return false; } } @@ -1688,7 +1593,7 @@ jspb.Message.compareExtensions = function(extension1, extension2) { * @return {boolean} true if the fields are null/undefined, or otherwise equal. * @export */ -jspb.Message.compareFields = function(field1, field2) { +Message.compareFields = function (field1, field2) { // If the fields are trivially equal, they're equal. if (field1 == field2) return true; @@ -1710,7 +1615,7 @@ jspb.Message.compareFields = function(field1, field2) { if (field1.constructor != field2.constructor) return false; // If both are Uint8Arrays, compare them element-by-element. - if (jspb.Message.SUPPORTS_UINT8ARRAY_ && field1.constructor === Uint8Array) { + if (Message.SUPPORTS_UINT8ARRAY_ && field1.constructor === Uint8Array) { var bytes1 = /** @type {!Uint8Array} */ (field1); var bytes2 = /** @type {!Uint8Array} */ (field2); if (bytes1.length != bytes2.length) return false; @@ -1734,20 +1639,20 @@ jspb.Message.compareFields = function(field1, field2) { var val2 = typedField2[i]; if (val1 && (val1.constructor == Object)) { - jspb.asserts.assert(extension1 === undefined); - jspb.asserts.assert(i === typedField1.length - 1); + asserts.assert(extension1 === undefined); + asserts.assert(i === typedField1.length - 1); extension1 = val1; val1 = undefined; } if (val2 && (val2.constructor == Object)) { - jspb.asserts.assert(extension2 === undefined); - jspb.asserts.assert(i === typedField2.length - 1); + asserts.assert(extension2 === undefined); + asserts.assert(i === typedField2.length - 1); extension2 = val2; val2 = undefined; } - if (!jspb.Message.compareFields(val1, val2)) { + if (!Message.compareFields(val1, val2)) { return false; } } @@ -1755,7 +1660,7 @@ jspb.Message.compareFields = function(field1, field2) { if (extension1 || extension2) { extension1 = extension1 || {}; extension2 = extension2 || {}; - return jspb.Message.compareExtensions(extension1, extension2); + return Message.compareExtensions(extension1, extension2); } return true; @@ -1764,7 +1669,7 @@ jspb.Message.compareFields = function(field1, field2) { // If they're both plain Objects (i.e. extensions), compare them as // extensions. if (field1.constructor === Object) { - return jspb.Message.compareExtensions(field1, field2); + return Message.compareExtensions(field1, field2); } throw new Error('Invalid type in JSPB array'); @@ -1778,8 +1683,8 @@ jspb.Message.compareFields = function(field1, field2) { * @template THIS * @export */ -jspb.Message.prototype.cloneMessage = function() { - return jspb.Message.cloneMessage(/** @type {!jspb.Message} */ (this)); +Message.prototype.cloneMessage = function () { + return Message.cloneMessage(/** @type {!Message} */(this)); }; /** @@ -1791,32 +1696,32 @@ jspb.Message.prototype.cloneMessage = function() { * @template THIS * @export */ -jspb.Message.prototype.clone = function() { - return jspb.Message.cloneMessage(/** @type {!jspb.Message} */ (this)); +Message.prototype.clone = function () { + return Message.cloneMessage(/** @type {!Message} */(this)); }; /** * Static clone function. NOTE: A type-safe method called "cloneMessage" * exists * on each generated JsPb class. Do not call this function directly. - * @param {!jspb.Message} msg A message to clone. - * @return {!jspb.Message} A deep clone of the given message. + * @param {!Message} msg A message to clone. + * @return {!Message} A deep clone of the given message. * @export */ -jspb.Message.clone = function(msg) { +Message.clone = function (msg) { // Although we could include the wrappers, we leave them out here. - return jspb.Message.cloneMessage(msg); + return Message.cloneMessage(msg); }; /** - * @param {!jspb.Message} msg A message to clone. - * @return {!jspb.Message} A deep clone of the given message. + * @param {!Message} msg A message to clone. + * @return {!Message} A deep clone of the given message. * @protected */ -jspb.Message.cloneMessage = function(msg) { +Message.cloneMessage = function (msg) { // Although we could include the wrappers, we leave them out here. - return new msg.constructor(jspb.Message.clone_(msg.toArray())); + return new msg.constructor(Message.clone_(msg.toArray())); }; @@ -1832,14 +1737,14 @@ jspb.Message.cloneMessage = function(msg) { * @template MESSAGE * @export */ -jspb.Message.copyInto = function(fromMessage, toMessage) { - jspb.asserts.assertInstanceof(fromMessage, jspb.Message); - jspb.asserts.assertInstanceof(toMessage, jspb.Message); - jspb.asserts.assert( +Message.copyInto = function (fromMessage, toMessage) { + asserts.assertInstanceof(fromMessage, Message); + asserts.assertInstanceof(toMessage, Message); + asserts.assert( fromMessage.constructor == toMessage.constructor, 'Copy source and target message should have the same type.'); - var copyOfFrom = jspb.Message.clone(fromMessage); + var copyOfFrom = Message.clone(fromMessage); var to = toMessage.toArray(); var from = copyOfFrom.toArray(); @@ -1864,7 +1769,7 @@ jspb.Message.copyInto = function(fromMessage, toMessage) { * @return {!Object} A clone of the input object. * @private */ -jspb.Message.clone_ = function(obj) { +Message.clone_ = function (obj) { var o; if (Array.isArray(obj)) { // Allocate array of correct size. @@ -1876,13 +1781,13 @@ jspb.Message.clone_ = function(obj) { // NOTE:redundant null check existing for NTI compatibility. // see b/70515949 clonedArray[i] = (typeof o == 'object') ? - jspb.Message.clone_(/** @type {!Object} */(jspb.asserts.assert(o))) : + Message.clone_(/** @type {!Object} */(asserts.assert(o))) : o; } } return clonedArray; } - if (jspb.Message.SUPPORTS_UINT8ARRAY_ && obj instanceof Uint8Array) { + if (Message.SUPPORTS_UINT8ARRAY_ && obj instanceof Uint8Array) { return new Uint8Array(obj); } var clone = {}; @@ -1892,7 +1797,7 @@ jspb.Message.clone_ = function(obj) { // NOTE:redundant null check existing for NTI compatibility. // see b/70515949 clone[key] = (typeof o == 'object') ? - jspb.Message.clone_(/** @type {!Object} */(jspb.asserts.assert(o))) : + Message.clone_(/** @type {!Object} */(asserts.assert(o))) : o; } } @@ -1906,7 +1811,7 @@ jspb.Message.clone_ = function(obj) { * @param {Function} constructor The message constructor. * @export */ -jspb.Message.registerMessageType = function(id, constructor) { +Message.registerMessageType = function (id, constructor) { // This is needed so we can later access messageId directly on the // constructor, otherwise it is not available due to 'property collapsing' by // the compiler. @@ -1924,11 +1829,12 @@ jspb.Message.registerMessageType = function(id, constructor) { * non-MessageSet. We special case MessageSet so that we do not need * to goog.require MessageSet from classes that extends MessageSet. * - * @type {!Object} + * @type {!Object} */ -jspb.Message.messageSetExtensions = {}; +Message.messageSetExtensions = {}; /** - * @type {!Object} + * @type {!Object} */ -jspb.Message.messageSetExtensionsBinary = {}; +Message.messageSetExtensionsBinary = {}; +exports = Message; From a908831feec99c076619bc01885ae3ef1006b32a Mon Sep 17 00:00:00 2001 From: Paul Cody Date: Thu, 18 Dec 2025 01:58:02 -0700 Subject: [PATCH 12/40] Replace Node.js version header generator with C++ implementation (#261) Replaces the Node.js-based generate-version-header.js script with a C++ implementation to eliminate the Node.js runtime dependency from the build process. The new C++ tool reads package.json and generates the same version.h header file. Also fixes Closure Compiler errors under strict mode in extension_field_binary_info.js and map.js by properly assigning goog.requireType calls to const variables instead of using standalone goog.requireType calls. Changes: - Add generator/generate-version-header.cc with C++ implementation - Remove generate-version-header.js - Update generator/BUILD.bazel to use cc_binary instead of Node.js script - Add rules_cc dependency to MODULE.bazel - Update BUILD.bazel to remove deleted script from exports_files - Fix goog.requireType usage in extension_field_binary_info.js and map.js --- BUILD.bazel | 27 +++++----- MODULE.bazel | 3 +- extension_field_binary_info.js | 10 ++-- generate-version-header.js | 14 ----- generator/BUILD.bazel | 19 ++++--- generator/generate-version-header.cc | 79 ++++++++++++++++++++++++++++ map.js | 32 +++++------ 7 files changed, 127 insertions(+), 57 deletions(-) delete mode 100644 generate-version-header.js create mode 100644 generator/generate-version-header.cc diff --git a/BUILD.bazel b/BUILD.bazel index 6604d3a..7461adb 100644 --- a/BUILD.bazel +++ b/BUILD.bazel @@ -6,7 +6,7 @@ load("@rules_pkg//:mappings.bzl", "pkg_attributes", "pkg_files", "strip_prefix") load("@rules_pkg//:pkg.bzl", "pkg_tar", "pkg_zip") load("//:protobuf_javascript_release.bzl", "package_naming") -exports_files(["generate-version-header.js", "package.json"]) +exports_files(["package.json"]) config_setting( name = "x64_x86_windows", @@ -36,13 +36,13 @@ config_setting( package_naming( name = "protobuf_javascript_pkg_naming", platform = select({ - ":k8": "linux-x86_64", # currently the only supported build type in Github Actions + ":k8": "linux-x86_64", # currently the only supported build type in Github Actions ":x64_x86_windows": "win32", ":x64_windows": "win64", ":darwin_arm64": "osx-aarch_64", ":darwin_x86_64": "osx-x86_64", - "//conditions:default": "" # continues with current behavior when no --cpu is specified allowing existing internal builds to function - }) + "//conditions:default": "", # continues with current behavior when no --cpu is specified allowing existing internal builds to function + }), ) pkg_files( @@ -54,15 +54,18 @@ pkg_files( pkg_files( name = "dist_files", - srcs = glob([ - "google/protobuf/*.js", - "google/protobuf/compiler/*.js" - ], allow_empty = True) + [ - "google-protobuf.js", - "package.json", - "README.md", + srcs = glob( + [ + "google/protobuf/*.js", + "google/protobuf/compiler/*.js", + ], + allow_empty = True, + ) + [ "LICENSE.md", "LICENSE-asserts.md", + "README.md", + "google-protobuf.js", + "package.json", ], strip_prefix = strip_prefix.from_root(""), ) @@ -93,5 +96,5 @@ filegroup( srcs = [ ":dist_tar", ":dist_zip", - ] + ], ) diff --git a/MODULE.bazel b/MODULE.bazel index 2576f46..3acc005 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -1,5 +1,6 @@ module(name = "protobuf_javascript", version = "4.0.1") +bazel_dep(name = "abseil-cpp", version = "20250512.1") bazel_dep(name = "protobuf", version = "33.0", repo_name = "com_google_protobuf") +bazel_dep(name = "rules_cc", version = "0.2.15") bazel_dep(name = "rules_pkg", version = "1.0.1") -bazel_dep(name = "abseil-cpp", version = "20250512.1") diff --git a/extension_field_binary_info.js b/extension_field_binary_info.js index 4f79100..e8adeb1 100644 --- a/extension_field_binary_info.js +++ b/extension_field_binary_info.js @@ -36,15 +36,15 @@ goog.module('jspb.ExtensionFieldBinaryInfo'); goog.module.declareLegacyNamespace(); const ExtensionFieldInfo = goog.require('jspb.ExtensionFieldInfo'); -goog.requireType('jspb.BinaryReader'); -goog.requireType('jspb.BinaryWriter'); +const BinaryReader = goog.requireType('jspb.BinaryReader'); +const BinaryWriter = goog.requireType('jspb.BinaryWriter'); /** * Stores binary-related information for a single extension field. * @param {!ExtensionFieldInfo} fieldInfo - * @param {function(this:jspb.BinaryReader,number,?,?)} binaryReaderFn - * @param {function(this:jspb.BinaryWriter,number,?) - * |function(this:jspb.BinaryWriter,number,?,?,?,?,?)} binaryWriterFn + * @param {function(this:BinaryReader,number,?,?)} binaryReaderFn + * @param {function(this:BinaryWriter,number,?) + * |function(this:BinaryWriter,number,?,?,?,?,?)} binaryWriterFn * @param {function(?,?)=} opt_binaryMessageSerializeFn * @param {function(?,?)=} opt_binaryMessageDeserializeFn * @param {boolean=} opt_isPacked diff --git a/generate-version-header.js b/generate-version-header.js deleted file mode 100644 index c21ca67..0000000 --- a/generate-version-header.js +++ /dev/null @@ -1,14 +0,0 @@ -const fs = require('fs'); -const path = require('path'); - -const version = require('./package.json').version; -const headerContent = `// Generated by generate-version-header.js -#ifndef PROTOBUF_JAVASCRIPT_VERSION_H__ -#define PROTOBUF_JAVASCRIPT_VERSION_H__ - -const char* const kProtobufJavascriptVersion = "${version}"; - -#endif // PROTOBUF_JAVASCRIPT_VERSION_H__ -`; - -fs.writeFileSync(process.argv[2], headerContent); diff --git a/generator/BUILD.bazel b/generator/BUILD.bazel index ac7756d..0c42d0f 100644 --- a/generator/BUILD.bazel +++ b/generator/BUILD.bazel @@ -1,9 +1,16 @@ +load("@rules_cc//cc:defs.bzl", "cc_binary") + +cc_binary( + name = "generate-version-header", + srcs = ["generate-version-header.cc"], +) + genrule( name = "generate_version_header", srcs = ["//:package.json"], outs = ["version.h"], - cmd = "node $(location //:generate-version-header.js) $(OUTS)", - tools = ["//:generate-version-header.js"], + cmd = "$(location :generate-version-header) $(location //:package.json) $(OUTS)", + tools = [":generate-version-header"], ) cc_binary( @@ -18,15 +25,13 @@ cc_binary( ], visibility = ["//visibility:public"], deps = [ + "@abseil-cpp//absl/strings", + "@abseil-cpp//absl/strings:str_format", "@com_google_protobuf//:protobuf", + "@com_google_protobuf//:protoc_lib", "@com_google_protobuf//src/google/protobuf/compiler:code_generator", "@com_google_protobuf//src/google/protobuf/io", "@com_google_protobuf//src/google/protobuf/io:printer", "@com_google_protobuf//src/google/protobuf/io:tokenizer", - "@com_google_protobuf//:protoc_lib", - "@abseil-cpp//absl/strings", - "@abseil-cpp//absl/strings:str_format", ], ) - - diff --git a/generator/generate-version-header.cc b/generator/generate-version-header.cc new file mode 100644 index 0000000..adca0da --- /dev/null +++ b/generator/generate-version-header.cc @@ -0,0 +1,79 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#include +#include +#include +#include +#include + +std::string ReadPackageVersion(const std::string& package_json_path) { + std::ifstream file(package_json_path); + if (!file.is_open()) { + std::cerr << "Error: Could not open " << package_json_path << std::endl; + exit(1); + } + + std::stringstream buffer; + buffer << file.rdbuf(); + std::string content = buffer.str(); + + // Simple regex to extract version field from package.json + std::regex version_regex(R"#("version"\s*:\s*"([^"]+)")#"); + std::smatch match; + + if (std::regex_search(content, match, version_regex)) { + return match[1].str(); + } + + std::cerr << "Error: Could not find version in " << package_json_path + << std::endl; + exit(1); +} + +void GenerateHeaderFile(const std::string& output_path, + const std::string& version) { + std::ofstream file(output_path); + if (!file.is_open()) { + std::cerr << "Error: Could not write to " << output_path << std::endl; + exit(1); + } + + file << "// Generated by generate-version-header.cc\n" + << "#ifndef PROTOBUF_JAVASCRIPT_VERSION_H__\n" + << "#define PROTOBUF_JAVASCRIPT_VERSION_H__\n" + << "\n" + << "const char* const kProtobufJavascriptVersion = \"" << version + << "\";\n" + << "\n" + << "#endif // PROTOBUF_JAVASCRIPT_VERSION_H__\n"; +} + +int main(int argc, char* argv[]) { + if (argc != 3) { + std::cerr << "Usage: " << argv[0] << " " << std::endl; + return 1; + } + + std::string package_json_path = argv[1]; + std::string output_path = argv[2]; + + std::string version = ReadPackageVersion(package_json_path); + GenerateHeaderFile(output_path, version); + + std::cout << "Generated " << output_path << " with version " << version + << std::endl; + + return 0; +} diff --git a/map.js b/map.js index e46087c..394d1d1 100644 --- a/map.js +++ b/map.js @@ -68,12 +68,8 @@ goog.module('jspb.Map'); goog.module.declareLegacyNamespace(); - const asserts = goog.require('jspb.asserts'); - -goog.requireType('jspb.BinaryReader'); -goog.requireType('jspb.BinaryWriter'); - +const BinaryReader = goog.requireType('jspb.BinaryReader'); /** @@ -268,13 +264,13 @@ const ArrayIteratorIterable_ = function (arr) { /** @override @final */ ArrayIteratorIterable_.prototype.next = function () { if (this.idx_ < this.arr_.length) { - return {done: false, value: this.arr_[this.idx_++]}; + return { done: false, value: this.arr_[this.idx_++] }; } else { - return {done: true, value: undefined}; + return { done: true, value: undefined }; } }; -if (typeof(Symbol) != 'undefined') { +if (typeof (Symbol) != 'undefined') { /** @override */ ArrayIteratorIterable_.prototype[Symbol.iterator] = function () { return this; @@ -488,17 +484,17 @@ Map.prototype.has = function (key) { * we should default it to 0. * @template K, V * @param {!Map} map - * @param {!jspb.BinaryReader} reader - * @param {function(this:jspb.BinaryReader):K} keyReaderFn + * @param {!BinaryReader} reader + * @param {function(this:BinaryReader):K} keyReaderFn * The method on BinaryReader that reads type K from the stream. * - * @param {function(this:jspb.BinaryReader):V| - * function(this:jspb.BinaryReader,V, - * function(V,!jspb.BinaryReader))} valueReaderFn + * @param {function(this:BinaryReader):V| + * function(this:BinaryReader,V, + * function(V,!BinaryReader))} valueReaderFn * The method on BinaryReader that reads type V from the stream. May be * readMessage, in which case the second callback arg form is used. * - * @param {?function(V,!jspb.BinaryReader)=} opt_valueReaderCallback + * @param {?function(V,!BinaryReader)=} opt_valueReaderCallback * The BinaryReader parsing callback for type V, if V is a message type * * @param {K=} opt_defaultKey @@ -514,8 +510,8 @@ Map.prototype.has = function (key) { * */ Map.deserializeBinary = function (map, reader, keyReaderFn, valueReaderFn, - opt_valueReaderCallback, opt_defaultKey, - opt_defaultValue) { + opt_valueReaderCallback, opt_defaultKey, + opt_defaultValue) { var key = opt_defaultKey; var value = opt_defaultValue; @@ -540,8 +536,8 @@ Map.deserializeBinary = function (map, reader, keyReaderFn, valueReaderFn, valueReaderFn.call(reader, value, opt_valueReaderCallback); } else { value = - (/** @type {function(this:jspb.BinaryReader):?} */ (valueReaderFn)) - .call(reader); + (/** @type {function(this:BinaryReader):?} */ (valueReaderFn)) + .call(reader); } } } From ed7064f15feb061d21099e1b9867c69ab767001a Mon Sep 17 00:00:00 2001 From: Paul Cody Date: Fri, 19 Dec 2025 00:16:56 -0700 Subject: [PATCH 13/40] Add Bazel Central Registry (BCR) publishing support (#262) * Replace Node.js version header generator with C++ implementation Replaces the Node.js-based generate-version-header.js script with a C++ implementation to eliminate the Node.js runtime dependency from the build process. The new C++ tool reads package.json and generates the same version.h header file. Also fixes Closure Compiler errors under strict mode in extension_field_binary_info.js and map.js by properly assigning goog.requireType calls to const variables instead of using standalone goog.requireType calls. Changes: - Add generator/generate-version-header.cc with C++ implementation - Remove generate-version-header.js - Update generator/BUILD.bazel to use cc_binary instead of Node.js script - Add rules_cc dependency to MODULE.bazel - Update BUILD.bazel to remove deleted script from exports_files - Fix goog.requireType usage in extension_field_binary_info.js and map.js * Add BCR boilerplate * Add //:javascript target * Add patch to remove dist-related bazel targets from root BUILD file * Mark rules_pkg as a dev dependency * bcr: remove non-google maintainer * Remove version string in MODULE.bazel * Add e2e/bcr to bazelignore Also add .bazelrc configuration to disallow auto-importing previously native symbols (e.g. sh_binary) --- .bazelignore | 1 + .bazelrc | 7 +- .bcr/metadata.template.json | 15 ++ .bcr/patches/remove-dist.patch | 88 +++++++++ .bcr/presubmit.yml | 12 ++ .bcr/source.template.json | 5 + .github/workflows/publish.yaml | 36 ++++ .github/workflows/release.yaml | 35 ++++ .github/workflows/release_prep.sh | 28 +++ BUILD.bazel | 38 ++++ MODULE.bazel | 6 +- MODULE.bazel.lock | 115 +----------- e2e/bcr/.bazelrc | 1 + e2e/bcr/BUILD.bazel | 37 ++++ e2e/bcr/MODULE.bazel | 6 + e2e/bcr/MODULE.bazel.lock | 290 ++++++++++++++++++++++++++++++ e2e/bcr/README.md | 6 + e2e/bcr/simple.proto | 39 ++++ e2e/bcr/simple_js_test.sh | 23 +++ 19 files changed, 674 insertions(+), 114 deletions(-) create mode 100644 .bazelignore create mode 100644 .bcr/metadata.template.json create mode 100644 .bcr/patches/remove-dist.patch create mode 100644 .bcr/presubmit.yml create mode 100644 .bcr/source.template.json create mode 100644 .github/workflows/publish.yaml create mode 100644 .github/workflows/release.yaml create mode 100755 .github/workflows/release_prep.sh create mode 100644 e2e/bcr/.bazelrc create mode 100644 e2e/bcr/BUILD.bazel create mode 100644 e2e/bcr/MODULE.bazel create mode 100644 e2e/bcr/MODULE.bazel.lock create mode 100644 e2e/bcr/README.md create mode 100644 e2e/bcr/simple.proto create mode 100755 e2e/bcr/simple_js_test.sh diff --git a/.bazelignore b/.bazelignore new file mode 100644 index 0000000..eac1fc4 --- /dev/null +++ b/.bazelignore @@ -0,0 +1 @@ +e2e/bcr diff --git a/.bazelrc b/.bazelrc index 74109e9..7d6623d 100644 --- a/.bazelrc +++ b/.bazelrc @@ -1,5 +1,6 @@ build:linux --cxxopt=-std=c++17 --host_cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 --host_cxxopt=-std=c++17 +build:windows --cxxopt=/std:c++17 --host_cxxopt=/std:c++17 build:dbg --compilation_mode=dbg @@ -29,12 +30,12 @@ build:ubsan --copt=-fno-sanitize=function --copt=-fno-sanitize=vptr build --features=layering_check common --enable_platform_specific_config -build:windows --cxxopt=/std:c++17 -build:windows --host_cxxopt=/std:c++17 - common --repo_env=BAZEL_NO_APPLE_CPP_TOOLCHAIN=1 # Allow building with MSVC, which is being deprecated. # See: https://github.com/protocolbuffers/protobuf/issues/20085 build --define=protobuf_allow_msvc=true + +# To facilitate testing in bazelci incompatible flags +build --incompatible_autoload_externally= \ No newline at end of file diff --git a/.bcr/metadata.template.json b/.bcr/metadata.template.json new file mode 100644 index 0000000..3ef3419 --- /dev/null +++ b/.bcr/metadata.template.json @@ -0,0 +1,15 @@ +{ + "homepage": "https://github.com/protocolbuffers/protobuf-javascript", + "maintainers": [ + { + "name": "Stephanie DiBenedetto", + "email": "dibenede@google.com", + "github": "dibenede" + } + ], + "repository": [ + "github:protocolbuffers/protobuf-javascript" + ], + "versions": [], + "yanked_versions": {} +} \ No newline at end of file diff --git a/.bcr/patches/remove-dist.patch b/.bcr/patches/remove-dist.patch new file mode 100644 index 0000000..c18d015 --- /dev/null +++ b/.bcr/patches/remove-dist.patch @@ -0,0 +1,88 @@ +diff --git a/BUILD.bazel b/BUILD.bazel +index b64b057..a7d6524 100644 +--- a/BUILD.bazel ++++ b/BUILD.bazel +@@ -2,10 +2,6 @@ + # + # See also code generation logic under generator/ + +-load("@rules_pkg//:mappings.bzl", "pkg_attributes", "pkg_files", "strip_prefix") +-load("@rules_pkg//:pkg.bzl", "pkg_tar", "pkg_zip") +-load("//:protobuf_javascript_release.bzl", "package_naming") +- + exports_files(["package.json"]) + + config_setting( +@@ -33,72 +29,6 @@ config_setting( + values = {"cpu": "darwin_x86_64"}, + ) + +-package_naming( +- name = "protobuf_javascript_pkg_naming", +- platform = select({ +- ":k8": "linux-x86_64", # currently the only supported build type in Github Actions +- ":x64_x86_windows": "win32", +- ":x64_windows": "win64", +- ":darwin_arm64": "osx-aarch_64", +- ":darwin_x86_64": "osx-x86_64", +- "//conditions:default": "", # continues with current behavior when no --cpu is specified allowing existing internal builds to function +- }), +-) +- +-pkg_files( +- name = "plugin_files", +- srcs = ["//generator:protoc-gen-js"], +- attributes = pkg_attributes(mode = "0555"), +- prefix = "bin/", +-) +- +-pkg_files( +- name = "dist_files", +- srcs = glob( +- [ +- "google/protobuf/*.js", +- "google/protobuf/compiler/*.js", +- ], +- allow_empty = True, +- ) + [ +- "LICENSE.md", +- "LICENSE-asserts.md", +- "README.md", +- "google-protobuf.js", +- "package.json", +- ], +- strip_prefix = strip_prefix.from_root(""), +-) +- +-pkg_tar( +- name = "dist_tar", +- srcs = [ +- ":dist_files", +- ":plugin_files", +- ], +- extension = "tar.gz", +- package_file_name = "protobuf-javascript-{version}-{platform}.tar.gz", +- package_variables = ":protobuf_javascript_pkg_naming", +-) +- +-pkg_zip( +- name = "dist_zip", +- srcs = [ +- ":dist_files", +- ":plugin_files", +- ], +- package_file_name = "protobuf-javascript-{version}-{platform}.zip", +- package_variables = ":protobuf_javascript_pkg_naming", +-) +- +-filegroup( +- name = "dist_all", +- srcs = [ +- ":dist_tar", +- ":dist_zip", +- ], +-) +- + filegroup( + name = "javascript", + srcs = [ diff --git a/.bcr/presubmit.yml b/.bcr/presubmit.yml new file mode 100644 index 0000000..9502a9e --- /dev/null +++ b/.bcr/presubmit.yml @@ -0,0 +1,12 @@ +bcr_test_module: + module_path: "e2e/bcr" + matrix: + platform: ["debian11", "ubuntu2404", "macos"] + bazel: [7.x, 8.x] + tasks: + run_tests: + name: "Run test module" + platform: ${{ platform }} + bazel: ${{ bazel }} + test_targets: + - "//..." diff --git a/.bcr/source.template.json b/.bcr/source.template.json new file mode 100644 index 0000000..7dd7b58 --- /dev/null +++ b/.bcr/source.template.json @@ -0,0 +1,5 @@ +{ + "integrity": "", + "strip_prefix": "{REPO}-{TAG}", + "url": "https://github.com/{OWNER}/{REPO}/releases/download/{TAG}/{REPO}-{TAG}.tar.gz" +} \ No newline at end of file diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml new file mode 100644 index 0000000..b010868 --- /dev/null +++ b/.github/workflows/publish.yaml @@ -0,0 +1,36 @@ +# Publish new releases to Bazel Central Registry. +name: Publish to BCR +on: + # Run the publish workflow after a successful release + # Will be triggered from the release.yaml workflow + workflow_call: + inputs: + tag_name: + required: true + type: string + secrets: + publish_token: + required: true + # In case of problems, let release engineers retry by manually dispatching + # the workflow from the GitHub UI + workflow_dispatch: + inputs: + tag_name: + description: git tag being released + required: true + type: string +jobs: + publish: + uses: bazel-contrib/publish-to-bcr/.github/workflows/publish.yaml@v0.2.3 + with: + draft: false + tag_name: ${{ inputs.tag_name }} + # GitHub repository which is a fork of the upstream where the Pull Request will be opened. + registry_fork: protocolbuffers/bazel-central-registry + permissions: + attestations: write + contents: write + id-token: write + secrets: + # Necessary to push to the BCR fork, and to open a pull request against a registry + publish_token: ${{ secrets.publish_token || secrets.BCR_PUBLISH_TOKEN }} diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 0000000..c55d525 --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,35 @@ +# Cut a release whenever a new tag is pushed to the repo. +name: Release +on: + # Can be triggered from the tag.yaml workflow + workflow_call: + inputs: + tag_name: + required: true + type: string + secrets: + publish_token: + required: true + # Or, developers can manually push a tag from their clone + push: + tags: + - "v*.*.*" +permissions: + id-token: write + attestations: write + contents: write +jobs: + release: + uses: bazel-contrib/.github/.github/workflows/release_ruleset.yaml@v7.2.3 + with: + prerelease: false + release_files: protobuf-javascript-*.tar.gz + tag_name: ${{ inputs.tag_name || github.ref_name }} + secrets: inherit + publish: + needs: release + uses: ./.github/workflows/publish.yaml + with: + tag_name: ${{ inputs.tag_name || github.ref_name }} + secrets: + publish_token: ${{ secrets.publish_token || secrets.BCR_PUBLISH_TOKEN }} diff --git a/.github/workflows/release_prep.sh b/.github/workflows/release_prep.sh new file mode 100755 index 0000000..0abe321 --- /dev/null +++ b/.github/workflows/release_prep.sh @@ -0,0 +1,28 @@ + +#!/usr/bin/env bash + +set -o errexit -o nounset -o pipefail + +# Set by GH actions, see +# https://docs.github.com/en/actions/learn-github-actions/environment-variables#default-environment-variables +readonly TAG=$1 +# The prefix is chosen to match what GitHub generates for source archives. +# This guarantees that users can easily switch from a released artifact to a source archive +# with minimal differences in their code (e.g. strip_prefix remains the same) +readonly PREFIX="protobuf_javascript-${TAG}" +readonly ARCHIVE="${PREFIX}.tar.gz" + +# NB: configuration for 'git archive' is in /.gitattributes +git archive --format=tar --prefix=${PREFIX}/ ${TAG} | gzip > $ARCHIVE +SHA=$(shasum -a 256 $ARCHIVE | awk '{print $1}') + +# The stdout of this program will be used as the top of the release notes for this release. +cat << EOF +## Using bzlmod with Bazel 7 or later: + +Add to your \`MODULE.bazel\` file: + +\`\`\`starlark +bazel_dep(name = "protobuf_javascript", version = "${TAG}") +\`\`\` +EOF diff --git a/BUILD.bazel b/BUILD.bazel index 7461adb..b64b057 100644 --- a/BUILD.bazel +++ b/BUILD.bazel @@ -98,3 +98,41 @@ filegroup( ":dist_zip", ], ) + +filegroup( + name = "javascript", + srcs = [ + "asserts.js", + "binary/any_field_type.js", + "binary/arith.js", + "binary/binary_constants.js", + "binary/bytesource.js", + "binary/bytesource_alias.js", + "binary/decoder.js", + "binary/decoder_alias.js", + "binary/encoder.js", + "binary/encoder_alias.js", + "binary/errors.js", + "binary/internal_buffer.js", + "binary/reader.js", + "binary/reader_alias.js", + "binary/repeated_field_type.js", + "binary/scalar_field_type.js", + "binary/test_utils.js", + "binary/utf8.js", + "binary/utils.js", + "binary/writer.js", + "binary/writer_alias.js", + "bytestring.js", + "debug.js", + "extension_field_binary_info.js", + "extension_field_info.js", + "internal_bytes.js", + "internal_options.js", + "internal_public.js", + "map.js", + "message.js", + "unsafe_bytestring.js", + ], + visibility = ["//visibility:public"], +) diff --git a/MODULE.bazel b/MODULE.bazel index 3acc005..4f76f54 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -1,6 +1,8 @@ -module(name = "protobuf_javascript", version = "4.0.1") +"Bazel module that provides protoc-gen-js." + +module(name = "protobuf_javascript", version = "0.0.0") # updated by release action bazel_dep(name = "abseil-cpp", version = "20250512.1") bazel_dep(name = "protobuf", version = "33.0", repo_name = "com_google_protobuf") bazel_dep(name = "rules_cc", version = "0.2.15") -bazel_dep(name = "rules_pkg", version = "1.0.1") +bazel_dep(name = "rules_pkg", version = "1.0.1", dev_dependency = True) diff --git a/MODULE.bazel.lock b/MODULE.bazel.lock index c7f541f..be3d31c 100644 --- a/MODULE.bazel.lock +++ b/MODULE.bazel.lock @@ -1,5 +1,5 @@ { - "lockFileVersion": 18, + "lockFileVersion": 24, "registryFileHashes": { "https://bcr.bazel.build/bazel_registry.json": "8a28e4aff06ee60aed2a8c281907fb8bcbf3b753c91fb5a5c57da3215d5b3497", "https://bcr.bazel.build/modules/abseil-cpp/20210324.2/MODULE.bazel": "7cd0312e064fde87c8d1cd79ba06c876bd23630c83466e9500321be55c96ace2", @@ -25,6 +25,7 @@ "https://bcr.bazel.build/modules/bazel_features/1.19.0/MODULE.bazel": "59adcdf28230d220f0067b1f435b8537dd033bfff8db21335ef9217919c7fb58", "https://bcr.bazel.build/modules/bazel_features/1.21.0/MODULE.bazel": "675642261665d8eea09989aa3b8afb5c37627f1be178382c320d1b46afba5e3b", "https://bcr.bazel.build/modules/bazel_features/1.27.0/MODULE.bazel": "621eeee06c4458a9121d1f104efb80f39d34deff4984e778359c60eaf1a8cb65", + "https://bcr.bazel.build/modules/bazel_features/1.28.0/MODULE.bazel": "4b4200e6cbf8fa335b2c3f43e1d6ef3e240319c33d43d60cc0fbd4b87ece299d", "https://bcr.bazel.build/modules/bazel_features/1.3.0/MODULE.bazel": "cdcafe83ec318cda34e02948e81d790aab8df7a929cec6f6969f13a489ccecd9", "https://bcr.bazel.build/modules/bazel_features/1.30.0/MODULE.bazel": "a14b62d05969a293b80257e72e597c2da7f717e1e69fa8b339703ed6731bec87", "https://bcr.bazel.build/modules/bazel_features/1.33.0/MODULE.bazel": "8b8dc9d2a4c88609409c3191165bccec0e4cb044cd7a72ccbe826583303459f6", @@ -101,7 +102,8 @@ "https://bcr.bazel.build/modules/rules_cc/0.0.8/MODULE.bazel": "964c85c82cfeb6f3855e6a07054fdb159aced38e99a5eecf7bce9d53990afa3e", "https://bcr.bazel.build/modules/rules_cc/0.0.9/MODULE.bazel": "836e76439f354b89afe6a911a7adf59a6b2518fafb174483ad78a2a2fde7b1c5", "https://bcr.bazel.build/modules/rules_cc/0.1.1/MODULE.bazel": "2f0222a6f229f0bf44cd711dc13c858dad98c62d52bd51d8fc3a764a83125513", - "https://bcr.bazel.build/modules/rules_cc/0.1.1/source.json": "d61627377bd7dd1da4652063e368d9366fc9a73920bfa396798ad92172cf645c", + "https://bcr.bazel.build/modules/rules_cc/0.2.15/MODULE.bazel": "6a0a4a75a57aa6dc888300d848053a58c6b12a29f89d4304e1c41448514ec6e8", + "https://bcr.bazel.build/modules/rules_cc/0.2.15/source.json": "197965c6dcca5c98a9288f93849e2e1c69d622e71b0be8deb524e22d48c88e32", "https://bcr.bazel.build/modules/rules_foreign_cc/0.9.0/MODULE.bazel": "c9e8c682bf75b0e7c704166d79b599f93b72cfca5ad7477df596947891feeef6", "https://bcr.bazel.build/modules/rules_fuzzing/0.5.2/MODULE.bazel": "40c97d1144356f52905566c55811f13b299453a14ac7769dfba2ac38192337a8", "https://bcr.bazel.build/modules/rules_java/4.0.0/MODULE.bazel": "5a78a7ae82cd1a33cef56dc578c7d2a46ed0dca12643ee45edbb8417899e6f74", @@ -176,111 +178,6 @@ "https://bcr.bazel.build/modules/zlib/1.3.1/MODULE.bazel": "751c9940dcfe869f5f7274e1295422a34623555916eb98c174c1e945594bf198" }, "selectedYankedVersions": {}, - "moduleExtensions": { - "@@rules_kotlin+//src/main/starlark/core/repositories:bzlmod_setup.bzl%rules_kotlin_extensions": { - "general": { - "bzlTransitiveDigest": "OlvsB0HsvxbR8ZN+J9Vf00X/+WVz/Y/5Xrq2LgcVfdo=", - "usagesDigest": "QI2z8ZUR+mqtbwsf2fLqYdJAkPOHdOV+tF2yVAUgRzw=", - "recordedFileInputs": {}, - "recordedDirentsInputs": {}, - "envVariables": {}, - "generatedRepoSpecs": { - "com_github_jetbrains_kotlin_git": { - "repoRuleId": "@@rules_kotlin+//src/main/starlark/core/repositories:compiler.bzl%kotlin_compiler_git_repository", - "attributes": { - "urls": [ - "https://github.com/JetBrains/kotlin/releases/download/v1.9.23/kotlin-compiler-1.9.23.zip" - ], - "sha256": "93137d3aab9afa9b27cb06a824c2324195c6b6f6179d8a8653f440f5bd58be88" - } - }, - "com_github_jetbrains_kotlin": { - "repoRuleId": "@@rules_kotlin+//src/main/starlark/core/repositories:compiler.bzl%kotlin_capabilities_repository", - "attributes": { - "git_repository_name": "com_github_jetbrains_kotlin_git", - "compiler_version": "1.9.23" - } - }, - "com_github_google_ksp": { - "repoRuleId": "@@rules_kotlin+//src/main/starlark/core/repositories:ksp.bzl%ksp_compiler_plugin_repository", - "attributes": { - "urls": [ - "https://github.com/google/ksp/releases/download/1.9.23-1.0.20/artifacts.zip" - ], - "sha256": "ee0618755913ef7fd6511288a232e8fad24838b9af6ea73972a76e81053c8c2d", - "strip_version": "1.9.23-1.0.20" - } - }, - "com_github_pinterest_ktlint": { - "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_file", - "attributes": { - "sha256": "01b2e0ef893383a50dbeb13970fe7fa3be36ca3e83259e01649945b09d736985", - "urls": [ - "https://github.com/pinterest/ktlint/releases/download/1.3.0/ktlint" - ], - "executable": true - } - }, - "rules_android": { - "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", - "attributes": { - "sha256": "cd06d15dd8bb59926e4d65f9003bfc20f9da4b2519985c27e190cddc8b7a7806", - "strip_prefix": "rules_android-0.1.1", - "urls": [ - "https://github.com/bazelbuild/rules_android/archive/v0.1.1.zip" - ] - } - } - }, - "recordedRepoMappingEntries": [ - [ - "rules_kotlin+", - "bazel_tools", - "bazel_tools" - ] - ] - } - }, - "@@rules_python+//python/uv:uv.bzl%uv": { - "general": { - "bzlTransitiveDigest": "PmZM/pIkZKEDDL68TohlKJrWPYKL5VwUw3MA7kmm6fk=", - "usagesDigest": "p80sy6cYQuWxx5jhV3fOTu+N9EyIUFG9+F7UC/nhXic=", - "recordedFileInputs": {}, - "recordedDirentsInputs": {}, - "envVariables": {}, - "generatedRepoSpecs": { - "uv": { - "repoRuleId": "@@rules_python+//python/uv/private:uv_toolchains_repo.bzl%uv_toolchains_repo", - "attributes": { - "toolchain_type": "'@@rules_python+//python/uv:uv_toolchain_type'", - "toolchain_names": [ - "none" - ], - "toolchain_implementations": { - "none": "'@@rules_python+//python:none'" - }, - "toolchain_compatible_with": { - "none": [ - "@platforms//:incompatible" - ] - }, - "toolchain_target_settings": {} - } - } - }, - "recordedRepoMappingEntries": [ - [ - "rules_python+", - "bazel_tools", - "bazel_tools" - ], - [ - "rules_python+", - "platforms", - "platforms" - ] - ] - } - } - } + "moduleExtensions": {}, + "facts": {} } diff --git a/e2e/bcr/.bazelrc b/e2e/bcr/.bazelrc new file mode 100644 index 0000000..53485cb --- /dev/null +++ b/e2e/bcr/.bazelrc @@ -0,0 +1 @@ +build --cxxopt=-std=c++17 --host_cxxopt=-std=c++17 diff --git a/e2e/bcr/BUILD.bazel b/e2e/bcr/BUILD.bazel new file mode 100644 index 0000000..ed76e1a --- /dev/null +++ b/e2e/bcr/BUILD.bazel @@ -0,0 +1,37 @@ +load("@protobuf//bazel:proto_library.bzl", "proto_library") +load("@rules_shell//shell:sh_test.bzl", "sh_test") + +proto_library( + name = "simple_proto", + srcs = ["simple.proto"], +) + +genrule( + name = "simple_js", + srcs = [":simple_proto"], + outs = ["simple.js"], + cmd = """ +$(location @protobuf//:protoc) \ + --descriptor_set_in=$(location :simple_proto) \ + --plugin=protoc-gen-js=$(location @protobuf_javascript//generator:protoc-gen-js) \ + --js_out=$(RULEDIR) \ + simple.proto +""", + tools = [ + "@protobuf//:protoc", + "@protobuf_javascript//generator:protoc-gen-js", + ], +) + +sh_test( + name = "simple_js_test", + srcs = ["simple_js_test.sh"], + args = [ + "$(location :simple.js)", + "$(locations @protobuf_javascript//:javascript)", + ], + data = [ + ":simple.js", + "@protobuf_javascript//:javascript", + ], +) diff --git a/e2e/bcr/MODULE.bazel b/e2e/bcr/MODULE.bazel new file mode 100644 index 0000000..70387b9 --- /dev/null +++ b/e2e/bcr/MODULE.bazel @@ -0,0 +1,6 @@ +"MODULE.bazel file for bcr smoke test" + +bazel_dep(name = "rules_shell", version = "0.6.1") +bazel_dep(name = "protobuf", version = "33.0") +bazel_dep(name = "protobuf_javascript", version = "0.0.0", dev_dependency = True) +local_path_override(module_name = "protobuf_javascript", path = "../..") diff --git a/e2e/bcr/MODULE.bazel.lock b/e2e/bcr/MODULE.bazel.lock new file mode 100644 index 0000000..d3a3927 --- /dev/null +++ b/e2e/bcr/MODULE.bazel.lock @@ -0,0 +1,290 @@ +{ + "lockFileVersion": 24, + "registryFileHashes": { + "https://bcr.bazel.build/bazel_registry.json": "8a28e4aff06ee60aed2a8c281907fb8bcbf3b753c91fb5a5c57da3215d5b3497", + "https://bcr.bazel.build/modules/abseil-cpp/20210324.2/MODULE.bazel": "7cd0312e064fde87c8d1cd79ba06c876bd23630c83466e9500321be55c96ace2", + "https://bcr.bazel.build/modules/abseil-cpp/20211102.0/MODULE.bazel": "70390338f7a5106231d20620712f7cccb659cd0e9d073d1991c038eb9fc57589", + "https://bcr.bazel.build/modules/abseil-cpp/20230125.1/MODULE.bazel": "89047429cb0207707b2dface14ba7f8df85273d484c2572755be4bab7ce9c3a0", + "https://bcr.bazel.build/modules/abseil-cpp/20230802.0.bcr.1/MODULE.bazel": "1c8cec495288dccd14fdae6e3f95f772c1c91857047a098fad772034264cc8cb", + "https://bcr.bazel.build/modules/abseil-cpp/20230802.0/MODULE.bazel": "d253ae36a8bd9ee3c5955384096ccb6baf16a1b1e93e858370da0a3b94f77c16", + "https://bcr.bazel.build/modules/abseil-cpp/20230802.1/MODULE.bazel": "fa92e2eb41a04df73cdabeec37107316f7e5272650f81d6cc096418fe647b915", + "https://bcr.bazel.build/modules/abseil-cpp/20240116.1/MODULE.bazel": "37bcdb4440fbb61df6a1c296ae01b327f19e9bb521f9b8e26ec854b6f97309ed", + "https://bcr.bazel.build/modules/abseil-cpp/20240116.2/MODULE.bazel": "73939767a4686cd9a520d16af5ab440071ed75cec1a876bf2fcfaf1f71987a16", + "https://bcr.bazel.build/modules/abseil-cpp/20250127.1/MODULE.bazel": "c4a89e7ceb9bf1e25cf84a9f830ff6b817b72874088bf5141b314726e46a57c1", + "https://bcr.bazel.build/modules/abseil-cpp/20250512.1/MODULE.bazel": "d209fdb6f36ffaf61c509fcc81b19e81b411a999a934a032e10cd009a0226215", + "https://bcr.bazel.build/modules/abseil-cpp/20250512.1/source.json": "d725d73707d01bb46ab3ca59ba408b8e9bd336642ca77a2269d4bfb8bbfd413d", + "https://bcr.bazel.build/modules/apple_support/1.11.1/MODULE.bazel": "1843d7cd8a58369a444fc6000e7304425fba600ff641592161d9f15b179fb896", + "https://bcr.bazel.build/modules/apple_support/1.15.1/MODULE.bazel": "a0556fefca0b1bb2de8567b8827518f94db6a6e7e7d632b4c48dc5f865bc7c85", + "https://bcr.bazel.build/modules/apple_support/1.23.1/MODULE.bazel": "53763fed456a968cf919b3240427cf3a9d5481ec5466abc9d5dc51bc70087442", + "https://bcr.bazel.build/modules/apple_support/1.23.1/source.json": "d888b44312eb0ad2c21a91d026753f330caa48a25c9b2102fae75eb2b0dcfdd2", + "https://bcr.bazel.build/modules/bazel_features/1.1.1/MODULE.bazel": "27b8c79ef57efe08efccbd9dd6ef70d61b4798320b8d3c134fd571f78963dbcd", + "https://bcr.bazel.build/modules/bazel_features/1.11.0/MODULE.bazel": "f9382337dd5a474c3b7d334c2f83e50b6eaedc284253334cf823044a26de03e8", + "https://bcr.bazel.build/modules/bazel_features/1.15.0/MODULE.bazel": "d38ff6e517149dc509406aca0db3ad1efdd890a85e049585b7234d04238e2a4d", + "https://bcr.bazel.build/modules/bazel_features/1.17.0/MODULE.bazel": "039de32d21b816b47bd42c778e0454217e9c9caac4a3cf8e15c7231ee3ddee4d", + "https://bcr.bazel.build/modules/bazel_features/1.18.0/MODULE.bazel": "1be0ae2557ab3a72a57aeb31b29be347bcdc5d2b1eb1e70f39e3851a7e97041a", + "https://bcr.bazel.build/modules/bazel_features/1.19.0/MODULE.bazel": "59adcdf28230d220f0067b1f435b8537dd033bfff8db21335ef9217919c7fb58", + "https://bcr.bazel.build/modules/bazel_features/1.21.0/MODULE.bazel": "675642261665d8eea09989aa3b8afb5c37627f1be178382c320d1b46afba5e3b", + "https://bcr.bazel.build/modules/bazel_features/1.27.0/MODULE.bazel": "621eeee06c4458a9121d1f104efb80f39d34deff4984e778359c60eaf1a8cb65", + "https://bcr.bazel.build/modules/bazel_features/1.28.0/MODULE.bazel": "4b4200e6cbf8fa335b2c3f43e1d6ef3e240319c33d43d60cc0fbd4b87ece299d", + "https://bcr.bazel.build/modules/bazel_features/1.3.0/MODULE.bazel": "cdcafe83ec318cda34e02948e81d790aab8df7a929cec6f6969f13a489ccecd9", + "https://bcr.bazel.build/modules/bazel_features/1.30.0/MODULE.bazel": "a14b62d05969a293b80257e72e597c2da7f717e1e69fa8b339703ed6731bec87", + "https://bcr.bazel.build/modules/bazel_features/1.33.0/MODULE.bazel": "8b8dc9d2a4c88609409c3191165bccec0e4cb044cd7a72ccbe826583303459f6", + "https://bcr.bazel.build/modules/bazel_features/1.33.0/source.json": "13617db3930328c2cd2807a0f13d52ca870ac05f96db9668655113265147b2a6", + "https://bcr.bazel.build/modules/bazel_features/1.4.1/MODULE.bazel": "e45b6bb2350aff3e442ae1111c555e27eac1d915e77775f6fdc4b351b758b5d7", + "https://bcr.bazel.build/modules/bazel_features/1.9.1/MODULE.bazel": "8f679097876a9b609ad1f60249c49d68bfab783dd9be012faf9d82547b14815a", + "https://bcr.bazel.build/modules/bazel_skylib/1.0.3/MODULE.bazel": "bcb0fd896384802d1ad283b4e4eb4d718eebd8cb820b0a2c3a347fb971afd9d8", + "https://bcr.bazel.build/modules/bazel_skylib/1.1.1/MODULE.bazel": "1add3e7d93ff2e6998f9e118022c84d163917d912f5afafb3058e3d2f1545b5e", + "https://bcr.bazel.build/modules/bazel_skylib/1.2.0/MODULE.bazel": "44fe84260e454ed94ad326352a698422dbe372b21a1ac9f3eab76eb531223686", + "https://bcr.bazel.build/modules/bazel_skylib/1.2.1/MODULE.bazel": "f35baf9da0efe45fa3da1696ae906eea3d615ad41e2e3def4aeb4e8bc0ef9a7a", + "https://bcr.bazel.build/modules/bazel_skylib/1.3.0/MODULE.bazel": "20228b92868bf5cfc41bda7afc8a8ba2a543201851de39d990ec957b513579c5", + "https://bcr.bazel.build/modules/bazel_skylib/1.4.1/MODULE.bazel": "a0dcb779424be33100dcae821e9e27e4f2901d9dfd5333efe5ac6a8d7ab75e1d", + "https://bcr.bazel.build/modules/bazel_skylib/1.4.2/MODULE.bazel": "3bd40978e7a1fac911d5989e6b09d8f64921865a45822d8b09e815eaa726a651", + "https://bcr.bazel.build/modules/bazel_skylib/1.5.0/MODULE.bazel": "32880f5e2945ce6a03d1fbd588e9198c0a959bb42297b2cfaf1685b7bc32e138", + "https://bcr.bazel.build/modules/bazel_skylib/1.6.1/MODULE.bazel": "8fdee2dbaace6c252131c00e1de4b165dc65af02ea278476187765e1a617b917", + "https://bcr.bazel.build/modules/bazel_skylib/1.7.0/MODULE.bazel": "0db596f4563de7938de764cc8deeabec291f55e8ec15299718b93c4423e9796d", + "https://bcr.bazel.build/modules/bazel_skylib/1.7.1/MODULE.bazel": "3120d80c5861aa616222ec015332e5f8d3171e062e3e804a2a0253e1be26e59b", + "https://bcr.bazel.build/modules/bazel_skylib/1.8.1/MODULE.bazel": "88ade7293becda963e0e3ea33e7d54d3425127e0a326e0d17da085a5f1f03ff6", + "https://bcr.bazel.build/modules/bazel_skylib/1.8.1/source.json": "7ebaefba0b03efe59cac88ed5bbc67bcf59a3eff33af937345ede2a38b2d368a", + "https://bcr.bazel.build/modules/buildozer/7.1.2/MODULE.bazel": "2e8dd40ede9c454042645fd8d8d0cd1527966aa5c919de86661e62953cd73d84", + "https://bcr.bazel.build/modules/buildozer/7.1.2/source.json": "c9028a501d2db85793a6996205c8de120944f50a0d570438fcae0457a5f9d1f8", + "https://bcr.bazel.build/modules/google_benchmark/1.8.2/MODULE.bazel": "a70cf1bba851000ba93b58ae2f6d76490a9feb74192e57ab8e8ff13c34ec50cb", + "https://bcr.bazel.build/modules/googletest/1.11.0/MODULE.bazel": "3a83f095183f66345ca86aa13c58b59f9f94a2f81999c093d4eeaa2d262d12f4", + "https://bcr.bazel.build/modules/googletest/1.14.0.bcr.1/MODULE.bazel": "22c31a561553727960057361aa33bf20fb2e98584bc4fec007906e27053f80c6", + "https://bcr.bazel.build/modules/googletest/1.14.0/MODULE.bazel": "cfbcbf3e6eac06ef9d85900f64424708cc08687d1b527f0ef65aa7517af8118f", + "https://bcr.bazel.build/modules/googletest/1.15.2/MODULE.bazel": "6de1edc1d26cafb0ea1a6ab3f4d4192d91a312fd2d360b63adaa213cd00b2108", + "https://bcr.bazel.build/modules/googletest/1.17.0/MODULE.bazel": "dbec758171594a705933a29fcf69293d2468c49ec1f2ebca65c36f504d72df46", + "https://bcr.bazel.build/modules/googletest/1.17.0/source.json": "38e4454b25fc30f15439c0378e57909ab1fd0a443158aa35aec685da727cd713", + "https://bcr.bazel.build/modules/jsoncpp/1.9.5/MODULE.bazel": "31271aedc59e815656f5736f282bb7509a97c7ecb43e927ac1a37966e0578075", + "https://bcr.bazel.build/modules/jsoncpp/1.9.6/MODULE.bazel": "2f8d20d3b7d54143213c4dfc3d98225c42de7d666011528dc8fe91591e2e17b0", + "https://bcr.bazel.build/modules/jsoncpp/1.9.6/source.json": "a04756d367a2126c3541682864ecec52f92cdee80a35735a3cb249ce015ca000", + "https://bcr.bazel.build/modules/libpfm/4.11.0/MODULE.bazel": "45061ff025b301940f1e30d2c16bea596c25b176c8b6b3087e92615adbd52902", + "https://bcr.bazel.build/modules/nlohmann_json/3.6.1/MODULE.bazel": "6f7b417dcc794d9add9e556673ad25cb3ba835224290f4f848f8e2db1e1fca74", + "https://bcr.bazel.build/modules/nlohmann_json/3.6.1/source.json": "f448c6e8963fdfa7eb831457df83ad63d3d6355018f6574fb017e8169deb43a9", + "https://bcr.bazel.build/modules/platforms/0.0.10/MODULE.bazel": "8cb8efaf200bdeb2150d93e162c40f388529a25852b332cec879373771e48ed5", + "https://bcr.bazel.build/modules/platforms/0.0.11/MODULE.bazel": "0daefc49732e227caa8bfa834d65dc52e8cc18a2faf80df25e8caea151a9413f", + "https://bcr.bazel.build/modules/platforms/0.0.11/source.json": "f7e188b79ebedebfe75e9e1d098b8845226c7992b307e28e1496f23112e8fc29", + "https://bcr.bazel.build/modules/platforms/0.0.4/MODULE.bazel": "9b328e31ee156f53f3c416a64f8491f7eb731742655a47c9eec4703a71644aee", + "https://bcr.bazel.build/modules/platforms/0.0.5/MODULE.bazel": "5733b54ea419d5eaf7997054bb55f6a1d0b5ff8aedf0176fef9eea44f3acda37", + "https://bcr.bazel.build/modules/platforms/0.0.6/MODULE.bazel": "ad6eeef431dc52aefd2d77ed20a4b353f8ebf0f4ecdd26a807d2da5aa8cd0615", + "https://bcr.bazel.build/modules/platforms/0.0.7/MODULE.bazel": "72fd4a0ede9ee5c021f6a8dd92b503e089f46c227ba2813ff183b71616034814", + "https://bcr.bazel.build/modules/platforms/0.0.8/MODULE.bazel": "9f142c03e348f6d263719f5074b21ef3adf0b139ee4c5133e2aa35664da9eb2d", + "https://bcr.bazel.build/modules/platforms/0.0.9/MODULE.bazel": "4a87a60c927b56ddd67db50c89acaa62f4ce2a1d2149ccb63ffd871d5ce29ebc", + "https://bcr.bazel.build/modules/protobuf/21.7/MODULE.bazel": "a5a29bb89544f9b97edce05642fac225a808b5b7be74038ea3640fae2f8e66a7", + "https://bcr.bazel.build/modules/protobuf/27.0/MODULE.bazel": "7873b60be88844a0a1d8f80b9d5d20cfbd8495a689b8763e76c6372998d3f64c", + "https://bcr.bazel.build/modules/protobuf/27.1/MODULE.bazel": "703a7b614728bb06647f965264967a8ef1c39e09e8f167b3ca0bb1fd80449c0d", + "https://bcr.bazel.build/modules/protobuf/29.0-rc2/MODULE.bazel": "6241d35983510143049943fc0d57937937122baf1b287862f9dc8590fc4c37df", + "https://bcr.bazel.build/modules/protobuf/29.0-rc3/MODULE.bazel": "33c2dfa286578573afc55a7acaea3cada4122b9631007c594bf0729f41c8de92", + "https://bcr.bazel.build/modules/protobuf/29.0/MODULE.bazel": "319dc8bf4c679ff87e71b1ccfb5a6e90a6dbc4693501d471f48662ac46d04e4e", + "https://bcr.bazel.build/modules/protobuf/29.1/MODULE.bazel": "557c3457560ff49e122ed76c0bc3397a64af9574691cb8201b4e46d4ab2ecb95", + "https://bcr.bazel.build/modules/protobuf/3.19.0/MODULE.bazel": "6b5fbb433f760a99a22b18b6850ed5784ef0e9928a72668b66e4d7ccd47db9b0", + "https://bcr.bazel.build/modules/protobuf/33.0/MODULE.bazel": "c5270efb4aad37a2f893536076518793f409ea7df07a06df995d848d1690f21c", + "https://bcr.bazel.build/modules/protobuf/33.0/source.json": "cd7ac80ad863190b9151281a85acc11d77b5bde2ba56443a7215da2d4ace6da3", + "https://bcr.bazel.build/modules/pybind11_bazel/2.11.1/MODULE.bazel": "88af1c246226d87e65be78ed49ecd1e6f5e98648558c14ce99176da041dc378e", + "https://bcr.bazel.build/modules/pybind11_bazel/2.12.0/MODULE.bazel": "e6f4c20442eaa7c90d7190d8dc539d0ab422f95c65a57cc59562170c58ae3d34", + "https://bcr.bazel.build/modules/pybind11_bazel/2.12.0/source.json": "6900fdc8a9e95866b8c0d4ad4aba4d4236317b5c1cd04c502df3f0d33afed680", + "https://bcr.bazel.build/modules/re2/2023-09-01/MODULE.bazel": "cb3d511531b16cfc78a225a9e2136007a48cf8a677e4264baeab57fe78a80206", + "https://bcr.bazel.build/modules/re2/2024-07-02.bcr.1/MODULE.bazel": "b4963dda9b31080be1905ef085ecd7dd6cd47c05c79b9cdf83ade83ab2ab271a", + "https://bcr.bazel.build/modules/re2/2024-07-02.bcr.1/source.json": "2ff292be6ef3340325ce8a045ecc326e92cbfab47c7cbab4bd85d28971b97ac4", + "https://bcr.bazel.build/modules/re2/2024-07-02/MODULE.bazel": "0eadc4395959969297cbcf31a249ff457f2f1d456228c67719480205aa306daa", + "https://bcr.bazel.build/modules/rules_android/0.1.1/MODULE.bazel": "48809ab0091b07ad0182defb787c4c5328bd3a278938415c00a7b69b50c4d3a8", + "https://bcr.bazel.build/modules/rules_android/0.1.1/source.json": "e6986b41626ee10bdc864937ffb6d6bf275bb5b9c65120e6137d56e6331f089e", + "https://bcr.bazel.build/modules/rules_apple/3.16.0/MODULE.bazel": "0d1caf0b8375942ce98ea944be754a18874041e4e0459401d925577624d3a54a", + "https://bcr.bazel.build/modules/rules_apple/3.16.0/source.json": "d8b5fe461272018cc07cfafce11fe369c7525330804c37eec5a82f84cd475366", + "https://bcr.bazel.build/modules/rules_cc/0.0.1/MODULE.bazel": "cb2aa0747f84c6c3a78dad4e2049c154f08ab9d166b1273835a8174940365647", + "https://bcr.bazel.build/modules/rules_cc/0.0.10/MODULE.bazel": "ec1705118f7eaedd6e118508d3d26deba2a4e76476ada7e0e3965211be012002", + "https://bcr.bazel.build/modules/rules_cc/0.0.13/MODULE.bazel": "0e8529ed7b323dad0775ff924d2ae5af7640b23553dfcd4d34344c7e7a867191", + "https://bcr.bazel.build/modules/rules_cc/0.0.14/MODULE.bazel": "5e343a3aac88b8d7af3b1b6d2093b55c347b8eefc2e7d1442f7a02dc8fea48ac", + "https://bcr.bazel.build/modules/rules_cc/0.0.15/MODULE.bazel": "6704c35f7b4a72502ee81f61bf88706b54f06b3cbe5558ac17e2e14666cd5dcc", + "https://bcr.bazel.build/modules/rules_cc/0.0.16/MODULE.bazel": "7661303b8fc1b4d7f532e54e9d6565771fea666fbdf839e0a86affcd02defe87", + "https://bcr.bazel.build/modules/rules_cc/0.0.17/MODULE.bazel": "2ae1d8f4238ec67d7185d8861cb0a2cdf4bc608697c331b95bf990e69b62e64a", + "https://bcr.bazel.build/modules/rules_cc/0.0.2/MODULE.bazel": "6915987c90970493ab97393024c156ea8fb9f3bea953b2f3ec05c34f19b5695c", + "https://bcr.bazel.build/modules/rules_cc/0.0.6/MODULE.bazel": "abf360251023dfe3efcef65ab9d56beefa8394d4176dd29529750e1c57eaa33f", + "https://bcr.bazel.build/modules/rules_cc/0.0.8/MODULE.bazel": "964c85c82cfeb6f3855e6a07054fdb159aced38e99a5eecf7bce9d53990afa3e", + "https://bcr.bazel.build/modules/rules_cc/0.0.9/MODULE.bazel": "836e76439f354b89afe6a911a7adf59a6b2518fafb174483ad78a2a2fde7b1c5", + "https://bcr.bazel.build/modules/rules_cc/0.1.1/MODULE.bazel": "2f0222a6f229f0bf44cd711dc13c858dad98c62d52bd51d8fc3a764a83125513", + "https://bcr.bazel.build/modules/rules_cc/0.2.15/MODULE.bazel": "6a0a4a75a57aa6dc888300d848053a58c6b12a29f89d4304e1c41448514ec6e8", + "https://bcr.bazel.build/modules/rules_cc/0.2.15/source.json": "197965c6dcca5c98a9288f93849e2e1c69d622e71b0be8deb524e22d48c88e32", + "https://bcr.bazel.build/modules/rules_foreign_cc/0.9.0/MODULE.bazel": "c9e8c682bf75b0e7c704166d79b599f93b72cfca5ad7477df596947891feeef6", + "https://bcr.bazel.build/modules/rules_fuzzing/0.5.2/MODULE.bazel": "40c97d1144356f52905566c55811f13b299453a14ac7769dfba2ac38192337a8", + "https://bcr.bazel.build/modules/rules_java/4.0.0/MODULE.bazel": "5a78a7ae82cd1a33cef56dc578c7d2a46ed0dca12643ee45edbb8417899e6f74", + "https://bcr.bazel.build/modules/rules_java/5.3.5/MODULE.bazel": "a4ec4f2db570171e3e5eb753276ee4b389bae16b96207e9d3230895c99644b86", + "https://bcr.bazel.build/modules/rules_java/6.0.0/MODULE.bazel": "8a43b7df601a7ec1af61d79345c17b31ea1fedc6711fd4abfd013ea612978e39", + "https://bcr.bazel.build/modules/rules_java/6.4.0/MODULE.bazel": "e986a9fe25aeaa84ac17ca093ef13a4637f6107375f64667a15999f77db6c8f6", + "https://bcr.bazel.build/modules/rules_java/6.5.2/MODULE.bazel": "1d440d262d0e08453fa0c4d8f699ba81609ed0e9a9a0f02cd10b3e7942e61e31", + "https://bcr.bazel.build/modules/rules_java/7.10.0/MODULE.bazel": "530c3beb3067e870561739f1144329a21c851ff771cd752a49e06e3dc9c2e71a", + "https://bcr.bazel.build/modules/rules_java/7.12.2/MODULE.bazel": "579c505165ee757a4280ef83cda0150eea193eed3bef50b1004ba88b99da6de6", + "https://bcr.bazel.build/modules/rules_java/7.2.0/MODULE.bazel": "06c0334c9be61e6cef2c8c84a7800cef502063269a5af25ceb100b192453d4ab", + "https://bcr.bazel.build/modules/rules_java/7.3.2/MODULE.bazel": "50dece891cfdf1741ea230d001aa9c14398062f2b7c066470accace78e412bc2", + "https://bcr.bazel.build/modules/rules_java/7.6.1/MODULE.bazel": "2f14b7e8a1aa2f67ae92bc69d1ec0fa8d9f827c4e17ff5e5f02e91caa3b2d0fe", + "https://bcr.bazel.build/modules/rules_java/8.14.0/MODULE.bazel": "717717ed40cc69994596a45aec6ea78135ea434b8402fb91b009b9151dd65615", + "https://bcr.bazel.build/modules/rules_java/8.14.0/source.json": "8a88c4ca9e8759da53cddc88123880565c520503321e2566b4e33d0287a3d4bc", + "https://bcr.bazel.build/modules/rules_java/8.3.2/MODULE.bazel": "7336d5511ad5af0b8615fdc7477535a2e4e723a357b6713af439fe8cf0195017", + "https://bcr.bazel.build/modules/rules_java/8.5.1/MODULE.bazel": "d8a9e38cc5228881f7055a6079f6f7821a073df3744d441978e7a43e20226939", + "https://bcr.bazel.build/modules/rules_java/8.6.1/MODULE.bazel": "f4808e2ab5b0197f094cabce9f4b006a27766beb6a9975931da07099560ca9c2", + "https://bcr.bazel.build/modules/rules_jvm_external/4.4.2/MODULE.bazel": "a56b85e418c83eb1839819f0b515c431010160383306d13ec21959ac412d2fe7", + "https://bcr.bazel.build/modules/rules_jvm_external/5.1/MODULE.bazel": "33f6f999e03183f7d088c9be518a63467dfd0be94a11d0055fe2d210f89aa909", + "https://bcr.bazel.build/modules/rules_jvm_external/5.2/MODULE.bazel": "d9351ba35217ad0de03816ef3ed63f89d411349353077348a45348b096615036", + "https://bcr.bazel.build/modules/rules_jvm_external/5.3/MODULE.bazel": "bf93870767689637164657731849fb887ad086739bd5d360d90007a581d5527d", + "https://bcr.bazel.build/modules/rules_jvm_external/6.1/MODULE.bazel": "75b5fec090dbd46cf9b7d8ea08cf84a0472d92ba3585b476f44c326eda8059c4", + "https://bcr.bazel.build/modules/rules_jvm_external/6.3/MODULE.bazel": "c998e060b85f71e00de5ec552019347c8bca255062c990ac02d051bb80a38df0", + "https://bcr.bazel.build/modules/rules_jvm_external/6.7/MODULE.bazel": "e717beabc4d091ecb2c803c2d341b88590e9116b8bf7947915eeb33aab4f96dd", + "https://bcr.bazel.build/modules/rules_jvm_external/6.7/source.json": "5426f412d0a7fc6b611643376c7e4a82dec991491b9ce5cb1cfdd25fe2e92be4", + "https://bcr.bazel.build/modules/rules_kotlin/1.9.0/MODULE.bazel": "ef85697305025e5a61f395d4eaede272a5393cee479ace6686dba707de804d59", + "https://bcr.bazel.build/modules/rules_kotlin/1.9.6/MODULE.bazel": "d269a01a18ee74d0335450b10f62c9ed81f2321d7958a2934e44272fe82dcef3", + "https://bcr.bazel.build/modules/rules_kotlin/1.9.6/source.json": "2faa4794364282db7c06600b7e5e34867a564ae91bda7cae7c29c64e9466b7d5", + "https://bcr.bazel.build/modules/rules_license/0.0.3/MODULE.bazel": "627e9ab0247f7d1e05736b59dbb1b6871373de5ad31c3011880b4133cafd4bd0", + "https://bcr.bazel.build/modules/rules_license/0.0.7/MODULE.bazel": "088fbeb0b6a419005b89cf93fe62d9517c0a2b8bb56af3244af65ecfe37e7d5d", + "https://bcr.bazel.build/modules/rules_license/1.0.0/MODULE.bazel": "a7fda60eefdf3d8c827262ba499957e4df06f659330bbe6cdbdb975b768bb65c", + "https://bcr.bazel.build/modules/rules_license/1.0.0/source.json": "a52c89e54cc311196e478f8382df91c15f7a2bfdf4c6cd0e2675cc2ff0b56efb", + "https://bcr.bazel.build/modules/rules_pkg/0.7.0/MODULE.bazel": "df99f03fc7934a4737122518bb87e667e62d780b610910f0447665a7e2be62dc", + "https://bcr.bazel.build/modules/rules_pkg/1.0.1/MODULE.bazel": "5b1df97dbc29623bccdf2b0dcd0f5cb08e2f2c9050aab1092fd39a41e82686ff", + "https://bcr.bazel.build/modules/rules_pkg/1.0.1/source.json": "bd82e5d7b9ce2d31e380dd9f50c111d678c3bdaca190cb76b0e1c71b05e1ba8a", + "https://bcr.bazel.build/modules/rules_proto/4.0.0/MODULE.bazel": "a7a7b6ce9bee418c1a760b3d84f83a299ad6952f9903c67f19e4edd964894e06", + "https://bcr.bazel.build/modules/rules_proto/5.3.0-21.7/MODULE.bazel": "e8dff86b0971688790ae75528fe1813f71809b5afd57facb44dad9e8eca631b7", + "https://bcr.bazel.build/modules/rules_proto/6.0.0-rc1/MODULE.bazel": "1e5b502e2e1a9e825eef74476a5a1ee524a92297085015a052510b09a1a09483", + "https://bcr.bazel.build/modules/rules_proto/6.0.2/MODULE.bazel": "ce916b775a62b90b61888052a416ccdda405212b6aaeb39522f7dc53431a5e73", + "https://bcr.bazel.build/modules/rules_proto/7.0.2/MODULE.bazel": "bf81793bd6d2ad89a37a40693e56c61b0ee30f7a7fdbaf3eabbf5f39de47dea2", + "https://bcr.bazel.build/modules/rules_proto/7.1.0/MODULE.bazel": "002d62d9108f75bb807cd56245d45648f38275cb3a99dcd45dfb864c5d74cb96", + "https://bcr.bazel.build/modules/rules_proto/7.1.0/source.json": "39f89066c12c24097854e8f57ab8558929f9c8d474d34b2c00ac04630ad8940e", + "https://bcr.bazel.build/modules/rules_python/0.10.2/MODULE.bazel": "cc82bc96f2997baa545ab3ce73f196d040ffb8756fd2d66125a530031cd90e5f", + "https://bcr.bazel.build/modules/rules_python/0.23.1/MODULE.bazel": "49ffccf0511cb8414de28321f5fcf2a31312b47c40cc21577144b7447f2bf300", + "https://bcr.bazel.build/modules/rules_python/0.25.0/MODULE.bazel": "72f1506841c920a1afec76975b35312410eea3aa7b63267436bfb1dd91d2d382", + "https://bcr.bazel.build/modules/rules_python/0.28.0/MODULE.bazel": "cba2573d870babc976664a912539b320cbaa7114cd3e8f053c720171cde331ed", + "https://bcr.bazel.build/modules/rules_python/0.31.0/MODULE.bazel": "93a43dc47ee570e6ec9f5779b2e64c1476a6ce921c48cc9a1678a91dd5f8fd58", + "https://bcr.bazel.build/modules/rules_python/0.33.2/MODULE.bazel": "3e036c4ad8d804a4dad897d333d8dce200d943df4827cb849840055be8d2e937", + "https://bcr.bazel.build/modules/rules_python/0.4.0/MODULE.bazel": "9208ee05fd48bf09ac60ed269791cf17fb343db56c8226a720fbb1cdf467166c", + "https://bcr.bazel.build/modules/rules_python/0.40.0/MODULE.bazel": "9d1a3cd88ed7d8e39583d9ffe56ae8a244f67783ae89b60caafc9f5cf318ada7", + "https://bcr.bazel.build/modules/rules_python/1.6.0/MODULE.bazel": "7e04ad8f8d5bea40451cf80b1bd8262552aa73f841415d20db96b7241bd027d8", + "https://bcr.bazel.build/modules/rules_python/1.6.0/source.json": "e980f654cf66ec4928672f41fc66c4102b5ea54286acf4aecd23256c84211be6", + "https://bcr.bazel.build/modules/rules_shell/0.2.0/MODULE.bazel": "fda8a652ab3c7d8fee214de05e7a9916d8b28082234e8d2c0094505c5268ed3c", + "https://bcr.bazel.build/modules/rules_shell/0.3.0/MODULE.bazel": "de4402cd12f4cc8fda2354fce179fdb068c0b9ca1ec2d2b17b3e21b24c1a937b", + "https://bcr.bazel.build/modules/rules_shell/0.6.1/MODULE.bazel": "72e76b0eea4e81611ef5452aa82b3da34caca0c8b7b5c0c9584338aa93bae26b", + "https://bcr.bazel.build/modules/rules_shell/0.6.1/source.json": "20ec05cd5e592055e214b2da8ccb283c7f2a421ea0dc2acbf1aa792e11c03d0c", + "https://bcr.bazel.build/modules/rules_swift/1.16.0/MODULE.bazel": "4a09f199545a60d09895e8281362b1ff3bb08bbde69c6fc87aff5b92fcc916ca", + "https://bcr.bazel.build/modules/rules_swift/2.1.1/MODULE.bazel": "494900a80f944fc7aa61500c2073d9729dff0b764f0e89b824eb746959bc1046", + "https://bcr.bazel.build/modules/rules_swift/2.1.1/source.json": "40fc69dfaac64deddbb75bd99cdac55f4427d9ca0afbe408576a65428427a186", + "https://bcr.bazel.build/modules/stardoc/0.5.1/MODULE.bazel": "1a05d92974d0c122f5ccf09291442580317cdd859f07a8655f1db9a60374f9f8", + "https://bcr.bazel.build/modules/stardoc/0.5.3/MODULE.bazel": "c7f6948dae6999bf0db32c1858ae345f112cacf98f174c7a8bb707e41b974f1c", + "https://bcr.bazel.build/modules/stardoc/0.5.6/MODULE.bazel": "c43dabc564990eeab55e25ed61c07a1aadafe9ece96a4efabb3f8bf9063b71ef", + "https://bcr.bazel.build/modules/stardoc/0.7.0/MODULE.bazel": "05e3d6d30c099b6770e97da986c53bd31844d7f13d41412480ea265ac9e8079c", + "https://bcr.bazel.build/modules/stardoc/0.7.1/MODULE.bazel": "3548faea4ee5dda5580f9af150e79d0f6aea934fc60c1cc50f4efdd9420759e7", + "https://bcr.bazel.build/modules/stardoc/0.7.2/MODULE.bazel": "fc152419aa2ea0f51c29583fab1e8c99ddefd5b3778421845606ee628629e0e5", + "https://bcr.bazel.build/modules/stardoc/0.7.2/source.json": "58b029e5e901d6802967754adf0a9056747e8176f017cfe3607c0851f4d42216", + "https://bcr.bazel.build/modules/swift_argument_parser/1.3.1.1/MODULE.bazel": "5e463fbfba7b1701d957555ed45097d7f984211330106ccd1352c6e0af0dcf91", + "https://bcr.bazel.build/modules/swift_argument_parser/1.3.1.1/source.json": "32bd87e5f4d7acc57c5b2ff7c325ae3061d5e242c0c4c214ae87e0f1c13e54cb", + "https://bcr.bazel.build/modules/upb/0.0.0-20220923-a547704/MODULE.bazel": "7298990c00040a0e2f121f6c32544bab27d4452f80d9ce51349b1a28f3005c43", + "https://bcr.bazel.build/modules/zlib/1.2.11/MODULE.bazel": "07b389abc85fdbca459b69e2ec656ae5622873af3f845e1c9d80fe179f3effa0", + "https://bcr.bazel.build/modules/zlib/1.3.1.bcr.5/MODULE.bazel": "eec517b5bbe5492629466e11dae908d043364302283de25581e3eb944326c4ca", + "https://bcr.bazel.build/modules/zlib/1.3.1.bcr.5/source.json": "22bc55c47af97246cfc093d0acf683a7869377de362b5d1c552c2c2e16b7a806", + "https://bcr.bazel.build/modules/zlib/1.3.1/MODULE.bazel": "751c9940dcfe869f5f7274e1295422a34623555916eb98c174c1e945594bf198" + }, + "selectedYankedVersions": {}, + "moduleExtensions": { + "@@rules_kotlin+//src/main/starlark/core/repositories:bzlmod_setup.bzl%rules_kotlin_extensions": { + "general": { + "bzlTransitiveDigest": "rL/34P1aFDq2GqVC2zCFgQ8nTuOC6ziogocpvG50Qz8=", + "usagesDigest": "QI2z8ZUR+mqtbwsf2fLqYdJAkPOHdOV+tF2yVAUgRzw=", + "recordedFileInputs": {}, + "recordedDirentsInputs": {}, + "envVariables": {}, + "generatedRepoSpecs": { + "com_github_jetbrains_kotlin_git": { + "repoRuleId": "@@rules_kotlin+//src/main/starlark/core/repositories:compiler.bzl%kotlin_compiler_git_repository", + "attributes": { + "urls": [ + "https://github.com/JetBrains/kotlin/releases/download/v1.9.23/kotlin-compiler-1.9.23.zip" + ], + "sha256": "93137d3aab9afa9b27cb06a824c2324195c6b6f6179d8a8653f440f5bd58be88" + } + }, + "com_github_jetbrains_kotlin": { + "repoRuleId": "@@rules_kotlin+//src/main/starlark/core/repositories:compiler.bzl%kotlin_capabilities_repository", + "attributes": { + "git_repository_name": "com_github_jetbrains_kotlin_git", + "compiler_version": "1.9.23" + } + }, + "com_github_google_ksp": { + "repoRuleId": "@@rules_kotlin+//src/main/starlark/core/repositories:ksp.bzl%ksp_compiler_plugin_repository", + "attributes": { + "urls": [ + "https://github.com/google/ksp/releases/download/1.9.23-1.0.20/artifacts.zip" + ], + "sha256": "ee0618755913ef7fd6511288a232e8fad24838b9af6ea73972a76e81053c8c2d", + "strip_version": "1.9.23-1.0.20" + } + }, + "com_github_pinterest_ktlint": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_file", + "attributes": { + "sha256": "01b2e0ef893383a50dbeb13970fe7fa3be36ca3e83259e01649945b09d736985", + "urls": [ + "https://github.com/pinterest/ktlint/releases/download/1.3.0/ktlint" + ], + "executable": true + } + }, + "rules_android": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "sha256": "cd06d15dd8bb59926e4d65f9003bfc20f9da4b2519985c27e190cddc8b7a7806", + "strip_prefix": "rules_android-0.1.1", + "urls": [ + "https://github.com/bazelbuild/rules_android/archive/v0.1.1.zip" + ] + } + } + }, + "recordedRepoMappingEntries": [ + [ + "rules_kotlin+", + "bazel_tools", + "bazel_tools" + ] + ] + } + }, + "@@rules_python+//python/uv:uv.bzl%uv": { + "general": { + "bzlTransitiveDigest": "8vT1ddXtljNxYD0tJkksqzeKE6xqx4Ix+tXthAppjTI=", + "usagesDigest": "p80sy6cYQuWxx5jhV3fOTu+N9EyIUFG9+F7UC/nhXic=", + "recordedFileInputs": {}, + "recordedDirentsInputs": {}, + "envVariables": {}, + "generatedRepoSpecs": { + "uv": { + "repoRuleId": "@@rules_python+//python/uv/private:uv_toolchains_repo.bzl%uv_toolchains_repo", + "attributes": { + "toolchain_type": "'@@rules_python+//python/uv:uv_toolchain_type'", + "toolchain_names": [ + "none" + ], + "toolchain_implementations": { + "none": "'@@rules_python+//python:none'" + }, + "toolchain_compatible_with": { + "none": [ + "@platforms//:incompatible" + ] + }, + "toolchain_target_settings": {} + } + } + }, + "recordedRepoMappingEntries": [ + [ + "rules_python+", + "bazel_tools", + "bazel_tools" + ], + [ + "rules_python+", + "platforms", + "platforms" + ] + ] + } + } + }, + "facts": {} +} diff --git a/e2e/bcr/README.md b/e2e/bcr/README.md new file mode 100644 index 0000000..28a7ce8 --- /dev/null +++ b/e2e/bcr/README.md @@ -0,0 +1,6 @@ +# e2e/bcr + +This directory is used during the bazel-central-registry presubmit phase (see +). It is a smoke test to check that protobuf_javascript +can be depended on as a module, can build the generator, and used as a protoc +plugin. diff --git a/e2e/bcr/simple.proto b/e2e/bcr/simple.proto new file mode 100644 index 0000000..ce38262 --- /dev/null +++ b/e2e/bcr/simple.proto @@ -0,0 +1,39 @@ +// Protocol Buffers - Google's data interchange format +// Copyright 2025 Google Inc. All rights reserved. +// https://protobuf.dev/ +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +syntax = "proto3"; + +package e2e.bcr; + +message Simple { + string a_string = 1; + string a_repeated_string = 2; + bool a_boolean = 3; +} diff --git a/e2e/bcr/simple_js_test.sh b/e2e/bcr/simple_js_test.sh new file mode 100755 index 0000000..0ee4fcc --- /dev/null +++ b/e2e/bcr/simple_js_test.sh @@ -0,0 +1,23 @@ +#!/bin/bash +set -euo pipefail + +# Check that we received arguments +if [ $# -eq 0 ]; then + echo "FAIL: No arguments provided" + exit 1 +fi + +# Verify each arg is a readable file +for arg in "$@"; do + if [ ! -f "$arg" ]; then + echo "FAIL: $arg is not a file" + exit 1 + fi + + if [ ! -s "$arg" ]; then + echo "FAIL: $arg is empty" + exit 1 + fi +done + +echo "PASS: Verified $# file(s)" From a0c2db7339ffe35675b1dd95304339ec0620527f Mon Sep 17 00:00:00 2001 From: Stephanie DiBenedetto Date: Thu, 8 Jan 2026 18:53:48 +0100 Subject: [PATCH 14/40] Tweak BCR configuration to avoid automatic PR creation (#264) --- .github/workflows/publish.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index b010868..f660548 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -27,6 +27,8 @@ jobs: tag_name: ${{ inputs.tag_name }} # GitHub repository which is a fork of the upstream where the Pull Request will be opened. registry_fork: protocolbuffers/bazel-central-registry + # Require pull request to be created manually in order to avoid using a classic PAT + open_pull_request: false permissions: attestations: write contents: write From 475d67238506dda5cd6f1dc3728278f366cb6c70 Mon Sep 17 00:00:00 2001 From: Stephanie DiBenedetto Date: Fri, 9 Jan 2026 17:43:56 +0100 Subject: [PATCH 15/40] Bump version to 4.0.2-rc1 for testing BCR workflow (#265) The BCR publishing workflow requires a tag, and we can't use v4.0.1 since it didn't yet contain the actions. We will hold off doing an actual plugin release to npm until BCR is settled. --- 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 4f76f54..8c3a3b7 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -1,6 +1,6 @@ "Bazel module that provides protoc-gen-js." -module(name = "protobuf_javascript", version = "0.0.0") # updated by release action +module(name = "protobuf_javascript", version = "4.0.2-rc1") # updated by release action bazel_dep(name = "abseil-cpp", version = "20250512.1") bazel_dep(name = "protobuf", version = "33.0", repo_name = "com_google_protobuf") diff --git a/conformance/package.json b/conformance/package.json index 0c97d19..1508c75 100644 --- a/conformance/package.json +++ b/conformance/package.json @@ -11,7 +11,7 @@ "LICENSE.md" ], "dependencies": { - "google-protobuf": "file:../google-protobuf-4.0.1.tgz" + "google-protobuf": "file:../google-protobuf-4.0.2-rc1.tgz" }, "author": "Google Protocol Buffers Team", "license": "BSD-3-Clause" diff --git a/package.json b/package.json index 993aeeb..2e280bc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "google-protobuf", - "version": "4.0.1", + "version": "4.0.2-rc1", "description": "Protocol Buffers for JavaScript", "main": "google-protobuf.js", "files": [ diff --git a/protobuf_javascript_release.bzl b/protobuf_javascript_release.bzl index 4bcaaad..da77474 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.1" +_PROTOBUF_JAVASCRIPT_VERSION = "4.0.2-rc1" def _package_naming_impl(ctx): values = {} diff --git a/protoc_plugin/package.json b/protoc_plugin/package.json index b9a355c..2d3bf80 100644 --- a/protoc_plugin/package.json +++ b/protoc_plugin/package.json @@ -1,6 +1,6 @@ { "name": "@protocolbuffers/protoc-gen-js", - "version": "4.0.1", + "version": "4.0.2-rc1", "description": "Official standalone distribution of the protoc-gen-js plugin for Protocol Buffers", "author": "Google Protocol Buffers Team", "license": "BSD-3-Clause", From 85035fc6b3b50633bfcb780571fddded024e1297 Mon Sep 17 00:00:00 2001 From: Stephanie DiBenedetto Date: Fri, 9 Jan 2026 17:00:45 +0000 Subject: [PATCH 16/40] Tweak source archive URL for BCR publish workflow The workflow is currently using an URL that resembles cross-compiled protoc-gen-js zips without architecture info. Swap to using the URL for the zips. --- .bcr/source.template.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.bcr/source.template.json b/.bcr/source.template.json index 7dd7b58..98e56d1 100644 --- a/.bcr/source.template.json +++ b/.bcr/source.template.json @@ -1,5 +1,5 @@ { "integrity": "", "strip_prefix": "{REPO}-{TAG}", - "url": "https://github.com/{OWNER}/{REPO}/releases/download/{TAG}/{REPO}-{TAG}.tar.gz" -} \ No newline at end of file + "url": "https://github.com/{OWNER}/{REPO}/archive/refs/tags/{TAG}.tar.gz" +} From b78407963a266b0201f118a162d04a43c56140a7 Mon Sep 17 00:00:00 2001 From: Stephanie DiBenedetto Date: Fri, 9 Jan 2026 17:04:48 +0000 Subject: [PATCH 17/40] Bump version to v4.0.2-rc2 or testing BCR workflow --- 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 8c3a3b7..8e96e2e 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -1,6 +1,6 @@ "Bazel module that provides protoc-gen-js." -module(name = "protobuf_javascript", version = "4.0.2-rc1") # updated by release action +module(name = "protobuf_javascript", version = "4.0.2-rc2") # updated by release action bazel_dep(name = "abseil-cpp", version = "20250512.1") bazel_dep(name = "protobuf", version = "33.0", repo_name = "com_google_protobuf") diff --git a/conformance/package.json b/conformance/package.json index 1508c75..a8b4548 100644 --- a/conformance/package.json +++ b/conformance/package.json @@ -11,7 +11,7 @@ "LICENSE.md" ], "dependencies": { - "google-protobuf": "file:../google-protobuf-4.0.2-rc1.tgz" + "google-protobuf": "file:../google-protobuf-4.0.2-rc2.tgz" }, "author": "Google Protocol Buffers Team", "license": "BSD-3-Clause" diff --git a/package.json b/package.json index 2e280bc..db069ed 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "google-protobuf", - "version": "4.0.2-rc1", + "version": "4.0.2-rc2", "description": "Protocol Buffers for JavaScript", "main": "google-protobuf.js", "files": [ diff --git a/protobuf_javascript_release.bzl b/protobuf_javascript_release.bzl index da77474..14c3678 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.2-rc1" +_PROTOBUF_JAVASCRIPT_VERSION = "4.0.2-rc2" def _package_naming_impl(ctx): values = {} diff --git a/protoc_plugin/package.json b/protoc_plugin/package.json index 2d3bf80..d05aac1 100644 --- a/protoc_plugin/package.json +++ b/protoc_plugin/package.json @@ -1,6 +1,6 @@ { "name": "@protocolbuffers/protoc-gen-js", - "version": "4.0.2-rc1", + "version": "4.0.2-rc2", "description": "Official standalone distribution of the protoc-gen-js plugin for Protocol Buffers", "author": "Google Protocol Buffers Team", "license": "BSD-3-Clause", From 7d64c8da9da0ca3dcea339f70dfd88c46f0ff176 Mon Sep 17 00:00:00 2001 From: Stephanie DiBenedetto Date: Fri, 9 Jan 2026 17:58:06 +0000 Subject: [PATCH 18/40] Add placeholder google-protobuf.js file to fix missing input Release workflow currently errors out with `//:dist_files: missing input file '//:google-protobuf.js'` because we normally only generate it as part of the cross-compiled binary and npm releases. However, this seems to be causing problems for the BCR release process because the build target is broken without it. This change just adds a placeholder file to smooth things over. --- MODULE.bazel | 2 +- conformance/package.json | 2 +- google-protobuf.js | 2 ++ package.json | 2 +- protobuf_javascript_release.bzl | 2 +- protoc_plugin/package.json | 2 +- 6 files changed, 7 insertions(+), 5 deletions(-) create mode 100644 google-protobuf.js diff --git a/MODULE.bazel b/MODULE.bazel index 8e96e2e..2d4eb62 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -1,6 +1,6 @@ "Bazel module that provides protoc-gen-js." -module(name = "protobuf_javascript", version = "4.0.2-rc2") # updated by release action +module(name = "protobuf_javascript", version = "4.0.2-rc3") # updated by release action bazel_dep(name = "abseil-cpp", version = "20250512.1") bazel_dep(name = "protobuf", version = "33.0", repo_name = "com_google_protobuf") diff --git a/conformance/package.json b/conformance/package.json index a8b4548..a0a2ca8 100644 --- a/conformance/package.json +++ b/conformance/package.json @@ -11,7 +11,7 @@ "LICENSE.md" ], "dependencies": { - "google-protobuf": "file:../google-protobuf-4.0.2-rc2.tgz" + "google-protobuf": "file:../google-protobuf-4.0.2-rc3.tgz" }, "author": "Google Protocol Buffers Team", "license": "BSD-3-Clause" diff --git a/google-protobuf.js b/google-protobuf.js new file mode 100644 index 0000000..24c9ae5 --- /dev/null +++ b/google-protobuf.js @@ -0,0 +1,2 @@ +// Placeholder to ensure //:dist_files has all inputs. +// Run `npm run build` to generate diff --git a/package.json b/package.json index db069ed..89be492 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "google-protobuf", - "version": "4.0.2-rc2", + "version": "4.0.2-rc3", "description": "Protocol Buffers for JavaScript", "main": "google-protobuf.js", "files": [ diff --git a/protobuf_javascript_release.bzl b/protobuf_javascript_release.bzl index 14c3678..03ea478 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.2-rc2" +_PROTOBUF_JAVASCRIPT_VERSION = "4.0.2-rc3" def _package_naming_impl(ctx): values = {} diff --git a/protoc_plugin/package.json b/protoc_plugin/package.json index d05aac1..d351880 100644 --- a/protoc_plugin/package.json +++ b/protoc_plugin/package.json @@ -1,6 +1,6 @@ { "name": "@protocolbuffers/protoc-gen-js", - "version": "4.0.2-rc2", + "version": "4.0.2-rc3", "description": "Official standalone distribution of the protoc-gen-js plugin for Protocol Buffers", "author": "Google Protocol Buffers Team", "license": "BSD-3-Clause", From 016866aff9913762c0ad9b8917d60b52bd81b5fc Mon Sep 17 00:00:00 2001 From: Stephanie DiBenedetto Date: Mon, 12 Jan 2026 09:12:34 +0000 Subject: [PATCH 19/40] Use bazel build for BCR release test command By default, the release_ruleset wants to use `bazel test //...`, but this will fail since we have no tests registered with bazel (we use jasmine via gulp). Instead, just try to build the tarball as a basic check. --- .github/workflows/release.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index c55d525..2dc06d6 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -22,6 +22,7 @@ jobs: release: uses: bazel-contrib/.github/.github/workflows/release_ruleset.yaml@v7.2.3 with: + bazel_test_command: "bazel build //:dist_tar" prerelease: false release_files: protobuf-javascript-*.tar.gz tag_name: ${{ inputs.tag_name || github.ref_name }} From 34756fc2ea7bd55f04c47dc9094bd57a6b33ef05 Mon Sep 17 00:00:00 2001 From: Stephanie DiBenedetto Date: Mon, 12 Jan 2026 15:34:12 +0000 Subject: [PATCH 20/40] Bump version to 4.0.2-rc4 for testing BCR workflow --- 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 2d4eb62..5671bd6 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -1,6 +1,6 @@ "Bazel module that provides protoc-gen-js." -module(name = "protobuf_javascript", version = "4.0.2-rc3") # updated by release action +module(name = "protobuf_javascript", version = "4.0.2-rc4") # updated by release action bazel_dep(name = "abseil-cpp", version = "20250512.1") bazel_dep(name = "protobuf", version = "33.0", repo_name = "com_google_protobuf") diff --git a/conformance/package.json b/conformance/package.json index a0a2ca8..95ba1d0 100644 --- a/conformance/package.json +++ b/conformance/package.json @@ -11,7 +11,7 @@ "LICENSE.md" ], "dependencies": { - "google-protobuf": "file:../google-protobuf-4.0.2-rc3.tgz" + "google-protobuf": "file:../google-protobuf-4.0.2-rc4.tgz" }, "author": "Google Protocol Buffers Team", "license": "BSD-3-Clause" diff --git a/package.json b/package.json index 89be492..8230eb5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "google-protobuf", - "version": "4.0.2-rc3", + "version": "4.0.2-rc4", "description": "Protocol Buffers for JavaScript", "main": "google-protobuf.js", "files": [ diff --git a/protobuf_javascript_release.bzl b/protobuf_javascript_release.bzl index 03ea478..e0b580c 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.2-rc3" +_PROTOBUF_JAVASCRIPT_VERSION = "4.0.2-rc4" def _package_naming_impl(ctx): values = {} diff --git a/protoc_plugin/package.json b/protoc_plugin/package.json index d351880..9959723 100644 --- a/protoc_plugin/package.json +++ b/protoc_plugin/package.json @@ -1,6 +1,6 @@ { "name": "@protocolbuffers/protoc-gen-js", - "version": "4.0.2-rc3", + "version": "4.0.2-rc4", "description": "Official standalone distribution of the protoc-gen-js plugin for Protocol Buffers", "author": "Google Protocol Buffers Team", "license": "BSD-3-Clause", From edcf43589f245f7425a29fc566e999f9be8bb0c8 Mon Sep 17 00:00:00 2001 From: Stephanie DiBenedetto Date: Wed, 14 Jan 2026 06:28:17 +0100 Subject: [PATCH 21/40] Switch BCR release workflow javascript source tarball, bump version (#271) Switch BCR release workflow javascript source tarball, bump version --- .github/workflows/release.yaml | 4 ++-- BUILD.bazel | 10 ++++++++++ MODULE.bazel | 2 +- conformance/package.json | 2 +- package.json | 2 +- protobuf_javascript_release.bzl | 2 +- protoc_plugin/package.json | 2 +- 7 files changed, 17 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 2dc06d6..dc77071 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -22,9 +22,9 @@ jobs: release: uses: bazel-contrib/.github/.github/workflows/release_ruleset.yaml@v7.2.3 with: - bazel_test_command: "bazel build //:dist_tar" + bazel_test_command: "bazel build //:bcr_dist_tar" prerelease: false - release_files: protobuf-javascript-*.tar.gz + release_files: "bazel-bin/protobuf-javascript-*.tar.gz" tag_name: ${{ inputs.tag_name || github.ref_name }} secrets: inherit publish: diff --git a/BUILD.bazel b/BUILD.bazel index b64b057..f81d102 100644 --- a/BUILD.bazel +++ b/BUILD.bazel @@ -81,6 +81,16 @@ pkg_tar( package_variables = ":protobuf_javascript_pkg_naming", ) +pkg_tar( + name = "bcr_dist_tar", + srcs = [ + ":javascript", + ], + extension = "tar.gz", + package_file_name = "protobuf-javascript-{version}.tar.gz", + package_variables = ":protobuf_javascript_pkg_naming", +) + pkg_zip( name = "dist_zip", srcs = [ diff --git a/MODULE.bazel b/MODULE.bazel index 5671bd6..7f7a23a 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -1,6 +1,6 @@ "Bazel module that provides protoc-gen-js." -module(name = "protobuf_javascript", version = "4.0.2-rc4") # updated by release action +module(name = "protobuf_javascript", version = "4.0.2-rc5") # updated by release action bazel_dep(name = "abseil-cpp", version = "20250512.1") bazel_dep(name = "protobuf", version = "33.0", repo_name = "com_google_protobuf") diff --git a/conformance/package.json b/conformance/package.json index 95ba1d0..9d8890c 100644 --- a/conformance/package.json +++ b/conformance/package.json @@ -11,7 +11,7 @@ "LICENSE.md" ], "dependencies": { - "google-protobuf": "file:../google-protobuf-4.0.2-rc4.tgz" + "google-protobuf": "file:../google-protobuf-4.0.2-rc5.tgz" }, "author": "Google Protocol Buffers Team", "license": "BSD-3-Clause" diff --git a/package.json b/package.json index 8230eb5..20266a3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "google-protobuf", - "version": "4.0.2-rc4", + "version": "4.0.2-rc5", "description": "Protocol Buffers for JavaScript", "main": "google-protobuf.js", "files": [ diff --git a/protobuf_javascript_release.bzl b/protobuf_javascript_release.bzl index e0b580c..981601d 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.2-rc4" +_PROTOBUF_JAVASCRIPT_VERSION = "4.0.2-rc5" def _package_naming_impl(ctx): values = {} diff --git a/protoc_plugin/package.json b/protoc_plugin/package.json index 9959723..9e99a65 100644 --- a/protoc_plugin/package.json +++ b/protoc_plugin/package.json @@ -1,6 +1,6 @@ { "name": "@protocolbuffers/protoc-gen-js", - "version": "4.0.2-rc4", + "version": "4.0.2-rc5", "description": "Official standalone distribution of the protoc-gen-js plugin for Protocol Buffers", "author": "Google Protocol Buffers Team", "license": "BSD-3-Clause", From 9eb5f39b19ad7fcc63a154ac6b9fc49ef3ce287b Mon Sep 17 00:00:00 2001 From: Stephanie DiBenedetto Date: Wed, 14 Jan 2026 08:38:24 +0000 Subject: [PATCH 22/40] add MODULE.bazel and licenses to BCR package, bump pre-release version While the traditional dist tarball includes MODULE.bazel, it has an architecture specific name that is inappropriate for BCR. The tar'd javascript filegroup is closer to what we want, but the release process fails when it doesn't find MODULE.bazel. This change just splits the difference and adds MODULE.bazel to the javascript filegroup. --- BUILD.bazel | 4 ++ MODULE.bazel | 2 +- MODULE.bazel.lock | 108 +++++++++++++++++++++++++++++++- conformance/package.json | 2 +- package.json | 2 +- protobuf_javascript_release.bzl | 2 +- protoc_plugin/package.json | 2 +- 7 files changed, 116 insertions(+), 6 deletions(-) diff --git a/BUILD.bazel b/BUILD.bazel index f81d102..f6c08af 100644 --- a/BUILD.bazel +++ b/BUILD.bazel @@ -143,6 +143,10 @@ filegroup( "map.js", "message.js", "unsafe_bytestring.js", + ] + [ + "MODULE.bazel", + "LICENSE.md", + "LICENSE-asserts.md", ], visibility = ["//visibility:public"], ) diff --git a/MODULE.bazel b/MODULE.bazel index 7f7a23a..e3c8840 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -1,6 +1,6 @@ "Bazel module that provides protoc-gen-js." -module(name = "protobuf_javascript", version = "4.0.2-rc5") # updated by release action +module(name = "protobuf_javascript", version = "4.0.2-rc6") # updated by release action bazel_dep(name = "abseil-cpp", version = "20250512.1") bazel_dep(name = "protobuf", version = "33.0", repo_name = "com_google_protobuf") diff --git a/MODULE.bazel.lock b/MODULE.bazel.lock index be3d31c..918fc46 100644 --- a/MODULE.bazel.lock +++ b/MODULE.bazel.lock @@ -178,6 +178,112 @@ "https://bcr.bazel.build/modules/zlib/1.3.1/MODULE.bazel": "751c9940dcfe869f5f7274e1295422a34623555916eb98c174c1e945594bf198" }, "selectedYankedVersions": {}, - "moduleExtensions": {}, + "moduleExtensions": { + "@@rules_kotlin+//src/main/starlark/core/repositories:bzlmod_setup.bzl%rules_kotlin_extensions": { + "general": { + "bzlTransitiveDigest": "rL/34P1aFDq2GqVC2zCFgQ8nTuOC6ziogocpvG50Qz8=", + "usagesDigest": "QI2z8ZUR+mqtbwsf2fLqYdJAkPOHdOV+tF2yVAUgRzw=", + "recordedFileInputs": {}, + "recordedDirentsInputs": {}, + "envVariables": {}, + "generatedRepoSpecs": { + "com_github_jetbrains_kotlin_git": { + "repoRuleId": "@@rules_kotlin+//src/main/starlark/core/repositories:compiler.bzl%kotlin_compiler_git_repository", + "attributes": { + "urls": [ + "https://github.com/JetBrains/kotlin/releases/download/v1.9.23/kotlin-compiler-1.9.23.zip" + ], + "sha256": "93137d3aab9afa9b27cb06a824c2324195c6b6f6179d8a8653f440f5bd58be88" + } + }, + "com_github_jetbrains_kotlin": { + "repoRuleId": "@@rules_kotlin+//src/main/starlark/core/repositories:compiler.bzl%kotlin_capabilities_repository", + "attributes": { + "git_repository_name": "com_github_jetbrains_kotlin_git", + "compiler_version": "1.9.23" + } + }, + "com_github_google_ksp": { + "repoRuleId": "@@rules_kotlin+//src/main/starlark/core/repositories:ksp.bzl%ksp_compiler_plugin_repository", + "attributes": { + "urls": [ + "https://github.com/google/ksp/releases/download/1.9.23-1.0.20/artifacts.zip" + ], + "sha256": "ee0618755913ef7fd6511288a232e8fad24838b9af6ea73972a76e81053c8c2d", + "strip_version": "1.9.23-1.0.20" + } + }, + "com_github_pinterest_ktlint": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_file", + "attributes": { + "sha256": "01b2e0ef893383a50dbeb13970fe7fa3be36ca3e83259e01649945b09d736985", + "urls": [ + "https://github.com/pinterest/ktlint/releases/download/1.3.0/ktlint" + ], + "executable": true + } + }, + "rules_android": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "sha256": "cd06d15dd8bb59926e4d65f9003bfc20f9da4b2519985c27e190cddc8b7a7806", + "strip_prefix": "rules_android-0.1.1", + "urls": [ + "https://github.com/bazelbuild/rules_android/archive/v0.1.1.zip" + ] + } + } + }, + "recordedRepoMappingEntries": [ + [ + "rules_kotlin+", + "bazel_tools", + "bazel_tools" + ] + ] + } + }, + "@@rules_python+//python/uv:uv.bzl%uv": { + "general": { + "bzlTransitiveDigest": "8vT1ddXtljNxYD0tJkksqzeKE6xqx4Ix+tXthAppjTI=", + "usagesDigest": "p80sy6cYQuWxx5jhV3fOTu+N9EyIUFG9+F7UC/nhXic=", + "recordedFileInputs": {}, + "recordedDirentsInputs": {}, + "envVariables": {}, + "generatedRepoSpecs": { + "uv": { + "repoRuleId": "@@rules_python+//python/uv/private:uv_toolchains_repo.bzl%uv_toolchains_repo", + "attributes": { + "toolchain_type": "'@@rules_python+//python/uv:uv_toolchain_type'", + "toolchain_names": [ + "none" + ], + "toolchain_implementations": { + "none": "'@@rules_python+//python:none'" + }, + "toolchain_compatible_with": { + "none": [ + "@platforms//:incompatible" + ] + }, + "toolchain_target_settings": {} + } + } + }, + "recordedRepoMappingEntries": [ + [ + "rules_python+", + "bazel_tools", + "bazel_tools" + ], + [ + "rules_python+", + "platforms", + "platforms" + ] + ] + } + } + }, "facts": {} } diff --git a/conformance/package.json b/conformance/package.json index 9d8890c..2d15417 100644 --- a/conformance/package.json +++ b/conformance/package.json @@ -11,7 +11,7 @@ "LICENSE.md" ], "dependencies": { - "google-protobuf": "file:../google-protobuf-4.0.2-rc5.tgz" + "google-protobuf": "file:../google-protobuf-4.0.2-rc6.tgz" }, "author": "Google Protocol Buffers Team", "license": "BSD-3-Clause" diff --git a/package.json b/package.json index 20266a3..12936c8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "google-protobuf", - "version": "4.0.2-rc5", + "version": "4.0.2-rc6", "description": "Protocol Buffers for JavaScript", "main": "google-protobuf.js", "files": [ diff --git a/protobuf_javascript_release.bzl b/protobuf_javascript_release.bzl index 981601d..38c52b3 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.2-rc5" +_PROTOBUF_JAVASCRIPT_VERSION = "4.0.2-rc6" def _package_naming_impl(ctx): values = {} diff --git a/protoc_plugin/package.json b/protoc_plugin/package.json index 9e99a65..6855f60 100644 --- a/protoc_plugin/package.json +++ b/protoc_plugin/package.json @@ -1,6 +1,6 @@ { "name": "@protocolbuffers/protoc-gen-js", - "version": "4.0.2-rc5", + "version": "4.0.2-rc6", "description": "Official standalone distribution of the protoc-gen-js plugin for Protocol Buffers", "author": "Google Protocol Buffers Team", "license": "BSD-3-Clause", From d0a7fc0246aa1386fb1e1d46e636bd519a684841 Mon Sep 17 00:00:00 2001 From: Stephanie DiBenedetto Date: Tue, 20 Jan 2026 16:33:40 +0100 Subject: [PATCH 23/40] adjust path for archive and bump pre-release version (#273) --- .bcr/source.template.json | 3 +-- MODULE.bazel | 2 +- conformance/package.json | 2 +- package.json | 2 +- protobuf_javascript_release.bzl | 2 +- protoc_plugin/package.json | 2 +- 6 files changed, 6 insertions(+), 7 deletions(-) diff --git a/.bcr/source.template.json b/.bcr/source.template.json index 98e56d1..e790caf 100644 --- a/.bcr/source.template.json +++ b/.bcr/source.template.json @@ -1,5 +1,4 @@ { "integrity": "", - "strip_prefix": "{REPO}-{TAG}", - "url": "https://github.com/{OWNER}/{REPO}/archive/refs/tags/{TAG}.tar.gz" + "url": "https://github.com/{OWNER}/{REPO}/releases/download/{TAG}/protobuf-javascript-{VERSION}.tar.gz" } diff --git a/MODULE.bazel b/MODULE.bazel index e3c8840..22e9f75 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -1,6 +1,6 @@ "Bazel module that provides protoc-gen-js." -module(name = "protobuf_javascript", version = "4.0.2-rc6") # updated by release action +module(name = "protobuf_javascript", version = "4.0.2-rc7") # updated by release action bazel_dep(name = "abseil-cpp", version = "20250512.1") bazel_dep(name = "protobuf", version = "33.0", repo_name = "com_google_protobuf") diff --git a/conformance/package.json b/conformance/package.json index 2d15417..b0cf2bc 100644 --- a/conformance/package.json +++ b/conformance/package.json @@ -11,7 +11,7 @@ "LICENSE.md" ], "dependencies": { - "google-protobuf": "file:../google-protobuf-4.0.2-rc6.tgz" + "google-protobuf": "file:../google-protobuf-4.0.2-rc7.tgz" }, "author": "Google Protocol Buffers Team", "license": "BSD-3-Clause" diff --git a/package.json b/package.json index 12936c8..79b96a5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "google-protobuf", - "version": "4.0.2-rc6", + "version": "4.0.2-rc7", "description": "Protocol Buffers for JavaScript", "main": "google-protobuf.js", "files": [ diff --git a/protobuf_javascript_release.bzl b/protobuf_javascript_release.bzl index 38c52b3..7eead9a 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.2-rc6" +_PROTOBUF_JAVASCRIPT_VERSION = "4.0.2-rc7" def _package_naming_impl(ctx): values = {} diff --git a/protoc_plugin/package.json b/protoc_plugin/package.json index 6855f60..4caa40b 100644 --- a/protoc_plugin/package.json +++ b/protoc_plugin/package.json @@ -1,6 +1,6 @@ { "name": "@protocolbuffers/protoc-gen-js", - "version": "4.0.2-rc6", + "version": "4.0.2-rc7", "description": "Official standalone distribution of the protoc-gen-js plugin for Protocol Buffers", "author": "Google Protocol Buffers Team", "license": "BSD-3-Clause", From 261daec32d7308dce5d794138a453592a72c66da Mon Sep 17 00:00:00 2001 From: Stephanie DiBenedetto Date: Mon, 9 Feb 2026 19:25:43 +0100 Subject: [PATCH 24/40] Update for bazel 9 and protobuf 33.4 (#274) * Bazel 9 cleans up a deprecated flag that is still lingering, but should be a no-op. * Update workflows to use protobuf 33.4 --- .github/workflows/build.yml | 2 +- .github/workflows/codeql.yml | 2 +- MODULE.bazel | 4 +- MODULE.bazel.lock | 279 +++++++++++++++++++++++++------- protobuf_javascript_release.bzl | 1 - 5 files changed, 223 insertions(+), 65 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0dd6f43..b920538 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: "33.0" + PROTOC_VERSION: "33.4" jobs: build: diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 197cb6e..e105341 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -15,7 +15,7 @@ permissions: read-all # update in build.yml and codeql.yml at same time env: - PROTOC_VERSION: "31.0" + PROTOC_VERSION: "33.4" on: push: diff --git a/MODULE.bazel b/MODULE.bazel index 22e9f75..d356326 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -2,7 +2,7 @@ module(name = "protobuf_javascript", version = "4.0.2-rc7") # updated by release action -bazel_dep(name = "abseil-cpp", version = "20250512.1") -bazel_dep(name = "protobuf", version = "33.0", repo_name = "com_google_protobuf") +bazel_dep(name = "abseil-cpp", version = "20250814.1") +bazel_dep(name = "protobuf", version = "33.4", repo_name = "com_google_protobuf") bazel_dep(name = "rules_cc", version = "0.2.15") bazel_dep(name = "rules_pkg", version = "1.0.1", dev_dependency = True) diff --git a/MODULE.bazel.lock b/MODULE.bazel.lock index 918fc46..b130cf6 100644 --- a/MODULE.bazel.lock +++ b/MODULE.bazel.lock @@ -1,5 +1,5 @@ { - "lockFileVersion": 24, + "lockFileVersion": 26, "registryFileHashes": { "https://bcr.bazel.build/bazel_registry.json": "8a28e4aff06ee60aed2a8c281907fb8bcbf3b753c91fb5a5c57da3215d5b3497", "https://bcr.bazel.build/modules/abseil-cpp/20210324.2/MODULE.bazel": "7cd0312e064fde87c8d1cd79ba06c876bd23630c83466e9500321be55c96ace2", @@ -12,18 +12,23 @@ "https://bcr.bazel.build/modules/abseil-cpp/20240116.2/MODULE.bazel": "73939767a4686cd9a520d16af5ab440071ed75cec1a876bf2fcfaf1f71987a16", "https://bcr.bazel.build/modules/abseil-cpp/20250127.1/MODULE.bazel": "c4a89e7ceb9bf1e25cf84a9f830ff6b817b72874088bf5141b314726e46a57c1", "https://bcr.bazel.build/modules/abseil-cpp/20250512.1/MODULE.bazel": "d209fdb6f36ffaf61c509fcc81b19e81b411a999a934a032e10cd009a0226215", - "https://bcr.bazel.build/modules/abseil-cpp/20250512.1/source.json": "d725d73707d01bb46ab3ca59ba408b8e9bd336642ca77a2269d4bfb8bbfd413d", + "https://bcr.bazel.build/modules/abseil-cpp/20250814.1/MODULE.bazel": "51f2312901470cdab0dbdf3b88c40cd21c62a7ed58a3de45b365ddc5b11bcab2", + "https://bcr.bazel.build/modules/abseil-cpp/20250814.1/source.json": "cea3901d7e299da7320700abbaafe57a65d039f10d0d7ea601c4a66938ea4b0c", "https://bcr.bazel.build/modules/apple_support/1.11.1/MODULE.bazel": "1843d7cd8a58369a444fc6000e7304425fba600ff641592161d9f15b179fb896", "https://bcr.bazel.build/modules/apple_support/1.15.1/MODULE.bazel": "a0556fefca0b1bb2de8567b8827518f94db6a6e7e7d632b4c48dc5f865bc7c85", - "https://bcr.bazel.build/modules/apple_support/1.23.1/MODULE.bazel": "53763fed456a968cf919b3240427cf3a9d5481ec5466abc9d5dc51bc70087442", - "https://bcr.bazel.build/modules/apple_support/1.23.1/source.json": "d888b44312eb0ad2c21a91d026753f330caa48a25c9b2102fae75eb2b0dcfdd2", + "https://bcr.bazel.build/modules/apple_support/1.21.0/MODULE.bazel": "ac1824ed5edf17dee2fdd4927ada30c9f8c3b520be1b5fd02a5da15bc10bff3e", + "https://bcr.bazel.build/modules/apple_support/1.21.1/MODULE.bazel": "5809fa3efab15d1f3c3c635af6974044bac8a4919c62238cce06acee8a8c11f1", + "https://bcr.bazel.build/modules/apple_support/1.24.2/MODULE.bazel": "0e62471818affb9f0b26f128831d5c40b074d32e6dda5a0d3852847215a41ca4", + "https://bcr.bazel.build/modules/apple_support/1.24.2/source.json": "2c22c9827093250406c5568da6c54e6fdf0ef06238def3d99c71b12feb057a8d", "https://bcr.bazel.build/modules/bazel_features/1.1.1/MODULE.bazel": "27b8c79ef57efe08efccbd9dd6ef70d61b4798320b8d3c134fd571f78963dbcd", + "https://bcr.bazel.build/modules/bazel_features/1.10.0/MODULE.bazel": "f75e8807570484a99be90abcd52b5e1f390362c258bcb73106f4544957a48101", "https://bcr.bazel.build/modules/bazel_features/1.11.0/MODULE.bazel": "f9382337dd5a474c3b7d334c2f83e50b6eaedc284253334cf823044a26de03e8", "https://bcr.bazel.build/modules/bazel_features/1.15.0/MODULE.bazel": "d38ff6e517149dc509406aca0db3ad1efdd890a85e049585b7234d04238e2a4d", "https://bcr.bazel.build/modules/bazel_features/1.17.0/MODULE.bazel": "039de32d21b816b47bd42c778e0454217e9c9caac4a3cf8e15c7231ee3ddee4d", "https://bcr.bazel.build/modules/bazel_features/1.18.0/MODULE.bazel": "1be0ae2557ab3a72a57aeb31b29be347bcdc5d2b1eb1e70f39e3851a7e97041a", "https://bcr.bazel.build/modules/bazel_features/1.19.0/MODULE.bazel": "59adcdf28230d220f0067b1f435b8537dd033bfff8db21335ef9217919c7fb58", "https://bcr.bazel.build/modules/bazel_features/1.21.0/MODULE.bazel": "675642261665d8eea09989aa3b8afb5c37627f1be178382c320d1b46afba5e3b", + "https://bcr.bazel.build/modules/bazel_features/1.23.0/MODULE.bazel": "fd1ac84bc4e97a5a0816b7fd7d4d4f6d837b0047cf4cbd81652d616af3a6591a", "https://bcr.bazel.build/modules/bazel_features/1.27.0/MODULE.bazel": "621eeee06c4458a9121d1f104efb80f39d34deff4984e778359c60eaf1a8cb65", "https://bcr.bazel.build/modules/bazel_features/1.28.0/MODULE.bazel": "4b4200e6cbf8fa335b2c3f43e1d6ef3e240319c33d43d60cc0fbd4b87ece299d", "https://bcr.bazel.build/modules/bazel_features/1.3.0/MODULE.bazel": "cdcafe83ec318cda34e02948e81d790aab8df7a929cec6f6969f13a489ccecd9", @@ -44,9 +49,10 @@ "https://bcr.bazel.build/modules/bazel_skylib/1.7.0/MODULE.bazel": "0db596f4563de7938de764cc8deeabec291f55e8ec15299718b93c4423e9796d", "https://bcr.bazel.build/modules/bazel_skylib/1.7.1/MODULE.bazel": "3120d80c5861aa616222ec015332e5f8d3171e062e3e804a2a0253e1be26e59b", "https://bcr.bazel.build/modules/bazel_skylib/1.8.1/MODULE.bazel": "88ade7293becda963e0e3ea33e7d54d3425127e0a326e0d17da085a5f1f03ff6", - "https://bcr.bazel.build/modules/bazel_skylib/1.8.1/source.json": "7ebaefba0b03efe59cac88ed5bbc67bcf59a3eff33af937345ede2a38b2d368a", - "https://bcr.bazel.build/modules/buildozer/7.1.2/MODULE.bazel": "2e8dd40ede9c454042645fd8d8d0cd1527966aa5c919de86661e62953cd73d84", - "https://bcr.bazel.build/modules/buildozer/7.1.2/source.json": "c9028a501d2db85793a6996205c8de120944f50a0d570438fcae0457a5f9d1f8", + "https://bcr.bazel.build/modules/bazel_skylib/1.8.2/MODULE.bazel": "69ad6927098316848b34a9142bcc975e018ba27f08c4ff403f50c1b6e646ca67", + "https://bcr.bazel.build/modules/bazel_skylib/1.8.2/source.json": "34a3c8bcf233b835eb74be9d628899bb32999d3e0eadef1947a0a562a2b16ffb", + "https://bcr.bazel.build/modules/buildozer/8.2.1/MODULE.bazel": "61e9433c574c2bd9519cad7fa66b9c1d2b8e8d5f3ae5d6528a2c2d26e68d874d", + "https://bcr.bazel.build/modules/buildozer/8.2.1/source.json": "7c33f6a26ee0216f85544b4bca5e9044579e0219b6898dd653f5fb449cf2e484", "https://bcr.bazel.build/modules/google_benchmark/1.8.2/MODULE.bazel": "a70cf1bba851000ba93b58ae2f6d76490a9feb74192e57ab8e8ff13c34ec50cb", "https://bcr.bazel.build/modules/googletest/1.11.0/MODULE.bazel": "3a83f095183f66345ca86aa13c58b59f9f94a2f81999c093d4eeaa2d262d12f4", "https://bcr.bazel.build/modules/googletest/1.14.0.bcr.1/MODULE.bazel": "22c31a561553727960057361aa33bf20fb2e98584bc4fec007906e27053f80c6", @@ -62,23 +68,23 @@ "https://bcr.bazel.build/modules/nlohmann_json/3.6.1/source.json": "f448c6e8963fdfa7eb831457df83ad63d3d6355018f6574fb017e8169deb43a9", "https://bcr.bazel.build/modules/platforms/0.0.10/MODULE.bazel": "8cb8efaf200bdeb2150d93e162c40f388529a25852b332cec879373771e48ed5", "https://bcr.bazel.build/modules/platforms/0.0.11/MODULE.bazel": "0daefc49732e227caa8bfa834d65dc52e8cc18a2faf80df25e8caea151a9413f", - "https://bcr.bazel.build/modules/platforms/0.0.11/source.json": "f7e188b79ebedebfe75e9e1d098b8845226c7992b307e28e1496f23112e8fc29", "https://bcr.bazel.build/modules/platforms/0.0.4/MODULE.bazel": "9b328e31ee156f53f3c416a64f8491f7eb731742655a47c9eec4703a71644aee", "https://bcr.bazel.build/modules/platforms/0.0.5/MODULE.bazel": "5733b54ea419d5eaf7997054bb55f6a1d0b5ff8aedf0176fef9eea44f3acda37", "https://bcr.bazel.build/modules/platforms/0.0.6/MODULE.bazel": "ad6eeef431dc52aefd2d77ed20a4b353f8ebf0f4ecdd26a807d2da5aa8cd0615", "https://bcr.bazel.build/modules/platforms/0.0.7/MODULE.bazel": "72fd4a0ede9ee5c021f6a8dd92b503e089f46c227ba2813ff183b71616034814", "https://bcr.bazel.build/modules/platforms/0.0.8/MODULE.bazel": "9f142c03e348f6d263719f5074b21ef3adf0b139ee4c5133e2aa35664da9eb2d", "https://bcr.bazel.build/modules/platforms/0.0.9/MODULE.bazel": "4a87a60c927b56ddd67db50c89acaa62f4ce2a1d2149ccb63ffd871d5ce29ebc", + "https://bcr.bazel.build/modules/platforms/1.0.0/MODULE.bazel": "f05feb42b48f1b3c225e4ccf351f367be0371411a803198ec34a389fb22aa580", + "https://bcr.bazel.build/modules/platforms/1.0.0/source.json": "f4ff1fd412e0246fd38c82328eb209130ead81d62dcd5a9e40910f867f733d96", "https://bcr.bazel.build/modules/protobuf/21.7/MODULE.bazel": "a5a29bb89544f9b97edce05642fac225a808b5b7be74038ea3640fae2f8e66a7", "https://bcr.bazel.build/modules/protobuf/27.0/MODULE.bazel": "7873b60be88844a0a1d8f80b9d5d20cfbd8495a689b8763e76c6372998d3f64c", - "https://bcr.bazel.build/modules/protobuf/27.1/MODULE.bazel": "703a7b614728bb06647f965264967a8ef1c39e09e8f167b3ca0bb1fd80449c0d", "https://bcr.bazel.build/modules/protobuf/29.0-rc2/MODULE.bazel": "6241d35983510143049943fc0d57937937122baf1b287862f9dc8590fc4c37df", "https://bcr.bazel.build/modules/protobuf/29.0-rc3/MODULE.bazel": "33c2dfa286578573afc55a7acaea3cada4122b9631007c594bf0729f41c8de92", - "https://bcr.bazel.build/modules/protobuf/29.0/MODULE.bazel": "319dc8bf4c679ff87e71b1ccfb5a6e90a6dbc4693501d471f48662ac46d04e4e", "https://bcr.bazel.build/modules/protobuf/29.1/MODULE.bazel": "557c3457560ff49e122ed76c0bc3397a64af9574691cb8201b4e46d4ab2ecb95", "https://bcr.bazel.build/modules/protobuf/3.19.0/MODULE.bazel": "6b5fbb433f760a99a22b18b6850ed5784ef0e9928a72668b66e4d7ccd47db9b0", - "https://bcr.bazel.build/modules/protobuf/33.0/MODULE.bazel": "c5270efb4aad37a2f893536076518793f409ea7df07a06df995d848d1690f21c", - "https://bcr.bazel.build/modules/protobuf/33.0/source.json": "cd7ac80ad863190b9151281a85acc11d77b5bde2ba56443a7215da2d4ace6da3", + "https://bcr.bazel.build/modules/protobuf/32.1/MODULE.bazel": "89cd2866a9cb07fee9ff74c41ceace11554f32e0d849de4e23ac55515cfada4d", + "https://bcr.bazel.build/modules/protobuf/33.4/MODULE.bazel": "114775b816b38b6d0ca620450d6b02550c60ceedfdc8d9a229833b34a223dc42", + "https://bcr.bazel.build/modules/protobuf/33.4/source.json": "555f8686b4c7d6b5ba731fbea13bf656b4bfd9a7ff629c1d9d3f6e1d6155de79", "https://bcr.bazel.build/modules/pybind11_bazel/2.11.1/MODULE.bazel": "88af1c246226d87e65be78ed49ecd1e6f5e98648558c14ce99176da041dc378e", "https://bcr.bazel.build/modules/pybind11_bazel/2.12.0/MODULE.bazel": "e6f4c20442eaa7c90d7190d8dc539d0ab422f95c65a57cc59562170c58ae3d34", "https://bcr.bazel.build/modules/pybind11_bazel/2.12.0/source.json": "6900fdc8a9e95866b8c0d4ad4aba4d4236317b5c1cd04c502df3f0d33afed680", @@ -89,11 +95,11 @@ "https://bcr.bazel.build/modules/rules_android/0.1.1/MODULE.bazel": "48809ab0091b07ad0182defb787c4c5328bd3a278938415c00a7b69b50c4d3a8", "https://bcr.bazel.build/modules/rules_android/0.1.1/source.json": "e6986b41626ee10bdc864937ffb6d6bf275bb5b9c65120e6137d56e6331f089e", "https://bcr.bazel.build/modules/rules_apple/3.16.0/MODULE.bazel": "0d1caf0b8375942ce98ea944be754a18874041e4e0459401d925577624d3a54a", - "https://bcr.bazel.build/modules/rules_apple/3.16.0/source.json": "d8b5fe461272018cc07cfafce11fe369c7525330804c37eec5a82f84cd475366", + "https://bcr.bazel.build/modules/rules_apple/4.1.0/MODULE.bazel": "76e10fd4a48038d3fc7c5dc6e63b7063bbf5304a2e3bd42edda6ec660eebea68", + "https://bcr.bazel.build/modules/rules_apple/4.1.0/source.json": "8ee81e1708756f81b343a5eb2b2f0b953f1d25c4ab3d4a68dc02754872e80715", "https://bcr.bazel.build/modules/rules_cc/0.0.1/MODULE.bazel": "cb2aa0747f84c6c3a78dad4e2049c154f08ab9d166b1273835a8174940365647", "https://bcr.bazel.build/modules/rules_cc/0.0.10/MODULE.bazel": "ec1705118f7eaedd6e118508d3d26deba2a4e76476ada7e0e3965211be012002", "https://bcr.bazel.build/modules/rules_cc/0.0.13/MODULE.bazel": "0e8529ed7b323dad0775ff924d2ae5af7640b23553dfcd4d34344c7e7a867191", - "https://bcr.bazel.build/modules/rules_cc/0.0.14/MODULE.bazel": "5e343a3aac88b8d7af3b1b6d2093b55c347b8eefc2e7d1442f7a02dc8fea48ac", "https://bcr.bazel.build/modules/rules_cc/0.0.15/MODULE.bazel": "6704c35f7b4a72502ee81f61bf88706b54f06b3cbe5558ac17e2e14666cd5dcc", "https://bcr.bazel.build/modules/rules_cc/0.0.16/MODULE.bazel": "7661303b8fc1b4d7f532e54e9d6565771fea666fbdf839e0a86affcd02defe87", "https://bcr.bazel.build/modules/rules_cc/0.0.17/MODULE.bazel": "2ae1d8f4238ec67d7185d8861cb0a2cdf4bc608697c331b95bf990e69b62e64a", @@ -102,34 +108,34 @@ "https://bcr.bazel.build/modules/rules_cc/0.0.8/MODULE.bazel": "964c85c82cfeb6f3855e6a07054fdb159aced38e99a5eecf7bce9d53990afa3e", "https://bcr.bazel.build/modules/rules_cc/0.0.9/MODULE.bazel": "836e76439f354b89afe6a911a7adf59a6b2518fafb174483ad78a2a2fde7b1c5", "https://bcr.bazel.build/modules/rules_cc/0.1.1/MODULE.bazel": "2f0222a6f229f0bf44cd711dc13c858dad98c62d52bd51d8fc3a764a83125513", + "https://bcr.bazel.build/modules/rules_cc/0.1.2/MODULE.bazel": "557ddc3a96858ec0d465a87c0a931054d7dcfd6583af2c7ed3baf494407fd8d0", + "https://bcr.bazel.build/modules/rules_cc/0.1.5/MODULE.bazel": "88dfc9361e8b5ae1008ac38f7cdfd45ad738e4fa676a3ad67d19204f045a1fd8", + "https://bcr.bazel.build/modules/rules_cc/0.2.0/MODULE.bazel": "b5c17f90458caae90d2ccd114c81970062946f49f355610ed89bebf954f5783c", + "https://bcr.bazel.build/modules/rules_cc/0.2.13/MODULE.bazel": "eecdd666eda6be16a8d9dc15e44b5c75133405e820f620a234acc4b1fdc5aa37", + "https://bcr.bazel.build/modules/rules_cc/0.2.14/MODULE.bazel": "353c99ed148887ee89c54a17d4100ae7e7e436593d104b668476019023b58df8", "https://bcr.bazel.build/modules/rules_cc/0.2.15/MODULE.bazel": "6a0a4a75a57aa6dc888300d848053a58c6b12a29f89d4304e1c41448514ec6e8", "https://bcr.bazel.build/modules/rules_cc/0.2.15/source.json": "197965c6dcca5c98a9288f93849e2e1c69d622e71b0be8deb524e22d48c88e32", + "https://bcr.bazel.build/modules/rules_cc/0.2.8/MODULE.bazel": "f1df20f0bf22c28192a794f29b501ee2018fa37a3862a1a2132ae2940a23a642", "https://bcr.bazel.build/modules/rules_foreign_cc/0.9.0/MODULE.bazel": "c9e8c682bf75b0e7c704166d79b599f93b72cfca5ad7477df596947891feeef6", "https://bcr.bazel.build/modules/rules_fuzzing/0.5.2/MODULE.bazel": "40c97d1144356f52905566c55811f13b299453a14ac7769dfba2ac38192337a8", "https://bcr.bazel.build/modules/rules_java/4.0.0/MODULE.bazel": "5a78a7ae82cd1a33cef56dc578c7d2a46ed0dca12643ee45edbb8417899e6f74", "https://bcr.bazel.build/modules/rules_java/5.3.5/MODULE.bazel": "a4ec4f2db570171e3e5eb753276ee4b389bae16b96207e9d3230895c99644b86", - "https://bcr.bazel.build/modules/rules_java/6.0.0/MODULE.bazel": "8a43b7df601a7ec1af61d79345c17b31ea1fedc6711fd4abfd013ea612978e39", - "https://bcr.bazel.build/modules/rules_java/6.4.0/MODULE.bazel": "e986a9fe25aeaa84ac17ca093ef13a4637f6107375f64667a15999f77db6c8f6", "https://bcr.bazel.build/modules/rules_java/6.5.2/MODULE.bazel": "1d440d262d0e08453fa0c4d8f699ba81609ed0e9a9a0f02cd10b3e7942e61e31", "https://bcr.bazel.build/modules/rules_java/7.10.0/MODULE.bazel": "530c3beb3067e870561739f1144329a21c851ff771cd752a49e06e3dc9c2e71a", "https://bcr.bazel.build/modules/rules_java/7.12.2/MODULE.bazel": "579c505165ee757a4280ef83cda0150eea193eed3bef50b1004ba88b99da6de6", "https://bcr.bazel.build/modules/rules_java/7.2.0/MODULE.bazel": "06c0334c9be61e6cef2c8c84a7800cef502063269a5af25ceb100b192453d4ab", - "https://bcr.bazel.build/modules/rules_java/7.3.2/MODULE.bazel": "50dece891cfdf1741ea230d001aa9c14398062f2b7c066470accace78e412bc2", "https://bcr.bazel.build/modules/rules_java/7.6.1/MODULE.bazel": "2f14b7e8a1aa2f67ae92bc69d1ec0fa8d9f827c4e17ff5e5f02e91caa3b2d0fe", - "https://bcr.bazel.build/modules/rules_java/8.14.0/MODULE.bazel": "717717ed40cc69994596a45aec6ea78135ea434b8402fb91b009b9151dd65615", - "https://bcr.bazel.build/modules/rules_java/8.14.0/source.json": "8a88c4ca9e8759da53cddc88123880565c520503321e2566b4e33d0287a3d4bc", "https://bcr.bazel.build/modules/rules_java/8.3.2/MODULE.bazel": "7336d5511ad5af0b8615fdc7477535a2e4e723a357b6713af439fe8cf0195017", "https://bcr.bazel.build/modules/rules_java/8.5.1/MODULE.bazel": "d8a9e38cc5228881f7055a6079f6f7821a073df3744d441978e7a43e20226939", "https://bcr.bazel.build/modules/rules_java/8.6.1/MODULE.bazel": "f4808e2ab5b0197f094cabce9f4b006a27766beb6a9975931da07099560ca9c2", + "https://bcr.bazel.build/modules/rules_java/9.0.3/MODULE.bazel": "1f98ed015f7e744a745e0df6e898a7c5e83562d6b759dfd475c76456dda5ccea", + "https://bcr.bazel.build/modules/rules_java/9.0.3/source.json": "b038c0c07e12e658135bbc32cc1a2ded6e33785105c9d41958014c592de4593e", "https://bcr.bazel.build/modules/rules_jvm_external/4.4.2/MODULE.bazel": "a56b85e418c83eb1839819f0b515c431010160383306d13ec21959ac412d2fe7", "https://bcr.bazel.build/modules/rules_jvm_external/5.1/MODULE.bazel": "33f6f999e03183f7d088c9be518a63467dfd0be94a11d0055fe2d210f89aa909", "https://bcr.bazel.build/modules/rules_jvm_external/5.2/MODULE.bazel": "d9351ba35217ad0de03816ef3ed63f89d411349353077348a45348b096615036", - "https://bcr.bazel.build/modules/rules_jvm_external/5.3/MODULE.bazel": "bf93870767689637164657731849fb887ad086739bd5d360d90007a581d5527d", - "https://bcr.bazel.build/modules/rules_jvm_external/6.1/MODULE.bazel": "75b5fec090dbd46cf9b7d8ea08cf84a0472d92ba3585b476f44c326eda8059c4", "https://bcr.bazel.build/modules/rules_jvm_external/6.3/MODULE.bazel": "c998e060b85f71e00de5ec552019347c8bca255062c990ac02d051bb80a38df0", "https://bcr.bazel.build/modules/rules_jvm_external/6.7/MODULE.bazel": "e717beabc4d091ecb2c803c2d341b88590e9116b8bf7947915eeb33aab4f96dd", "https://bcr.bazel.build/modules/rules_jvm_external/6.7/source.json": "5426f412d0a7fc6b611643376c7e4a82dec991491b9ce5cb1cfdd25fe2e92be4", - "https://bcr.bazel.build/modules/rules_kotlin/1.9.0/MODULE.bazel": "ef85697305025e5a61f395d4eaede272a5393cee479ace6686dba707de804d59", "https://bcr.bazel.build/modules/rules_kotlin/1.9.6/MODULE.bazel": "d269a01a18ee74d0335450b10f62c9ed81f2321d7958a2934e44272fe82dcef3", "https://bcr.bazel.build/modules/rules_kotlin/1.9.6/source.json": "2faa4794364282db7c06600b7e5e34867a564ae91bda7cae7c29c64e9466b7d5", "https://bcr.bazel.build/modules/rules_license/0.0.3/MODULE.bazel": "627e9ab0247f7d1e05736b59dbb1b6871373de5ad31c3011880b4133cafd4bd0", @@ -143,7 +149,6 @@ "https://bcr.bazel.build/modules/rules_proto/5.3.0-21.7/MODULE.bazel": "e8dff86b0971688790ae75528fe1813f71809b5afd57facb44dad9e8eca631b7", "https://bcr.bazel.build/modules/rules_proto/6.0.0-rc1/MODULE.bazel": "1e5b502e2e1a9e825eef74476a5a1ee524a92297085015a052510b09a1a09483", "https://bcr.bazel.build/modules/rules_proto/6.0.2/MODULE.bazel": "ce916b775a62b90b61888052a416ccdda405212b6aaeb39522f7dc53431a5e73", - "https://bcr.bazel.build/modules/rules_proto/7.0.2/MODULE.bazel": "bf81793bd6d2ad89a37a40693e56c61b0ee30f7a7fdbaf3eabbf5f39de47dea2", "https://bcr.bazel.build/modules/rules_proto/7.1.0/MODULE.bazel": "002d62d9108f75bb807cd56245d45648f38275cb3a99dcd45dfb864c5d74cb96", "https://bcr.bazel.build/modules/rules_proto/7.1.0/source.json": "39f89066c12c24097854e8f57ab8558929f9c8d474d34b2c00ac04630ad8940e", "https://bcr.bazel.build/modules/rules_python/0.10.2/MODULE.bazel": "cc82bc96f2997baa545ab3ce73f196d040ffb8756fd2d66125a530031cd90e5f", @@ -153,24 +158,28 @@ "https://bcr.bazel.build/modules/rules_python/0.31.0/MODULE.bazel": "93a43dc47ee570e6ec9f5779b2e64c1476a6ce921c48cc9a1678a91dd5f8fd58", "https://bcr.bazel.build/modules/rules_python/0.33.2/MODULE.bazel": "3e036c4ad8d804a4dad897d333d8dce200d943df4827cb849840055be8d2e937", "https://bcr.bazel.build/modules/rules_python/0.4.0/MODULE.bazel": "9208ee05fd48bf09ac60ed269791cf17fb343db56c8226a720fbb1cdf467166c", - "https://bcr.bazel.build/modules/rules_python/0.40.0/MODULE.bazel": "9d1a3cd88ed7d8e39583d9ffe56ae8a244f67783ae89b60caafc9f5cf318ada7", + "https://bcr.bazel.build/modules/rules_python/1.3.0/MODULE.bazel": "8361d57eafb67c09b75bf4bbe6be360e1b8f4f18118ab48037f2bd50aa2ccb13", + "https://bcr.bazel.build/modules/rules_python/1.4.1/MODULE.bazel": "8991ad45bdc25018301d6b7e1d3626afc3c8af8aaf4bc04f23d0b99c938b73a6", "https://bcr.bazel.build/modules/rules_python/1.6.0/MODULE.bazel": "7e04ad8f8d5bea40451cf80b1bd8262552aa73f841415d20db96b7241bd027d8", - "https://bcr.bazel.build/modules/rules_python/1.6.0/source.json": "e980f654cf66ec4928672f41fc66c4102b5ea54286acf4aecd23256c84211be6", + "https://bcr.bazel.build/modules/rules_python/1.7.0/MODULE.bazel": "d01f995ecd137abf30238ad9ce97f8fc3ac57289c8b24bd0bf53324d937a14f8", + "https://bcr.bazel.build/modules/rules_python/1.7.0/source.json": "028a084b65dcf8f4dc4f82f8778dbe65df133f234b316828a82e060d81bdce32", "https://bcr.bazel.build/modules/rules_shell/0.2.0/MODULE.bazel": "fda8a652ab3c7d8fee214de05e7a9916d8b28082234e8d2c0094505c5268ed3c", "https://bcr.bazel.build/modules/rules_shell/0.3.0/MODULE.bazel": "de4402cd12f4cc8fda2354fce179fdb068c0b9ca1ec2d2b17b3e21b24c1a937b", - "https://bcr.bazel.build/modules/rules_shell/0.3.0/source.json": "c55ed591aa5009401ddf80ded9762ac32c358d2517ee7820be981e2de9756cf3", + "https://bcr.bazel.build/modules/rules_shell/0.6.1/MODULE.bazel": "72e76b0eea4e81611ef5452aa82b3da34caca0c8b7b5c0c9584338aa93bae26b", + "https://bcr.bazel.build/modules/rules_shell/0.6.1/source.json": "20ec05cd5e592055e214b2da8ccb283c7f2a421ea0dc2acbf1aa792e11c03d0c", "https://bcr.bazel.build/modules/rules_swift/1.16.0/MODULE.bazel": "4a09f199545a60d09895e8281362b1ff3bb08bbde69c6fc87aff5b92fcc916ca", "https://bcr.bazel.build/modules/rules_swift/2.1.1/MODULE.bazel": "494900a80f944fc7aa61500c2073d9729dff0b764f0e89b824eb746959bc1046", - "https://bcr.bazel.build/modules/rules_swift/2.1.1/source.json": "40fc69dfaac64deddbb75bd99cdac55f4427d9ca0afbe408576a65428427a186", + "https://bcr.bazel.build/modules/rules_swift/2.4.0/MODULE.bazel": "1639617eb1ede28d774d967a738b4a68b0accb40650beadb57c21846beab5efd", + "https://bcr.bazel.build/modules/rules_swift/3.1.2/MODULE.bazel": "72c8f5cf9d26427cee6c76c8e3853eb46ce6b0412a081b2b6db6e8ad56267400", + "https://bcr.bazel.build/modules/rules_swift/3.1.2/source.json": "e85761f3098a6faf40b8187695e3de6d97944e98abd0d8ce579cb2daf6319a66", "https://bcr.bazel.build/modules/stardoc/0.5.1/MODULE.bazel": "1a05d92974d0c122f5ccf09291442580317cdd859f07a8655f1db9a60374f9f8", "https://bcr.bazel.build/modules/stardoc/0.5.3/MODULE.bazel": "c7f6948dae6999bf0db32c1858ae345f112cacf98f174c7a8bb707e41b974f1c", - "https://bcr.bazel.build/modules/stardoc/0.5.6/MODULE.bazel": "c43dabc564990eeab55e25ed61c07a1aadafe9ece96a4efabb3f8bf9063b71ef", "https://bcr.bazel.build/modules/stardoc/0.7.0/MODULE.bazel": "05e3d6d30c099b6770e97da986c53bd31844d7f13d41412480ea265ac9e8079c", - "https://bcr.bazel.build/modules/stardoc/0.7.1/MODULE.bazel": "3548faea4ee5dda5580f9af150e79d0f6aea934fc60c1cc50f4efdd9420759e7", "https://bcr.bazel.build/modules/stardoc/0.7.2/MODULE.bazel": "fc152419aa2ea0f51c29583fab1e8c99ddefd5b3778421845606ee628629e0e5", "https://bcr.bazel.build/modules/stardoc/0.7.2/source.json": "58b029e5e901d6802967754adf0a9056747e8176f017cfe3607c0851f4d42216", "https://bcr.bazel.build/modules/swift_argument_parser/1.3.1.1/MODULE.bazel": "5e463fbfba7b1701d957555ed45097d7f984211330106ccd1352c6e0af0dcf91", - "https://bcr.bazel.build/modules/swift_argument_parser/1.3.1.1/source.json": "32bd87e5f4d7acc57c5b2ff7c325ae3061d5e242c0c4c214ae87e0f1c13e54cb", + "https://bcr.bazel.build/modules/swift_argument_parser/1.3.1.2/MODULE.bazel": "75aab2373a4bbe2a1260b9bf2a1ebbdbf872d3bd36f80bff058dccd82e89422f", + "https://bcr.bazel.build/modules/swift_argument_parser/1.3.1.2/source.json": "5fba48bbe0ba48761f9e9f75f92876cafb5d07c0ce059cc7a8027416de94a05b", "https://bcr.bazel.build/modules/upb/0.0.0-20220923-a547704/MODULE.bazel": "7298990c00040a0e2f121f6c32544bab27d4452f80d9ce51349b1a28f3005c43", "https://bcr.bazel.build/modules/zlib/1.2.11/MODULE.bazel": "07b389abc85fdbca459b69e2ec656ae5622873af3f845e1c9d80fe179f3effa0", "https://bcr.bazel.build/modules/zlib/1.3.1.bcr.5/MODULE.bazel": "eec517b5bbe5492629466e11dae908d043364302283de25581e3eb944326c4ca", @@ -181,11 +190,11 @@ "moduleExtensions": { "@@rules_kotlin+//src/main/starlark/core/repositories:bzlmod_setup.bzl%rules_kotlin_extensions": { "general": { - "bzlTransitiveDigest": "rL/34P1aFDq2GqVC2zCFgQ8nTuOC6ziogocpvG50Qz8=", + "bzlTransitiveDigest": "ABI1D/sbS1ovwaW/kHDoj8nnXjQ0oKU9fzmzEG4iT8o=", "usagesDigest": "QI2z8ZUR+mqtbwsf2fLqYdJAkPOHdOV+tF2yVAUgRzw=", - "recordedFileInputs": {}, - "recordedDirentsInputs": {}, - "envVariables": {}, + "recordedInputs": [ + "REPO_MAPPING:rules_kotlin+,bazel_tools bazel_tools" + ], "generatedRepoSpecs": { "com_github_jetbrains_kotlin_git": { "repoRuleId": "@@rules_kotlin+//src/main/starlark/core/repositories:compiler.bzl%kotlin_compiler_git_repository", @@ -233,23 +242,185 @@ ] } } - }, - "recordedRepoMappingEntries": [ - [ - "rules_kotlin+", - "bazel_tools", - "bazel_tools" - ] - ] + } + } + }, + "@@rules_python+//python/extensions:config.bzl%config": { + "general": { + "bzlTransitiveDigest": "2hLgIvNVTLgxus0ZuXtleBe70intCfo0cHs8qvt6cdM=", + "usagesDigest": "ZVSXMAGpD+xzVNPuvF1IoLBkty7TROO0+akMapt1pAg=", + "recordedInputs": [ + "REPO_MAPPING:rules_python+,bazel_tools bazel_tools", + "REPO_MAPPING:rules_python+,pypi__build rules_python++config+pypi__build", + "REPO_MAPPING:rules_python+,pypi__click rules_python++config+pypi__click", + "REPO_MAPPING:rules_python+,pypi__colorama rules_python++config+pypi__colorama", + "REPO_MAPPING:rules_python+,pypi__importlib_metadata rules_python++config+pypi__importlib_metadata", + "REPO_MAPPING:rules_python+,pypi__installer rules_python++config+pypi__installer", + "REPO_MAPPING:rules_python+,pypi__more_itertools rules_python++config+pypi__more_itertools", + "REPO_MAPPING:rules_python+,pypi__packaging rules_python++config+pypi__packaging", + "REPO_MAPPING:rules_python+,pypi__pep517 rules_python++config+pypi__pep517", + "REPO_MAPPING:rules_python+,pypi__pip rules_python++config+pypi__pip", + "REPO_MAPPING:rules_python+,pypi__pip_tools rules_python++config+pypi__pip_tools", + "REPO_MAPPING:rules_python+,pypi__pyproject_hooks rules_python++config+pypi__pyproject_hooks", + "REPO_MAPPING:rules_python+,pypi__setuptools rules_python++config+pypi__setuptools", + "REPO_MAPPING:rules_python+,pypi__tomli rules_python++config+pypi__tomli", + "REPO_MAPPING:rules_python+,pypi__wheel rules_python++config+pypi__wheel", + "REPO_MAPPING:rules_python+,pypi__zipp rules_python++config+pypi__zipp" + ], + "generatedRepoSpecs": { + "rules_python_internal": { + "repoRuleId": "@@rules_python+//python/private:internal_config_repo.bzl%internal_config_repo", + "attributes": { + "transition_setting_generators": {}, + "transition_settings": [] + } + }, + "pypi__build": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "url": "https://files.pythonhosted.org/packages/e2/03/f3c8ba0a6b6e30d7d18c40faab90807c9bb5e9a1e3b2fe2008af624a9c97/build-1.2.1-py3-none-any.whl", + "sha256": "75e10f767a433d9a86e50d83f418e83efc18ede923ee5ff7df93b6cb0306c5d4", + "type": "zip", + "build_file_content": "package(default_visibility = [\"//visibility:public\"])\n\nload(\"@rules_python//python:py_library.bzl\", \"py_library\")\n\npy_library(\n name = \"lib\",\n srcs = glob([\"**/*.py\"]),\n data = glob([\"**/*\"], exclude=[\n # These entries include those put into user-installed dependencies by\n # data_exclude to avoid non-determinism.\n \"**/*.py\",\n \"**/*.pyc\",\n \"**/*.pyc.*\", # During pyc creation, temp files named *.pyc.NNN are created\n \"**/*.dist-info/RECORD\",\n \"BUILD\",\n \"WORKSPACE\",\n ]),\n # This makes this directory a top-level in the python import\n # search path for anything that depends on this.\n imports = [\".\"],\n)\n" + } + }, + "pypi__click": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "url": "https://files.pythonhosted.org/packages/00/2e/d53fa4befbf2cfa713304affc7ca780ce4fc1fd8710527771b58311a3229/click-8.1.7-py3-none-any.whl", + "sha256": "ae74fb96c20a0277a1d615f1e4d73c8414f5a98db8b799a7931d1582f3390c28", + "type": "zip", + "build_file_content": "package(default_visibility = [\"//visibility:public\"])\n\nload(\"@rules_python//python:py_library.bzl\", \"py_library\")\n\npy_library(\n name = \"lib\",\n srcs = glob([\"**/*.py\"]),\n data = glob([\"**/*\"], exclude=[\n # These entries include those put into user-installed dependencies by\n # data_exclude to avoid non-determinism.\n \"**/*.py\",\n \"**/*.pyc\",\n \"**/*.pyc.*\", # During pyc creation, temp files named *.pyc.NNN are created\n \"**/*.dist-info/RECORD\",\n \"BUILD\",\n \"WORKSPACE\",\n ]),\n # This makes this directory a top-level in the python import\n # search path for anything that depends on this.\n imports = [\".\"],\n)\n" + } + }, + "pypi__colorama": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "url": "https://files.pythonhosted.org/packages/d1/d6/3965ed04c63042e047cb6a3e6ed1a63a35087b6a609aa3a15ed8ac56c221/colorama-0.4.6-py2.py3-none-any.whl", + "sha256": "4f1d9991f5acc0ca119f9d443620b77f9d6b33703e51011c16baf57afb285fc6", + "type": "zip", + "build_file_content": "package(default_visibility = [\"//visibility:public\"])\n\nload(\"@rules_python//python:py_library.bzl\", \"py_library\")\n\npy_library(\n name = \"lib\",\n srcs = glob([\"**/*.py\"]),\n data = glob([\"**/*\"], exclude=[\n # These entries include those put into user-installed dependencies by\n # data_exclude to avoid non-determinism.\n \"**/*.py\",\n \"**/*.pyc\",\n \"**/*.pyc.*\", # During pyc creation, temp files named *.pyc.NNN are created\n \"**/*.dist-info/RECORD\",\n \"BUILD\",\n \"WORKSPACE\",\n ]),\n # This makes this directory a top-level in the python import\n # search path for anything that depends on this.\n imports = [\".\"],\n)\n" + } + }, + "pypi__importlib_metadata": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "url": "https://files.pythonhosted.org/packages/2d/0a/679461c511447ffaf176567d5c496d1de27cbe34a87df6677d7171b2fbd4/importlib_metadata-7.1.0-py3-none-any.whl", + "sha256": "30962b96c0c223483ed6cc7280e7f0199feb01a0e40cfae4d4450fc6fab1f570", + "type": "zip", + "build_file_content": "package(default_visibility = [\"//visibility:public\"])\n\nload(\"@rules_python//python:py_library.bzl\", \"py_library\")\n\npy_library(\n name = \"lib\",\n srcs = glob([\"**/*.py\"]),\n data = glob([\"**/*\"], exclude=[\n # These entries include those put into user-installed dependencies by\n # data_exclude to avoid non-determinism.\n \"**/*.py\",\n \"**/*.pyc\",\n \"**/*.pyc.*\", # During pyc creation, temp files named *.pyc.NNN are created\n \"**/*.dist-info/RECORD\",\n \"BUILD\",\n \"WORKSPACE\",\n ]),\n # This makes this directory a top-level in the python import\n # search path for anything that depends on this.\n imports = [\".\"],\n)\n" + } + }, + "pypi__installer": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "url": "https://files.pythonhosted.org/packages/e5/ca/1172b6638d52f2d6caa2dd262ec4c811ba59eee96d54a7701930726bce18/installer-0.7.0-py3-none-any.whl", + "sha256": "05d1933f0a5ba7d8d6296bb6d5018e7c94fa473ceb10cf198a92ccea19c27b53", + "type": "zip", + "build_file_content": "package(default_visibility = [\"//visibility:public\"])\n\nload(\"@rules_python//python:py_library.bzl\", \"py_library\")\n\npy_library(\n name = \"lib\",\n srcs = glob([\"**/*.py\"]),\n data = glob([\"**/*\"], exclude=[\n # These entries include those put into user-installed dependencies by\n # data_exclude to avoid non-determinism.\n \"**/*.py\",\n \"**/*.pyc\",\n \"**/*.pyc.*\", # During pyc creation, temp files named *.pyc.NNN are created\n \"**/*.dist-info/RECORD\",\n \"BUILD\",\n \"WORKSPACE\",\n ]),\n # This makes this directory a top-level in the python import\n # search path for anything that depends on this.\n imports = [\".\"],\n)\n" + } + }, + "pypi__more_itertools": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "url": "https://files.pythonhosted.org/packages/50/e2/8e10e465ee3987bb7c9ab69efb91d867d93959095f4807db102d07995d94/more_itertools-10.2.0-py3-none-any.whl", + "sha256": "686b06abe565edfab151cb8fd385a05651e1fdf8f0a14191e4439283421f8684", + "type": "zip", + "build_file_content": "package(default_visibility = [\"//visibility:public\"])\n\nload(\"@rules_python//python:py_library.bzl\", \"py_library\")\n\npy_library(\n name = \"lib\",\n srcs = glob([\"**/*.py\"]),\n data = glob([\"**/*\"], exclude=[\n # These entries include those put into user-installed dependencies by\n # data_exclude to avoid non-determinism.\n \"**/*.py\",\n \"**/*.pyc\",\n \"**/*.pyc.*\", # During pyc creation, temp files named *.pyc.NNN are created\n \"**/*.dist-info/RECORD\",\n \"BUILD\",\n \"WORKSPACE\",\n ]),\n # This makes this directory a top-level in the python import\n # search path for anything that depends on this.\n imports = [\".\"],\n)\n" + } + }, + "pypi__packaging": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "url": "https://files.pythonhosted.org/packages/49/df/1fceb2f8900f8639e278b056416d49134fb8d84c5942ffaa01ad34782422/packaging-24.0-py3-none-any.whl", + "sha256": "2ddfb553fdf02fb784c234c7ba6ccc288296ceabec964ad2eae3777778130bc5", + "type": "zip", + "build_file_content": "package(default_visibility = [\"//visibility:public\"])\n\nload(\"@rules_python//python:py_library.bzl\", \"py_library\")\n\npy_library(\n name = \"lib\",\n srcs = glob([\"**/*.py\"]),\n data = glob([\"**/*\"], exclude=[\n # These entries include those put into user-installed dependencies by\n # data_exclude to avoid non-determinism.\n \"**/*.py\",\n \"**/*.pyc\",\n \"**/*.pyc.*\", # During pyc creation, temp files named *.pyc.NNN are created\n \"**/*.dist-info/RECORD\",\n \"BUILD\",\n \"WORKSPACE\",\n ]),\n # This makes this directory a top-level in the python import\n # search path for anything that depends on this.\n imports = [\".\"],\n)\n" + } + }, + "pypi__pep517": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "url": "https://files.pythonhosted.org/packages/25/6e/ca4a5434eb0e502210f591b97537d322546e4833dcb4d470a48c375c5540/pep517-0.13.1-py3-none-any.whl", + "sha256": "31b206f67165b3536dd577c5c3f1518e8fbaf38cbc57efff8369a392feff1721", + "type": "zip", + "build_file_content": "package(default_visibility = [\"//visibility:public\"])\n\nload(\"@rules_python//python:py_library.bzl\", \"py_library\")\n\npy_library(\n name = \"lib\",\n srcs = glob([\"**/*.py\"]),\n data = glob([\"**/*\"], exclude=[\n # These entries include those put into user-installed dependencies by\n # data_exclude to avoid non-determinism.\n \"**/*.py\",\n \"**/*.pyc\",\n \"**/*.pyc.*\", # During pyc creation, temp files named *.pyc.NNN are created\n \"**/*.dist-info/RECORD\",\n \"BUILD\",\n \"WORKSPACE\",\n ]),\n # This makes this directory a top-level in the python import\n # search path for anything that depends on this.\n imports = [\".\"],\n)\n" + } + }, + "pypi__pip": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "url": "https://files.pythonhosted.org/packages/8a/6a/19e9fe04fca059ccf770861c7d5721ab4c2aebc539889e97c7977528a53b/pip-24.0-py3-none-any.whl", + "sha256": "ba0d021a166865d2265246961bec0152ff124de910c5cc39f1156ce3fa7c69dc", + "type": "zip", + "build_file_content": "package(default_visibility = [\"//visibility:public\"])\n\nload(\"@rules_python//python:py_library.bzl\", \"py_library\")\n\npy_library(\n name = \"lib\",\n srcs = glob([\"**/*.py\"]),\n data = glob([\"**/*\"], exclude=[\n # These entries include those put into user-installed dependencies by\n # data_exclude to avoid non-determinism.\n \"**/*.py\",\n \"**/*.pyc\",\n \"**/*.pyc.*\", # During pyc creation, temp files named *.pyc.NNN are created\n \"**/*.dist-info/RECORD\",\n \"BUILD\",\n \"WORKSPACE\",\n ]),\n # This makes this directory a top-level in the python import\n # search path for anything that depends on this.\n imports = [\".\"],\n)\n" + } + }, + "pypi__pip_tools": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "url": "https://files.pythonhosted.org/packages/0d/dc/38f4ce065e92c66f058ea7a368a9c5de4e702272b479c0992059f7693941/pip_tools-7.4.1-py3-none-any.whl", + "sha256": "4c690e5fbae2f21e87843e89c26191f0d9454f362d8acdbd695716493ec8b3a9", + "type": "zip", + "build_file_content": "package(default_visibility = [\"//visibility:public\"])\n\nload(\"@rules_python//python:py_library.bzl\", \"py_library\")\n\npy_library(\n name = \"lib\",\n srcs = glob([\"**/*.py\"]),\n data = glob([\"**/*\"], exclude=[\n # These entries include those put into user-installed dependencies by\n # data_exclude to avoid non-determinism.\n \"**/*.py\",\n \"**/*.pyc\",\n \"**/*.pyc.*\", # During pyc creation, temp files named *.pyc.NNN are created\n \"**/*.dist-info/RECORD\",\n \"BUILD\",\n \"WORKSPACE\",\n ]),\n # This makes this directory a top-level in the python import\n # search path for anything that depends on this.\n imports = [\".\"],\n)\n" + } + }, + "pypi__pyproject_hooks": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "url": "https://files.pythonhosted.org/packages/ae/f3/431b9d5fe7d14af7a32340792ef43b8a714e7726f1d7b69cc4e8e7a3f1d7/pyproject_hooks-1.1.0-py3-none-any.whl", + "sha256": "7ceeefe9aec63a1064c18d939bdc3adf2d8aa1988a510afec15151578b232aa2", + "type": "zip", + "build_file_content": "package(default_visibility = [\"//visibility:public\"])\n\nload(\"@rules_python//python:py_library.bzl\", \"py_library\")\n\npy_library(\n name = \"lib\",\n srcs = glob([\"**/*.py\"]),\n data = glob([\"**/*\"], exclude=[\n # These entries include those put into user-installed dependencies by\n # data_exclude to avoid non-determinism.\n \"**/*.py\",\n \"**/*.pyc\",\n \"**/*.pyc.*\", # During pyc creation, temp files named *.pyc.NNN are created\n \"**/*.dist-info/RECORD\",\n \"BUILD\",\n \"WORKSPACE\",\n ]),\n # This makes this directory a top-level in the python import\n # search path for anything that depends on this.\n imports = [\".\"],\n)\n" + } + }, + "pypi__setuptools": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "url": "https://files.pythonhosted.org/packages/90/99/158ad0609729111163fc1f674a5a42f2605371a4cf036d0441070e2f7455/setuptools-78.1.1-py3-none-any.whl", + "sha256": "c3a9c4211ff4c309edb8b8c4f1cbfa7ae324c4ba9f91ff254e3d305b9fd54561", + "type": "zip", + "build_file_content": "package(default_visibility = [\"//visibility:public\"])\n\nload(\"@rules_python//python:py_library.bzl\", \"py_library\")\n\npy_library(\n name = \"lib\",\n srcs = glob([\"**/*.py\"]),\n data = glob([\"**/*\"], exclude=[\n # These entries include those put into user-installed dependencies by\n # data_exclude to avoid non-determinism.\n \"**/*.py\",\n \"**/*.pyc\",\n \"**/*.pyc.*\", # During pyc creation, temp files named *.pyc.NNN are created\n \"**/*.dist-info/RECORD\",\n \"BUILD\",\n \"WORKSPACE\",\n ]),\n # This makes this directory a top-level in the python import\n # search path for anything that depends on this.\n imports = [\".\"],\n)\n" + } + }, + "pypi__tomli": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "url": "https://files.pythonhosted.org/packages/97/75/10a9ebee3fd790d20926a90a2547f0bf78f371b2f13aa822c759680ca7b9/tomli-2.0.1-py3-none-any.whl", + "sha256": "939de3e7a6161af0c887ef91b7d41a53e7c5a1ca976325f429cb46ea9bc30ecc", + "type": "zip", + "build_file_content": "package(default_visibility = [\"//visibility:public\"])\n\nload(\"@rules_python//python:py_library.bzl\", \"py_library\")\n\npy_library(\n name = \"lib\",\n srcs = glob([\"**/*.py\"]),\n data = glob([\"**/*\"], exclude=[\n # These entries include those put into user-installed dependencies by\n # data_exclude to avoid non-determinism.\n \"**/*.py\",\n \"**/*.pyc\",\n \"**/*.pyc.*\", # During pyc creation, temp files named *.pyc.NNN are created\n \"**/*.dist-info/RECORD\",\n \"BUILD\",\n \"WORKSPACE\",\n ]),\n # This makes this directory a top-level in the python import\n # search path for anything that depends on this.\n imports = [\".\"],\n)\n" + } + }, + "pypi__wheel": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "url": "https://files.pythonhosted.org/packages/7d/cd/d7460c9a869b16c3dd4e1e403cce337df165368c71d6af229a74699622ce/wheel-0.43.0-py3-none-any.whl", + "sha256": "55c570405f142630c6b9f72fe09d9b67cf1477fcf543ae5b8dcb1f5b7377da81", + "type": "zip", + "build_file_content": "package(default_visibility = [\"//visibility:public\"])\n\nload(\"@rules_python//python:py_library.bzl\", \"py_library\")\n\npy_library(\n name = \"lib\",\n srcs = glob([\"**/*.py\"]),\n data = glob([\"**/*\"], exclude=[\n # These entries include those put into user-installed dependencies by\n # data_exclude to avoid non-determinism.\n \"**/*.py\",\n \"**/*.pyc\",\n \"**/*.pyc.*\", # During pyc creation, temp files named *.pyc.NNN are created\n \"**/*.dist-info/RECORD\",\n \"BUILD\",\n \"WORKSPACE\",\n ]),\n # This makes this directory a top-level in the python import\n # search path for anything that depends on this.\n imports = [\".\"],\n)\n" + } + }, + "pypi__zipp": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "url": "https://files.pythonhosted.org/packages/da/55/a03fd7240714916507e1fcf7ae355bd9d9ed2e6db492595f1a67f61681be/zipp-3.18.2-py3-none-any.whl", + "sha256": "dce197b859eb796242b0622af1b8beb0a722d52aa2f57133ead08edd5bf5374e", + "type": "zip", + "build_file_content": "package(default_visibility = [\"//visibility:public\"])\n\nload(\"@rules_python//python:py_library.bzl\", \"py_library\")\n\npy_library(\n name = \"lib\",\n srcs = glob([\"**/*.py\"]),\n data = glob([\"**/*\"], exclude=[\n # These entries include those put into user-installed dependencies by\n # data_exclude to avoid non-determinism.\n \"**/*.py\",\n \"**/*.pyc\",\n \"**/*.pyc.*\", # During pyc creation, temp files named *.pyc.NNN are created\n \"**/*.dist-info/RECORD\",\n \"BUILD\",\n \"WORKSPACE\",\n ]),\n # This makes this directory a top-level in the python import\n # search path for anything that depends on this.\n imports = [\".\"],\n)\n" + } + } + } } }, "@@rules_python+//python/uv:uv.bzl%uv": { "general": { - "bzlTransitiveDigest": "8vT1ddXtljNxYD0tJkksqzeKE6xqx4Ix+tXthAppjTI=", - "usagesDigest": "p80sy6cYQuWxx5jhV3fOTu+N9EyIUFG9+F7UC/nhXic=", - "recordedFileInputs": {}, - "recordedDirentsInputs": {}, - "envVariables": {}, + "bzlTransitiveDigest": "ijW9KS7qsIY+yBVvJ+Nr1mzwQox09j13DnE3iIwaeTM=", + "usagesDigest": "H8dQoNZcoqP+Mu0tHZTi4KHATzvNkM5ePuEqoQdklIU=", + "recordedInputs": [ + "REPO_MAPPING:rules_python+,bazel_tools bazel_tools", + "REPO_MAPPING:rules_python+,platforms platforms" + ], "generatedRepoSpecs": { "uv": { "repoRuleId": "@@rules_python+//python/uv/private:uv_toolchains_repo.bzl%uv_toolchains_repo", @@ -269,19 +440,7 @@ "toolchain_target_settings": {} } } - }, - "recordedRepoMappingEntries": [ - [ - "rules_python+", - "bazel_tools", - "bazel_tools" - ], - [ - "rules_python+", - "platforms", - "platforms" - ] - ] + } } } }, diff --git a/protobuf_javascript_release.bzl b/protobuf_javascript_release.bzl index 7eead9a..907611d 100644 --- a/protobuf_javascript_release.bzl +++ b/protobuf_javascript_release.bzl @@ -51,5 +51,4 @@ package_naming = rule( "platform": attr.string(), }, toolchains = ["@bazel_tools//tools/cpp:toolchain_type"], - incompatible_use_toolchain_transition = True, ) From 1cb44780b0b756b8415cfbb88167f912dc816e1f Mon Sep 17 00:00:00 2001 From: Stephanie DiBenedetto Date: Mon, 23 Feb 2026 10:48:28 +0000 Subject: [PATCH 25/40] Use protoc_plugin's package.json version instead of hardcoding --- protoc_plugin/download-protoc-gen-js.js | 3 ++- protoc_plugin/package-lock.json | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/protoc_plugin/download-protoc-gen-js.js b/protoc_plugin/download-protoc-gen-js.js index 2bb89cf..786201e 100644 --- a/protoc_plugin/download-protoc-gen-js.js +++ b/protoc_plugin/download-protoc-gen-js.js @@ -3,7 +3,8 @@ const os = require('os'); const path = require('path'); const AdmZip = require('adm-zip'); -const VERSION = '4.0.0'; +const pkg = require('./package.json'); +const VERSION = pkg.version; const BIN_DIR = path.join(__dirname, 'bin'); function getZipFilename(currentSystem) { diff --git a/protoc_plugin/package-lock.json b/protoc_plugin/package-lock.json index 22d820d..3a59e78 100644 --- a/protoc_plugin/package-lock.json +++ b/protoc_plugin/package-lock.json @@ -1,12 +1,12 @@ { "name": "@protocolbuffers/protoc-gen-js", - "version": "4.0.0", + "version": "4.0.2-rc7", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@protocolbuffers/protoc-gen-js", - "version": "4.0.0", + "version": "4.0.2-rc7", "hasInstallScript": true, "license": "BSD-3-Clause", "dependencies": { From 88c63a0bb499e80b58e44409adb9054c284b3974 Mon Sep 17 00:00:00 2001 From: Stephanie DiBenedetto Date: Mon, 23 Feb 2026 10:51:52 +0000 Subject: [PATCH 26/40] bump version v4.0.2 Fix bug in @protocolbuffers/protoc-gen-js package that causes it to erroneously download an older version (v4.0.0) of the plugin. --- MODULE.bazel | 2 +- conformance/package.json | 2 +- package.json | 2 +- protobuf_javascript_release.bzl | 2 +- protoc_plugin/package.json | 4 ++-- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/MODULE.bazel b/MODULE.bazel index d356326..7e9ed5e 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -1,6 +1,6 @@ "Bazel module that provides protoc-gen-js." -module(name = "protobuf_javascript", version = "4.0.2-rc7") # updated by release action +module(name = "protobuf_javascript", version = "4.0.2") # updated by release action bazel_dep(name = "abseil-cpp", version = "20250814.1") bazel_dep(name = "protobuf", version = "33.4", repo_name = "com_google_protobuf") diff --git a/conformance/package.json b/conformance/package.json index b0cf2bc..d232a67 100644 --- a/conformance/package.json +++ b/conformance/package.json @@ -11,7 +11,7 @@ "LICENSE.md" ], "dependencies": { - "google-protobuf": "file:../google-protobuf-4.0.2-rc7.tgz" + "google-protobuf": "file:../google-protobuf-4.0.2.tgz" }, "author": "Google Protocol Buffers Team", "license": "BSD-3-Clause" diff --git a/package.json b/package.json index 79b96a5..2a4cdfb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "google-protobuf", - "version": "4.0.2-rc7", + "version": "4.0.2", "description": "Protocol Buffers for JavaScript", "main": "google-protobuf.js", "files": [ diff --git a/protobuf_javascript_release.bzl b/protobuf_javascript_release.bzl index 907611d..5a18008 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.2-rc7" +_PROTOBUF_JAVASCRIPT_VERSION = "4.0.2" def _package_naming_impl(ctx): values = {} diff --git a/protoc_plugin/package.json b/protoc_plugin/package.json index 4caa40b..288d69b 100644 --- a/protoc_plugin/package.json +++ b/protoc_plugin/package.json @@ -1,6 +1,6 @@ -{ +-{ "name": "@protocolbuffers/protoc-gen-js", - "version": "4.0.2-rc7", + "version": "4.0.2", "description": "Official standalone distribution of the protoc-gen-js plugin for Protocol Buffers", "author": "Google Protocol Buffers Team", "license": "BSD-3-Clause", From 50646b7e8ce5f29c2889d9588421bd39979df9f7 Mon Sep 17 00:00:00 2001 From: Stephanie DiBenedetto Date: Tue, 24 Feb 2026 11:09:17 +0000 Subject: [PATCH 27/40] fixup package.jsons * fix typo in protoc_plugin/package.json that prevented parsing as valid JSON * use pkg fix path in package.json --- package.json | 2 +- protoc_plugin/package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 2a4cdfb..2dc3f9f 100644 --- a/package.json +++ b/package.json @@ -28,7 +28,7 @@ }, "repository": { "type": "git", - "url": "https://github.com/protocolbuffers/protobuf-javascript" + "url": "git+https://github.com/protocolbuffers/protobuf-javascript.git" }, "author": "Google Protocol Buffers Team", "license": "(BSD-3-Clause AND Apache-2.0)" diff --git a/protoc_plugin/package.json b/protoc_plugin/package.json index 288d69b..e6b4359 100644 --- a/protoc_plugin/package.json +++ b/protoc_plugin/package.json @@ -1,4 +1,4 @@ --{ +{ "name": "@protocolbuffers/protoc-gen-js", "version": "4.0.2", "description": "Official standalone distribution of the protoc-gen-js plugin for Protocol Buffers", From e20272e85cbeb6afe1361f51203ccd066f941611 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 27 Feb 2026 18:32:32 +0000 Subject: [PATCH 28/40] Bump minimatch from 3.1.2 to 3.1.5 Bumps [minimatch](https://github.com/isaacs/minimatch) from 3.1.2 to 3.1.5. - [Changelog](https://github.com/isaacs/minimatch/blob/main/changelog.md) - [Commits](https://github.com/isaacs/minimatch/compare/v3.1.2...v3.1.5) --- updated-dependencies: - dependency-name: minimatch dependency-version: 3.1.5 dependency-type: indirect ... Signed-off-by: dependabot[bot] --- package-lock.json | 16 ++++++++-------- yarn.lock | 48 +++++++++++++++++++++++------------------------ 2 files changed, 32 insertions(+), 32 deletions(-) diff --git a/package-lock.json b/package-lock.json index 6239081..a243940 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "google-protobuf", - "version": "4.0.0", + "version": "4.0.2", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "google-protobuf", - "version": "4.0.0", + "version": "4.0.2", "license": "(BSD-3-Clause AND Apache-2.0)", "devDependencies": { "glob": "~7.1.4", @@ -1227,9 +1227,9 @@ } }, "node_modules/minimatch": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "version": "3.1.5", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.5.tgz", + "integrity": "sha512-VgjWUsnnT6n+NUk6eZq77zeFdpW2LWDzP6zFGrCbHXiYNul5Dzqk2HHQ5uFH2DNW5Xbp8+jVzaeNt94ssEEl4w==", "dev": true, "dependencies": { "brace-expansion": "^1.1.7" @@ -2884,9 +2884,9 @@ } }, "minimatch": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "version": "3.1.5", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.5.tgz", + "integrity": "sha512-VgjWUsnnT6n+NUk6eZq77zeFdpW2LWDzP6zFGrCbHXiYNul5Dzqk2HHQ5uFH2DNW5Xbp8+jVzaeNt94ssEEl4w==", "dev": true, "requires": { "brace-expansion": "^1.1.7" diff --git a/yarn.lock b/yarn.lock index 27858e0..eea0fae 100644 --- a/yarn.lock +++ b/yarn.lock @@ -126,7 +126,7 @@ buffer@^6.0.3: base64-js "^1.3.1" ieee754 "^1.2.1" -chalk@^4.1.2, chalk@4.x: +chalk@4.x, chalk@^4.1.2: version "4.1.2" resolved "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz" integrity sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA== @@ -558,7 +558,7 @@ inflight@^1.0.4: once "^1.3.0" wrappy "1" -inherits@^2.0.1, inherits@^2.0.3, inherits@^2.0.4, inherits@~2.0.3, inherits@2: +inherits@2, inherits@^2.0.1, inherits@^2.0.3, inherits@^2.0.4, inherits@~2.0.3: version "2.0.4" resolved "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz" integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ== @@ -716,9 +716,9 @@ micromatch@^4.0.4: picomatch "^2.3.1" minimatch@^3.0.4: - version "3.1.2" - resolved "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz" - integrity sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw== + version "3.1.5" + resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.1.5.tgz#580c88f8d5445f2bd6aa8f3cadefa0de79fbd69e" + integrity sha512-VgjWUsnnT6n+NUk6eZq77zeFdpW2LWDzP6zFGrCbHXiYNul5Dzqk2HHQ5uFH2DNW5Xbp8+jVzaeNt94ssEEl4w== dependencies: brace-expansion "^1.1.7" @@ -732,7 +732,7 @@ mute-stdout@^2.0.0: resolved "https://registry.npmjs.org/mute-stdout/-/mute-stdout-2.0.0.tgz" integrity sha512-32GSKM3Wyc8dg/p39lWPKYu8zci9mJFzV1Np9Of0ZEpe6Fhssn/FbI7ywAMd40uX+p3ZKh3T5EeCFv81qS3HmQ== -normalize-path@^3.0.0, normalize-path@~3.0.0, normalize-path@3.0.0: +normalize-path@3.0.0, normalize-path@^3.0.0, normalize-path@~3.0.0: version "3.0.0" resolved "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz" integrity sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA== @@ -964,13 +964,6 @@ streamx@^2.12.0, streamx@^2.12.5, streamx@^2.13.2, streamx@^2.14.0: optionalDependencies: bare-events "^2.2.0" -string_decoder@^1.1.1, string_decoder@~1.1.1: - version "1.1.1" - resolved "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz" - integrity sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg== - dependencies: - safe-buffer "~5.1.0" - string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3: version "4.2.3" resolved "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz" @@ -980,6 +973,13 @@ string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3: is-fullwidth-code-point "^3.0.0" strip-ansi "^6.0.1" +string_decoder@^1.1.1, string_decoder@~1.1.1: + version "1.1.1" + resolved "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz" + integrity sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg== + dependencies: + safe-buffer "~5.1.0" + strip-ansi@^6.0.0, strip-ansi@^6.0.1: version "6.0.1" resolved "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz" @@ -1116,17 +1116,6 @@ vinyl-sourcemaps-apply@^0.2.0: dependencies: source-map "^0.5.1" -vinyl@^3.0.0: - version "3.0.0" - resolved "https://registry.npmjs.org/vinyl/-/vinyl-3.0.0.tgz" - integrity sha512-rC2VRfAVVCGEgjnxHUnpIVh3AGuk62rP3tqVrn+yab0YH7UULisC085+NYH+mnqf3Wx4SpSi1RQMwudL89N03g== - dependencies: - clone "^2.1.2" - clone-stats "^1.0.0" - remove-trailing-separator "^1.1.0" - replace-ext "^2.0.0" - teex "^1.0.1" - vinyl@2.x: version "2.2.1" resolved "https://registry.npmjs.org/vinyl/-/vinyl-2.2.1.tgz" @@ -1139,6 +1128,17 @@ vinyl@2.x: remove-trailing-separator "^1.0.1" replace-ext "^1.0.0" +vinyl@^3.0.0: + version "3.0.0" + resolved "https://registry.npmjs.org/vinyl/-/vinyl-3.0.0.tgz" + integrity sha512-rC2VRfAVVCGEgjnxHUnpIVh3AGuk62rP3tqVrn+yab0YH7UULisC085+NYH+mnqf3Wx4SpSi1RQMwudL89N03g== + dependencies: + clone "^2.1.2" + clone-stats "^1.0.0" + remove-trailing-separator "^1.1.0" + replace-ext "^2.0.0" + teex "^1.0.1" + which@^1.2.14: version "1.3.1" resolved "https://registry.npmjs.org/which/-/which-1.3.1.tgz" From 291b4604a3f9624e0a6b51a1e100368d13f43822 Mon Sep 17 00:00:00 2001 From: Stephanie DiBenedetto Date: Thu, 5 Mar 2026 10:29:17 +0000 Subject: [PATCH 29/40] Adopt Protobuf's toolchain setup --- .bazelrc | 6 +- BUILD.bazel | 33 ----- MODULE.bazel | 15 ++ MODULE.bazel.lock | 23 +++ protobuf_javascript_release.bzl | 4 + toolchain/BUILD.bazel | 173 ++++++++++++++++++++++ toolchain/cc_toolchain_config.bzl | 236 ++++++++++++++++++++++++++++++ toolchain/platforms.bzl | 64 ++++++++ toolchain/toolchains.bazelrc | 15 ++ 9 files changed, 535 insertions(+), 34 deletions(-) create mode 100644 toolchain/BUILD.bazel create mode 100644 toolchain/cc_toolchain_config.bzl create mode 100644 toolchain/platforms.bzl create mode 100644 toolchain/toolchains.bazelrc diff --git a/.bazelrc b/.bazelrc index 7d6623d..bd092a0 100644 --- a/.bazelrc +++ b/.bazelrc @@ -38,4 +38,8 @@ common --repo_env=BAZEL_NO_APPLE_CPP_TOOLCHAIN=1 build --define=protobuf_allow_msvc=true # To facilitate testing in bazelci incompatible flags -build --incompatible_autoload_externally= \ No newline at end of file +build --incompatible_autoload_externally= + +import %workspace%/toolchain/toolchains.bazelrc + +build:offline --nofetch \ No newline at end of file diff --git a/BUILD.bazel b/BUILD.bazel index f6c08af..901b564 100644 --- a/BUILD.bazel +++ b/BUILD.bazel @@ -8,41 +8,8 @@ load("//:protobuf_javascript_release.bzl", "package_naming") exports_files(["package.json"]) -config_setting( - name = "x64_x86_windows", - values = {"cpu": "x64_x86_windows"}, -) - -config_setting( - name = "x64_windows", - values = {"cpu": "x64_windows"}, -) - -config_setting( - name = "k8", - values = {"cpu": "k8"}, -) - -config_setting( - name = "darwin_arm64", - values = {"cpu": "darwin_arm64"}, -) - -config_setting( - name = "darwin_x86_64", - values = {"cpu": "darwin_x86_64"}, -) - package_naming( name = "protobuf_javascript_pkg_naming", - platform = select({ - ":k8": "linux-x86_64", # currently the only supported build type in Github Actions - ":x64_x86_windows": "win32", - ":x64_windows": "win64", - ":darwin_arm64": "osx-aarch_64", - ":darwin_x86_64": "osx-x86_64", - "//conditions:default": "", # continues with current behavior when no --cpu is specified allowing existing internal builds to function - }), ) pkg_files( diff --git a/MODULE.bazel b/MODULE.bazel index 7e9ed5e..d662700 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -6,3 +6,18 @@ bazel_dep(name = "abseil-cpp", version = "20250814.1") bazel_dep(name = "protobuf", version = "33.4", repo_name = "com_google_protobuf") bazel_dep(name = "rules_cc", version = "0.2.15") bazel_dep(name = "rules_pkg", version = "1.0.1", dev_dependency = True) +bazel_dep(name = "platforms", version = "1.0.0") +bazel_dep(name = "apple_support", version = "1.17.1", repo_name = "build_bazel_apple_support") +bazel_dep(name = "bazel_skylib", version = "1.7.1") + +register_toolchains( + "//toolchain:osx-x86_64-toolchain", + "//toolchain:osx-aarch_64-toolchain", + "//toolchain:linux-aarch_64-toolchain", + "//toolchain:linux-ppcle_64-toolchain", + "//toolchain:linux-s390_64-toolchain", + "//toolchain:linux-x86_32-toolchain", + "//toolchain:linux-x86_64-toolchain", + "//toolchain:win32-toolchain", + "//toolchain:win64-toolchain", +) diff --git a/MODULE.bazel.lock b/MODULE.bazel.lock index b130cf6..fa0f80e 100644 --- a/MODULE.bazel.lock +++ b/MODULE.bazel.lock @@ -16,6 +16,7 @@ "https://bcr.bazel.build/modules/abseil-cpp/20250814.1/source.json": "cea3901d7e299da7320700abbaafe57a65d039f10d0d7ea601c4a66938ea4b0c", "https://bcr.bazel.build/modules/apple_support/1.11.1/MODULE.bazel": "1843d7cd8a58369a444fc6000e7304425fba600ff641592161d9f15b179fb896", "https://bcr.bazel.build/modules/apple_support/1.15.1/MODULE.bazel": "a0556fefca0b1bb2de8567b8827518f94db6a6e7e7d632b4c48dc5f865bc7c85", + "https://bcr.bazel.build/modules/apple_support/1.17.1/MODULE.bazel": "655c922ab1209978a94ef6ca7d9d43e940cd97d9c172fb55f94d91ac53f8610b", "https://bcr.bazel.build/modules/apple_support/1.21.0/MODULE.bazel": "ac1824ed5edf17dee2fdd4927ada30c9f8c3b520be1b5fd02a5da15bc10bff3e", "https://bcr.bazel.build/modules/apple_support/1.21.1/MODULE.bazel": "5809fa3efab15d1f3c3c635af6974044bac8a4919c62238cce06acee8a8c11f1", "https://bcr.bazel.build/modules/apple_support/1.24.2/MODULE.bazel": "0e62471818affb9f0b26f128831d5c40b074d32e6dda5a0d3852847215a41ca4", @@ -188,6 +189,28 @@ }, "selectedYankedVersions": {}, "moduleExtensions": { + "@@pybind11_bazel+//:internal_configure.bzl%internal_configure_extension": { + "general": { + "bzlTransitiveDigest": "06cynZ1bCvvy8zHPrrDlXq+Z68xmjctHpfFxi+zEpJY=", + "usagesDigest": "D1r3lfzMuUBFxgG8V6o0bQTLMk3GkaGOaPzw53wrwyw=", + "recordedInputs": [ + "REPO_MAPPING:pybind11_bazel+,bazel_tools bazel_tools", + "FILE:@@pybind11_bazel+//MODULE.bazel e6f4c20442eaa7c90d7190d8dc539d0ab422f95c65a57cc59562170c58ae3d34" + ], + "generatedRepoSpecs": { + "pybind11": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "build_file": "@@pybind11_bazel+//:pybind11-BUILD.bazel", + "strip_prefix": "pybind11-2.12.0", + "urls": [ + "https://github.com/pybind/pybind11/archive/v2.12.0.zip" + ] + } + } + } + } + }, "@@rules_kotlin+//src/main/starlark/core/repositories:bzlmod_setup.bzl%rules_kotlin_extensions": { "general": { "bzlTransitiveDigest": "ABI1D/sbS1ovwaW/kHDoj8nnXjQ0oKU9fzmzEG4iT8o=", diff --git a/protobuf_javascript_release.bzl b/protobuf_javascript_release.bzl index 5a18008..f152085 100644 --- a/protobuf_javascript_release.bzl +++ b/protobuf_javascript_release.bzl @@ -25,6 +25,10 @@ def _package_naming_impl(ctx): cpu = "aarch_64" elif cpu == "ppc64": cpu = "ppcle_64" + elif cpu == "i686": + cpu = "x86_32" + elif cpu == "x86_64": + cpu = "x86_64" # use the system name to determine the os and then create platform names if "apple" in system_name: diff --git a/toolchain/BUILD.bazel b/toolchain/BUILD.bazel new file mode 100644 index 0000000..514889a --- /dev/null +++ b/toolchain/BUILD.bazel @@ -0,0 +1,173 @@ +load("@bazel_skylib//rules:common_settings.bzl", "bool_flag") +load("@rules_cc//cc/toolchains:cc_toolchain.bzl", "cc_toolchain") +load("@rules_cc//cc/toolchains:cc_toolchain_suite.bzl", "cc_toolchain_suite") +load(":platforms.bzl", "PROTOBUF_PLATFORMS") +load(":cc_toolchain_config.bzl", "cc_toolchain_config") + +package(default_visibility = ["//visibility:public"]) + +filegroup(name = "empty") + +bool_flag( + name = "release", + build_setting_default = False, +) + +config_setting( + name = "is_cross_compiling", + flag_values = {":release": "True"}, +) + +[ + platform( + name = name, + constraint_values = config["compatible_with"], + ) + for name, config in PROTOBUF_PLATFORMS.items() +] + +[ + cc_toolchain( + name = name + "-cc_toolchain", + all_files = ":empty", + compiler_files = ":empty", + dwp_files = ":empty", + dynamic_runtime_lib = ":empty", + linker_files = ":empty", + objcopy_files = ":empty", + output_licenses = ["restricted"], + static_runtime_lib = ":empty", + strip_files = ":empty", + toolchain_config = ":" + name + "-config", + toolchain_identifier = name + "-cc_toolchain", + ) + for name in PROTOBUF_PLATFORMS.keys() +] + +[ + toolchain( + name = name + "-toolchain", + target_compatible_with = config["compatible_with"], + target_settings = [":is_cross_compiling"], + toolchain = ":" + name + "-cc_toolchain", + toolchain_type = "@rules_cc//cc:toolchain_type", + ) + for name, config in PROTOBUF_PLATFORMS.items() +] + +cc_toolchain_config( + name = "k8-config", + linker_path = "/usr/bin/ld", + sysroot = "/opt/manylinux/2014/x86_64", + target_cpu = "x86_64", + target_full_name = "x86_64-linux-gnu", +) + +cc_toolchain_config( + name = "linux-aarch_64-config", + linker_path = "/usr/bin/ld", + sysroot = "/opt/manylinux/2014/aarch64", + target_cpu = "aarch64", + target_full_name = "aarch64-linux-gnu", +) + +cc_toolchain_config( + name = "linux-ppcle_64-config", + linker_path = "/usr/bin/ld", + sysroot = "/opt/manylinux/2014/ppc64le", + target_cpu = "ppc64", + target_full_name = "powerpc64le-linux-gnu", +) + +cc_toolchain_config( + name = "linux-s390_64-config", + linker_path = "/usr/bin/ld", + sysroot = "/opt/manylinux/2014/s390x", + target_cpu = "systemz", + target_full_name = "s390x-linux-gnu", +) + +cc_toolchain_config( + name = "linux-x86_32-config", + linker_path = "/usr/bin/ld", + sysroot = "/opt/manylinux/2014/i686", + target_cpu = "x86_32", + target_full_name = "i386-linux-gnu", +) + +cc_toolchain_config( + name = "linux-x86_64-config", + linker_path = "/usr/bin/ld", + sysroot = "/opt/manylinux/2014/x86_64", + target_cpu = "x86_64", + target_full_name = "x86_64-linux-gnu", +) + +cc_toolchain_config( + name = "osx-aarch_64-config", + extra_compiler_flags = [ + "-I/usr/tools/xcode_14_0/macosx/usr/include/c++/v1", + "-I/usr/tools/xcode_14_0/macosx/usr/include", + "-F/usr/tools/xcode_14_0/macosx/System/Library/Frameworks", + "-Wno-error=nullability-completeness", + "-Wno-error=availability", + "-Wno-error=elaborated-enum-base", + ], + extra_linker_flags = ["-framework CoreFoundation"], + linker_path = "/usr/tools", + sysroot = "/usr/tools/xcode_14_0/macosx", + target_cpu = "aarch64", + target_full_name = "aarch64-apple-macosx12.0", +) + +cc_toolchain_config( + name = "osx-x86_64-config", + extra_compiler_flags = [ + "-I/usr/tools/xcode_14_0/macosx/usr/include/c++/v1", + "-I/usr/tools/xcode_14_0/macosx/usr/include", + "-F/usr/tools/xcode_14_0/macosx/System/Library/Frameworks", + "-Wno-error=nullability-completeness", + "-Wno-error=availability", + "-Wno-error=elaborated-enum-base", + ], + extra_linker_flags = ["-framework CoreFoundation"], + linker_path = "/usr/tools", + sysroot = "/usr/tools/xcode_14_0/macosx", + target_cpu = "x86_64", + target_full_name = "x86_64-apple-macosx12.0", +) + +cc_toolchain_config( + name = "win32-config", + extra_compiler_flags = [ + "-isystem/usr/lib/gcc/i686-w64-mingw32/10-posix/include/c++", + "-isystem/usr/lib/gcc/i686-w64-mingw32/10-posix/include/c++/i686-w64-mingw32", + ], + extra_include = "/usr/lib/gcc/i686-w64-mingw32", + extra_linker_flags = [ + "-L/usr/lib/gcc/i686-w64-mingw32/10-posix", + "-ldbghelp", + "-pthread", + ], + linker_path = "/usr/bin/ld", + sysroot = "/usr/i686-w64-mingw32", + target_cpu = "x86_32", + target_full_name = "i686-w64-mingw32", +) + +cc_toolchain_config( + name = "win64-config", + extra_compiler_flags = [ + "-isystem/usr/lib/gcc/x86_64-w64-mingw32/10-posix/include/c++/", + "-isystem/usr/lib/gcc/x86_64-w64-mingw32/10-posix/include/c++/x86_64-w64-mingw32", + ], + extra_include = "/usr/lib/gcc/x86_64-w64-mingw32/10-posix/include", + extra_linker_flags = [ + "-L/usr/lib/gcc/x86_64-w64-mingw32/10-posix", + "-ldbghelp", + ], + linker_path = "/usr/bin/ld", + sysroot = "/usr/x86_64-w64-mingw32", + target_cpu = "x86_64", + target_full_name = "x86_64-w64-mingw32", +) diff --git a/toolchain/cc_toolchain_config.bzl b/toolchain/cc_toolchain_config.bzl new file mode 100644 index 0000000..aca60b8 --- /dev/null +++ b/toolchain/cc_toolchain_config.bzl @@ -0,0 +1,236 @@ +load("@bazel_tools//tools/build_defs/cc:action_names.bzl", "ACTION_NAMES") +load( + "@rules_cc//cc:cc_toolchain_config_lib.bzl", + "artifact_name_pattern", + "feature", + "flag_group", + "flag_set", + "tool_path", + "with_feature_set", +) +load("@rules_cc//cc/toolchains:cc_toolchain_config_info.bzl", "CcToolchainConfigInfo") +load("@rules_cc//cc/common:cc_common.bzl", "cc_common") + +all_link_actions = [ + ACTION_NAMES.cpp_link_executable, + ACTION_NAMES.cpp_link_dynamic_library, + ACTION_NAMES.cpp_link_nodeps_dynamic_library, +] + +all_compile_actions = [ + ACTION_NAMES.assemble, + ACTION_NAMES.preprocess_assemble, + ACTION_NAMES.linkstamp_compile, + ACTION_NAMES.c_compile, + ACTION_NAMES.cpp_compile, + ACTION_NAMES.cpp_header_parsing, + ACTION_NAMES.cpp_module_codegen, + ACTION_NAMES.cpp_module_compile, + ACTION_NAMES.clif_match, + ACTION_NAMES.lto_backend, +] + +def _impl(ctx): + if "mingw" in ctx.attr.target_full_name: + artifact_name_patterns = [ + artifact_name_pattern( + category_name = "executable", + prefix = "", + extension = ".exe", + ), + ] + else: + artifact_name_patterns = [] + + tool_paths = [ + tool_path( + name = "gcc", + path = "/usr/local/bin/clang", + ), + tool_path( + name = "ld", + path = ctx.attr.linker_path, + ), + tool_path( + name = "ar", + path = "/usr/local/bin/llvm-ar", + ), + tool_path( + name = "compat-ld", + path = ctx.attr.linker_path, + ), + tool_path( + name = "cpp", + path = "/bin/false", + ), + tool_path( + name = "dwp", + path = "/bin/false", + ), + tool_path( + name = "gcov", + path = "/bin/false", + ), + tool_path( + name = "nm", + path = "/bin/false", + ), + tool_path( + name = "objcopy", + path = "/bin/false", + ), + tool_path( + name = "objdump", + path = "/bin/false", + ), + tool_path( + name = "strip", + path = "/bin/false", + ), + ] + + linker_flags = feature( + name = "default_linker_flags", + enabled = True, + flag_sets = [ + flag_set( + actions = all_link_actions, + flag_groups = [ + flag_group( + flags = [ + "-B" + ctx.attr.linker_path, + "-lstdc++", + "-lm", + "--target=" + ctx.attr.target_full_name, + ] + ctx.attr.extra_linker_flags, + ), + ], + ), + ], + ) + + if "osx" in ctx.attr.target_full_name: + sysroot_action_set = all_link_actions + else: + sysroot_action_set = all_link_actions + all_compile_actions + + sysroot_flags = feature( + name = "sysroot_flags", + #Only enable this if a sysroot was specified + enabled = (ctx.attr.sysroot != ""), + flag_sets = [ + flag_set( + actions = sysroot_action_set, + flag_groups = [ + flag_group( + flags = [ + "--sysroot", + ctx.attr.sysroot, + ], + ), + ], + ), + ], + ) + + if ctx.attr.target_cpu == "x86_32": + bit_flag = "-m32" + else: + bit_flag = "-m64" + compiler_flags = feature( + name = "default_compile_flags", + enabled = True, + flag_sets = [ + flag_set( + actions = all_compile_actions, + flag_groups = [ + flag_group( + flags = [ + bit_flag, + "-Wall", + "-no-canonical-prefixes", + "--target=" + ctx.attr.target_full_name, + "-fvisibility=hidden", + ] + ctx.attr.extra_compiler_flags + [ + "-isystem", + ctx.attr.sysroot, + ], + ), + ], + ), + flag_set( + actions = all_compile_actions, + flag_groups = [flag_group(flags = ["-DNDEBUG", "-O3"])], + with_features = [with_feature_set(features = ["opt"])], + ), + flag_set( + actions = all_compile_actions, + flag_groups = [flag_group(flags = ["-g"])], + with_features = [with_feature_set(features = ["dbg"])], + ), + flag_set( + actions = all_compile_actions, + flag_groups = [flag_group(flags = ["-O1"])], + with_features = [with_feature_set(features = ["fastbuild"])], + ), + ], + ) + + features = [ + linker_flags, + compiler_flags, + sysroot_flags, + feature(name = "dbg"), + feature(name = "opt"), + ] + + if "mingw" in ctx.attr.target_full_name: + features.append( + feature( + name = "targets_windows", + enabled = True, + ), + ) + else: + features.append( + feature( + name = "supports_pic", + enabled = True, + ), + ) + + return cc_common.create_cc_toolchain_config_info( + abi_libc_version = ctx.attr.abi_version, + abi_version = ctx.attr.abi_version, + artifact_name_patterns = artifact_name_patterns, + ctx = ctx, + compiler = "clang", + cxx_builtin_include_directories = [ + ctx.attr.sysroot, + ctx.attr.extra_include, + "/usr/local/include", + "/usr/local/lib/clang", + ], + features = features, + host_system_name = "local", + target_cpu = ctx.attr.target_cpu, + target_libc = ctx.attr.target_cpu, + target_system_name = ctx.attr.target_full_name, + toolchain_identifier = ctx.attr.target_full_name, + tool_paths = tool_paths, + ) + +cc_toolchain_config = rule( + implementation = _impl, + attrs = { + "abi_version": attr.string(default = "local"), + "extra_compiler_flags": attr.string_list(), + "extra_include": attr.string(mandatory = False), + "extra_linker_flags": attr.string_list(), + "linker_path": attr.string(mandatory = True), + "sysroot": attr.string(mandatory = False), + "target_cpu": attr.string(mandatory = True, values = ["aarch64", "ppc64", "systemz", "x86_32", "x86_64"]), + "target_full_name": attr.string(mandatory = True), + }, + provides = [CcToolchainConfigInfo], +) diff --git a/toolchain/platforms.bzl b/toolchain/platforms.bzl new file mode 100644 index 0000000..dbd386a --- /dev/null +++ b/toolchain/platforms.bzl @@ -0,0 +1,64 @@ +"List of published platforms on protobuf GitHub releases" + +# Keys are chosen to match the filenames published on protocolbuffers/protobuf releases +# NB: keys in this list are nearly identical to /toolchain/BUILD.bazel#TOOLCHAINS +# Perhaps we should share code. +PROTOBUF_PLATFORMS = { + # "k8", # this is in /toolchain/BUILD.bazel but not a released platform + # "osx-universal_binary", # this is not in /toolchain/BUILD.bazel + # but also Bazel will never request it, as we have a darwin binary for each architecture + "linux-aarch_64": { + "compatible_with": [ + "@platforms//os:linux", + "@platforms//cpu:aarch64", + ], + }, + "linux-ppcle_64": { + "compatible_with": [ + "@platforms//os:linux", + "@platforms//cpu:ppc64le", + ], + }, + "linux-s390_64": { + "compatible_with": [ + "@platforms//os:linux", + "@platforms//cpu:s390x", + ], + }, + "linux-x86_32": { + "compatible_with": [ + "@platforms//os:linux", + "@platforms//cpu:x86_32", + ], + }, + "linux-x86_64": { + "compatible_with": [ + "@platforms//os:linux", + "@platforms//cpu:x86_64", + ], + }, + "osx-aarch_64": { + "compatible_with": [ + "@platforms//os:macos", + "@platforms//cpu:aarch64", + ], + }, + "osx-x86_64": { + "compatible_with": [ + "@platforms//os:macos", + "@platforms//cpu:x86_64", + ], + }, + "win32": { + "compatible_with": [ + "@platforms//os:windows", + "@platforms//cpu:x86_32", + ], + }, + "win64": { + "compatible_with": [ + "@platforms//os:windows", + "@platforms//cpu:x86_64", + ], + }, +} diff --git a/toolchain/toolchains.bazelrc b/toolchain/toolchains.bazelrc new file mode 100644 index 0000000..b8775ef --- /dev/null +++ b/toolchain/toolchains.bazelrc @@ -0,0 +1,15 @@ +build:cross_config --action_env=BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1 +build:cross_config --//toolchain:release=true + +build:linux-aarch_64 --config=cross_config --platforms=//toolchain:linux-aarch_64 +build:linux-aarch64 --config=cross_config --platforms=//toolchain:linux-aarch_64 +build:linux-ppcle_64 --config=cross_config --platforms=//toolchain:linux-ppcle_64 +build:linux-ppc64le --config=cross_config --platforms=//toolchain:linux-ppcle_64 +build:linux-s390_64 --config=cross_config --platforms=//toolchain:linux-s390_64 +build:linux-s390x --config=cross_config --platforms=//toolchain:linux-s390_64 +build:linux-x86_32 --config=cross_config --platforms=//toolchain:linux-x86_32 +build:linux-x86_64 --config=cross_config --platforms=//toolchain:linux-x86_64 +build:osx-aarch_64 --config=cross_config --action_env=MACOSX_DEPLOYMENT_TARGET=11.0 --platforms=//toolchain:osx-aarch_64 +build:osx-x86_64 --config=cross_config --action_env=MACOSX_DEPLOYMENT_TARGET=12.0 --platforms=//toolchain:osx-x86_64 +build:win32 --config=cross_config --platforms=//toolchain:win32 +build:win64 --config=cross_config --platforms=//toolchain:win64 From c1f8dded4a5f2eb547990dc017f0661e941461cf Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 26 Mar 2026 03:04:46 +0000 Subject: [PATCH 30/40] Bump picomatch from 2.3.1 to 2.3.2 Bumps [picomatch](https://github.com/micromatch/picomatch) from 2.3.1 to 2.3.2. - [Release notes](https://github.com/micromatch/picomatch/releases) - [Changelog](https://github.com/micromatch/picomatch/blob/master/CHANGELOG.md) - [Commits](https://github.com/micromatch/picomatch/compare/2.3.1...2.3.2) --- updated-dependencies: - dependency-name: picomatch dependency-version: 2.3.2 dependency-type: indirect ... Signed-off-by: dependabot[bot] --- package-lock.json | 12 ++++++------ yarn.lock | 6 +++--- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/package-lock.json b/package-lock.json index a243940..c939647 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1370,9 +1370,9 @@ } }, "node_modules/picomatch": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", - "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.2.tgz", + "integrity": "sha512-V7+vQEJ06Z+c5tSye8S+nHUfI51xoXIXjHQ99cQtKUkQqqO1kO/KCJUfZXuB47h/YBlDhah2H3hdUGXn8ie0oA==", "dev": true, "engines": { "node": ">=8.6" @@ -2994,9 +2994,9 @@ "dev": true }, "picomatch": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", - "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.2.tgz", + "integrity": "sha512-V7+vQEJ06Z+c5tSye8S+nHUfI51xoXIXjHQ99cQtKUkQqqO1kO/KCJUfZXuB47h/YBlDhah2H3hdUGXn8ie0oA==", "dev": true }, "process-nextick-args": { diff --git a/yarn.lock b/yarn.lock index eea0fae..93cc2e9 100644 --- a/yarn.lock +++ b/yarn.lock @@ -805,9 +805,9 @@ path-root@^0.1.1: path-root-regex "^0.1.0" picomatch@^2.0.4, picomatch@^2.2.1, picomatch@^2.3.1: - version "2.3.1" - resolved "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz" - integrity sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA== + version "2.3.2" + resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.3.2.tgz#5a942915e26b372dc0f0e6753149a16e6b1c5601" + integrity sha512-V7+vQEJ06Z+c5tSye8S+nHUfI51xoXIXjHQ99cQtKUkQqqO1kO/KCJUfZXuB47h/YBlDhah2H3hdUGXn8ie0oA== process-nextick-args@^2.0.0, process-nextick-args@~2.0.0: version "2.0.1" From 24815b75bd1caa76f5573505d9c29430dbb98fbd Mon Sep 17 00:00:00 2001 From: Stephanie DiBenedetto Date: Mon, 15 Jun 2026 14:24:47 +0000 Subject: [PATCH 31/40] Bump runners to node 24 and protobuf 35.1 --- .github/workflows/build.yml | 10 +++++----- .github/workflows/codeql.yml | 8 ++++---- MODULE.bazel.lock | 19 ++++++++++--------- 3 files changed, 19 insertions(+), 18 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b920538..8f40472 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: "33.4" + PROTOC_VERSION: "35.1" jobs: build: @@ -24,7 +24,7 @@ jobs: - uses: actions/setup-node@v4 with: token: ${{ secrets.GITHUB_TOKEN }} - node-version: 20 + node-version: 24 cache: ${{ !env.ACT && 'npm' || '' }} # cache API not available in ACT - name: Install Protoc @@ -83,14 +83,14 @@ jobs: steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - - uses: actions/download-artifact@v4 + - uses: actions/download-artifact@v8 if: ${{ !env.ACT }} with: name: js - - uses: bazel-contrib/setup-bazel@0.15.0 + - uses: bazel-contrib/setup-bazel@0.19.0 with: token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index e105341..08b26ac 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -15,7 +15,7 @@ permissions: read-all # update in build.yml and codeql.yml at same time env: - PROTOC_VERSION: "33.4" + PROTOC_VERSION: "35.1" on: push: @@ -49,11 +49,11 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v4 + uses: actions/checkout@v6 # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL - uses: github/codeql-action/init@v3 + uses: github/codeql-action/init@v4 with: languages: ${{ matrix.language }} # If you wish to specify custom queries, you can do so here or in a config file. @@ -81,4 +81,4 @@ jobs: - run: npm test - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v3 + uses: github/codeql-action/analyze@v4 diff --git a/MODULE.bazel.lock b/MODULE.bazel.lock index fa0f80e..2eefafb 100644 --- a/MODULE.bazel.lock +++ b/MODULE.bazel.lock @@ -35,8 +35,9 @@ "https://bcr.bazel.build/modules/bazel_features/1.3.0/MODULE.bazel": "cdcafe83ec318cda34e02948e81d790aab8df7a929cec6f6969f13a489ccecd9", "https://bcr.bazel.build/modules/bazel_features/1.30.0/MODULE.bazel": "a14b62d05969a293b80257e72e597c2da7f717e1e69fa8b339703ed6731bec87", "https://bcr.bazel.build/modules/bazel_features/1.33.0/MODULE.bazel": "8b8dc9d2a4c88609409c3191165bccec0e4cb044cd7a72ccbe826583303459f6", - "https://bcr.bazel.build/modules/bazel_features/1.33.0/source.json": "13617db3930328c2cd2807a0f13d52ca870ac05f96db9668655113265147b2a6", "https://bcr.bazel.build/modules/bazel_features/1.4.1/MODULE.bazel": "e45b6bb2350aff3e442ae1111c555e27eac1d915e77775f6fdc4b351b758b5d7", + "https://bcr.bazel.build/modules/bazel_features/1.42.1/MODULE.bazel": "275a59b5406ff18c01739860aa70ad7ccb3cfb474579411decca11c93b951080", + "https://bcr.bazel.build/modules/bazel_features/1.42.1/source.json": "fcd4396b2df85f64f2b3bb436ad870793ecf39180f1d796f913cc9276d355309", "https://bcr.bazel.build/modules/bazel_features/1.9.1/MODULE.bazel": "8f679097876a9b609ad1f60249c49d68bfab783dd9be012faf9d82547b14815a", "https://bcr.bazel.build/modules/bazel_skylib/1.0.3/MODULE.bazel": "bcb0fd896384802d1ad283b4e4eb4d718eebd8cb820b0a2c3a347fb971afd9d8", "https://bcr.bazel.build/modules/bazel_skylib/1.1.1/MODULE.bazel": "1add3e7d93ff2e6998f9e118022c84d163917d912f5afafb3058e3d2f1545b5e", @@ -52,8 +53,8 @@ "https://bcr.bazel.build/modules/bazel_skylib/1.8.1/MODULE.bazel": "88ade7293becda963e0e3ea33e7d54d3425127e0a326e0d17da085a5f1f03ff6", "https://bcr.bazel.build/modules/bazel_skylib/1.8.2/MODULE.bazel": "69ad6927098316848b34a9142bcc975e018ba27f08c4ff403f50c1b6e646ca67", "https://bcr.bazel.build/modules/bazel_skylib/1.8.2/source.json": "34a3c8bcf233b835eb74be9d628899bb32999d3e0eadef1947a0a562a2b16ffb", - "https://bcr.bazel.build/modules/buildozer/8.2.1/MODULE.bazel": "61e9433c574c2bd9519cad7fa66b9c1d2b8e8d5f3ae5d6528a2c2d26e68d874d", - "https://bcr.bazel.build/modules/buildozer/8.2.1/source.json": "7c33f6a26ee0216f85544b4bca5e9044579e0219b6898dd653f5fb449cf2e484", + "https://bcr.bazel.build/modules/buildozer/8.5.1/MODULE.bazel": "a35d9561b3fc5b18797c330793e99e3b834a473d5fbd3d7d7634aafc9bdb6f8f", + "https://bcr.bazel.build/modules/buildozer/8.5.1/source.json": "e3386e6ff4529f2442800dee47ad28d3e6487f36a1f75ae39ae56c70f0cd2fbd", "https://bcr.bazel.build/modules/google_benchmark/1.8.2/MODULE.bazel": "a70cf1bba851000ba93b58ae2f6d76490a9feb74192e57ab8e8ff13c34ec50cb", "https://bcr.bazel.build/modules/googletest/1.11.0/MODULE.bazel": "3a83f095183f66345ca86aa13c58b59f9f94a2f81999c093d4eeaa2d262d12f4", "https://bcr.bazel.build/modules/googletest/1.14.0.bcr.1/MODULE.bazel": "22c31a561553727960057361aa33bf20fb2e98584bc4fec007906e27053f80c6", @@ -113,9 +114,9 @@ "https://bcr.bazel.build/modules/rules_cc/0.1.5/MODULE.bazel": "88dfc9361e8b5ae1008ac38f7cdfd45ad738e4fa676a3ad67d19204f045a1fd8", "https://bcr.bazel.build/modules/rules_cc/0.2.0/MODULE.bazel": "b5c17f90458caae90d2ccd114c81970062946f49f355610ed89bebf954f5783c", "https://bcr.bazel.build/modules/rules_cc/0.2.13/MODULE.bazel": "eecdd666eda6be16a8d9dc15e44b5c75133405e820f620a234acc4b1fdc5aa37", - "https://bcr.bazel.build/modules/rules_cc/0.2.14/MODULE.bazel": "353c99ed148887ee89c54a17d4100ae7e7e436593d104b668476019023b58df8", "https://bcr.bazel.build/modules/rules_cc/0.2.15/MODULE.bazel": "6a0a4a75a57aa6dc888300d848053a58c6b12a29f89d4304e1c41448514ec6e8", - "https://bcr.bazel.build/modules/rules_cc/0.2.15/source.json": "197965c6dcca5c98a9288f93849e2e1c69d622e71b0be8deb524e22d48c88e32", + "https://bcr.bazel.build/modules/rules_cc/0.2.17/MODULE.bazel": "1849602c86cb60da8613d2de887f9566a6d354a6df6d7009f9d04a14402f9a84", + "https://bcr.bazel.build/modules/rules_cc/0.2.17/source.json": "3832f45d145354049137c0090df04629d9c2b5493dc5c2bf46f1834040133a07", "https://bcr.bazel.build/modules/rules_cc/0.2.8/MODULE.bazel": "f1df20f0bf22c28192a794f29b501ee2018fa37a3862a1a2132ae2940a23a642", "https://bcr.bazel.build/modules/rules_foreign_cc/0.9.0/MODULE.bazel": "c9e8c682bf75b0e7c704166d79b599f93b72cfca5ad7477df596947891feeef6", "https://bcr.bazel.build/modules/rules_fuzzing/0.5.2/MODULE.bazel": "40c97d1144356f52905566c55811f13b299453a14ac7769dfba2ac38192337a8", @@ -129,8 +130,8 @@ "https://bcr.bazel.build/modules/rules_java/8.3.2/MODULE.bazel": "7336d5511ad5af0b8615fdc7477535a2e4e723a357b6713af439fe8cf0195017", "https://bcr.bazel.build/modules/rules_java/8.5.1/MODULE.bazel": "d8a9e38cc5228881f7055a6079f6f7821a073df3744d441978e7a43e20226939", "https://bcr.bazel.build/modules/rules_java/8.6.1/MODULE.bazel": "f4808e2ab5b0197f094cabce9f4b006a27766beb6a9975931da07099560ca9c2", - "https://bcr.bazel.build/modules/rules_java/9.0.3/MODULE.bazel": "1f98ed015f7e744a745e0df6e898a7c5e83562d6b759dfd475c76456dda5ccea", - "https://bcr.bazel.build/modules/rules_java/9.0.3/source.json": "b038c0c07e12e658135bbc32cc1a2ded6e33785105c9d41958014c592de4593e", + "https://bcr.bazel.build/modules/rules_java/9.1.0/MODULE.bazel": "ee63f27e36a3fada80342869361182f120a9819c74320e8e65b1e04ba0cd7a9d", + "https://bcr.bazel.build/modules/rules_java/9.1.0/source.json": "da589573c1dee2c9ac4a568b301269a2e8191110ff0345c1a959fa7ea6c4dfd6", "https://bcr.bazel.build/modules/rules_jvm_external/4.4.2/MODULE.bazel": "a56b85e418c83eb1839819f0b515c431010160383306d13ec21959ac412d2fe7", "https://bcr.bazel.build/modules/rules_jvm_external/5.1/MODULE.bazel": "33f6f999e03183f7d088c9be518a63467dfd0be94a11d0055fe2d210f89aa909", "https://bcr.bazel.build/modules/rules_jvm_external/5.2/MODULE.bazel": "d9351ba35217ad0de03816ef3ed63f89d411349353077348a45348b096615036", @@ -213,7 +214,7 @@ }, "@@rules_kotlin+//src/main/starlark/core/repositories:bzlmod_setup.bzl%rules_kotlin_extensions": { "general": { - "bzlTransitiveDigest": "ABI1D/sbS1ovwaW/kHDoj8nnXjQ0oKU9fzmzEG4iT8o=", + "bzlTransitiveDigest": "Ga4z8lQy1YQ5rAMy+dOl0dqcCEBnYNCXku8x3YQmDZI=", "usagesDigest": "QI2z8ZUR+mqtbwsf2fLqYdJAkPOHdOV+tF2yVAUgRzw=", "recordedInputs": [ "REPO_MAPPING:rules_kotlin+,bazel_tools bazel_tools" @@ -270,7 +271,7 @@ }, "@@rules_python+//python/extensions:config.bzl%config": { "general": { - "bzlTransitiveDigest": "2hLgIvNVTLgxus0ZuXtleBe70intCfo0cHs8qvt6cdM=", + "bzlTransitiveDigest": "iibnRYgg8LpcfmH7EAnVwYePC3jsVaJ6Id8XxUjSZps=", "usagesDigest": "ZVSXMAGpD+xzVNPuvF1IoLBkty7TROO0+akMapt1pAg=", "recordedInputs": [ "REPO_MAPPING:rules_python+,bazel_tools bazel_tools", From 35005108832d0c0b4ba816c1294fa7f739fe1c86 Mon Sep 17 00:00:00 2001 From: Stephanie DiBenedetto Date: Thu, 25 Jun 2026 05:51:01 +0000 Subject: [PATCH 32/40] Fix workflow issues exposed by analyzer --- .github/workflows/build.yml | 22 ++++++++++++++-------- .github/workflows/codeql.yml | 8 +++++--- .github/workflows/publish.yaml | 2 +- .github/workflows/release.yaml | 16 +++++++++++----- 4 files changed, 31 insertions(+), 17 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8f40472..6d5e52e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -2,7 +2,9 @@ name: Build and Test on: push -permissions: read-all +permissions: + contents: read + # update in build.yml and codeql.yml at same time env: @@ -19,9 +21,11 @@ jobs: steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 + with: + persist-credentials: false - - uses: actions/setup-node@v4 + - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4 with: token: ${{ secrets.GITHUB_TOKEN }} node-version: 24 @@ -42,7 +46,7 @@ jobs: - run: npm run build - - uses: actions/upload-artifact@v4 + - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4 with: name: js path: | @@ -83,14 +87,16 @@ jobs: steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6 + with: + persist-credentials: false - - uses: actions/download-artifact@v8 + - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8 if: ${{ !env.ACT }} with: name: js - - uses: bazel-contrib/setup-bazel@0.19.0 + - uses: bazel-contrib/setup-bazel@c5acdfb288317d0b5c0bbd7a396a3dc868bb0f86 # 0.19.0 with: token: ${{ secrets.GITHUB_TOKEN }} @@ -104,7 +110,7 @@ jobs: # need to copy to output directory as `bazel-bin` is a symlink and cannot be read by the actions/upload-artifact action - run: cp bazel-bin/protobuf-javascript-* out/ - - uses: actions/upload-artifact@v4 + - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4 with: name: release-${{ matrix.os }}-${{ matrix.cpu }} path: out diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 08b26ac..00a3008 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -49,11 +49,13 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v6 + uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6 + with: + persist-credentials: false # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL - uses: github/codeql-action/init@v4 + uses: github/codeql-action/init@8aad20d150bbac5944a9f9d289da16a4b0d87c1e # v4 with: languages: ${{ matrix.language }} # If you wish to specify custom queries, you can do so here or in a config file. @@ -81,4 +83,4 @@ jobs: - run: npm test - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v4 + uses: github/codeql-action/analyze@8aad20d150bbac5944a9f9d289da16a4b0d87c1e # v4 diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index f660548..cbf1546 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -21,7 +21,7 @@ on: type: string jobs: publish: - uses: bazel-contrib/publish-to-bcr/.github/workflows/publish.yaml@v0.2.3 + uses: bazel-contrib/publish-to-bcr/.github/workflows/publish.yaml@1a42c3dca6566cf3a07689768259f1a35066ed01 # v0.2.3 with: draft: false tag_name: ${{ inputs.tag_name }} diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index dc77071..3c36f87 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -15,20 +15,26 @@ on: tags: - "v*.*.*" permissions: - id-token: write - attestations: write - contents: write + contents: read + jobs: release: - uses: bazel-contrib/.github/.github/workflows/release_ruleset.yaml@v7.2.3 + permissions: + id-token: write + attestations: write + contents: write + uses: bazel-contrib/.github/.github/workflows/release_ruleset.yaml@a841d62420f41a87a601fb331f3c2c2cc088506e # v7.2.3 with: bazel_test_command: "bazel build //:bcr_dist_tar" prerelease: false release_files: "bazel-bin/protobuf-javascript-*.tar.gz" tag_name: ${{ inputs.tag_name || github.ref_name }} - secrets: inherit publish: needs: release + permissions: + id-token: write + attestations: write + contents: write uses: ./.github/workflows/publish.yaml with: tag_name: ${{ inputs.tag_name || github.ref_name }} From a749e2926ac205243b955407438006716953665d Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 18 Jul 2026 02:49:26 +0000 Subject: [PATCH 33/40] Bump adm-zip from 0.5.16 to 0.6.0 in /protoc_plugin Bumps [adm-zip](https://github.com/cthackers/adm-zip) from 0.5.16 to 0.6.0. - [Release notes](https://github.com/cthackers/adm-zip/releases) - [Changelog](https://github.com/cthackers/adm-zip/blob/master/history.md) - [Commits](https://github.com/cthackers/adm-zip/compare/v0.5.16...v0.6.0) --- updated-dependencies: - dependency-name: adm-zip dependency-version: 0.6.0 dependency-type: direct:production ... Signed-off-by: dependabot[bot] --- protoc_plugin/package-lock.json | 14 +++++++------- protoc_plugin/package.json | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/protoc_plugin/package-lock.json b/protoc_plugin/package-lock.json index 3a59e78..e963bad 100644 --- a/protoc_plugin/package-lock.json +++ b/protoc_plugin/package-lock.json @@ -1,16 +1,16 @@ { "name": "@protocolbuffers/protoc-gen-js", - "version": "4.0.2-rc7", + "version": "4.0.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@protocolbuffers/protoc-gen-js", - "version": "4.0.2-rc7", + "version": "4.0.2", "hasInstallScript": true, "license": "BSD-3-Clause", "dependencies": { - "adm-zip": "^0.5.16" + "adm-zip": "^0.6.0" }, "bin": { "protoc-gen-js": "cli.js" @@ -20,12 +20,12 @@ } }, "node_modules/adm-zip": { - "version": "0.5.16", - "resolved": "https://registry.npmjs.org/adm-zip/-/adm-zip-0.5.16.tgz", - "integrity": "sha512-TGw5yVi4saajsSEgz25grObGHEUaDrniwvA2qwSC060KfqGPdglhvPMA2lPIoxs3PQIItj2iag35fONcQqgUaQ==", + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/adm-zip/-/adm-zip-0.6.0.tgz", + "integrity": "sha512-XleryMhbuksdKtofnWZ9Sk+4CUTbms4Mb/EU32SZwToAyZ5RgVos/ki8n+yr0LWHOGKuakbXTuuYNHLQjhddgg==", "license": "MIT", "engines": { - "node": ">=12.0" + "node": ">=14.0" } } } diff --git a/protoc_plugin/package.json b/protoc_plugin/package.json index e6b4359..fa8acaa 100644 --- a/protoc_plugin/package.json +++ b/protoc_plugin/package.json @@ -18,7 +18,7 @@ "postinstall": "node download-protoc-gen-js.js" }, "dependencies": { - "adm-zip": "^0.5.16" + "adm-zip": "^0.6.0" }, "engines": { "node": ">=18.0.0" From fd70b008da303d48cbfce2191af10db2a48c96cb Mon Sep 17 00:00:00 2001 From: Stephanie DiBenedetto Date: Tue, 8 Sep 2026 18:28:29 +0000 Subject: [PATCH 34/40] Add binary deserialization depth limit and swap to Syntax This change adds the standard protobuf deserialization depth limit of 200. Today, overruns trigger RangeErrors from the VM. We are now catching these and swapping them to SyntaxError. --- .github/workflows/build.yml | 2 +- MODULE.bazel | 2 +- MODULE.bazel.lock | 31 +- binary/errors.js | 11 + binary/reader.js | 235 +++++++++---- binary/reader_test.js | 107 ++++++ conformance/package.json | 2 +- package-lock.json | 590 +++++++++++++++++++++++++++++++- package.json | 3 +- protobuf_javascript_release.bzl | 2 +- protoc_plugin/package-lock.json | 4 +- protoc_plugin/package.json | 2 +- yarn.lock | 255 ++++++++++++-- 13 files changed, 1101 insertions(+), 145 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6d5e52e..a6813dc 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -8,7 +8,7 @@ permissions: # update in build.yml and codeql.yml at same time env: - PROTOC_VERSION: "35.1" + PROTOC_VERSION: "36.1" jobs: build: diff --git a/MODULE.bazel b/MODULE.bazel index d662700..1887970 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -1,6 +1,6 @@ "Bazel module that provides protoc-gen-js." -module(name = "protobuf_javascript", version = "4.0.2") # updated by release action +module(name = "protobuf_javascript", version = "4.0.3") # updated by release action bazel_dep(name = "abseil-cpp", version = "20250814.1") bazel_dep(name = "protobuf", version = "33.4", repo_name = "com_google_protobuf") diff --git a/MODULE.bazel.lock b/MODULE.bazel.lock index 2eefafb..7e1e5aa 100644 --- a/MODULE.bazel.lock +++ b/MODULE.bazel.lock @@ -1,5 +1,5 @@ { - "lockFileVersion": 26, + "lockFileVersion": 28, "registryFileHashes": { "https://bcr.bazel.build/bazel_registry.json": "8a28e4aff06ee60aed2a8c281907fb8bcbf3b753c91fb5a5c57da3215d5b3497", "https://bcr.bazel.build/modules/abseil-cpp/20210324.2/MODULE.bazel": "7cd0312e064fde87c8d1cd79ba06c876bd23630c83466e9500321be55c96ace2", @@ -190,31 +190,9 @@ }, "selectedYankedVersions": {}, "moduleExtensions": { - "@@pybind11_bazel+//:internal_configure.bzl%internal_configure_extension": { - "general": { - "bzlTransitiveDigest": "06cynZ1bCvvy8zHPrrDlXq+Z68xmjctHpfFxi+zEpJY=", - "usagesDigest": "D1r3lfzMuUBFxgG8V6o0bQTLMk3GkaGOaPzw53wrwyw=", - "recordedInputs": [ - "REPO_MAPPING:pybind11_bazel+,bazel_tools bazel_tools", - "FILE:@@pybind11_bazel+//MODULE.bazel e6f4c20442eaa7c90d7190d8dc539d0ab422f95c65a57cc59562170c58ae3d34" - ], - "generatedRepoSpecs": { - "pybind11": { - "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", - "attributes": { - "build_file": "@@pybind11_bazel+//:pybind11-BUILD.bazel", - "strip_prefix": "pybind11-2.12.0", - "urls": [ - "https://github.com/pybind/pybind11/archive/v2.12.0.zip" - ] - } - } - } - } - }, "@@rules_kotlin+//src/main/starlark/core/repositories:bzlmod_setup.bzl%rules_kotlin_extensions": { "general": { - "bzlTransitiveDigest": "Ga4z8lQy1YQ5rAMy+dOl0dqcCEBnYNCXku8x3YQmDZI=", + "bzlTransitiveDigest": "+Kp6j204mBZ3mxlIDDR0gBoP45BZ4jYRhRAcB8sU0qc=", "usagesDigest": "QI2z8ZUR+mqtbwsf2fLqYdJAkPOHdOV+tF2yVAUgRzw=", "recordedInputs": [ "REPO_MAPPING:rules_kotlin+,bazel_tools bazel_tools" @@ -271,7 +249,7 @@ }, "@@rules_python+//python/extensions:config.bzl%config": { "general": { - "bzlTransitiveDigest": "iibnRYgg8LpcfmH7EAnVwYePC3jsVaJ6Id8XxUjSZps=", + "bzlTransitiveDigest": "dzD8Q2YmrP3fz8saWLHPmlwPLO91ImtTmP/c9JKTStM=", "usagesDigest": "ZVSXMAGpD+xzVNPuvF1IoLBkty7TROO0+akMapt1pAg=", "recordedInputs": [ "REPO_MAPPING:rules_python+,bazel_tools bazel_tools", @@ -468,5 +446,6 @@ } } }, - "facts": {} + "facts": {}, + "factsVersions": {} } diff --git a/binary/errors.js b/binary/errors.js index dbd6d64..3134325 100755 --- a/binary/errors.js +++ b/binary/errors.js @@ -108,6 +108,15 @@ function negativeByteLengthError( return new Error(`Tried to read a negative byte length: ${length}`); } +/** + * Reports that the maximum recursion depth was exceeded. + * + * @return {!SyntaxError} + */ +function maxRecursionDepthExceededError() { + return new SyntaxError('Maximum protobuf recursion depth exceeded'); +} + exports = { messageLengthMismatchError, groupDidNotEndWithEndGroupError, @@ -115,8 +124,10 @@ exports = { invalidVarintError, invalidWireTypeError, malformedBinaryBytesForMessageSet, + maxRecursionDepthExceededError, negativeByteLengthError, readTooFarError, unmatchedStartGroupError, unmatchedStartGroupEofError, }; + diff --git a/binary/reader.js b/binary/reader.js index 15cbe6d..94e01dc 100755 --- a/binary/reader.js +++ b/binary/reader.js @@ -45,6 +45,21 @@ asserts.assert( const /** boolean */ UTF8_PARSING_ERRORS_ARE_FATAL = ENFORCE_UTF8 === 'ALWAYS'; +/** + * @define {number} Maximum allowed recursion depth for group and submessage + * decoding. + */ +// 100 is the normal protobuf limit. +const MAX_RECURSION_DEPTH = + goog.define('jspb.binary.MAX_RECURSION_DEPTH', (2 * 100)); + +/** + * Recursion depth counter for groups and submessages during synchronous binary deserialization. + * @type {number} + */ +let recursionDepth = 0; + + /** * Describes options for BinaryReaders. * @@ -180,6 +195,7 @@ class BinaryReader { * @private {!BinaryConstants.WireType} */ this.nextWireType_ = BinaryConstants.WireType.INVALID; + this.setOptions(options); } @@ -508,25 +524,57 @@ class BinaryReader { } + /** + * Increments the recursion depth counter and checks against the limit. + * Throws a SyntaxError if the recursion depth limit is exceeded. + */ + pushRecursion() { + if (recursionDepth >= MAX_RECURSION_DEPTH) { + throw errors.maxRecursionDepthExceededError(); + } + recursionDepth++; + } + + + /** + * Decrements the recursion depth counter. + */ + popRecursion() { + if (recursionDepth > 0) { + recursionDepth--; + } + } + + /** * Skips over the next group field in the binary stream. * @private */ skipGroup() { const previousField = this.nextField_; - do { - if (!this.nextField()) { - throw errors.unmatchedStartGroupEofError(); - } - if (this.nextWireType_ == BinaryConstants.WireType.END_GROUP) { - // Group end: check that it matches top-of-stack. - if (this.nextField_ != previousField) { - throw errors.unmatchedStartGroupError(); + this.pushRecursion(); + try { + do { + if (!this.nextField()) { + throw errors.unmatchedStartGroupEofError(); } - return; + if (this.nextWireType_ == BinaryConstants.WireType.END_GROUP) { + // Group end: check that it matches top-of-stack. + if (this.nextField_ != previousField) { + throw errors.unmatchedStartGroupError(); + } + return; + } + this.skipField(); + } while (true); + } catch (err) { + if (err instanceof RangeError) { + throw errors.maxRecursionDepthExceededError(); } - this.skipField(); - } while (true); + throw err; + } finally { + this.popRecursion(); + } } @@ -535,25 +583,32 @@ class BinaryReader { * decoding a message that contain unknown fields. */ skipField() { - switch (this.nextWireType_) { - case BinaryConstants.WireType.VARINT: - this.skipVarintField(); - break; - case BinaryConstants.WireType.FIXED64: - this.skipFixed64Field(); - break; - case BinaryConstants.WireType.DELIMITED: - this.skipDelimitedField(); - break; - case BinaryConstants.WireType.FIXED32: - this.skipFixed32Field(); - break; - case BinaryConstants.WireType.START_GROUP: - this.skipGroup(); - break; - default: - throw errors.invalidWireTypeError( - this.nextWireType_, this.fieldCursor_); + try { + switch (this.nextWireType_) { + case BinaryConstants.WireType.VARINT: + this.skipVarintField(); + break; + case BinaryConstants.WireType.FIXED64: + this.skipFixed64Field(); + break; + case BinaryConstants.WireType.DELIMITED: + this.skipDelimitedField(); + break; + case BinaryConstants.WireType.FIXED32: + this.skipFixed32Field(); + break; + case BinaryConstants.WireType.START_GROUP: + this.skipGroup(); + break; + default: + throw errors.invalidWireTypeError( + this.nextWireType_, this.fieldCursor_); + } + } catch (err) { + if (err instanceof RangeError) { + throw errors.maxRecursionDepthExceededError(); + } + throw err; } } @@ -684,7 +739,17 @@ class BinaryReader { this.decoder_.setEnd(newEnd); // Deserialize the embedded message. - reader(message, this, contextA, contextB, contextC); + this.pushRecursion(); + try { + reader(message, this, contextA, contextB, contextC); + } catch (err) { + if (err instanceof RangeError) { + throw errors.maxRecursionDepthExceededError(); + } + throw err; + } finally { + this.popRecursion(); + } underflowLength = newEnd - this.decoder_.getCursor(); } @@ -715,7 +780,17 @@ class BinaryReader { // Deserialize the message. The deserialization will stop at an END_GROUP // tag. - reader(message, this); + this.pushRecursion(); + try { + reader(message, this); + } catch (err) { + if (err instanceof RangeError) { + throw errors.maxRecursionDepthExceededError(); + } + throw err; + } finally { + this.popRecursion(); + } if (this.nextWireType_ !== BinaryConstants.WireType.END_GROUP) { // This case should be impossible assuming we trust all the reader @@ -757,48 +832,65 @@ class BinaryReader { let typeId = 0; // The offset to the message payload, or -1 if consumed. let messageCursor = 0; - while (this.nextField() && !this.isEndGroup()) { - // See go/malformed-message-set-parsing If malformed messages repeat the - // typeId or message fields, only use the first value of either within - // the group. - if (this.getTag() === MESSAGE_SET_TYPE_ID_TAG && !typeId) { - typeId = this.readUint32(); - if (messageCursor) { - asserts.assert(messageCursor > 0); - // Backup the parsing to the message payload. - // No need to restore the position, we'll simply reread the type id - // again, but skip doing anything because its already been read once. - - // Reset these. Because we are going to modify the cursor we need to - // skip the consistency checks in nextField() and pretend like this is - // a fresh BinaryReader instance. - if (asserts.ENABLE_ASSERTS) { - this.nextTag_ = BinaryConstants.INVALID_TAG; - this.nextWireType_ = BinaryConstants.WireType.INVALID; + this.pushRecursion(); + try { + while (this.nextField() && !this.isEndGroup()) { + try { + // See go/malformed-message-set-parsing If malformed messages repeat the + // typeId or message fields, only use the first value of either within + // the group. + if (this.getTag() === MESSAGE_SET_TYPE_ID_TAG && !typeId) { + typeId = this.readUint32(); + if (messageCursor) { + asserts.assert(messageCursor > 0); + // Backup the parsing to the message payload. + // No need to restore the position, we'll simply reread the type id + // again, but skip doing anything because its already been read once. + + // Reset these. Because we are going to modify the cursor we need to + // skip the consistency checks in nextField() and pretend like this is + // a fresh BinaryReader instance. + if (asserts.ENABLE_ASSERTS) { + this.nextTag_ = BinaryConstants.INVALID_TAG; + this.nextWireType_ = BinaryConstants.WireType.INVALID; + } + + // Reset our cursor to where the message was, and pretend like we had + // not seen the message payload yet. + this.decoder_.setCursor(messageCursor); + messageCursor = 0; + } + } else if (this.getTag() === MESSAGE_SET_MESSAGE_TAG && !messageCursor) { + if (typeId) { + messageCursor = -1; + this.readMessage(typeId, readerCallback); + } else { + // Save the cursor to read the message + // after we have the type ID. + messageCursor = this.getFieldCursor(); + this.skipDelimitedField(); + } + } else { + // Either we have already read the payload or this is not a valid + // messageset member. As a practical matter we don't have a place to + // store this unknown field and simply skipping is consistent with the + // Java and C++ impls + this.skipField(); } - - // Reset our cursor to where the message was, and pretend like we had - // not seen the message payload yet. - this.decoder_.setCursor(messageCursor); - messageCursor = 0; - } - } else if (this.getTag() === MESSAGE_SET_MESSAGE_TAG && !messageCursor) { - if (typeId) { - messageCursor = -1; - this.readMessage(typeId, readerCallback); - } else { - // Save the cursor to read the message - // after we have the type ID. - messageCursor = this.getFieldCursor(); - this.skipDelimitedField(); + } catch (err) { + if (err instanceof RangeError) { + throw errors.maxRecursionDepthExceededError(); + } + throw err; } - } else { - // Either we have already read the payload or this is not a valid - // messageset member. As a practical matter we don't have a place to - // store this unknown field and simply skipping is consistent with the - // Java and C++ impls - this.skipField(); } + } catch (err) { + if (err instanceof RangeError) { + throw errors.maxRecursionDepthExceededError(); + } + throw err; + } finally { + this.popRecursion(); } // If we do not have an end tag, if we did not have a message, or if we @@ -1545,5 +1637,6 @@ const /** number */ MESSAGE_SET_END_TAG = utils.makeTag( exports = { BinaryReader, BinaryReaderOptions, + MAX_RECURSION_DEPTH, UTF8_PARSING_ERRORS_ARE_FATAL, }; diff --git a/binary/reader_test.js b/binary/reader_test.js index 5df6235..de2331f 100755 --- a/binary/reader_test.js +++ b/binary/reader_test.js @@ -1117,4 +1117,111 @@ describe('binaryReaderTest', () => { expect(() => reader.nextField()) .toThrowError('Invalid wire type: 6 (at position 0)'); }); + + it('testRecursionLimitExceededThrowsSyntaxError', () => { + const writer = new BinaryWriter(); + function writeNestedGroups(w, d) { + if (d <= 0) return; + w.writeGroup(1, {}, () => { + writeNestedGroups(w, d - 1); + }); + } + writeNestedGroups(writer, 201); + + const reader = BinaryReader.alloc(writer.getResultBuffer()); + expect(reader.nextField()).toBe(true); + expect(() => { + reader.skipGroup(); + }).toThrowError(SyntaxError, 'Maximum protobuf recursion depth exceeded'); + reader.free(); + }); + + it('testRecursionWithinLimitSuccess', () => { + const writer = new BinaryWriter(); + function writeNestedGroups(w, d) { + if (d <= 0) return; + w.writeGroup(1, {}, () => { + writeNestedGroups(w, d - 1); + }); + } + writeNestedGroups(writer, 200); + + const reader = BinaryReader.alloc(writer.getResultBuffer()); + expect(reader.nextField()).toBe(true); + expect(() => { + reader.skipGroup(); + }).not.toThrow(); + reader.free(); + }); + + it('testRecursionSurvivesMalformedLopsidedMessage', () => { + function writeNestedGroups(w, d) { + if (d <= 0) return; + w.writeGroup(1, {}, () => { + writeNestedGroups(w, d - 1); + }); + } + + // 1. First reader encounters a truncated (lopsided/malformed) group message that throws. + const malformedWriter = new BinaryWriter(); + malformedWriter.writeGroup(1, {}, (msg, writer) => { + writer.writeGroup(2, {}, (msg2, w2) => { + w2.writeString(1, 'truncated'); + }); + }); + const malformedBytes = sliceUint8Array(malformedWriter.getResultBuffer(), 0, -2); + const malformedReader = BinaryReader.alloc(malformedBytes); + expect(malformedReader.nextField()).toBe(true); + expect(() => { + malformedReader.skipGroup(); + }).toThrowError(); + malformedReader.free(); + + // 2. Second reader parses exactly 200 nested groups. If the shared recursionDepth counter + // was not properly unwound/zeroed after the malformed message above, this will fail. + const validWriter = new BinaryWriter(); + writeNestedGroups(validWriter, 200); + const validReader = BinaryReader.alloc(validWriter.getResultBuffer()); + expect(validReader.nextField()).toBe(true); + expect(() => { + validReader.skipGroup(); + }).not.toThrow(); + validReader.free(); + }); + + it('throws SyntaxError when readMessage encounters RangeError (e.g. stack overflow)', () => { + const encoder = new BinaryEncoder(); + encoder.writeUnsignedVarint32((1 << 3) + BinaryConstants.WireType.DELIMITED); + encoder.writeUnsignedVarint32(0); // length 0 message + const reader = BinaryReader.alloc(encoder.end()); + reader.nextField(); + const dummyMessage = {}; + expect(() => reader.readMessage(dummyMessage, () => { + throw new RangeError('Maximum call stack size exceeded'); + })).toThrowError(SyntaxError, 'Maximum protobuf recursion depth exceeded'); + }); + + it('throws SyntaxError when nesting depth limit is exceeded in readMessage', () => { + const writer = new BinaryWriter(); + function writeNestedMessages(w, d) { + if (d <= 0) return; + w.writeMessage(1, {}, () => { + writeNestedMessages(w, d - 1); + }); + } + writeNestedMessages(writer, 201); + + const reader = BinaryReader.alloc(writer.getResultBuffer()); + const dummyMessage = {}; + const recursiveReader = (msg, r) => { + while (r.nextField()) { + r.readMessage(msg, recursiveReader); + } + }; + expect(() => recursiveReader(dummyMessage, reader)) + .toThrowError(SyntaxError, 'Maximum protobuf recursion depth exceeded'); + reader.free(); + }); }); + + diff --git a/conformance/package.json b/conformance/package.json index d232a67..d72e2c3 100644 --- a/conformance/package.json +++ b/conformance/package.json @@ -11,7 +11,7 @@ "LICENSE.md" ], "dependencies": { - "google-protobuf": "file:../google-protobuf-4.0.2.tgz" + "google-protobuf": "file:../google-protobuf-4.0.3.tgz" }, "author": "Google Protocol Buffers Team", "license": "BSD-3-Clause" diff --git a/package-lock.json b/package-lock.json index c939647..f6a9358 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,15 +1,16 @@ { "name": "google-protobuf", - "version": "4.0.2", + "version": "4.0.3", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "google-protobuf", - "version": "4.0.2", + "version": "4.0.3", "license": "(BSD-3-Clause AND Apache-2.0)", "devDependencies": { "glob": "~7.1.4", + "google-artifactregistry-auth": "^3.5.0", "google-closure-compiler": "20230802.0.0", "google-closure-deps": "20230802.0.0", "google-closure-library": "20230802.0.0", @@ -38,6 +39,16 @@ "node": ">=10.13.0" } }, + "node_modules/agent-base": { + "version": "7.1.4", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.4.tgz", + "integrity": "sha512-MnA+YT8fwfJPgBx3m60MNqakm30XOkyIoH1y6huTQvC0PwZG7ki8NacLBcrPbNoo8vEZy7Jpuk7+jMO+CUovTQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 14" + } + }, "node_modules/ansi-regex": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", @@ -76,6 +87,13 @@ "node": ">= 8" } }, + "node_modules/argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", + "dev": true, + "license": "Python-2.0" + }, "node_modules/array-each": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/array-each/-/array-each-1.0.1.tgz", @@ -173,6 +191,16 @@ } ] }, + "node_modules/bignumber.js": { + "version": "9.3.1", + "resolved": "https://registry.npmjs.org/bignumber.js/-/bignumber.js-9.3.1.tgz", + "integrity": "sha512-Ko0uX15oIUS7wJ3Rb30Fs6SkVbLmPBAKdlm7q9+ak9bbIeFf0MwuBsQV6z7+X768/cHsfg+WlysDWJcmthjsjQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": "*" + } + }, "node_modules/binary-extensions": { "version": "2.3.0", "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.3.0.tgz", @@ -256,6 +284,13 @@ "ieee754": "^1.2.1" } }, + "node_modules/buffer-equal-constant-time": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/buffer-equal-constant-time/-/buffer-equal-constant-time-1.0.1.tgz", + "integrity": "sha512-zRpUiDwd/xk6ADqPMATG8vc9VPrkck7T07OIx0gnjmJAnHnTVXNQG3vfvWNuiZIkwu9KrKdA1iJKfsfTVxE6NA==", + "dev": true, + "license": "BSD-3-Clause" + }, "node_modules/chalk": { "version": "4.1.2", "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", @@ -394,6 +429,24 @@ "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==", "dev": true }, + "node_modules/debug": { + "version": "4.4.3", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz", + "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==", + "dev": true, + "license": "MIT", + "dependencies": { + "ms": "^2.1.3" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, "node_modules/detect-file": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/detect-file/-/detect-file-1.0.0.tgz", @@ -416,6 +469,16 @@ "node": ">= 10.13.0" } }, + "node_modules/ecdsa-sig-formatter": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/ecdsa-sig-formatter/-/ecdsa-sig-formatter-1.0.11.tgz", + "integrity": "sha512-nagl3RYrbNv6kQkeJIpt6NJZy8twLB/2vtz6yN9Z4vRKHN4/QZJIEbqohALSgwKdnksuY3k5Addp5lg8sVoVcQ==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "safe-buffer": "^5.0.1" + } + }, "node_modules/emoji-regex": { "version": "8.0.0", "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", @@ -606,6 +669,38 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/gaxios": { + "version": "6.7.1", + "resolved": "https://registry.npmjs.org/gaxios/-/gaxios-6.7.1.tgz", + "integrity": "sha512-LDODD4TMYx7XXdpwxAVRAIAuB0bzv0s+ywFonY46k126qzQHT9ygyoa9tncmOiQmmDrik65UYsEkv3lbfqQ3yQ==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "extend": "^3.0.2", + "https-proxy-agent": "^7.0.1", + "is-stream": "^2.0.0", + "node-fetch": "^2.6.9", + "uuid": "^9.0.1" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/gcp-metadata": { + "version": "6.1.1", + "resolved": "https://registry.npmjs.org/gcp-metadata/-/gcp-metadata-6.1.1.tgz", + "integrity": "sha512-a4tiq7E0/5fTjxPAaH4jpjkSv/uCaU2p5KC6HVGrvl0cDjA8iBZv4vv1gyzlmK0ZUKqwpOyQMKzZQe3lTit77A==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "gaxios": "^6.1.1", + "google-logging-utils": "^0.0.2", + "json-bigint": "^1.0.0" + }, + "engines": { + "node": ">=14" + } + }, "node_modules/get-caller-file": { "version": "2.0.5", "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", @@ -733,6 +828,83 @@ "node": ">= 10.13.0" } }, + "node_modules/google-artifactregistry-auth": { + "version": "3.5.0", + "resolved": "https://registry.npmjs.org/google-artifactregistry-auth/-/google-artifactregistry-auth-3.5.0.tgz", + "integrity": "sha512-SIvVBPjVr0KvYFEJEZXKfELt8nvXwTKl6IHyOT7pTHBlS8Ej2UuTOJeKWYFim/JztSjUyna9pKQxa3VhTA12Fg==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "google-auth-library": "^9.14.0", + "js-yaml": "^4.1.0", + "yargs": "^17.1.1" + }, + "bin": { + "artifactregistry-auth": "src/main.js" + } + }, + "node_modules/google-artifactregistry-auth/node_modules/cliui": { + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", + "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", + "dev": true, + "license": "ISC", + "dependencies": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.1", + "wrap-ansi": "^7.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/google-artifactregistry-auth/node_modules/yargs": { + "version": "17.7.3", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.3.tgz", + "integrity": "sha512-GZtjxm/J/4TSxuL3FNYjCmLktBTnIw/rVmKSIyKeYAZpmJB2ig9VauCC5xsa82GNKVKDAqpOn3KVzNt0zmrU0g==", + "dev": true, + "license": "MIT", + "dependencies": { + "cliui": "^8.0.1", + "escalade": "^3.1.1", + "get-caller-file": "^2.0.5", + "require-directory": "^2.1.1", + "string-width": "^4.2.3", + "y18n": "^5.0.5", + "yargs-parser": "^21.1.1" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/google-artifactregistry-auth/node_modules/yargs-parser": { + "version": "21.1.1", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", + "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", + "dev": true, + "license": "ISC", + "engines": { + "node": ">=12" + } + }, + "node_modules/google-auth-library": { + "version": "9.15.1", + "resolved": "https://registry.npmjs.org/google-auth-library/-/google-auth-library-9.15.1.tgz", + "integrity": "sha512-Jb6Z0+nvECVz+2lzSMt9u98UsoakXxA2HGHMCxh+so3n90XgYWkq5dur19JAJV7ONiJY22yBTyJB1TSkvPq9Ng==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "base64-js": "^1.3.0", + "ecdsa-sig-formatter": "^1.0.11", + "gaxios": "^6.1.1", + "gcp-metadata": "^6.1.0", + "gtoken": "^7.0.0", + "jws": "^4.0.0" + }, + "engines": { + "node": ">=14" + } + }, "node_modules/google-closure-compiler": { "version": "20230802.0.0", "resolved": "https://registry.npmjs.org/google-closure-compiler/-/google-closure-compiler-20230802.0.0.tgz", @@ -833,12 +1005,36 @@ "dev": true, "license": "Apache-2.0" }, + "node_modules/google-logging-utils": { + "version": "0.0.2", + "resolved": "https://registry.npmjs.org/google-logging-utils/-/google-logging-utils-0.0.2.tgz", + "integrity": "sha512-NEgUnEcBiP5HrPzufUkBzJOD/Sxsco3rLNo1F1TNf7ieU8ryUzBhqba8r756CjLX7rn3fHl6iLEwPYuqpoKgQQ==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=14" + } + }, "node_modules/graceful-fs": { "version": "4.2.11", "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", "dev": true }, + "node_modules/gtoken": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/gtoken/-/gtoken-7.1.0.tgz", + "integrity": "sha512-pCcEwRi+TKpMlxAQObHDQ56KawURgyAf6jtIY046fJ5tIv3zDe/LEIubckAO8fj6JnAxLdmWkUfNyulQ2iKdEw==", + "dev": true, + "license": "MIT", + "dependencies": { + "gaxios": "^6.0.0", + "jws": "^4.0.0" + }, + "engines": { + "node": ">=14.0.0" + } + }, "node_modules/gulp": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/gulp/-/gulp-5.0.0.tgz", @@ -929,6 +1125,20 @@ "node": ">=0.10.0" } }, + "node_modules/https-proxy-agent": { + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.6.tgz", + "integrity": "sha512-vK9P5/iUfdl95AI+JVyUuIcVtd4ofvtrOr3HNtM2yxC9bnMbEdp3x01OhQNnjb8IJYi38VlTE3mBXwcfvywuSw==", + "dev": true, + "license": "MIT", + "dependencies": { + "agent-base": "^7.1.2", + "debug": "4" + }, + "engines": { + "node": ">= 14" + } + }, "node_modules/iconv-lite": { "version": "0.6.3", "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz", @@ -1098,6 +1308,19 @@ "node": ">=0.10.0" } }, + "node_modules/is-stream": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", + "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/is-unc-path": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/is-unc-path/-/is-unc-path-1.0.0.tgz", @@ -1168,6 +1391,62 @@ "integrity": "sha512-nCeAiw37MIMA9w9IXso7bRaLl+c/ef3wnxsoSAlYrzS+Ot0zTG6nU8G/cIfGkqpkjX2wNaIW9RFG0TwIFnG6bA==", "dev": true }, + "node_modules/js-yaml": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.3.0.tgz", + "integrity": "sha512-1td788aAnnZ5qs7V2QIRl1owjtYpbKt749Y3xauqQgwIIGF/xXWz1wMTEBx5O3LK3lXLVuqXPdPxj2BoFHaW9Q==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/puzrin" + }, + { + "type": "github", + "url": "https://github.com/sponsors/nodeca" + } + ], + "license": "MIT", + "dependencies": { + "argparse": "^2.0.1" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/json-bigint": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-bigint/-/json-bigint-1.0.0.tgz", + "integrity": "sha512-SiPv/8VpZuWbvLSMtTDU8hEfrZWg/mH/nV/b4o0CYbSxu1UIQPLdwKOCIyLQX+VIPO5vrLX3i8qtqFyhdPSUSQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "bignumber.js": "^9.0.0" + } + }, + "node_modules/jwa": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/jwa/-/jwa-2.0.1.tgz", + "integrity": "sha512-hRF04fqJIP8Abbkq5NKGN0Bbr3JxlQ+qhZufXVr0DvujKy93ZCbXZMHDL4EOtodSbCWxOqR8MS1tXA5hwqCXDg==", + "dev": true, + "license": "MIT", + "dependencies": { + "buffer-equal-constant-time": "^1.0.1", + "ecdsa-sig-formatter": "1.0.11", + "safe-buffer": "^5.0.1" + } + }, + "node_modules/jws": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/jws/-/jws-4.0.1.tgz", + "integrity": "sha512-EKI/M/yqPncGUUh44xz0PxSidXFr/+r0pA70+gIYhjv+et7yxM+s29Y+VGDkovRofQem0fs7Uvf4+YmAdyRduA==", + "dev": true, + "license": "MIT", + "dependencies": { + "jwa": "^2.0.1", + "safe-buffer": "^5.0.1" + } + }, "node_modules/last-run": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/last-run/-/last-run-2.0.0.tgz", @@ -1244,6 +1523,13 @@ "integrity": "sha512-Jsjnk4bw3YJqYzbdyBiNsPWHPfO++UGG749Cxs6peCu5Xg4nrena6OVxOYxrQTqww0Jmwt+Ref8rggumkTLz9Q==", "dev": true }, + "node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "dev": true, + "license": "MIT" + }, "node_modules/mute-stdout": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/mute-stdout/-/mute-stdout-2.0.0.tgz", @@ -1253,6 +1539,27 @@ "node": ">= 10.13.0" } }, + "node_modules/node-fetch": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz", + "integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==", + "dev": true, + "license": "MIT", + "dependencies": { + "whatwg-url": "^5.0.0" + }, + "engines": { + "node": "4.x || >=6.0.0" + }, + "peerDependencies": { + "encoding": "^0.1.0" + }, + "peerDependenciesMeta": { + "encoding": { + "optional": true + } + } + }, "node_modules/normalize-path": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", @@ -1709,6 +2016,13 @@ "node": ">=10.13.0" } }, + "node_modules/tr46": { + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", + "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==", + "dev": true, + "license": "MIT" + }, "node_modules/unc-path-regex": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/unc-path-regex/-/unc-path-regex-0.1.2.tgz", @@ -1748,6 +2062,21 @@ "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", "dev": true }, + "node_modules/uuid": { + "version": "9.0.1", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-9.0.1.tgz", + "integrity": "sha512-b+1eJOlsR9K8HJpow9Ok3fiWOWSIcIzXodvv0rQjVoOVNpWMpxf1wZNpt4y9h10odCNrqnYp1OBzRktckBe3sA==", + "deprecated": "uuid@10 and below is no longer supported. For ESM codebases, update to uuid@latest. For CommonJS codebases, use uuid@11 (but be aware this version will likely be deprecated in 2028).", + "dev": true, + "funding": [ + "https://github.com/sponsors/broofa", + "https://github.com/sponsors/ctavan" + ], + "license": "MIT", + "bin": { + "uuid": "dist/bin/uuid" + } + }, "node_modules/v8flags": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/v8flags/-/v8flags-4.0.1.tgz", @@ -1922,6 +2251,24 @@ "source-map": "^0.5.1" } }, + "node_modules/webidl-conversions": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", + "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==", + "dev": true, + "license": "BSD-2-Clause" + }, + "node_modules/whatwg-url": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", + "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==", + "dev": true, + "license": "MIT", + "dependencies": { + "tr46": "~0.0.3", + "webidl-conversions": "^3.0.0" + } + }, "node_modules/which": { "version": "1.3.1", "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", @@ -2010,6 +2357,12 @@ "is-negated-glob": "^1.0.0" } }, + "agent-base": { + "version": "7.1.4", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.4.tgz", + "integrity": "sha512-MnA+YT8fwfJPgBx3m60MNqakm30XOkyIoH1y6huTQvC0PwZG7ki8NacLBcrPbNoo8vEZy7Jpuk7+jMO+CUovTQ==", + "dev": true + }, "ansi-regex": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", @@ -2035,6 +2388,12 @@ "picomatch": "^2.0.4" } }, + "argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", + "dev": true + }, "array-each": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/array-each/-/array-each-1.0.1.tgz", @@ -2103,6 +2462,12 @@ "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==", "dev": true }, + "bignumber.js": { + "version": "9.3.1", + "resolved": "https://registry.npmjs.org/bignumber.js/-/bignumber.js-9.3.1.tgz", + "integrity": "sha512-Ko0uX15oIUS7wJ3Rb30Fs6SkVbLmPBAKdlm7q9+ak9bbIeFf0MwuBsQV6z7+X768/cHsfg+WlysDWJcmthjsjQ==", + "dev": true + }, "binary-extensions": { "version": "2.3.0", "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.3.0.tgz", @@ -2162,6 +2527,12 @@ "ieee754": "^1.2.1" } }, + "buffer-equal-constant-time": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/buffer-equal-constant-time/-/buffer-equal-constant-time-1.0.1.tgz", + "integrity": "sha512-zRpUiDwd/xk6ADqPMATG8vc9VPrkck7T07OIx0gnjmJAnHnTVXNQG3vfvWNuiZIkwu9KrKdA1iJKfsfTVxE6NA==", + "dev": true + }, "chalk": { "version": "4.1.2", "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", @@ -2271,6 +2642,15 @@ "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==", "dev": true }, + "debug": { + "version": "4.4.3", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz", + "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==", + "dev": true, + "requires": { + "ms": "^2.1.3" + } + }, "detect-file": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/detect-file/-/detect-file-1.0.0.tgz", @@ -2287,6 +2667,15 @@ "object.defaults": "^1.1.0" } }, + "ecdsa-sig-formatter": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/ecdsa-sig-formatter/-/ecdsa-sig-formatter-1.0.11.tgz", + "integrity": "sha512-nagl3RYrbNv6kQkeJIpt6NJZy8twLB/2vtz6yN9Z4vRKHN4/QZJIEbqohALSgwKdnksuY3k5Addp5lg8sVoVcQ==", + "dev": true, + "requires": { + "safe-buffer": "^5.0.1" + } + }, "emoji-regex": { "version": "8.0.0", "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", @@ -2437,6 +2826,30 @@ "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", "dev": true }, + "gaxios": { + "version": "6.7.1", + "resolved": "https://registry.npmjs.org/gaxios/-/gaxios-6.7.1.tgz", + "integrity": "sha512-LDODD4TMYx7XXdpwxAVRAIAuB0bzv0s+ywFonY46k126qzQHT9ygyoa9tncmOiQmmDrik65UYsEkv3lbfqQ3yQ==", + "dev": true, + "requires": { + "extend": "^3.0.2", + "https-proxy-agent": "^7.0.1", + "is-stream": "^2.0.0", + "node-fetch": "^2.6.9", + "uuid": "^9.0.1" + } + }, + "gcp-metadata": { + "version": "6.1.1", + "resolved": "https://registry.npmjs.org/gcp-metadata/-/gcp-metadata-6.1.1.tgz", + "integrity": "sha512-a4tiq7E0/5fTjxPAaH4jpjkSv/uCaU2p5KC6HVGrvl0cDjA8iBZv4vv1gyzlmK0ZUKqwpOyQMKzZQe3lTit77A==", + "dev": true, + "requires": { + "gaxios": "^6.1.1", + "google-logging-utils": "^0.0.2", + "json-bigint": "^1.0.0" + } + }, "get-caller-file": { "version": "2.0.5", "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", @@ -2536,6 +2949,65 @@ "sparkles": "^2.1.0" } }, + "google-artifactregistry-auth": { + "version": "3.5.0", + "resolved": "https://registry.npmjs.org/google-artifactregistry-auth/-/google-artifactregistry-auth-3.5.0.tgz", + "integrity": "sha512-SIvVBPjVr0KvYFEJEZXKfELt8nvXwTKl6IHyOT7pTHBlS8Ej2UuTOJeKWYFim/JztSjUyna9pKQxa3VhTA12Fg==", + "dev": true, + "requires": { + "google-auth-library": "^9.14.0", + "js-yaml": "^4.1.0", + "yargs": "^17.1.1" + }, + "dependencies": { + "cliui": { + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", + "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", + "dev": true, + "requires": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.1", + "wrap-ansi": "^7.0.0" + } + }, + "yargs": { + "version": "17.7.3", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.3.tgz", + "integrity": "sha512-GZtjxm/J/4TSxuL3FNYjCmLktBTnIw/rVmKSIyKeYAZpmJB2ig9VauCC5xsa82GNKVKDAqpOn3KVzNt0zmrU0g==", + "dev": true, + "requires": { + "cliui": "^8.0.1", + "escalade": "^3.1.1", + "get-caller-file": "^2.0.5", + "require-directory": "^2.1.1", + "string-width": "^4.2.3", + "y18n": "^5.0.5", + "yargs-parser": "^21.1.1" + } + }, + "yargs-parser": { + "version": "21.1.1", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", + "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", + "dev": true + } + } + }, + "google-auth-library": { + "version": "9.15.1", + "resolved": "https://registry.npmjs.org/google-auth-library/-/google-auth-library-9.15.1.tgz", + "integrity": "sha512-Jb6Z0+nvECVz+2lzSMt9u98UsoakXxA2HGHMCxh+so3n90XgYWkq5dur19JAJV7ONiJY22yBTyJB1TSkvPq9Ng==", + "dev": true, + "requires": { + "base64-js": "^1.3.0", + "ecdsa-sig-formatter": "^1.0.11", + "gaxios": "^6.1.1", + "gcp-metadata": "^6.1.0", + "gtoken": "^7.0.0", + "jws": "^4.0.0" + } + }, "google-closure-compiler": { "version": "20230802.0.0", "resolved": "https://registry.npmjs.org/google-closure-compiler/-/google-closure-compiler-20230802.0.0.tgz", @@ -2595,12 +3067,28 @@ "integrity": "sha512-h2lBEX2tjWwfR+dhFukGER15vKY+4cA3nRqwKSOsBdyizlOxTAHOWbEYiGnMoom3/SrVeQ5uG0eKsbxQ3wbsxA==", "dev": true }, + "google-logging-utils": { + "version": "0.0.2", + "resolved": "https://registry.npmjs.org/google-logging-utils/-/google-logging-utils-0.0.2.tgz", + "integrity": "sha512-NEgUnEcBiP5HrPzufUkBzJOD/Sxsco3rLNo1F1TNf7ieU8ryUzBhqba8r756CjLX7rn3fHl6iLEwPYuqpoKgQQ==", + "dev": true + }, "graceful-fs": { "version": "4.2.11", "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", "dev": true }, + "gtoken": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/gtoken/-/gtoken-7.1.0.tgz", + "integrity": "sha512-pCcEwRi+TKpMlxAQObHDQ56KawURgyAf6jtIY046fJ5tIv3zDe/LEIubckAO8fj6JnAxLdmWkUfNyulQ2iKdEw==", + "dev": true, + "requires": { + "gaxios": "^6.0.0", + "jws": "^4.0.0" + } + }, "gulp": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/gulp/-/gulp-5.0.0.tgz", @@ -2666,6 +3154,16 @@ "parse-passwd": "^1.0.0" } }, + "https-proxy-agent": { + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.6.tgz", + "integrity": "sha512-vK9P5/iUfdl95AI+JVyUuIcVtd4ofvtrOr3HNtM2yxC9bnMbEdp3x01OhQNnjb8IJYi38VlTE3mBXwcfvywuSw==", + "dev": true, + "requires": { + "agent-base": "^7.1.2", + "debug": "4" + } + }, "iconv-lite": { "version": "0.6.3", "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz", @@ -2785,6 +3283,12 @@ "is-unc-path": "^1.0.0" } }, + "is-stream": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", + "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==", + "dev": true + }, "is-unc-path": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/is-unc-path/-/is-unc-path-1.0.0.tgz", @@ -2840,6 +3344,45 @@ "integrity": "sha512-nCeAiw37MIMA9w9IXso7bRaLl+c/ef3wnxsoSAlYrzS+Ot0zTG6nU8G/cIfGkqpkjX2wNaIW9RFG0TwIFnG6bA==", "dev": true }, + "js-yaml": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.3.0.tgz", + "integrity": "sha512-1td788aAnnZ5qs7V2QIRl1owjtYpbKt749Y3xauqQgwIIGF/xXWz1wMTEBx5O3LK3lXLVuqXPdPxj2BoFHaW9Q==", + "dev": true, + "requires": { + "argparse": "^2.0.1" + } + }, + "json-bigint": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-bigint/-/json-bigint-1.0.0.tgz", + "integrity": "sha512-SiPv/8VpZuWbvLSMtTDU8hEfrZWg/mH/nV/b4o0CYbSxu1UIQPLdwKOCIyLQX+VIPO5vrLX3i8qtqFyhdPSUSQ==", + "dev": true, + "requires": { + "bignumber.js": "^9.0.0" + } + }, + "jwa": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/jwa/-/jwa-2.0.1.tgz", + "integrity": "sha512-hRF04fqJIP8Abbkq5NKGN0Bbr3JxlQ+qhZufXVr0DvujKy93ZCbXZMHDL4EOtodSbCWxOqR8MS1tXA5hwqCXDg==", + "dev": true, + "requires": { + "buffer-equal-constant-time": "^1.0.1", + "ecdsa-sig-formatter": "1.0.11", + "safe-buffer": "^5.0.1" + } + }, + "jws": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/jws/-/jws-4.0.1.tgz", + "integrity": "sha512-EKI/M/yqPncGUUh44xz0PxSidXFr/+r0pA70+gIYhjv+et7yxM+s29Y+VGDkovRofQem0fs7Uvf4+YmAdyRduA==", + "dev": true, + "requires": { + "jwa": "^2.0.1", + "safe-buffer": "^5.0.1" + } + }, "last-run": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/last-run/-/last-run-2.0.0.tgz", @@ -2898,12 +3441,27 @@ "integrity": "sha512-Jsjnk4bw3YJqYzbdyBiNsPWHPfO++UGG749Cxs6peCu5Xg4nrena6OVxOYxrQTqww0Jmwt+Ref8rggumkTLz9Q==", "dev": true }, + "ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "dev": true + }, "mute-stdout": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/mute-stdout/-/mute-stdout-2.0.0.tgz", "integrity": "sha512-32GSKM3Wyc8dg/p39lWPKYu8zci9mJFzV1Np9Of0ZEpe6Fhssn/FbI7ywAMd40uX+p3ZKh3T5EeCFv81qS3HmQ==", "dev": true }, + "node-fetch": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz", + "integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==", + "dev": true, + "requires": { + "whatwg-url": "^5.0.0" + } + }, "normalize-path": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", @@ -3260,6 +3818,12 @@ "streamx": "^2.12.5" } }, + "tr46": { + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", + "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==", + "dev": true + }, "unc-path-regex": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/unc-path-regex/-/unc-path-regex-0.1.2.tgz", @@ -3290,6 +3854,12 @@ "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", "dev": true }, + "uuid": { + "version": "9.0.1", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-9.0.1.tgz", + "integrity": "sha512-b+1eJOlsR9K8HJpow9Ok3fiWOWSIcIzXodvv0rQjVoOVNpWMpxf1wZNpt4y9h10odCNrqnYp1OBzRktckBe3sA==", + "dev": true + }, "v8flags": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/v8flags/-/v8flags-4.0.1.tgz", @@ -3434,6 +4004,22 @@ "source-map": "^0.5.1" } }, + "webidl-conversions": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", + "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==", + "dev": true + }, + "whatwg-url": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", + "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==", + "dev": true, + "requires": { + "tr46": "~0.0.3", + "webidl-conversions": "^3.0.0" + } + }, "which": { "version": "1.3.1", "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", diff --git a/package.json b/package.json index 2dc3f9f..453ebe2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "google-protobuf", - "version": "4.0.2", + "version": "4.0.3", "description": "Protocol Buffers for JavaScript", "main": "google-protobuf.js", "files": [ @@ -14,6 +14,7 @@ ], "devDependencies": { "glob": "~7.1.4", + "google-artifactregistry-auth": "^3.5.0", "google-closure-compiler": "20230802.0.0", "google-closure-deps": "20230802.0.0", "google-closure-library": "20230802.0.0", diff --git a/protobuf_javascript_release.bzl b/protobuf_javascript_release.bzl index f152085..b72dfbf 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.2" +_PROTOBUF_JAVASCRIPT_VERSION = "4.0.3" def _package_naming_impl(ctx): values = {} diff --git a/protoc_plugin/package-lock.json b/protoc_plugin/package-lock.json index e963bad..f5a3c8c 100644 --- a/protoc_plugin/package-lock.json +++ b/protoc_plugin/package-lock.json @@ -1,12 +1,12 @@ { "name": "@protocolbuffers/protoc-gen-js", - "version": "4.0.2", + "version": "4.0.3", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@protocolbuffers/protoc-gen-js", - "version": "4.0.2", + "version": "4.0.3", "hasInstallScript": true, "license": "BSD-3-Clause", "dependencies": { diff --git a/protoc_plugin/package.json b/protoc_plugin/package.json index fa8acaa..1a5e865 100644 --- a/protoc_plugin/package.json +++ b/protoc_plugin/package.json @@ -1,6 +1,6 @@ { "name": "@protocolbuffers/protoc-gen-js", - "version": "4.0.2", + "version": "4.0.3", "description": "Official standalone distribution of the protoc-gen-js plugin for Protocol Buffers", "author": "Google Protocol Buffers Team", "license": "BSD-3-Clause", diff --git a/yarn.lock b/yarn.lock index 93cc2e9..f221352 100644 --- a/yarn.lock +++ b/yarn.lock @@ -14,6 +14,11 @@ dependencies: is-negated-glob "^1.0.0" +agent-base@^7.1.2: + version "7.1.4" + resolved "https://registry.npmjs.org/agent-base/-/agent-base-7.1.4.tgz" + integrity sha512-MnA+YT8fwfJPgBx3m60MNqakm30XOkyIoH1y6huTQvC0PwZG7ki8NacLBcrPbNoo8vEZy7Jpuk7+jMO+CUovTQ== + ansi-regex@^5.0.1: version "5.0.1" resolved "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz" @@ -34,6 +39,11 @@ anymatch@^3.1.3, anymatch@~3.1.2: normalize-path "^3.0.0" picomatch "^2.0.4" +argparse@^2.0.1: + version "2.0.1" + resolved "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz" + integrity sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q== + array-each@^1.0.1: version "1.0.1" resolved "https://registry.npmjs.org/array-each/-/array-each-1.0.1.tgz" @@ -84,11 +94,16 @@ bare-events@^2.2.0: resolved "https://registry.npmjs.org/bare-events/-/bare-events-2.4.2.tgz" integrity sha512-qMKFd2qG/36aA4GwvKq8MxnPgCQAmBWmSyLWsJcbn8v03wvIPQ/hG1Ms8bPzndZxMDoHpxez5VOS+gC9Yi24/Q== -base64-js@^1.3.1: +base64-js@^1.3.0, base64-js@^1.3.1: version "1.5.1" resolved "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz" integrity sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA== +bignumber.js@^9.0.0: + version "9.3.1" + resolved "https://registry.npmjs.org/bignumber.js/-/bignumber.js-9.3.1.tgz" + integrity sha512-Ko0uX15oIUS7wJ3Rb30Fs6SkVbLmPBAKdlm7q9+ak9bbIeFf0MwuBsQV6z7+X768/cHsfg+WlysDWJcmthjsjQ== + binary-extensions@^2.0.0: version "2.3.0" resolved "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.3.0.tgz" @@ -118,6 +133,11 @@ braces@^3.0.3, braces@~3.0.2: dependencies: fill-range "^7.1.1" +buffer-equal-constant-time@^1.0.1: + version "1.0.1" + resolved "https://registry.npmjs.org/buffer-equal-constant-time/-/buffer-equal-constant-time-1.0.1.tgz" + integrity sha512-zRpUiDwd/xk6ADqPMATG8vc9VPrkck7T07OIx0gnjmJAnHnTVXNQG3vfvWNuiZIkwu9KrKdA1iJKfsfTVxE6NA== + buffer@^6.0.3: version "6.0.3" resolved "https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz" @@ -126,7 +146,7 @@ buffer@^6.0.3: base64-js "^1.3.1" ieee754 "^1.2.1" -chalk@4.x, chalk@^4.1.2: +chalk@^4.1.2, chalk@4.x: version "4.1.2" resolved "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz" integrity sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA== @@ -158,6 +178,15 @@ cliui@^7.0.2: strip-ansi "^6.0.0" wrap-ansi "^7.0.0" +cliui@^8.0.1: + version "8.0.1" + resolved "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz" + integrity sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ== + dependencies: + string-width "^4.2.0" + strip-ansi "^6.0.1" + wrap-ansi "^7.0.0" + clone-buffer@^1.0.0: version "1.0.0" resolved "https://registry.npmjs.org/clone-buffer/-/clone-buffer-1.0.0.tgz" @@ -217,6 +246,13 @@ core-util-is@~1.0.0: resolved "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz" integrity sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ== +debug@4: + version "4.4.3" + resolved "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz" + integrity sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA== + dependencies: + ms "^2.1.3" + detect-file@^1.0.0: version "1.0.0" resolved "https://registry.npmjs.org/detect-file/-/detect-file-1.0.0.tgz" @@ -230,6 +266,13 @@ each-props@^3.0.0: is-plain-object "^5.0.0" object.defaults "^1.1.0" +ecdsa-sig-formatter@^1.0.11, ecdsa-sig-formatter@1.0.11: + version "1.0.11" + resolved "https://registry.npmjs.org/ecdsa-sig-formatter/-/ecdsa-sig-formatter-1.0.11.tgz" + integrity sha512-nagl3RYrbNv6kQkeJIpt6NJZy8twLB/2vtz6yN9Z4vRKHN4/QZJIEbqohALSgwKdnksuY3k5Addp5lg8sVoVcQ== + dependencies: + safe-buffer "^5.0.1" + emoji-regex@^8.0.0: version "8.0.0" resolved "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz" @@ -341,16 +384,31 @@ 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" integrity sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA== +gaxios@^6.0.0, gaxios@^6.1.1: + version "6.7.1" + resolved "https://registry.npmjs.org/gaxios/-/gaxios-6.7.1.tgz" + integrity sha512-LDODD4TMYx7XXdpwxAVRAIAuB0bzv0s+ywFonY46k126qzQHT9ygyoa9tncmOiQmmDrik65UYsEkv3lbfqQ3yQ== + dependencies: + extend "^3.0.2" + https-proxy-agent "^7.0.1" + is-stream "^2.0.0" + node-fetch "^2.6.9" + uuid "^9.0.1" + +gcp-metadata@^6.1.0: + version "6.1.1" + resolved "https://registry.npmjs.org/gcp-metadata/-/gcp-metadata-6.1.1.tgz" + integrity sha512-a4tiq7E0/5fTjxPAaH4jpjkSv/uCaU2p5KC6HVGrvl0cDjA8iBZv4vv1gyzlmK0ZUKqwpOyQMKzZQe3lTit77A== + dependencies: + gaxios "^6.1.1" + google-logging-utils "^0.0.2" + json-bigint "^1.0.0" + get-caller-file@^2.0.5: version "2.0.5" resolved "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz" @@ -431,6 +489,27 @@ glogg@^2.2.0: dependencies: sparkles "^2.1.0" +google-artifactregistry-auth@^3.5.0: + version "3.5.0" + resolved "https://registry.npmjs.org/google-artifactregistry-auth/-/google-artifactregistry-auth-3.5.0.tgz" + integrity sha512-SIvVBPjVr0KvYFEJEZXKfELt8nvXwTKl6IHyOT7pTHBlS8Ej2UuTOJeKWYFim/JztSjUyna9pKQxa3VhTA12Fg== + dependencies: + google-auth-library "^9.14.0" + js-yaml "^4.1.0" + yargs "^17.1.1" + +google-auth-library@^9.14.0: + version "9.15.1" + resolved "https://registry.npmjs.org/google-auth-library/-/google-auth-library-9.15.1.tgz" + integrity sha512-Jb6Z0+nvECVz+2lzSMt9u98UsoakXxA2HGHMCxh+so3n90XgYWkq5dur19JAJV7ONiJY22yBTyJB1TSkvPq9Ng== + dependencies: + base64-js "^1.3.0" + ecdsa-sig-formatter "^1.0.11" + gaxios "^6.1.1" + gcp-metadata "^6.1.0" + gtoken "^7.0.0" + jws "^4.0.0" + google-closure-compiler-java@^20230802.0.0: version "20230802.0.0" resolved "https://registry.npmjs.org/google-closure-compiler-java/-/google-closure-compiler-java-20230802.0.0.tgz" @@ -441,16 +520,6 @@ 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" @@ -479,11 +548,24 @@ google-closure-library@20230802.0.0: resolved "https://registry.npmjs.org/google-closure-library/-/google-closure-library-20230802.0.0.tgz" integrity sha512-h2lBEX2tjWwfR+dhFukGER15vKY+4cA3nRqwKSOsBdyizlOxTAHOWbEYiGnMoom3/SrVeQ5uG0eKsbxQ3wbsxA== +google-logging-utils@^0.0.2: + version "0.0.2" + resolved "https://registry.npmjs.org/google-logging-utils/-/google-logging-utils-0.0.2.tgz" + integrity sha512-NEgUnEcBiP5HrPzufUkBzJOD/Sxsco3rLNo1F1TNf7ieU8ryUzBhqba8r756CjLX7rn3fHl6iLEwPYuqpoKgQQ== + graceful-fs@^4.2.10, graceful-fs@^4.2.11, graceful-fs@^4.2.8: version "4.2.11" resolved "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz" integrity sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ== +gtoken@^7.0.0: + version "7.1.0" + resolved "https://registry.npmjs.org/gtoken/-/gtoken-7.1.0.tgz" + integrity sha512-pCcEwRi+TKpMlxAQObHDQ56KawURgyAf6jtIY046fJ5tIv3zDe/LEIubckAO8fj6JnAxLdmWkUfNyulQ2iKdEw== + dependencies: + gaxios "^6.0.0" + jws "^4.0.0" + gulp-cli@^3.0.0: version "3.0.0" resolved "https://registry.npmjs.org/gulp-cli/-/gulp-cli-3.0.0.tgz" @@ -538,6 +620,14 @@ homedir-polyfill@^1.0.1: dependencies: parse-passwd "^1.0.0" +https-proxy-agent@^7.0.1: + version "7.0.6" + resolved "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.6.tgz" + integrity sha512-vK9P5/iUfdl95AI+JVyUuIcVtd4ofvtrOr3HNtM2yxC9bnMbEdp3x01OhQNnjb8IJYi38VlTE3mBXwcfvywuSw== + dependencies: + agent-base "^7.1.2" + debug "4" + iconv-lite@^0.6.3: version "0.6.3" resolved "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz" @@ -558,7 +648,7 @@ inflight@^1.0.4: once "^1.3.0" wrappy "1" -inherits@2, inherits@^2.0.1, inherits@^2.0.3, inherits@^2.0.4, inherits@~2.0.3: +inherits@^2.0.1, inherits@^2.0.3, inherits@^2.0.4, inherits@~2.0.3, inherits@2: version "2.0.4" resolved "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz" integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ== @@ -634,6 +724,11 @@ is-relative@^1.0.0: dependencies: is-unc-path "^1.0.0" +is-stream@^2.0.0: + version "2.0.1" + resolved "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz" + integrity sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg== + is-unc-path@^1.0.0: version "1.0.0" resolved "https://registry.npmjs.org/is-unc-path/-/is-unc-path-1.0.0.tgz" @@ -679,6 +774,37 @@ jasmine@~3.5.0: glob "^7.1.4" jasmine-core "~3.5.0" +js-yaml@^4.1.0: + version "4.3.0" + resolved "https://registry.npmjs.org/js-yaml/-/js-yaml-4.3.0.tgz" + integrity sha512-1td788aAnnZ5qs7V2QIRl1owjtYpbKt749Y3xauqQgwIIGF/xXWz1wMTEBx5O3LK3lXLVuqXPdPxj2BoFHaW9Q== + dependencies: + argparse "^2.0.1" + +json-bigint@^1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/json-bigint/-/json-bigint-1.0.0.tgz" + integrity sha512-SiPv/8VpZuWbvLSMtTDU8hEfrZWg/mH/nV/b4o0CYbSxu1UIQPLdwKOCIyLQX+VIPO5vrLX3i8qtqFyhdPSUSQ== + dependencies: + bignumber.js "^9.0.0" + +jwa@^2.0.1: + version "2.0.1" + resolved "https://registry.npmjs.org/jwa/-/jwa-2.0.1.tgz" + integrity sha512-hRF04fqJIP8Abbkq5NKGN0Bbr3JxlQ+qhZufXVr0DvujKy93ZCbXZMHDL4EOtodSbCWxOqR8MS1tXA5hwqCXDg== + dependencies: + buffer-equal-constant-time "^1.0.1" + ecdsa-sig-formatter "1.0.11" + safe-buffer "^5.0.1" + +jws@^4.0.0: + version "4.0.1" + resolved "https://registry.npmjs.org/jws/-/jws-4.0.1.tgz" + integrity sha512-EKI/M/yqPncGUUh44xz0PxSidXFr/+r0pA70+gIYhjv+et7yxM+s29Y+VGDkovRofQem0fs7Uvf4+YmAdyRduA== + dependencies: + jwa "^2.0.1" + safe-buffer "^5.0.1" + last-run@^2.0.0: version "2.0.0" resolved "https://registry.npmjs.org/last-run/-/last-run-2.0.0.tgz" @@ -717,7 +843,7 @@ micromatch@^4.0.4: minimatch@^3.0.4: version "3.1.5" - resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.1.5.tgz#580c88f8d5445f2bd6aa8f3cadefa0de79fbd69e" + resolved "https://registry.npmjs.org/minimatch/-/minimatch-3.1.5.tgz" integrity sha512-VgjWUsnnT6n+NUk6eZq77zeFdpW2LWDzP6zFGrCbHXiYNul5Dzqk2HHQ5uFH2DNW5Xbp8+jVzaeNt94ssEEl4w== dependencies: brace-expansion "^1.1.7" @@ -727,12 +853,24 @@ minimist@1.x: resolved "https://registry.npmjs.org/minimist/-/minimist-1.2.6.tgz" integrity sha512-Jsjnk4bw3YJqYzbdyBiNsPWHPfO++UGG749Cxs6peCu5Xg4nrena6OVxOYxrQTqww0Jmwt+Ref8rggumkTLz9Q== +ms@^2.1.3: + version "2.1.3" + resolved "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz" + integrity sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA== + mute-stdout@^2.0.0: version "2.0.0" resolved "https://registry.npmjs.org/mute-stdout/-/mute-stdout-2.0.0.tgz" integrity sha512-32GSKM3Wyc8dg/p39lWPKYu8zci9mJFzV1Np9Of0ZEpe6Fhssn/FbI7ywAMd40uX+p3ZKh3T5EeCFv81qS3HmQ== -normalize-path@3.0.0, normalize-path@^3.0.0, normalize-path@~3.0.0: +node-fetch@^2.6.9: + version "2.7.0" + resolved "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz" + integrity sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A== + dependencies: + whatwg-url "^5.0.0" + +normalize-path@^3.0.0, normalize-path@~3.0.0, normalize-path@3.0.0: version "3.0.0" resolved "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz" integrity sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA== @@ -806,7 +944,7 @@ path-root@^0.1.1: picomatch@^2.0.4, picomatch@^2.2.1, picomatch@^2.3.1: version "2.3.2" - resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.3.2.tgz#5a942915e26b372dc0f0e6753149a16e6b1c5601" + resolved "https://registry.npmjs.org/picomatch/-/picomatch-2.3.2.tgz" integrity sha512-V7+vQEJ06Z+c5tSye8S+nHUfI51xoXIXjHQ99cQtKUkQqqO1kO/KCJUfZXuB47h/YBlDhah2H3hdUGXn8ie0oA== process-nextick-args@^2.0.0, process-nextick-args@~2.0.0: @@ -909,7 +1047,7 @@ reusify@^1.0.4: resolved "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz" integrity sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw== -safe-buffer@~5.1.0, safe-buffer@~5.1.1: +safe-buffer@^5.0.1, safe-buffer@~5.1.0, safe-buffer@~5.1.1: version "5.1.2" resolved "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz" integrity sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g== @@ -964,6 +1102,13 @@ streamx@^2.12.0, streamx@^2.12.5, streamx@^2.13.2, streamx@^2.14.0: optionalDependencies: bare-events "^2.2.0" +string_decoder@^1.1.1, string_decoder@~1.1.1: + version "1.1.1" + resolved "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz" + integrity sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg== + dependencies: + safe-buffer "~5.1.0" + string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3: version "4.2.3" resolved "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz" @@ -973,13 +1118,6 @@ string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3: is-fullwidth-code-point "^3.0.0" strip-ansi "^6.0.1" -string_decoder@^1.1.1, string_decoder@~1.1.1: - version "1.1.1" - resolved "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz" - integrity sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg== - dependencies: - safe-buffer "~5.1.0" - strip-ansi@^6.0.0, strip-ansi@^6.0.1: version "6.0.1" resolved "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz" @@ -1034,6 +1172,11 @@ to-through@^3.0.0: dependencies: streamx "^2.12.5" +tr46@~0.0.3: + version "0.0.3" + resolved "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz" + integrity sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw== + unc-path-regex@^0.1.2: version "0.1.2" resolved "https://registry.npmjs.org/unc-path-regex/-/unc-path-regex-0.1.2.tgz" @@ -1059,6 +1202,11 @@ util-deprecate@^1.0.1, util-deprecate@~1.0.1: resolved "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz" integrity sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw== +uuid@^9.0.1: + version "9.0.1" + resolved "https://registry.npmjs.org/uuid/-/uuid-9.0.1.tgz" + integrity sha512-b+1eJOlsR9K8HJpow9Ok3fiWOWSIcIzXodvv0rQjVoOVNpWMpxf1wZNpt4y9h10odCNrqnYp1OBzRktckBe3sA== + v8flags@^4.0.0: version "4.0.1" resolved "https://registry.npmjs.org/v8flags/-/v8flags-4.0.1.tgz" @@ -1116,6 +1264,17 @@ vinyl-sourcemaps-apply@^0.2.0: dependencies: source-map "^0.5.1" +vinyl@^3.0.0: + version "3.0.0" + resolved "https://registry.npmjs.org/vinyl/-/vinyl-3.0.0.tgz" + integrity sha512-rC2VRfAVVCGEgjnxHUnpIVh3AGuk62rP3tqVrn+yab0YH7UULisC085+NYH+mnqf3Wx4SpSi1RQMwudL89N03g== + dependencies: + clone "^2.1.2" + clone-stats "^1.0.0" + remove-trailing-separator "^1.1.0" + replace-ext "^2.0.0" + teex "^1.0.1" + vinyl@2.x: version "2.2.1" resolved "https://registry.npmjs.org/vinyl/-/vinyl-2.2.1.tgz" @@ -1128,16 +1287,18 @@ vinyl@2.x: remove-trailing-separator "^1.0.1" replace-ext "^1.0.0" -vinyl@^3.0.0: - version "3.0.0" - resolved "https://registry.npmjs.org/vinyl/-/vinyl-3.0.0.tgz" - integrity sha512-rC2VRfAVVCGEgjnxHUnpIVh3AGuk62rP3tqVrn+yab0YH7UULisC085+NYH+mnqf3Wx4SpSi1RQMwudL89N03g== +webidl-conversions@^3.0.0: + version "3.0.1" + resolved "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz" + integrity sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ== + +whatwg-url@^5.0.0: + version "5.0.0" + resolved "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz" + integrity sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw== dependencies: - clone "^2.1.2" - clone-stats "^1.0.0" - remove-trailing-separator "^1.1.0" - replace-ext "^2.0.0" - teex "^1.0.1" + tr46 "~0.0.3" + webidl-conversions "^3.0.0" which@^1.2.14: version "1.3.1" @@ -1170,6 +1331,11 @@ yargs-parser@^20.2.2: resolved "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.9.tgz" integrity sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w== +yargs-parser@^21.1.1: + version "21.1.1" + resolved "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz" + integrity sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw== + yargs@^16.2.0: version "16.2.0" resolved "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz" @@ -1182,3 +1348,16 @@ yargs@^16.2.0: string-width "^4.2.0" y18n "^5.0.5" yargs-parser "^20.2.2" + +yargs@^17.1.1: + version "17.7.3" + resolved "https://registry.npmjs.org/yargs/-/yargs-17.7.3.tgz" + integrity sha512-GZtjxm/J/4TSxuL3FNYjCmLktBTnIw/rVmKSIyKeYAZpmJB2ig9VauCC5xsa82GNKVKDAqpOn3KVzNt0zmrU0g== + dependencies: + cliui "^8.0.1" + escalade "^3.1.1" + get-caller-file "^2.0.5" + require-directory "^2.1.1" + string-width "^4.2.3" + y18n "^5.0.5" + yargs-parser "^21.1.1" From 54a31680fd51e45c94cc0c4061d4788d402dbd6b Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 17 Sep 2026 13:14:03 +0000 Subject: [PATCH 35/40] Bump brace-expansion from 1.1.11 to 1.1.21 Bumps [brace-expansion](https://github.com/juliangruber/brace-expansion) from 1.1.11 to 1.1.21. - [Release notes](https://github.com/juliangruber/brace-expansion/releases) - [Commits](https://github.com/juliangruber/brace-expansion/compare/1.1.11...v1.1.21) --- updated-dependencies: - dependency-name: brace-expansion dependency-version: 1.1.21 dependency-type: indirect ... Signed-off-by: dependabot[bot] --- package-lock.json | 13 +++++----- yarn.lock | 65 +++++++++++++++++++++++++++++------------------ 2 files changed, 47 insertions(+), 31 deletions(-) diff --git a/package-lock.json b/package-lock.json index f6a9358..f223785 100644 --- a/package-lock.json +++ b/package-lock.json @@ -239,10 +239,11 @@ } }, "node_modules/brace-expansion": { - "version": "1.1.11", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", - "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "version": "1.1.21", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.21.tgz", + "integrity": "sha512-9zeA+KLZNNzglF2TPKRQEDyx6Yby7daAkuy8MiPzpXPsYDWi/DRM8jmwUDxokQjYqBpv5DgPiwD4h4ZZSy1Ujw==", "dev": true, + "license": "MIT", "dependencies": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" @@ -2499,9 +2500,9 @@ } }, "brace-expansion": { - "version": "1.1.11", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", - "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "version": "1.1.21", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.21.tgz", + "integrity": "sha512-9zeA+KLZNNzglF2TPKRQEDyx6Yby7daAkuy8MiPzpXPsYDWi/DRM8jmwUDxokQjYqBpv5DgPiwD4h4ZZSy1Ujw==", "dev": true, "requires": { "balanced-match": "^1.0.0", diff --git a/yarn.lock b/yarn.lock index f221352..67dc3b5 100644 --- a/yarn.lock +++ b/yarn.lock @@ -119,9 +119,9 @@ bl@^5.0.0: readable-stream "^3.4.0" brace-expansion@^1.1.7: - version "1.1.11" - resolved "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz" - integrity sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA== + version "1.1.21" + resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.21.tgz#edf4fab5c64d051aea5a8def49aba1c7522279f3" + integrity sha512-9zeA+KLZNNzglF2TPKRQEDyx6Yby7daAkuy8MiPzpXPsYDWi/DRM8jmwUDxokQjYqBpv5DgPiwD4h4ZZSy1Ujw== dependencies: balanced-match "^1.0.0" concat-map "0.0.1" @@ -146,7 +146,7 @@ buffer@^6.0.3: base64-js "^1.3.1" ieee754 "^1.2.1" -chalk@^4.1.2, chalk@4.x: +chalk@4.x, chalk@^4.1.2: version "4.1.2" resolved "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz" integrity sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA== @@ -266,7 +266,7 @@ each-props@^3.0.0: is-plain-object "^5.0.0" object.defaults "^1.1.0" -ecdsa-sig-formatter@^1.0.11, ecdsa-sig-formatter@1.0.11: +ecdsa-sig-formatter@1.0.11, ecdsa-sig-formatter@^1.0.11: version "1.0.11" resolved "https://registry.npmjs.org/ecdsa-sig-formatter/-/ecdsa-sig-formatter-1.0.11.tgz" integrity sha512-nagl3RYrbNv6kQkeJIpt6NJZy8twLB/2vtz6yN9Z4vRKHN4/QZJIEbqohALSgwKdnksuY3k5Addp5lg8sVoVcQ== @@ -384,6 +384,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.yarnpkg.com/fsevents/-/fsevents-2.3.3.tgz#cac6407785d03675a2a5e1a5305c697b347d90d6" + 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" @@ -520,6 +525,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.yarnpkg.com/google-closure-compiler-osx/-/google-closure-compiler-osx-20230802.0.0.tgz#10746ecfa81ad6eecc4d42d4ce9d0ed3ca8071e7" + integrity sha512-ANAi/ux92Tt+Na7vFDLeK2hRzotjC5j+nxoPtE0OcuNcbjji5dREKoJxkq7r0YwRTCzAFZszK5ip/NPdTOdCEg== + +google-closure-compiler-windows@^20230802.0.0: + version "20230802.0.0" + resolved "https://registry.yarnpkg.com/google-closure-compiler-windows/-/google-closure-compiler-windows-20230802.0.0.tgz#d57968dc24d5e0d538840b4313e1bec7c71b18d6" + 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" @@ -648,7 +663,7 @@ inflight@^1.0.4: once "^1.3.0" wrappy "1" -inherits@^2.0.1, inherits@^2.0.3, inherits@^2.0.4, inherits@~2.0.3, inherits@2: +inherits@2, inherits@^2.0.1, inherits@^2.0.3, inherits@^2.0.4, inherits@~2.0.3: version "2.0.4" resolved "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz" integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ== @@ -870,7 +885,7 @@ node-fetch@^2.6.9: dependencies: whatwg-url "^5.0.0" -normalize-path@^3.0.0, normalize-path@~3.0.0, normalize-path@3.0.0: +normalize-path@3.0.0, normalize-path@^3.0.0, normalize-path@~3.0.0: version "3.0.0" resolved "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz" integrity sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA== @@ -1102,13 +1117,6 @@ streamx@^2.12.0, streamx@^2.12.5, streamx@^2.13.2, streamx@^2.14.0: optionalDependencies: bare-events "^2.2.0" -string_decoder@^1.1.1, string_decoder@~1.1.1: - version "1.1.1" - resolved "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz" - integrity sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg== - dependencies: - safe-buffer "~5.1.0" - string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3: version "4.2.3" resolved "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz" @@ -1118,6 +1126,13 @@ string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3: is-fullwidth-code-point "^3.0.0" strip-ansi "^6.0.1" +string_decoder@^1.1.1, string_decoder@~1.1.1: + version "1.1.1" + resolved "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz" + integrity sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg== + dependencies: + safe-buffer "~5.1.0" + strip-ansi@^6.0.0, strip-ansi@^6.0.1: version "6.0.1" resolved "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz" @@ -1264,17 +1279,6 @@ vinyl-sourcemaps-apply@^0.2.0: dependencies: source-map "^0.5.1" -vinyl@^3.0.0: - version "3.0.0" - resolved "https://registry.npmjs.org/vinyl/-/vinyl-3.0.0.tgz" - integrity sha512-rC2VRfAVVCGEgjnxHUnpIVh3AGuk62rP3tqVrn+yab0YH7UULisC085+NYH+mnqf3Wx4SpSi1RQMwudL89N03g== - dependencies: - clone "^2.1.2" - clone-stats "^1.0.0" - remove-trailing-separator "^1.1.0" - replace-ext "^2.0.0" - teex "^1.0.1" - vinyl@2.x: version "2.2.1" resolved "https://registry.npmjs.org/vinyl/-/vinyl-2.2.1.tgz" @@ -1287,6 +1291,17 @@ vinyl@2.x: remove-trailing-separator "^1.0.1" replace-ext "^1.0.0" +vinyl@^3.0.0: + version "3.0.0" + resolved "https://registry.npmjs.org/vinyl/-/vinyl-3.0.0.tgz" + integrity sha512-rC2VRfAVVCGEgjnxHUnpIVh3AGuk62rP3tqVrn+yab0YH7UULisC085+NYH+mnqf3Wx4SpSi1RQMwudL89N03g== + dependencies: + clone "^2.1.2" + clone-stats "^1.0.0" + remove-trailing-separator "^1.1.0" + replace-ext "^2.0.0" + teex "^1.0.1" + webidl-conversions@^3.0.0: version "3.0.1" resolved "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz" From ded993229f843b53c78b3be68a5128ddbf303048 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 17 Sep 2026 13:14:03 +0000 Subject: [PATCH 36/40] Bump js-yaml from 4.3.0 to 4.3.2 Bumps [js-yaml](https://github.com/nodeca/js-yaml) from 4.3.0 to 4.3.2. - [Changelog](https://github.com/nodeca/js-yaml/blob/4.3.2/CHANGELOG.md) - [Commits](https://github.com/nodeca/js-yaml/compare/4.3.0...4.3.2) --- updated-dependencies: - dependency-name: js-yaml dependency-version: 4.3.2 dependency-type: indirect ... Signed-off-by: dependabot[bot] --- package-lock.json | 12 ++++++------ yarn.lock | 6 +++--- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/package-lock.json b/package-lock.json index f223785..ee9cc71 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1393,9 +1393,9 @@ "dev": true }, "node_modules/js-yaml": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.3.0.tgz", - "integrity": "sha512-1td788aAnnZ5qs7V2QIRl1owjtYpbKt749Y3xauqQgwIIGF/xXWz1wMTEBx5O3LK3lXLVuqXPdPxj2BoFHaW9Q==", + "version": "4.3.2", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.3.2.tgz", + "integrity": "sha512-SFNOvSJ+Dgf/9An904Yx+CgSlIPCkIpao4qo51lpee25TIRejdH3rhR4EZMGoNx3/TP3O+wzWuiTFl4sqbltzA==", "dev": true, "funding": [ { @@ -3346,9 +3346,9 @@ "dev": true }, "js-yaml": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.3.0.tgz", - "integrity": "sha512-1td788aAnnZ5qs7V2QIRl1owjtYpbKt749Y3xauqQgwIIGF/xXWz1wMTEBx5O3LK3lXLVuqXPdPxj2BoFHaW9Q==", + "version": "4.3.2", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.3.2.tgz", + "integrity": "sha512-SFNOvSJ+Dgf/9An904Yx+CgSlIPCkIpao4qo51lpee25TIRejdH3rhR4EZMGoNx3/TP3O+wzWuiTFl4sqbltzA==", "dev": true, "requires": { "argparse": "^2.0.1" diff --git a/yarn.lock b/yarn.lock index 67dc3b5..05d4c4c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -790,9 +790,9 @@ jasmine@~3.5.0: jasmine-core "~3.5.0" js-yaml@^4.1.0: - version "4.3.0" - resolved "https://registry.npmjs.org/js-yaml/-/js-yaml-4.3.0.tgz" - integrity sha512-1td788aAnnZ5qs7V2QIRl1owjtYpbKt749Y3xauqQgwIIGF/xXWz1wMTEBx5O3LK3lXLVuqXPdPxj2BoFHaW9Q== + version "4.3.2" + resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-4.3.2.tgz#8e44fb14a2643c59726bb15787b5f1512cb3d3fb" + integrity sha512-SFNOvSJ+Dgf/9An904Yx+CgSlIPCkIpao4qo51lpee25TIRejdH3rhR4EZMGoNx3/TP3O+wzWuiTFl4sqbltzA== dependencies: argparse "^2.0.1" From 5d360e51ebe415374e62a4812fc0b81d738910db Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 19 Sep 2026 06:04:27 +0000 Subject: [PATCH 37/40] Bump adm-zip from 0.6.0 to 0.6.1 in /protoc_plugin Bumps [adm-zip](https://github.com/cthackers/adm-zip) from 0.6.0 to 0.6.1. - [Release notes](https://github.com/cthackers/adm-zip/releases) - [Changelog](https://github.com/cthackers/adm-zip/blob/master/history.md) - [Commits](https://github.com/cthackers/adm-zip/compare/v0.6.0...v0.6.1) --- updated-dependencies: - dependency-name: adm-zip dependency-version: 0.6.1 dependency-type: direct:production ... Signed-off-by: dependabot[bot] --- protoc_plugin/package-lock.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/protoc_plugin/package-lock.json b/protoc_plugin/package-lock.json index f5a3c8c..a7d17c6 100644 --- a/protoc_plugin/package-lock.json +++ b/protoc_plugin/package-lock.json @@ -20,9 +20,9 @@ } }, "node_modules/adm-zip": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/adm-zip/-/adm-zip-0.6.0.tgz", - "integrity": "sha512-XleryMhbuksdKtofnWZ9Sk+4CUTbms4Mb/EU32SZwToAyZ5RgVos/ki8n+yr0LWHOGKuakbXTuuYNHLQjhddgg==", + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/adm-zip/-/adm-zip-0.6.1.tgz", + "integrity": "sha512-Xwrja8nx9e5o2N1my4DsKCeKpdrnACyr1wtbPxBDgGzKzKyE9kRtBFA8mWldI+RVlD7CBZNWY/wQ2+ydwOR6kQ==", "license": "MIT", "engines": { "node": ">=14.0" From c3dbcd57e12bed54d84c48be9e2e94b8c5f9423c Mon Sep 17 00:00:00 2001 From: Stephanie DiBenedetto Date: Fri, 18 Sep 2026 07:52:22 +0000 Subject: [PATCH 38/40] Remove direct glob devDependency and replace with fs.readdirSync --- gulpfile.js | 11 +++++--- package-lock.json | 1 - package.json | 1 - yarn.lock | 65 ++++++++++++++++++----------------------------- 4 files changed, 33 insertions(+), 45 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index 6140b1a..1f972a7 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -1,6 +1,6 @@ const { series } = require('gulp'); const execFile = require('child_process').execFile; -const glob = require('glob'); +const fs = require('fs'); function exec(command, cb) { execFile('sh', ['-c', command], cb); @@ -215,8 +215,13 @@ function commonjs_out(cb) { ' > commonjs_out/' + file + '&& '; } - glob.sync('*_test.js').forEach(addTestFile); - glob.sync('binary/*_test.js').forEach(addTestFile); + fs.readdirSync('.') + .filter((file) => file.endsWith('_test.js')) + .forEach(addTestFile); + fs.readdirSync('binary') + .filter((file) => file.endsWith('_test.js')) + .map((file) => `binary/${file}`) + .forEach(addTestFile); exec( cmd + 'cp commonjs/jasmine.json commonjs_out/jasmine.json && ' + diff --git a/package-lock.json b/package-lock.json index ee9cc71..c3aa78e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,6 @@ "version": "4.0.3", "license": "(BSD-3-Clause AND Apache-2.0)", "devDependencies": { - "glob": "~7.1.4", "google-artifactregistry-auth": "^3.5.0", "google-closure-compiler": "20230802.0.0", "google-closure-deps": "20230802.0.0", diff --git a/package.json b/package.json index 453ebe2..594a48f 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,6 @@ "README.md" ], "devDependencies": { - "glob": "~7.1.4", "google-artifactregistry-auth": "^3.5.0", "google-closure-compiler": "20230802.0.0", "google-closure-deps": "20230802.0.0", diff --git a/yarn.lock b/yarn.lock index 05d4c4c..97e6a94 100644 --- a/yarn.lock +++ b/yarn.lock @@ -120,7 +120,7 @@ bl@^5.0.0: brace-expansion@^1.1.7: version "1.1.21" - resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.21.tgz#edf4fab5c64d051aea5a8def49aba1c7522279f3" + resolved "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.21.tgz" integrity sha512-9zeA+KLZNNzglF2TPKRQEDyx6Yby7daAkuy8MiPzpXPsYDWi/DRM8jmwUDxokQjYqBpv5DgPiwD4h4ZZSy1Ujw== dependencies: balanced-match "^1.0.0" @@ -146,7 +146,7 @@ buffer@^6.0.3: base64-js "^1.3.1" ieee754 "^1.2.1" -chalk@4.x, chalk@^4.1.2: +chalk@^4.1.2, chalk@4.x: version "4.1.2" resolved "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz" integrity sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA== @@ -266,7 +266,7 @@ each-props@^3.0.0: is-plain-object "^5.0.0" object.defaults "^1.1.0" -ecdsa-sig-formatter@1.0.11, ecdsa-sig-formatter@^1.0.11: +ecdsa-sig-formatter@^1.0.11, ecdsa-sig-formatter@1.0.11: version "1.0.11" resolved "https://registry.npmjs.org/ecdsa-sig-formatter/-/ecdsa-sig-formatter-1.0.11.tgz" integrity sha512-nagl3RYrbNv6kQkeJIpt6NJZy8twLB/2vtz6yN9Z4vRKHN4/QZJIEbqohALSgwKdnksuY3k5Addp5lg8sVoVcQ== @@ -384,11 +384,6 @@ 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.yarnpkg.com/fsevents/-/fsevents-2.3.3.tgz#cac6407785d03675a2a5e1a5305c697b347d90d6" - 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" @@ -455,7 +450,7 @@ glob-watcher@^6.0.0: async-done "^2.0.0" chokidar "^3.5.3" -glob@^7.1.4, glob@~7.1.4: +glob@^7.1.4: version "7.1.7" resolved "https://registry.npmjs.org/glob/-/glob-7.1.7.tgz" integrity sha512-OvD9ENzPLbegENnYP5UUfJIirTg4+XwMWGaQfQTY0JenxNvvIKP3U3/tAQSPIu/lHxXYSZmpXlUHeqAIdKzBLQ== @@ -525,16 +520,6 @@ 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.yarnpkg.com/google-closure-compiler-osx/-/google-closure-compiler-osx-20230802.0.0.tgz#10746ecfa81ad6eecc4d42d4ce9d0ed3ca8071e7" - integrity sha512-ANAi/ux92Tt+Na7vFDLeK2hRzotjC5j+nxoPtE0OcuNcbjji5dREKoJxkq7r0YwRTCzAFZszK5ip/NPdTOdCEg== - -google-closure-compiler-windows@^20230802.0.0: - version "20230802.0.0" - resolved "https://registry.yarnpkg.com/google-closure-compiler-windows/-/google-closure-compiler-windows-20230802.0.0.tgz#d57968dc24d5e0d538840b4313e1bec7c71b18d6" - 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" @@ -663,7 +648,7 @@ inflight@^1.0.4: once "^1.3.0" wrappy "1" -inherits@2, inherits@^2.0.1, inherits@^2.0.3, inherits@^2.0.4, inherits@~2.0.3: +inherits@^2.0.1, inherits@^2.0.3, inherits@^2.0.4, inherits@~2.0.3, inherits@2: version "2.0.4" resolved "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz" integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ== @@ -791,7 +776,7 @@ jasmine@~3.5.0: js-yaml@^4.1.0: version "4.3.2" - resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-4.3.2.tgz#8e44fb14a2643c59726bb15787b5f1512cb3d3fb" + resolved "https://registry.npmjs.org/js-yaml/-/js-yaml-4.3.2.tgz" integrity sha512-SFNOvSJ+Dgf/9An904Yx+CgSlIPCkIpao4qo51lpee25TIRejdH3rhR4EZMGoNx3/TP3O+wzWuiTFl4sqbltzA== dependencies: argparse "^2.0.1" @@ -885,7 +870,7 @@ node-fetch@^2.6.9: dependencies: whatwg-url "^5.0.0" -normalize-path@3.0.0, normalize-path@^3.0.0, normalize-path@~3.0.0: +normalize-path@^3.0.0, normalize-path@~3.0.0, normalize-path@3.0.0: version "3.0.0" resolved "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz" integrity sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA== @@ -1117,6 +1102,13 @@ streamx@^2.12.0, streamx@^2.12.5, streamx@^2.13.2, streamx@^2.14.0: optionalDependencies: bare-events "^2.2.0" +string_decoder@^1.1.1, string_decoder@~1.1.1: + version "1.1.1" + resolved "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz" + integrity sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg== + dependencies: + safe-buffer "~5.1.0" + string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3: version "4.2.3" resolved "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz" @@ -1126,13 +1118,6 @@ string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3: is-fullwidth-code-point "^3.0.0" strip-ansi "^6.0.1" -string_decoder@^1.1.1, string_decoder@~1.1.1: - version "1.1.1" - resolved "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz" - integrity sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg== - dependencies: - safe-buffer "~5.1.0" - strip-ansi@^6.0.0, strip-ansi@^6.0.1: version "6.0.1" resolved "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz" @@ -1279,6 +1264,17 @@ vinyl-sourcemaps-apply@^0.2.0: dependencies: source-map "^0.5.1" +vinyl@^3.0.0: + version "3.0.0" + resolved "https://registry.npmjs.org/vinyl/-/vinyl-3.0.0.tgz" + integrity sha512-rC2VRfAVVCGEgjnxHUnpIVh3AGuk62rP3tqVrn+yab0YH7UULisC085+NYH+mnqf3Wx4SpSi1RQMwudL89N03g== + dependencies: + clone "^2.1.2" + clone-stats "^1.0.0" + remove-trailing-separator "^1.1.0" + replace-ext "^2.0.0" + teex "^1.0.1" + vinyl@2.x: version "2.2.1" resolved "https://registry.npmjs.org/vinyl/-/vinyl-2.2.1.tgz" @@ -1291,17 +1287,6 @@ vinyl@2.x: remove-trailing-separator "^1.0.1" replace-ext "^1.0.0" -vinyl@^3.0.0: - version "3.0.0" - resolved "https://registry.npmjs.org/vinyl/-/vinyl-3.0.0.tgz" - integrity sha512-rC2VRfAVVCGEgjnxHUnpIVh3AGuk62rP3tqVrn+yab0YH7UULisC085+NYH+mnqf3Wx4SpSi1RQMwudL89N03g== - dependencies: - clone "^2.1.2" - clone-stats "^1.0.0" - remove-trailing-separator "^1.1.0" - replace-ext "^2.0.0" - teex "^1.0.1" - webidl-conversions@^3.0.0: version "3.0.1" resolved "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz" From fb0ddaaba4432fa534ebd8618a8518e19fb3dd23 Mon Sep 17 00:00:00 2001 From: Stephanie DiBenedetto Date: Thu, 24 Sep 2026 08:00:46 +0000 Subject: [PATCH 39/40] Update GitHub Actions to Node.js 24 versions and macos-15-intel runner --- .github/workflows/build.yml | 12 ++++++------ .github/workflows/codeql.yml | 6 +++--- .github/workflows/scorecards.yml | 6 +++--- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a6813dc..bdacd44 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -21,11 +21,11 @@ jobs: steps: - - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: persist-credentials: false - - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4 + - uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 with: token: ${{ secrets.GITHUB_TOKEN }} node-version: 24 @@ -46,7 +46,7 @@ jobs: - run: npm run build - - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4 + - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 with: name: js path: | @@ -81,13 +81,13 @@ jobs: - os: macos-14 cpu: darwin_arm64 bazel_target: dist_zip - - os: macos-14-large + - os: macos-15-intel cpu: darwin_x86_64 bazel_target: dist_zip steps: - - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: persist-credentials: false @@ -110,7 +110,7 @@ jobs: # need to copy to output directory as `bazel-bin` is a symlink and cannot be read by the actions/upload-artifact action - run: cp bazel-bin/protobuf-javascript-* out/ - - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4 + - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 with: name: release-${{ matrix.os }}-${{ matrix.cpu }} path: out diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 00a3008..2bd95ef 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -49,13 +49,13 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: persist-credentials: false # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL - uses: github/codeql-action/init@8aad20d150bbac5944a9f9d289da16a4b0d87c1e # v4 + uses: github/codeql-action/init@1c5b675653bb5c22dbe9b12b556ec555138e09fd # v4.38.1 with: languages: ${{ matrix.language }} # If you wish to specify custom queries, you can do so here or in a config file. @@ -83,4 +83,4 @@ jobs: - run: npm test - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@8aad20d150bbac5944a9f9d289da16a4b0d87c1e # v4 + uses: github/codeql-action/analyze@1c5b675653bb5c22dbe9b12b556ec555138e09fd # v4.38.1 diff --git a/.github/workflows/scorecards.yml b/.github/workflows/scorecards.yml index aa88846..6cc5f5d 100644 --- a/.github/workflows/scorecards.yml +++ b/.github/workflows/scorecards.yml @@ -32,7 +32,7 @@ jobs: steps: - name: "Checkout code" - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: persist-credentials: false @@ -54,7 +54,7 @@ jobs: # Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF # format to the repository Actions tab. - name: "Upload artifact" - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 + uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 with: path: results.sarif retention-days: 5 @@ -62,6 +62,6 @@ jobs: # Upload the results to GitHub's code scanning dashboard (optional). # Commenting out will disable upload of results to your repo's Code Scanning dashboard - name: "Upload to code-scanning" - uses: github/codeql-action/upload-sarif@96f518a34f7a870018057716cc4d7a5c014bd61c # v3.29.10 + uses: github/codeql-action/upload-sarif@1c5b675653bb5c22dbe9b12b556ec555138e09fd # v4.38.1 with: sarif_file: results.sarif From eb59fef711c3d090d54b988b99b7c067d6b7e3a8 Mon Sep 17 00:00:00 2001 From: Stephanie DiBenedetto Date: Thu, 24 Sep 2026 17:47:52 +0000 Subject: [PATCH 40/40] Upgrade apple_support to 2.9.1 and enable Apple CC toolchain --- .bazelrc | 2 -- MODULE.bazel | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/.bazelrc b/.bazelrc index bd092a0..3d948dd 100644 --- a/.bazelrc +++ b/.bazelrc @@ -30,8 +30,6 @@ build:ubsan --copt=-fno-sanitize=function --copt=-fno-sanitize=vptr build --features=layering_check common --enable_platform_specific_config -common --repo_env=BAZEL_NO_APPLE_CPP_TOOLCHAIN=1 - # Allow building with MSVC, which is being deprecated. # See: https://github.com/protocolbuffers/protobuf/issues/20085 diff --git a/MODULE.bazel b/MODULE.bazel index 1887970..962f5db 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -7,7 +7,7 @@ bazel_dep(name = "protobuf", version = "33.4", repo_name = "com_google_protobuf" bazel_dep(name = "rules_cc", version = "0.2.15") bazel_dep(name = "rules_pkg", version = "1.0.1", dev_dependency = True) bazel_dep(name = "platforms", version = "1.0.0") -bazel_dep(name = "apple_support", version = "1.17.1", repo_name = "build_bazel_apple_support") +bazel_dep(name = "apple_support", version = "2.9.1", repo_name = "build_bazel_apple_support") bazel_dep(name = "bazel_skylib", version = "1.7.1") register_toolchains(