V2: Bump supported version of TypeScript to 4.9.5#805
Merged
Conversation
timostamm
commented
Apr 22, 2024
Comment on lines
+23
to
+27
| import { | ||
| type MessageInitShape, | ||
| type DescMessage, | ||
| protoInt64, | ||
| } from "@bufbuild/protobuf"; |
Member
Author
There was a problem hiding this comment.
We can not use type-only specifiers in imports, a feature added by TS v4.5.
| // @ts-ignore -- required for older TS | ||
| case: "oneofInt64Field", | ||
| // @ts-ignore -- required for older TS | ||
| // @ts-expect-error expected type error |
Member
Author
There was a problem hiding this comment.
In tests, we can replace some @ts-ignore annotations with @ts-expect-error, since all supported versions of TS produce an error here.
smaye81
approved these changes
Apr 22, 2024
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
v4.9 was released well over two years ago.
When we first released protobuf-es, the minimum supported version of TypeScript - v4.1 - was about as old. So it seems reasonable to support a similar range of older versions with v2 of protobuf-es.