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: 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.

- 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants