Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: allow Decimal128(string), Long(string), Long(bigint) #437

Merged
merged 3 commits into from
May 18, 2021

Conversation

addaleax
Copy link
Contributor

Description

This adds support for the following constructor signatures:

  • [new] Decimal128(string)
  • [new] Long(string[, unsigned])
  • [new] Long(bigint[, unsigned])

While the first two of these would not have thrown exceptions before,
they would also not have returned any meaningful results, so this
is not a breaking change.

NODE-3264

This adds support for the following constructor signatures:

- `[new] Decimal128(string)`
- `[new] Long(string[, unsigned])`
- `[new] Long(bigint[, unsigned])`

While the first two of these would not have thrown exceptions before,
they would also not have returned any meaningful results, so this
is not a breaking change.

NODE-3264
@nbbeeken nbbeeken requested review from a team, durran, emadum, nbbeeken and dariakp and removed request for a team and durran May 17, 2021 15:04
src/decimal128.ts Outdated Show resolved Hide resolved
src/long.ts Outdated Show resolved Hide resolved
Copy link
Contributor

@emadum emadum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@nbbeeken nbbeeken left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@nbbeeken nbbeeken merged commit 392c1bc into mongodb:master May 18, 2021
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