Skip to content

Conversation

@timostamm
Copy link
Member

@timostamm timostamm commented Jun 17, 2022

We now compile @bufbuild/protobuf to es2017 instead of es2020. It could be es2016 if we did not use Object.entries. es2020 is only required for the BigInt constructor function and for BigInt literals.

protobuf-test compiles to es2017 now as well, to ensure consumers of @bufbuild/protobuf do not have any issues.

One use of a BigInt literal was left in google.protobuf.Duration, which would have blocked es2017 users of using it. It is removed by the first commit.

@timostamm timostamm merged commit fdbf593 into main Jun 17, 2022
@timostamm timostamm deleted the tstamm/clarify-bigint branch June 17, 2022 18:02
timostamm added a commit to connectrpc/connect-es that referenced this pull request Jun 21, 2022
Similar to bufbuild/protobuf-es#122, we were still using target es2020, but should be fine with es2017.
This was referenced Jun 21, 2022
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.

3 participants