Skip to content

proto-loader: Switch long dependency back to 4.x#2114

Merged
murgatroid99 merged 1 commit intogrpc:masterfrom
murgatroid99:proto-loader_revert_long
May 5, 2022
Merged

proto-loader: Switch long dependency back to 4.x#2114
murgatroid99 merged 1 commit intogrpc:masterfrom
murgatroid99:proto-loader_revert_long

Conversation

@murgatroid99
Copy link
Member

This puts it back to the way it was before I started changing this, but leaves the change to the import line intact so that it is still compatible with 5.x. When I started this, I didn't realize that long 4.x actually has a separate @types/long package, but 5.x includes its types. TypeScript seems to prefer the included type information, so the types in 5.x would override the types for 4.x even if the user explicitly declared a dependency on @types/long 4.x.

This should fix #2113.

@murgatroid99 murgatroid99 requested a review from nicolasnoble May 5, 2022 16:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

typescript error with @grpc/proto-loader: 0.6.11

2 participants