-
Notifications
You must be signed in to change notification settings - Fork 133
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
SNOW-922989: The bignumber.js floor function has been removed in versions >= 6.0 #648
Comments
hi and thank you for the very detailed issue submission and the PR as well ! as you noticed, at this moment |
We're checking how to best approach this. Perhaps bump |
The only reason I chose v6.0 is because that's where the |
I see PR #649 is merged now and thus will be part of the October release, expected towards the end of the month. Thank you for your contribution ! |
node.js driver version 1.9.1 released with the fix and is available on npm. thank you all for bearing with us ! |
What version of NodeJS driver are you using?
v1.7.0
What operating system and processor architecture are you using?
Linux - Debian Stretch AMD64 (node:14.18.1 container from docker hub)
What version of NodeJS are you using?
v14.18.1
What are the component versions in the environment (
npm list
)?Relevant dependency is bignumber.js, latest version is 9.x, but this issue exists when using any bignumber.js version >= 6.0
5.Server version:
7.33.1
Calling the
convertRawTimestampTz
function while pulling in a bignumber.js dependency with a version >= 6.0.0 results in the error:Release notes from bignumber.js show that the floor function was removed in version 6.0.0: https://github.com/MikeMcl/bignumber.js/blob/6f2932fe5b41e0a2a037ae3004d6562a68c70cff/CHANGELOG.md?plain=1#L113
The expected code changes to replace any calls to the floor function can be found here: MikeMcl/bignumber.js#139 (comment)
What did you expect to see?
Expected to see the bignumber object rounded down (the functionality that the floor() function should provide)
Can you set logging to DEBUG and collect the logs?
Not necessary, as this is a syntax/object usage error
What is your Snowflake account identifier, if any? (Optional)
The text was updated successfully, but these errors were encountered: