Skip to content
New issue

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

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

Already on GitHub? # to your account

feat: reverse and extend Timestamp constructor arguments MONGOSH-930 #1049

Merged
merged 2 commits into from
Aug 3, 2021

Conversation

addaleax
Copy link
Contributor

  • Accept a Timestamp({ t: <number>, i: <number> }) signature
  • Reverse the order of arguments when two arguments are passed,
    i.e. Timestamp(t, i) instead of Timestamp(i, t), to match
    the legacy shell
  • Print Timestamps using the Timestamp({ t, i }) format

This should land together with the corresponding BSON package PR,
mongodb/js-bson#449.

addaleax added 2 commits July 30, 2021 13:10
- Accept a `Timestamp({ t: <number>, i: <number> })` signature
- Reverse the order of arguments when two arguments are passed,
  i.e. `Timestamp(t, i)` instead of `Timestamp(i, t)`, to match
  the legacy shell
- Print Timestamps using the `Timestamp({ t, i })` format

This should land together with the corresponding BSON package PR,
mongodb/js-bson#449.
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants