protoc 36.2.0 → 37.0.0-rc2

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 -->v36.2<!-- end -->.
4
+ This package provides the Protobuf compiler `protoc` <!-- inject: release.tag_name -->v37.0-rc2<!-- 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-36.2-linux-aarch_64.zip",
4
- "browser_download_url": "https://github.com/protocolbuffers/protobuf/releases/download/v36.2/protoc-36.2-linux-aarch_64.zip",
3
+ "name": "protoc-37.0-rc-2-linux-aarch_64.zip",
4
+ "browser_download_url": "https://github.com/protocolbuffers/protobuf/releases/download/v37.0-rc2/protoc-37.0-rc-2-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-36.2-linux-x86_64.zip",
12
- "browser_download_url": "https://github.com/protocolbuffers/protobuf/releases/download/v36.2/protoc-36.2-linux-x86_64.zip",
11
+ "name": "protoc-37.0-rc-2-linux-x86_64.zip",
12
+ "browser_download_url": "https://github.com/protocolbuffers/protobuf/releases/download/v37.0-rc2/protoc-37.0-rc-2-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-36.2-osx-aarch_64.zip",
20
- "browser_download_url": "https://github.com/protocolbuffers/protobuf/releases/download/v36.2/protoc-36.2-osx-aarch_64.zip",
19
+ "name": "protoc-37.0-rc-2-osx-aarch_64.zip",
20
+ "browser_download_url": "https://github.com/protocolbuffers/protobuf/releases/download/v37.0-rc2/protoc-37.0-rc-2-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-36.2-osx-x86_64.zip",
28
- "browser_download_url": "https://github.com/protocolbuffers/protobuf/releases/download/v36.2/protoc-36.2-osx-x86_64.zip",
27
+ "name": "protoc-37.0-rc-2-osx-x86_64.zip",
28
+ "browser_download_url": "https://github.com/protocolbuffers/protobuf/releases/download/v37.0-rc2/protoc-37.0-rc-2-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-36.2-win64.zip",
36
- "browser_download_url": "https://github.com/protocolbuffers/protobuf/releases/download/v36.2/protoc-36.2-win64.zip",
35
+ "name": "protoc-37.0-rc-2-win64.zip",
36
+ "browser_download_url": "https://github.com/protocolbuffers/protobuf/releases/download/v37.0-rc2/protoc-37.0-rc-2-win64.zip",
37
37
  "platform": "win32",
38
38
  "arch": "x64",
39
39
  "dotExe": true,
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -1406,13 +1406,39 @@ message SourceCodeInfo {
1406
1406
  // .options() // 7
1407
1407
  // .my_opt() // 10101
1408
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.
1409
+ // Option parts, e.g. name and value are also appended using field numbers
1410
+ // from `UninterpretedOption`, which deviates from the actual
1411
+ // FileDescriptorProto path and uses negative values.
1412
+ // E.g., for `(my_opt) = "foo"` the name `(my_opt)` is:
1413
+ // [ 4, 3, 7, 10101, -2 ]
1414
+ // where -2 is negative of `UninterpretedOption.name`.
1415
+ // The value "foo" is:
1416
+ // [ 4, 3, 7, 10101, -7 ]
1417
+ // where -7 is the negative of `UninterpretedOption.string_value`.
1418
+ //
1419
+ // For complex options (e.g., "(my_opt) = {a: 100}"), the path
1420
+ // will include -UninterpretedOption.aggregate_value (field number -8) as a
1421
+ // marker for each level of nesting.
1422
+ //
1423
+ // For example, given:
1424
+ // option (my_opt) = {a: 100};
1425
+ //
1426
+ // The path for the `a` identifier would look like:
1427
+ // [ 4, 3, 7, 10101, -8, 1, -2 ]
1428
+ //
1429
+ // And for the value 100:
1430
+ // [ 4, 3, 7, 10101, -8, 1, -4 ]
1431
+ //
1432
+ // Where:
1433
+ // -8: UninterpretedOption.aggregate_value marker
1434
+ // 1: The field number of "a" inside "my_opt"
1435
+ // -2: UninterpretedOption.name
1436
+ // -4: UninterpretedOption.positive_int_value
1437
+ //
1438
+ // We use negative values for UninterpretedOption due to keep it backward
1439
+ // compatible with pre-existing undocumented behavior where options using
1440
+ // dot-notation (e.g. `(my_opt).a = 100`) also produce a path like
1441
+ // [ 4, 3, 7, 10101, 1] that spans the entire option.
1416
1442
  repeated int32 path = 1 [packed = true];
1417
1443
 
1418
1444
  // Always has exactly three or four elements: start line, start column,
@@ -11,6 +11,7 @@ package pb.enumvalue;
11
11
 
12
12
  import "google/protobuf/descriptor.proto";
13
13
 
14
+ option go_package = "google.golang.org/protobuf/types/jsonoptionspb";
14
15
  option java_package = "com.google.protobuf.util";
15
16
 
16
17
  local message JsonEnumValueOptions {
@@ -13,4 +13,5 @@ package pb;
13
13
 
14
14
  import public "google/protobuf/json_enumvalue_options.proto";
15
15
 
16
+ option go_package = "google.golang.org/protobuf/types/jsonoptionspb";
16
17
  option java_package = "com.google.protobuf.util";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "protoc",
3
- "version": "36.2.0",
4
- "upstreamVersion": "v36.2",
3
+ "version": "37.0.0-rc2",
4
+ "upstreamVersion": "v37.0-rc2",
5
5
  "description": "Installs the protocol buffer compiler \"protoc\" for you.",
6
6
  "bin": {
7
7
  "protoc": "protoc.cjs"
@@ -36,7 +36,7 @@
36
36
  "installation"
37
37
  ],
38
38
  "devDependencies": {
39
- "tsx": "^4.23.12",
39
+ "tsx": "^4.23.15",
40
40
  "fflate": "^0.8.3"
41
41
  }
42
42
  }