@bufbuild/protoc-gen-es 2.5.1 → 2.6.0

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bufbuild/protoc-gen-es",
3
- "version": "2.5.1",
3
+ "version": "2.6.0",
4
4
  "license": "Apache-2.0",
5
5
  "description": "Protocol Buffers code generator for ECMAScript",
6
6
  "keywords": [
@@ -32,14 +32,14 @@
32
32
  },
33
33
  "preferUnplugged": true,
34
34
  "dependencies": {
35
- "@bufbuild/protobuf": "^2.5.1",
36
- "@bufbuild/protoplugin": "2.5.1"
35
+ "@bufbuild/protobuf": "^2.6.0",
36
+ "@bufbuild/protoplugin": "2.6.0"
37
37
  },
38
38
  "devDependencies": {
39
39
  "upstream-protobuf": "*"
40
40
  },
41
41
  "peerDependencies": {
42
- "@bufbuild/protobuf": "2.5.1"
42
+ "@bufbuild/protobuf": "2.6.0"
43
43
  },
44
44
  "peerDependenciesMeta": {
45
45
  "@bufbuild/protobuf": {
@@ -131,7 +131,7 @@ function messageFieldTypeScriptType(field, imports, validTypes) {
131
131
  ((_a = field.parent) === null || _a === void 0 ? void 0 : _a.typeName) != wkt_1.ValueSchema.typeName) {
132
132
  return imports.JsonObject;
133
133
  }
134
- if (validTypes) {
134
+ if (validTypes && !(field.message.file.proto.name in codegenv2_1.wktPublicImportPaths)) {
135
135
  return {
136
136
  kind: "es_valid_type_ref",
137
137
  desc: field.message,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bufbuild/protoc-gen-es",
3
- "version": "2.5.1",
3
+ "version": "2.6.0",
4
4
  "license": "Apache-2.0",
5
5
  "description": "Protocol Buffers code generator for ECMAScript",
6
6
  "keywords": [
@@ -32,14 +32,14 @@
32
32
  },
33
33
  "preferUnplugged": true,
34
34
  "dependencies": {
35
- "@bufbuild/protobuf": "^2.5.1",
36
- "@bufbuild/protoplugin": "2.5.1"
35
+ "@bufbuild/protobuf": "^2.6.0",
36
+ "@bufbuild/protoplugin": "2.6.0"
37
37
  },
38
38
  "devDependencies": {
39
39
  "upstream-protobuf": "*"
40
40
  },
41
41
  "peerDependencies": {
42
- "@bufbuild/protobuf": "2.5.1"
42
+ "@bufbuild/protobuf": "2.6.0"
43
43
  },
44
44
  "peerDependenciesMeta": {
45
45
  "@bufbuild/protobuf": {