Skip to content

Commit

Permalink
chore: Bump TypeScript in ts-proto-descriptors. (stephenh#606)
Browse files Browse the repository at this point in the history
* Bump TypeScript in ts-proto-descriptors.

* v1.7.0
  • Loading branch information
stephenh authored Jul 1, 2022
1 parent 723b528 commit 6eb996e
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 25 deletions.
6 changes: 1 addition & 5 deletions protos/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,7 @@ protoc \
./google/protobuf/descriptor.proto \
./google/protobuf/compiler/plugin.proto

./node_modules/.bin/tsc \
./index.ts \
./google/protobuf/descriptor.ts \
./google/protobuf/compiler/plugin.ts \
--outDir dist --declaration --downlevelIteration
./node_modules/.bin/tsc -p tsconfig.json



3 changes: 1 addition & 2 deletions protos/google/protobuf/compiler/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,8 @@ export function codeGeneratorResponse_FeatureToJSON(object: CodeGeneratorRespons
return 'FEATURE_NONE';
case CodeGeneratorResponse_Feature.FEATURE_PROTO3_OPTIONAL:
return 'FEATURE_PROTO3_OPTIONAL';
case CodeGeneratorResponse_Feature.UNRECOGNIZED:
default:
return 'UNRECOGNIZED';
return 'UNKNOWN';
}
}

Expand Down
18 changes: 6 additions & 12 deletions protos/google/protobuf/descriptor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -303,9 +303,8 @@ export function fieldDescriptorProto_TypeToJSON(object: FieldDescriptorProto_Typ
return 'TYPE_SINT32';
case FieldDescriptorProto_Type.TYPE_SINT64:
return 'TYPE_SINT64';
case FieldDescriptorProto_Type.UNRECOGNIZED:
default:
return 'UNRECOGNIZED';
return 'UNKNOWN';
}
}

Expand Down Expand Up @@ -343,9 +342,8 @@ export function fieldDescriptorProto_LabelToJSON(object: FieldDescriptorProto_La
return 'LABEL_REQUIRED';
case FieldDescriptorProto_Label.LABEL_REPEATED:
return 'LABEL_REPEATED';
case FieldDescriptorProto_Label.UNRECOGNIZED:
default:
return 'UNRECOGNIZED';
return 'UNKNOWN';
}
}

Expand Down Expand Up @@ -576,9 +574,8 @@ export function fileOptions_OptimizeModeToJSON(object: FileOptions_OptimizeMode)
return 'CODE_SIZE';
case FileOptions_OptimizeMode.LITE_RUNTIME:
return 'LITE_RUNTIME';
case FileOptions_OptimizeMode.UNRECOGNIZED:
default:
return 'UNRECOGNIZED';
return 'UNKNOWN';
}
}

Expand Down Expand Up @@ -753,9 +750,8 @@ export function fieldOptions_CTypeToJSON(object: FieldOptions_CType): string {
return 'CORD';
case FieldOptions_CType.STRING_PIECE:
return 'STRING_PIECE';
case FieldOptions_CType.UNRECOGNIZED:
default:
return 'UNRECOGNIZED';
return 'UNKNOWN';
}
}

Expand Down Expand Up @@ -795,9 +791,8 @@ export function fieldOptions_JSTypeToJSON(object: FieldOptions_JSType): string {
return 'JS_STRING';
case FieldOptions_JSType.JS_NUMBER:
return 'JS_NUMBER';
case FieldOptions_JSType.UNRECOGNIZED:
default:
return 'UNRECOGNIZED';
return 'UNKNOWN';
}
}

Expand Down Expand Up @@ -900,9 +895,8 @@ export function methodOptions_IdempotencyLevelToJSON(object: MethodOptions_Idemp
return 'NO_SIDE_EFFECTS';
case MethodOptions_IdempotencyLevel.IDEMPOTENT:
return 'IDEMPOTENT';
case MethodOptions_IdempotencyLevel.UNRECOGNIZED:
default:
return 'UNRECOGNIZED';
return 'UNKNOWN';
}
}

Expand Down
4 changes: 2 additions & 2 deletions protos/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ts-proto-descriptors",
"version": "1.6.0",
"version": "1.7.0",
"description": "",
"repository": "github:stephenh/ts-proto",
"keywords": [],
Expand All @@ -17,6 +17,6 @@
},
"devDependencies": {
"ts-proto": "^1.103.0",
"typescript": "^4.1.5"
"typescript": "^4.7.4"
}
}
12 changes: 12 additions & 0 deletions protos/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"compilerOptions": {
"target": "es2018",
"lib": ["es2018"],
"module": "commonjs",
"strict": false,
"outDir": "dist",
"declaration": true,
"skipLibCheck": true,
"downlevelIteration": true
},
}
8 changes: 4 additions & 4 deletions protos/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ ts-proto@^1.103.0:
ts-poet "^4.5.0"
ts-proto-descriptors "1.3.1"

typescript@^4.1.5:
version "4.1.5"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.1.5.tgz#123a3b214aaff3be32926f0d8f1f6e704eb89a72"
integrity sha512-6OSu9PTIzmn9TCDiovULTnET6BgXtDYL4Gg4szY+cGsc3JP1dQL8qvE8kShTRx1NIw4Q9IBHlwODjkjWEtMUyA==
typescript@^4.7.4:
version "4.7.4"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.7.4.tgz#1a88596d1cf47d59507a1bcdfb5b9dfe4d488235"
integrity sha512-C0WQT0gezHuw6AdY1M2jxUO83Rjf0HP7Sk1DtXj6j1EwkQNZrHAg2XPWlq62oqEhYvONq5pkC2Y9oPljWToLmQ==

0 comments on commit 6eb996e

Please sign in to comment.