-
Notifications
You must be signed in to change notification settings - Fork 303
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
Amir/FEQ-219/Upgrade node version to 18 #8877
Amir/FEQ-219/Upgrade node version to 18 #8877
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Codecov Report
@@ Coverage Diff @@
## master #8877 +/- ##
=======================================
Coverage 19.98% 19.98%
=======================================
Files 1817 1817
Lines 41156 41156
Branches 8178 8178
=======================================
Hits 8227 8227
Misses 32085 32085
Partials 844 844 |
A production App ID was automatically generated for this PR. (log)
Click here to copy & paste above information.
|
🚨 Lighthouse report for the changes in this PR:
Lighthouse ran with https://deriv-app-git-fork-amir-deriv-amir-feq-219upgrade-nodejs-fccf7d.binary.sx/ |
hey @amir-deriv, you also need to update the node version in circleci config. |
…m:amir-deriv/deriv-app into amir/feq-219/upgrade-nodejs-version-to-18
@amir-deriv please update the readme file too. we have a badge there. |
…m:amir-deriv/deriv-app into amir/feq-219/upgrade-nodejs-version-to-18
Object.defineProperty(window, 'location', { | ||
writable: true, | ||
value: new URL(url), | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just out of curiosity, didn't the previous code work with node 18? 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1, any reason for this change?
packages/account/package.json
Outdated
@@ -11,7 +11,7 @@ | |||
"url": "https://github.com/binary-com/deriv-app/issues" | |||
}, | |||
"engines": { | |||
"node": "^16.16.0" | |||
"node": "^18.16.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same to old. using a more general 18.x
is better imo
Object.defineProperty(window, 'location', { | ||
writable: true, | ||
value: new URL(url), | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1, any reason for this change?
Co-authored-by: yashim-deriv <yashim@regentmarkets.com>
This is related to node 18.x , it's not letting us redefine a property on window the way we were doing it before so I just changed the way to do it. It's working on node 19.x but the fix is not there in 18.x please refer to this. nodejs/node#47563 |
…m:amir-deriv/deriv-app into amir/feq-219/upgrade-nodejs-version-to-18
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
⏳ Generating Lighthouse report... |
This reverts commit ed0eca0.
Changes:
Upgrade node js version from
16
to18
Screenshots:
Please provide some screenshots of the change.