Skip to content

Commit 4ce9069

Browse files
committed
Enable protobuf edition 2023 support
This change backports our binary serialization/deserialization code. The newer code includes several years worth of improvements that improve the overall conformance findings. The improved state of things allows us to enable protobuf edition 2023. Other items: - Add missing export annotation for BinaryReader.readStringRequireUtf8 - promote protobuf conformance testing client to main directory
1 parent f418f58 commit 4ce9069

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+10617
-8907
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
.idea
2+
.vscode
23
node_modules
34
commonjs_out
45
google/protobuf
@@ -7,3 +8,6 @@ bazel-*
78
/testproto_libs1.js
89
/testproto_libs2.js
910
/google-protobuf.js
11+
/google-protobuf-*.tgz
12+
/conformance/protos/*.js
13+
/conformance/package-lock.json

MODULE.bazel.lock

Lines changed: 8 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

binary/any_field_type.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
goog.module('jspb.binary.any_field_type');
2+
3+
const {RepeatedFieldType} = goog.require('jspb.binary.repeated_field_type');
4+
const {ScalarFieldType} = goog.requireType('jspb.binary.scalar_field_type');
5+
6+
7+
/**
8+
* A field in jspb can be a scalar, a block of bytes, another proto, or an
9+
* array of any of the above.
10+
* @typedef {?ScalarFieldType|?RepeatedFieldType|!Uint8Array}
11+
*/
12+
let AnyFieldType;
13+
14+
exports = {AnyFieldType};

0 commit comments

Comments
 (0)