protobufjs 8.1.5-experimental → 8.1.6-experimental
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/light/protobuf.js +2 -2
- package/dist/light/protobuf.min.js +2 -2
- package/dist/minimal/protobuf.js +2 -2
- package/dist/minimal/protobuf.min.js +2 -2
- package/dist/protobuf.js +2 -2
- package/dist/protobuf.min.js +2 -2
- package/ext/descriptor/index.js +13 -8
- package/google/protobuf/descriptor.json +112 -8
- package/google/protobuf/descriptor.proto +33 -8
- package/package.json +1 -1
package/dist/light/protobuf.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* protobuf.js v8.1.
|
|
3
|
-
* compiled tue, 27 may 2025
|
|
2
|
+
* protobuf.js v8.1.6-experimental (c) 2016, daniel wirtz
|
|
3
|
+
* compiled tue, 27 may 2025 22:16:18 utc
|
|
4
4
|
* licensed under the bsd-3-clause license
|
|
5
5
|
* see: https://github.com/dcodeio/protobuf.js for details
|
|
6
6
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* protobuf.js v8.1.
|
|
3
|
-
* compiled tue, 27 may 2025
|
|
2
|
+
* protobuf.js v8.1.6-experimental (c) 2016, daniel wirtz
|
|
3
|
+
* compiled tue, 27 may 2025 22:16:18 utc
|
|
4
4
|
* licensed under the bsd-3-clause license
|
|
5
5
|
* see: https://github.com/dcodeio/protobuf.js for details
|
|
6
6
|
*/
|
package/dist/minimal/protobuf.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* protobuf.js v8.1.
|
|
3
|
-
* compiled tue, 27 may 2025
|
|
2
|
+
* protobuf.js v8.1.6-experimental (c) 2016, daniel wirtz
|
|
3
|
+
* compiled tue, 27 may 2025 22:16:18 utc
|
|
4
4
|
* licensed under the bsd-3-clause license
|
|
5
5
|
* see: https://github.com/dcodeio/protobuf.js for details
|
|
6
6
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* protobuf.js v8.1.
|
|
3
|
-
* compiled tue, 27 may 2025
|
|
2
|
+
* protobuf.js v8.1.6-experimental (c) 2016, daniel wirtz
|
|
3
|
+
* compiled tue, 27 may 2025 22:16:18 utc
|
|
4
4
|
* licensed under the bsd-3-clause license
|
|
5
5
|
* see: https://github.com/dcodeio/protobuf.js for details
|
|
6
6
|
*/
|
package/dist/protobuf.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* protobuf.js v8.1.
|
|
3
|
-
* compiled tue, 27 may 2025
|
|
2
|
+
* protobuf.js v8.1.6-experimental (c) 2016, daniel wirtz
|
|
3
|
+
* compiled tue, 27 may 2025 22:16:18 utc
|
|
4
4
|
* licensed under the bsd-3-clause license
|
|
5
5
|
* see: https://github.com/dcodeio/protobuf.js for details
|
|
6
6
|
*/
|
package/dist/protobuf.min.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* protobuf.js v8.1.
|
|
3
|
-
* compiled tue, 27 may 2025
|
|
2
|
+
* protobuf.js v8.1.6-experimental (c) 2016, daniel wirtz
|
|
3
|
+
* compiled tue, 27 may 2025 22:16:18 utc
|
|
4
4
|
* licensed under the bsd-3-clause license
|
|
5
5
|
* see: https://github.com/dcodeio/protobuf.js for details
|
|
6
6
|
*/
|
package/ext/descriptor/index.js
CHANGED
|
@@ -863,7 +863,7 @@ function toDescriptorType(type, resolvedType, delimited) {
|
|
|
863
863
|
throw Error("illegal type: " + type);
|
|
864
864
|
}
|
|
865
865
|
|
|
866
|
-
function
|
|
866
|
+
function fromDescriptorOptionsRecursive(obj, type) {
|
|
867
867
|
var val = {};
|
|
868
868
|
for (var i = 0, field, key; i < type.fieldsArray.length; ++i) {
|
|
869
869
|
if ((key = (field = type._fieldsArray[i]).name) === "uninterpretedOption") continue;
|
|
@@ -871,7 +871,7 @@ function fixDescriptorOptionsRecursive(obj, type) {
|
|
|
871
871
|
|
|
872
872
|
var newKey = underScore(key);
|
|
873
873
|
if (field.resolvedType instanceof Type) {
|
|
874
|
-
val[newKey] =
|
|
874
|
+
val[newKey] = fromDescriptorOptionsRecursive(obj[key], field.resolvedType);
|
|
875
875
|
} else if(field.resolvedType instanceof Enum) {
|
|
876
876
|
val[newKey] = field.resolvedType.valuesById[obj[key]];
|
|
877
877
|
} else {
|
|
@@ -885,19 +885,24 @@ function fixDescriptorOptionsRecursive(obj, type) {
|
|
|
885
885
|
function fromDescriptorOptions(options, type) {
|
|
886
886
|
if (!options)
|
|
887
887
|
return undefined;
|
|
888
|
-
return
|
|
888
|
+
return fromDescriptorOptionsRecursive(type.toObject(options), type);
|
|
889
889
|
}
|
|
890
890
|
|
|
891
|
-
function
|
|
891
|
+
function toDescriptorOptionsRecursive(obj, type) {
|
|
892
892
|
var val = {};
|
|
893
893
|
var keys = Object.keys(obj);
|
|
894
894
|
for (var i = 0; i < keys.length; ++i) {
|
|
895
895
|
var key = keys[i];
|
|
896
896
|
var newKey = $protobuf.util.camelCase(key);
|
|
897
|
-
if (
|
|
898
|
-
|
|
897
|
+
if (!Object.prototype.hasOwnProperty.call(type.fields, newKey)) continue;
|
|
898
|
+
var field = type.fields[newKey];
|
|
899
|
+
if (field.resolvedType instanceof Type) {
|
|
900
|
+
val[newKey] = toDescriptorOptionsRecursive(obj[key], field.resolvedType);
|
|
899
901
|
} else {
|
|
900
|
-
val[newKey] =
|
|
902
|
+
val[newKey] = obj[key];
|
|
903
|
+
}
|
|
904
|
+
if (field.repeated && !Array.isArray(val[newKey])) {
|
|
905
|
+
val[newKey] = [val[newKey]];
|
|
901
906
|
}
|
|
902
907
|
}
|
|
903
908
|
return val;
|
|
@@ -907,7 +912,7 @@ function camelCaseRecursive(obj) {
|
|
|
907
912
|
function toDescriptorOptions(options, type) {
|
|
908
913
|
if (!options)
|
|
909
914
|
return undefined;
|
|
910
|
-
return type.fromObject(
|
|
915
|
+
return type.fromObject(toDescriptorOptionsRecursive(options, type));
|
|
911
916
|
}
|
|
912
917
|
|
|
913
918
|
// Calculates the shortest relative path from `from` to `to`.
|
|
@@ -72,6 +72,11 @@
|
|
|
72
72
|
"type": "int32",
|
|
73
73
|
"id": 11
|
|
74
74
|
},
|
|
75
|
+
"optionDependency": {
|
|
76
|
+
"rule": "repeated",
|
|
77
|
+
"type": "string",
|
|
78
|
+
"id": 15
|
|
79
|
+
},
|
|
75
80
|
"messageType": {
|
|
76
81
|
"rule": "repeated",
|
|
77
82
|
"type": "DescriptorProto",
|
|
@@ -160,6 +165,10 @@
|
|
|
160
165
|
"rule": "repeated",
|
|
161
166
|
"type": "string",
|
|
162
167
|
"id": 10
|
|
168
|
+
},
|
|
169
|
+
"visibility": {
|
|
170
|
+
"type": "SymbolVisibility",
|
|
171
|
+
"id": 11
|
|
163
172
|
}
|
|
164
173
|
},
|
|
165
174
|
"nested": {
|
|
@@ -385,6 +394,10 @@
|
|
|
385
394
|
"rule": "repeated",
|
|
386
395
|
"type": "string",
|
|
387
396
|
"id": 5
|
|
397
|
+
},
|
|
398
|
+
"visibility": {
|
|
399
|
+
"type": "SymbolVisibility",
|
|
400
|
+
"id": 6
|
|
388
401
|
}
|
|
389
402
|
},
|
|
390
403
|
"nested": {
|
|
@@ -691,7 +704,10 @@
|
|
|
691
704
|
},
|
|
692
705
|
"weak": {
|
|
693
706
|
"type": "bool",
|
|
694
|
-
"id": 10
|
|
707
|
+
"id": 10,
|
|
708
|
+
"options": {
|
|
709
|
+
"deprecated": true
|
|
710
|
+
}
|
|
695
711
|
},
|
|
696
712
|
"debugRedact": {
|
|
697
713
|
"type": "bool",
|
|
@@ -1023,31 +1039,91 @@
|
|
|
1023
1039
|
"fields": {
|
|
1024
1040
|
"fieldPresence": {
|
|
1025
1041
|
"type": "FieldPresence",
|
|
1026
|
-
"id": 1
|
|
1042
|
+
"id": 1,
|
|
1043
|
+
"options": {
|
|
1044
|
+
"retention": "RETENTION_RUNTIME",
|
|
1045
|
+
"targets": "TARGET_TYPE_FILE",
|
|
1046
|
+
"feature_support.edition_introduced": "EDITION_2023",
|
|
1047
|
+
"edition_defaults.edition": "EDITION_2023",
|
|
1048
|
+
"edition_defaults.value": "EXPLICIT"
|
|
1049
|
+
}
|
|
1027
1050
|
},
|
|
1028
1051
|
"enumType": {
|
|
1029
1052
|
"type": "EnumType",
|
|
1030
|
-
"id": 2
|
|
1053
|
+
"id": 2,
|
|
1054
|
+
"options": {
|
|
1055
|
+
"retention": "RETENTION_RUNTIME",
|
|
1056
|
+
"targets": "TARGET_TYPE_FILE",
|
|
1057
|
+
"feature_support.edition_introduced": "EDITION_2023",
|
|
1058
|
+
"edition_defaults.edition": "EDITION_PROTO3",
|
|
1059
|
+
"edition_defaults.value": "OPEN"
|
|
1060
|
+
}
|
|
1031
1061
|
},
|
|
1032
1062
|
"repeatedFieldEncoding": {
|
|
1033
1063
|
"type": "RepeatedFieldEncoding",
|
|
1034
|
-
"id": 3
|
|
1064
|
+
"id": 3,
|
|
1065
|
+
"options": {
|
|
1066
|
+
"retention": "RETENTION_RUNTIME",
|
|
1067
|
+
"targets": "TARGET_TYPE_FILE",
|
|
1068
|
+
"feature_support.edition_introduced": "EDITION_2023",
|
|
1069
|
+
"edition_defaults.edition": "EDITION_PROTO3",
|
|
1070
|
+
"edition_defaults.value": "PACKED"
|
|
1071
|
+
}
|
|
1035
1072
|
},
|
|
1036
1073
|
"utf8Validation": {
|
|
1037
1074
|
"type": "Utf8Validation",
|
|
1038
|
-
"id": 4
|
|
1075
|
+
"id": 4,
|
|
1076
|
+
"options": {
|
|
1077
|
+
"retention": "RETENTION_RUNTIME",
|
|
1078
|
+
"targets": "TARGET_TYPE_FILE",
|
|
1079
|
+
"feature_support.edition_introduced": "EDITION_2023",
|
|
1080
|
+
"edition_defaults.edition": "EDITION_PROTO3",
|
|
1081
|
+
"edition_defaults.value": "VERIFY"
|
|
1082
|
+
}
|
|
1039
1083
|
},
|
|
1040
1084
|
"messageEncoding": {
|
|
1041
1085
|
"type": "MessageEncoding",
|
|
1042
|
-
"id": 5
|
|
1086
|
+
"id": 5,
|
|
1087
|
+
"options": {
|
|
1088
|
+
"retention": "RETENTION_RUNTIME",
|
|
1089
|
+
"targets": "TARGET_TYPE_FILE",
|
|
1090
|
+
"feature_support.edition_introduced": "EDITION_2023",
|
|
1091
|
+
"edition_defaults.edition": "EDITION_LEGACY",
|
|
1092
|
+
"edition_defaults.value": "LENGTH_PREFIXED"
|
|
1093
|
+
}
|
|
1043
1094
|
},
|
|
1044
1095
|
"jsonFormat": {
|
|
1045
1096
|
"type": "JsonFormat",
|
|
1046
|
-
"id": 6
|
|
1097
|
+
"id": 6,
|
|
1098
|
+
"options": {
|
|
1099
|
+
"retention": "RETENTION_RUNTIME",
|
|
1100
|
+
"targets": "TARGET_TYPE_FILE",
|
|
1101
|
+
"feature_support.edition_introduced": "EDITION_2023",
|
|
1102
|
+
"edition_defaults.edition": "EDITION_PROTO3",
|
|
1103
|
+
"edition_defaults.value": "ALLOW"
|
|
1104
|
+
}
|
|
1047
1105
|
},
|
|
1048
1106
|
"enforceNamingStyle": {
|
|
1049
1107
|
"type": "EnforceNamingStyle",
|
|
1050
|
-
"id": 7
|
|
1108
|
+
"id": 7,
|
|
1109
|
+
"options": {
|
|
1110
|
+
"retention": "RETENTION_SOURCE",
|
|
1111
|
+
"targets": "TARGET_TYPE_METHOD",
|
|
1112
|
+
"feature_support.edition_introduced": "EDITION_2024",
|
|
1113
|
+
"edition_defaults.edition": "EDITION_2024",
|
|
1114
|
+
"edition_defaults.value": "STYLE2024"
|
|
1115
|
+
}
|
|
1116
|
+
},
|
|
1117
|
+
"defaultSymbolVisibility": {
|
|
1118
|
+
"type": "VisibilityFeature.DefaultSymbolVisibility",
|
|
1119
|
+
"id": 8,
|
|
1120
|
+
"options": {
|
|
1121
|
+
"retention": "RETENTION_SOURCE",
|
|
1122
|
+
"targets": "TARGET_TYPE_FILE",
|
|
1123
|
+
"feature_support.edition_introduced": "EDITION_2024",
|
|
1124
|
+
"edition_defaults.edition": "EDITION_2024",
|
|
1125
|
+
"edition_defaults.value": "EXPORT_TOP_LEVEL"
|
|
1126
|
+
}
|
|
1051
1127
|
}
|
|
1052
1128
|
},
|
|
1053
1129
|
"extensions": [
|
|
@@ -1120,6 +1196,26 @@
|
|
|
1120
1196
|
"STYLE2024": 1,
|
|
1121
1197
|
"STYLE_LEGACY": 2
|
|
1122
1198
|
}
|
|
1199
|
+
},
|
|
1200
|
+
"VisibilityFeature": {
|
|
1201
|
+
"fields": {},
|
|
1202
|
+
"reserved": [
|
|
1203
|
+
[
|
|
1204
|
+
1,
|
|
1205
|
+
536870911
|
|
1206
|
+
]
|
|
1207
|
+
],
|
|
1208
|
+
"nested": {
|
|
1209
|
+
"DefaultSymbolVisibility": {
|
|
1210
|
+
"values": {
|
|
1211
|
+
"DEFAULT_SYMBOL_VISIBILITY_UNKNOWN": 0,
|
|
1212
|
+
"EXPORT_ALL": 1,
|
|
1213
|
+
"EXPORT_TOP_LEVEL": 2,
|
|
1214
|
+
"LOCAL_ALL": 3,
|
|
1215
|
+
"STRICT": 4
|
|
1216
|
+
}
|
|
1217
|
+
}
|
|
1218
|
+
}
|
|
1123
1219
|
}
|
|
1124
1220
|
}
|
|
1125
1221
|
},
|
|
@@ -1269,6 +1365,14 @@
|
|
|
1269
1365
|
}
|
|
1270
1366
|
}
|
|
1271
1367
|
}
|
|
1368
|
+
},
|
|
1369
|
+
"SymbolVisibility": {
|
|
1370
|
+
"edition": "proto2",
|
|
1371
|
+
"values": {
|
|
1372
|
+
"VISIBILITY_UNSET": 0,
|
|
1373
|
+
"VISIBILITY_LOCAL": 1,
|
|
1374
|
+
"VISIBILITY_EXPORT": 2
|
|
1375
|
+
}
|
|
1272
1376
|
}
|
|
1273
1377
|
}
|
|
1274
1378
|
}
|
|
@@ -40,6 +40,7 @@ message FileDescriptorProto {
|
|
|
40
40
|
repeated string dependency = 3;
|
|
41
41
|
repeated int32 public_dependency = 10;
|
|
42
42
|
repeated int32 weak_dependency = 11;
|
|
43
|
+
repeated string option_dependency = 15;
|
|
43
44
|
repeated DescriptorProto message_type = 4;
|
|
44
45
|
repeated EnumDescriptorProto enum_type = 5;
|
|
45
46
|
repeated ServiceDescriptorProto service = 6;
|
|
@@ -62,6 +63,7 @@ message DescriptorProto {
|
|
|
62
63
|
optional MessageOptions options = 7;
|
|
63
64
|
repeated ReservedRange reserved_range = 9;
|
|
64
65
|
repeated string reserved_name = 10;
|
|
66
|
+
optional SymbolVisibility visibility = 11;
|
|
65
67
|
|
|
66
68
|
message ExtensionRange {
|
|
67
69
|
|
|
@@ -161,6 +163,7 @@ message EnumDescriptorProto {
|
|
|
161
163
|
optional EnumOptions options = 3;
|
|
162
164
|
repeated EnumReservedRange reserved_range = 4;
|
|
163
165
|
repeated string reserved_name = 5;
|
|
166
|
+
optional SymbolVisibility visibility = 6;
|
|
164
167
|
|
|
165
168
|
message EnumReservedRange {
|
|
166
169
|
|
|
@@ -252,7 +255,7 @@ message FieldOptions {
|
|
|
252
255
|
optional bool lazy = 5;
|
|
253
256
|
optional bool unverified_lazy = 15;
|
|
254
257
|
optional bool deprecated = 3;
|
|
255
|
-
optional bool weak = 10;
|
|
258
|
+
optional bool weak = 10 [deprecated=true];
|
|
256
259
|
optional bool debug_redact = 16;
|
|
257
260
|
optional OptionRetention retention = 17;
|
|
258
261
|
repeated OptionTargetType targets = 19;
|
|
@@ -392,13 +395,14 @@ message UninterpretedOption {
|
|
|
392
395
|
|
|
393
396
|
message FeatureSet {
|
|
394
397
|
|
|
395
|
-
optional FieldPresence field_presence = 1;
|
|
396
|
-
optional EnumType enum_type = 2;
|
|
397
|
-
optional RepeatedFieldEncoding repeated_field_encoding = 3;
|
|
398
|
-
optional Utf8Validation utf8_validation = 4;
|
|
399
|
-
optional MessageEncoding message_encoding = 5;
|
|
400
|
-
optional JsonFormat json_format = 6;
|
|
401
|
-
optional EnforceNamingStyle enforce_naming_style = 7;
|
|
398
|
+
optional FieldPresence field_presence = 1 [retention="RETENTION_RUNTIME", targets="TARGET_TYPE_FILE", feature_support.edition_introduced="EDITION_2023", edition_defaults.edition="EDITION_2023", edition_defaults.value="EXPLICIT"];
|
|
399
|
+
optional EnumType enum_type = 2 [retention="RETENTION_RUNTIME", targets="TARGET_TYPE_FILE", feature_support.edition_introduced="EDITION_2023", edition_defaults.edition="EDITION_PROTO3", edition_defaults.value="OPEN"];
|
|
400
|
+
optional RepeatedFieldEncoding repeated_field_encoding = 3 [retention="RETENTION_RUNTIME", targets="TARGET_TYPE_FILE", feature_support.edition_introduced="EDITION_2023", edition_defaults.edition="EDITION_PROTO3", edition_defaults.value="PACKED"];
|
|
401
|
+
optional Utf8Validation utf8_validation = 4 [retention="RETENTION_RUNTIME", targets="TARGET_TYPE_FILE", feature_support.edition_introduced="EDITION_2023", edition_defaults.edition="EDITION_PROTO3", edition_defaults.value="VERIFY"];
|
|
402
|
+
optional MessageEncoding message_encoding = 5 [retention="RETENTION_RUNTIME", targets="TARGET_TYPE_FILE", feature_support.edition_introduced="EDITION_2023", edition_defaults.edition="EDITION_LEGACY", edition_defaults.value="LENGTH_PREFIXED"];
|
|
403
|
+
optional JsonFormat json_format = 6 [retention="RETENTION_RUNTIME", targets="TARGET_TYPE_FILE", feature_support.edition_introduced="EDITION_2023", edition_defaults.edition="EDITION_PROTO3", edition_defaults.value="ALLOW"];
|
|
404
|
+
optional EnforceNamingStyle enforce_naming_style = 7 [retention="RETENTION_SOURCE", targets="TARGET_TYPE_METHOD", feature_support.edition_introduced="EDITION_2024", edition_defaults.edition="EDITION_2024", edition_defaults.value="STYLE2024"];
|
|
405
|
+
optional VisibilityFeature.DefaultSymbolVisibility default_symbol_visibility = 8 [retention="RETENTION_SOURCE", targets="TARGET_TYPE_FILE", feature_support.edition_introduced="EDITION_2024", edition_defaults.edition="EDITION_2024", edition_defaults.value="EXPORT_TOP_LEVEL"];
|
|
402
406
|
|
|
403
407
|
enum FieldPresence {
|
|
404
408
|
|
|
@@ -450,6 +454,20 @@ message FeatureSet {
|
|
|
450
454
|
STYLE_LEGACY = 2;
|
|
451
455
|
}
|
|
452
456
|
|
|
457
|
+
message VisibilityFeature {
|
|
458
|
+
|
|
459
|
+
enum DefaultSymbolVisibility {
|
|
460
|
+
|
|
461
|
+
DEFAULT_SYMBOL_VISIBILITY_UNKNOWN = 0;
|
|
462
|
+
EXPORT_ALL = 1;
|
|
463
|
+
EXPORT_TOP_LEVEL = 2;
|
|
464
|
+
LOCAL_ALL = 3;
|
|
465
|
+
STRICT = 4;
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
reserved 1 to max;
|
|
469
|
+
}
|
|
470
|
+
|
|
453
471
|
extensions 1000 to 9994, 9995 to 9999, 10000;
|
|
454
472
|
|
|
455
473
|
reserved 999;
|
|
@@ -506,4 +524,11 @@ message GeneratedCodeInfo {
|
|
|
506
524
|
ALIAS = 2;
|
|
507
525
|
}
|
|
508
526
|
}
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
enum SymbolVisibility {
|
|
530
|
+
|
|
531
|
+
VISIBILITY_UNSET = 0;
|
|
532
|
+
VISIBILITY_LOCAL = 1;
|
|
533
|
+
VISIBILITY_EXPORT = 2;
|
|
509
534
|
}
|
package/package.json
CHANGED