protoc 35.1.0 → 36.0.0-rc1

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/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  protoc
2
2
  ======
3
3
 
4
- This package provides the Protobuf compiler `protoc` <!-- inject: release.tag_name -->v35.1<!-- end -->.
4
+ This package provides the Protobuf compiler `protoc` <!-- inject: release.tag_name -->v36.0-rc1<!-- end -->.
5
5
 
6
6
  ```shell script
7
7
  npm install --save-dev protoc
package/assets.json CHANGED
@@ -1,39 +1,39 @@
1
1
  [
2
2
  {
3
- "name": "protoc-35.1-linux-aarch_64.zip",
4
- "browser_download_url": "https://github.com/protocolbuffers/protobuf/releases/download/v35.1/protoc-35.1-linux-aarch_64.zip",
3
+ "name": "protoc-36.0-rc-1-linux-aarch_64.zip",
4
+ "browser_download_url": "https://github.com/protocolbuffers/protobuf/releases/download/v36.0-rc1/protoc-36.0-rc-1-linux-aarch_64.zip",
5
5
  "platform": "linux",
6
6
  "arch": "arm64",
7
7
  "dotExe": false,
8
8
  "executable": "protoc-linux-aarch_64"
9
9
  },
10
10
  {
11
- "name": "protoc-35.1-linux-x86_64.zip",
12
- "browser_download_url": "https://github.com/protocolbuffers/protobuf/releases/download/v35.1/protoc-35.1-linux-x86_64.zip",
11
+ "name": "protoc-36.0-rc-1-linux-x86_64.zip",
12
+ "browser_download_url": "https://github.com/protocolbuffers/protobuf/releases/download/v36.0-rc1/protoc-36.0-rc-1-linux-x86_64.zip",
13
13
  "platform": "linux",
14
14
  "arch": "x64",
15
15
  "dotExe": false,
16
16
  "executable": "protoc-linux-x86_64"
17
17
  },
18
18
  {
19
- "name": "protoc-35.1-osx-aarch_64.zip",
20
- "browser_download_url": "https://github.com/protocolbuffers/protobuf/releases/download/v35.1/protoc-35.1-osx-aarch_64.zip",
19
+ "name": "protoc-36.0-rc-1-osx-aarch_64.zip",
20
+ "browser_download_url": "https://github.com/protocolbuffers/protobuf/releases/download/v36.0-rc1/protoc-36.0-rc-1-osx-aarch_64.zip",
21
21
  "platform": "darwin",
22
22
  "arch": "arm64",
23
23
  "dotExe": false,
24
24
  "executable": "protoc-osx-aarch_64"
25
25
  },
26
26
  {
27
- "name": "protoc-35.1-osx-x86_64.zip",
28
- "browser_download_url": "https://github.com/protocolbuffers/protobuf/releases/download/v35.1/protoc-35.1-osx-x86_64.zip",
27
+ "name": "protoc-36.0-rc-1-osx-x86_64.zip",
28
+ "browser_download_url": "https://github.com/protocolbuffers/protobuf/releases/download/v36.0-rc1/protoc-36.0-rc-1-osx-x86_64.zip",
29
29
  "platform": "darwin",
30
30
  "arch": "x64",
31
31
  "dotExe": false,
32
32
  "executable": "protoc-osx-x86_64"
33
33
  },
34
34
  {
35
- "name": "protoc-35.1-win64.zip",
36
- "browser_download_url": "https://github.com/protocolbuffers/protobuf/releases/download/v35.1/protoc-35.1-win64.zip",
35
+ "name": "protoc-36.0-rc-1-win64.zip",
36
+ "browser_download_url": "https://github.com/protocolbuffers/protobuf/releases/download/v36.0-rc1/protoc-36.0-rc-1-win64.zip",
37
37
  "platform": "win32",
38
38
  "arch": "x64",
39
39
  "dotExe": true,
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -20,4 +20,17 @@ extend google.protobuf.FeatureSet {
20
20
  }
21
21
 
22
22
  message CSharpFeatures {
23
+ // Whether the generated files should have nullable reference type annotations.
24
+ // When enabled, the generated C# code includes `#nullable enable annotations`
25
+ // and annotates message-typed properties and certain parameters with `?`.
26
+ optional bool nullable_reference_types = 1 [
27
+ retention = RETENTION_RUNTIME,
28
+ targets = TARGET_TYPE_FIELD,
29
+ targets = TARGET_TYPE_MESSAGE,
30
+ targets = TARGET_TYPE_FILE,
31
+ feature_support = {
32
+ edition_introduced: EDITION_2026,
33
+ },
34
+ edition_defaults = { edition: EDITION_LEGACY, value: "false" }
35
+ ];
23
36
  }
@@ -524,7 +524,14 @@ message FileOptions {
524
524
 
525
525
  // Enables the use of arenas for the proto messages in this file. This applies
526
526
  // only to generated classes for C++.
527
- optional bool cc_enable_arenas = 31 [default = true];
527
+ optional bool cc_enable_arenas = 31 [
528
+ default = true,
529
+ feature_support = {
530
+ edition_removed: EDITION_2026
531
+ removal_error: "cc_enable_arenas is enabled by default in every edition and overrides are ignored."
532
+ "This option is removed in editions 2026 and above."
533
+ }
534
+ ];
528
535
 
529
536
  // Sets the objective c class prefix which is prepended to all objective c
530
537
  // generated classes from this .proto. There is no default.
@@ -929,7 +936,11 @@ message EnumValueOptions {
929
936
 
930
937
  // Range reserved for first-class extension options defined by the Protobuf
931
938
  // team. Custom options must use the 1000+ range instead.
932
- extensions 990 to 998;
939
+ extensions 990 to 998 [declaration = {
940
+ number: 998,
941
+ full_name: ".pb.enumvalue.json",
942
+ type: ".pb.enumvalue.JsonEnumValueOptions"
943
+ }];
933
944
 
934
945
  // The parser stores options it doesn't recognize here. See above.
935
946
  repeated UninterpretedOption uninterpreted_option = 999;
@@ -1168,7 +1179,7 @@ message FeatureSet {
1168
1179
  },
1169
1180
  edition_defaults = { edition: EDITION_LEGACY, value: "STYLE_LEGACY" },
1170
1181
  edition_defaults = { edition: EDITION_2024, value: "STYLE2024" },
1171
- edition_defaults = { edition: EDITION_UNSTABLE, value: "STYLE2026" }
1182
+ edition_defaults = { edition: EDITION_2026, value: "STYLE2026" }
1172
1183
  ];
1173
1184
 
1174
1185
  message VisibilityFeature {
@@ -1199,9 +1210,41 @@ message FeatureSet {
1199
1210
  edition_introduced: EDITION_2024,
1200
1211
  },
1201
1212
  edition_defaults = { edition: EDITION_LEGACY, value: "EXPORT_ALL" },
1202
- edition_defaults = { edition: EDITION_2024, value: "EXPORT_TOP_LEVEL" }
1213
+ edition_defaults = { edition: EDITION_2024, value: "EXPORT_TOP_LEVEL" },
1214
+ edition_defaults = { edition: EDITION_2026, value: "STRICT" }
1203
1215
  ];
1204
1216
 
1217
+ message ProtoLimitsFeature {
1218
+ enum EnforceProtoLimits {
1219
+ PROTO_LIMITS_UNKNOWN = 0;
1220
+
1221
+ // Default pre-EDITION_2026: there are no limit enforcement at the protoc
1222
+ // level. Practical limits still exist, but they will tend to fail while
1223
+ // compiling protoc-generated code, and these limits tend to be language
1224
+ // or toolchain specific.
1225
+ LEGACY_NO_EXPLICIT_LIMITS = 1;
1226
+
1227
+ // A set of limits enforced by Edition 2026 by default. For a detailed
1228
+ // list of all the limits please consult the Edition 2026 documentation.
1229
+ PROTO_LIMITS2026 = 2;
1230
+ }
1231
+ }
1232
+ optional ProtoLimitsFeature.EnforceProtoLimits enforce_proto_limits = 9 [
1233
+ retention = RETENTION_SOURCE,
1234
+ targets = TARGET_TYPE_ENUM,
1235
+ targets = TARGET_TYPE_MESSAGE,
1236
+ targets = TARGET_TYPE_FIELD,
1237
+ targets = TARGET_TYPE_ONEOF,
1238
+ feature_support = {
1239
+ edition_introduced: EDITION_2026,
1240
+ },
1241
+ edition_defaults = {
1242
+ edition: EDITION_LEGACY,
1243
+ value: "LEGACY_NO_EXPLICIT_LIMITS"
1244
+ },
1245
+ edition_defaults = { edition: EDITION_2026, value: "PROTO_LIMITS2026" }
1246
+ ];
1247
+
1205
1248
  reserved 999;
1206
1249
 
1207
1250
  extensions 1000 to 9994 [
@@ -1353,6 +1396,23 @@ message SourceCodeInfo {
1353
1396
  // [ 4, 3, 2, 7 ]
1354
1397
  // this path refers to the whole field declaration (from the beginning
1355
1398
  // of the label to the terminating semicolon).
1399
+ //
1400
+ // For options, the path refers to the interpreted option in the descriptor.
1401
+ // E.g., for a custom option `(my_opt) = "foo"` on a message using extension
1402
+ // number 10101, the path is:
1403
+ // [ 4, 3, 7, 10101 ]
1404
+ // refers to:
1405
+ // file.message_type(3) // 4, 3
1406
+ // .options() // 7
1407
+ // .my_opt() // 10101
1408
+ //
1409
+ // Sub-locations corresponding to the interpreted option's corresponding
1410
+ // `UninterpretedOption` are also appended to the interpreted option, which
1411
+ // deviates from the actual FileDescriptorProto path. E.g.:
1412
+ // [ 4, 3, 7, 10101, 2 ]
1413
+ // refers to the option name `(my_opt)`, and:
1414
+ // [ 4, 3, 7, 10101, 7 ]
1415
+ // refers to the "foo" string value of the option.
1356
1416
  repeated int32 path = 1 [packed = true];
1357
1417
 
1358
1418
  // Always has exactly three or four elements: start line, start column,
@@ -96,9 +96,9 @@ message Value {
96
96
  // the null value for the `Value` type union.
97
97
  //
98
98
  // A field of type `NullValue` with any value other than `0` is considered
99
- // invalid. Most ProtoJSON serializers will emit a Value with a `null_value` set
100
- // as a JSON `null` regardless of the integer value, and so will round trip to
101
- // a `0` value.
99
+ // invalid. Most ProtoJSON serializers will emit a `Value` with a `null_value`
100
+ // set as a JSON `null` regardless of the integer value, and so will round trip
101
+ // to a `0` value.
102
102
  enum NullValue {
103
103
  // Null value.
104
104
  NULL_VALUE = 0;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "protoc",
3
- "version": "35.1.0",
4
- "upstreamVersion": "v35.1",
3
+ "version": "36.0.0-rc1",
4
+ "upstreamVersion": "v36.0-rc1",
5
5
  "description": "Installs the protocol buffer compiler \"protoc\" for you.",
6
6
  "bin": {
7
7
  "protoc": "protoc.cjs"