-
Notifications
You must be signed in to change notification settings - Fork 440
TEZ-4419: Upgrade node and yarn version and fix npm security issues in Tez UI module #215
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
Changes from 5 commits
3f4a25f
c87c5cb
36e6467
664c59a
b728441
bc0c2db
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -29,7 +29,7 @@ | |
| <properties> | ||
| <webappDir>src/main/webapp</webappDir> | ||
|
|
||
| <nodeVersion>v5.12.0</nodeVersion> | ||
| <nodeVersion>v8.9.0</nodeVersion> | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. maybe we can try with v16 ?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @slachiewicz When I update the node version to 16.15.1, this is the error that I get : exports.dir = path.resolve(os.tmpDir()); TypeError: os.tmpDir is not a function
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What I think this error means is that we need to replace all the places of occurrence of new Buffer() to either Buffer.alloc() or Buffer.from(). Let me know you thoughts
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Probably stack should be upgraded. I commented on Node's version because currently 16 is LTS version. I don't have experience with frontend tools.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes thats true, but I think it will be another big change. I think we should make this change first and then work on upgrading the stack. Any thoughts ? @abstractdog @slachiewicz |
||
| <nodeExecutable>${basedir}/src/main/webapp/node/node</nodeExecutable> | ||
|
|
||
| <packageManagerScript>node/yarn/dist/bin/yarn.js</packageManagerScript> | ||
|
|
@@ -374,7 +374,7 @@ | |
| </goals> | ||
| <configuration> | ||
| <nodeVersion>${nodeVersion}</nodeVersion> | ||
| <yarnVersion>v0.21.3</yarnVersion> | ||
| <yarnVersion>v1.6.0</yarnVersion> | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please mention the RFC which adds selective dependency resolution in the description. |
||
| </configuration> | ||
| </execution> | ||
| <execution> | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -212,16 +212,16 @@ [email protected]: | |
| version "0.9.0" | ||
| resolved "https://registry.yarnpkg.com/async/-/async-0.9.0.tgz#ac3613b1da9bed1b47510bb4651b8931e47146c7" | ||
|
|
||
| [email protected], async@^2.0.1: | ||
| version "2.6.4" | ||
| resolved "https://registry.yarnpkg.com/async/-/async-2.6.4.tgz#706b7ff6084664cd7eae713f6f965433b5504221" | ||
| dependencies: | ||
| lodash "^4.17.14" | ||
|
|
||
| async@^1.0.0: | ||
| version "1.5.2" | ||
| resolved "https://registry.yarnpkg.com/async/-/async-1.5.2.tgz#ec6a61ae56480c0c3cb241c95618e20892f9672a" | ||
|
|
||
| async@^2.0.1: | ||
| version "2.3.0" | ||
| resolved "https://registry.yarnpkg.com/async/-/async-2.3.0.tgz#1013d1051047dd320fe24e494d5c66ecaf6147d9" | ||
| dependencies: | ||
| lodash "^4.14.0" | ||
|
|
||
| async@~0.2.6, async@~0.2.9: | ||
| version "0.2.10" | ||
| resolved "https://registry.yarnpkg.com/async/-/async-0.2.10.tgz#b6bbe0b0674b9d719708ca38de8c237cb526c3d1" | ||
|
|
@@ -473,6 +473,12 @@ [email protected]: | |
| dependencies: | ||
| hoek "2.x.x" | ||
|
|
||
| [email protected]: | ||
| version "7.3.0" | ||
| resolved "https://registry.yarnpkg.com/boom/-/boom-7.3.0.tgz#733a6d956d33b0b1999da3fe6c12996950d017b9" | ||
| dependencies: | ||
| hoek "6.x.x" | ||
|
|
||
| [email protected]: | ||
| version "0.6.1" | ||
| resolved "https://registry.yarnpkg.com/bower-config/-/bower-config-0.6.1.tgz#7093155688bef44079bf4cb32d189312c87ded60" | ||
|
|
@@ -1180,11 +1186,11 @@ cross-spawn-async@^2.0.0: | |
| lru-cache "^4.0.0" | ||
| which "^1.2.8" | ||
|
|
||
| [email protected]: | ||
| version "2.0.5" | ||
| resolved "https://registry.yarnpkg.com/cryptiles/-/cryptiles-2.0.5.tgz#3bdfecdc608147c1c67202fa291e7dca59eaa3b8" | ||
| [email protected], [email protected]: | ||
| version "4.1.2" | ||
| resolved "https://registry.yarnpkg.com/cryptiles/-/cryptiles-4.1.2.tgz#363c9ab5c859da9d2d6fb901b64d980966181184" | ||
| dependencies: | ||
| boom "2.x.x" | ||
| boom "7.x.x" | ||
|
|
||
| [email protected]: | ||
| version "0.5.3" | ||
|
|
@@ -2472,6 +2478,10 @@ [email protected]: | |
| version "2.16.3" | ||
| resolved "https://registry.yarnpkg.com/hoek/-/hoek-2.16.3.tgz#20bb7403d3cea398e91dc4710a8ff1b8274a25ed" | ||
|
|
||
| [email protected]: | ||
| version "6.1.3" | ||
| resolved "https://registry.yarnpkg.com/hoek/-/hoek-6.1.3.tgz#73b7d33952e01fe27a38b0457294b79dd8da242c" | ||
|
|
||
| home-or-tmp@^1.0.0: | ||
| version "1.0.0" | ||
| resolved "https://registry.yarnpkg.com/home-or-tmp/-/home-or-tmp-1.0.0.tgz#4b9f1e40800c3e50c6c27f781676afcce71f3985" | ||
|
|
@@ -2789,9 +2799,9 @@ json-parse-helpfulerror@^1.0.2: | |
| dependencies: | ||
| jju "^1.1.0" | ||
|
|
||
| [email protected]: | ||
| version "0.2.3" | ||
| resolved "https://registry.yarnpkg.com/json-schema/-/json-schema-0.2.3.tgz#b480c892e59a2f05954ce727bd3f2a4e882f9e13" | ||
| [email protected], [email protected]: | ||
| version "0.4.0" | ||
| resolved "https://registry.yarnpkg.com/json-schema/-/json-schema-0.4.0.tgz#f7de4cf6efab838ebaeb3236474cbba5a1930ab5" | ||
|
|
||
| json-stable-stringify@^1.0.0, json-stable-stringify@^1.0.1: | ||
| version "1.0.1" | ||
|
|
@@ -2821,9 +2831,9 @@ jsonify@~0.0.0: | |
| version "0.0.0" | ||
| resolved "https://registry.yarnpkg.com/jsonify/-/jsonify-0.0.0.tgz#2c74b6ee41d93ca51b7b5aaee8f503631d252a73" | ||
|
|
||
| jsonpointer@^4.0.0: | ||
| version "4.0.1" | ||
| resolved "https://registry.yarnpkg.com/jsonpointer/-/jsonpointer-4.0.1.tgz#4fd92cb34e0e9db3c89c8622ecf51f9b978c6cb9" | ||
| jsonpointer@4.1.0, jsonpointer@^4.0.0: | ||
| version "4.1.0" | ||
| resolved "https://registry.yarnpkg.com/jsonpointer/-/jsonpointer-4.1.0.tgz#501fb89986a2389765ba09e6053299ceb4f2c2cc" | ||
|
|
||
| jsprim@^1.2.2: | ||
| version "1.4.0" | ||
|
|
@@ -2916,14 +2926,6 @@ lodash-node@^3.4.0: | |
| version "3.10.2" | ||
| resolved "https://registry.yarnpkg.com/lodash-node/-/lodash-node-3.10.2.tgz#2598d5b1b54e6a68b4cb544e5c730953cbf632f7" | ||
|
|
||
| lodash._arraycopy@^3.0.0: | ||
| version "3.0.0" | ||
| resolved "https://registry.yarnpkg.com/lodash._arraycopy/-/lodash._arraycopy-3.0.0.tgz#76e7b7c1f1fb92547374878a562ed06a3e50f6e1" | ||
|
|
||
| lodash._arrayeach@^3.0.0: | ||
| version "3.0.0" | ||
| resolved "https://registry.yarnpkg.com/lodash._arrayeach/-/lodash._arrayeach-3.0.0.tgz#bab156b2a90d3f1bbd5c653403349e5e5933ef9e" | ||
|
|
||
| lodash._baseassign@^3.0.0: | ||
| version "3.2.0" | ||
| resolved "https://registry.yarnpkg.com/lodash._baseassign/-/lodash._baseassign-3.2.0.tgz#8c38a099500f215ad09e59f1722fd0c52bfe0a4e" | ||
|
|
@@ -2944,10 +2946,6 @@ lodash._basecopy@^3.0.0: | |
| version "3.0.1" | ||
| resolved "https://registry.yarnpkg.com/lodash._basecopy/-/lodash._basecopy-3.0.1.tgz#8da0e6a876cf344c0ad8a54882111dd3c5c7ca36" | ||
|
|
||
| lodash._basefor@^3.0.0: | ||
| version "3.0.3" | ||
| resolved "https://registry.yarnpkg.com/lodash._basefor/-/lodash._basefor-3.0.3.tgz#7550b4e9218ef09fad24343b612021c79b4c20c2" | ||
|
|
||
| lodash._baseindexof@^3.0.0: | ||
| version "3.1.0" | ||
| resolved "https://registry.yarnpkg.com/lodash._baseindexof/-/lodash._baseindexof-3.1.0.tgz#fe52b53a1c6761e42618d654e4a25789ed61822c" | ||
|
|
@@ -3021,14 +3019,6 @@ lodash.isarray@^3.0.0: | |
| version "3.0.4" | ||
| resolved "https://registry.yarnpkg.com/lodash.isarray/-/lodash.isarray-3.0.4.tgz#79e4eb88c36a8122af86f844aa9bcd851b5fbb55" | ||
|
|
||
| lodash.isplainobject@^3.0.0: | ||
| version "3.2.0" | ||
| resolved "https://registry.yarnpkg.com/lodash.isplainobject/-/lodash.isplainobject-3.2.0.tgz#9a8238ae16b200432960cd7346512d0123fbf4c5" | ||
| dependencies: | ||
| lodash._basefor "^3.0.0" | ||
| lodash.isarguments "^3.0.0" | ||
| lodash.keysin "^3.0.0" | ||
|
|
||
| lodash.istypedarray@^3.0.0: | ||
| version "3.0.6" | ||
| resolved "https://registry.yarnpkg.com/lodash.istypedarray/-/lodash.istypedarray-3.0.6.tgz#c9a477498607501d8e8494d283b87c39281cef62" | ||
|
|
@@ -3041,32 +3031,9 @@ lodash.keys@^3.0.0: | |
| lodash.isarguments "^3.0.0" | ||
| lodash.isarray "^3.0.0" | ||
|
|
||
| lodash.keysin@^3.0.0: | ||
| version "3.0.8" | ||
| resolved "https://registry.yarnpkg.com/lodash.keysin/-/lodash.keysin-3.0.8.tgz#22c4493ebbedb1427962a54b445b2c8a767fb47f" | ||
| dependencies: | ||
| lodash.isarguments "^3.0.0" | ||
| lodash.isarray "^3.0.0" | ||
|
|
||
| lodash.merge@^3.0.2, lodash.merge@^3.3.2: | ||
| version "3.3.2" | ||
| resolved "https://registry.yarnpkg.com/lodash.merge/-/lodash.merge-3.3.2.tgz#0d90d93ed637b1878437bb3e21601260d7afe994" | ||
| dependencies: | ||
| lodash._arraycopy "^3.0.0" | ||
| lodash._arrayeach "^3.0.0" | ||
| lodash._createassigner "^3.0.0" | ||
| lodash._getnative "^3.0.0" | ||
| lodash.isarguments "^3.0.0" | ||
| lodash.isarray "^3.0.0" | ||
| lodash.isplainobject "^3.0.0" | ||
| lodash.istypedarray "^3.0.0" | ||
| lodash.keys "^3.0.0" | ||
| lodash.keysin "^3.0.0" | ||
| lodash.toplainobject "^3.0.0" | ||
|
|
||
| lodash.merge@^4.5.1: | ||
| version "4.6.0" | ||
| resolved "https://registry.yarnpkg.com/lodash.merge/-/lodash.merge-4.6.0.tgz#69884ba144ac33fe699737a6086deffadd0f89c5" | ||
| [email protected], lodash.merge@^3.0.2, lodash.merge@^3.3.2, lodash.merge@^4.5.1: | ||
| version "4.6.2" | ||
| resolved "https://registry.yarnpkg.com/lodash.merge/-/lodash.merge-4.6.2.tgz#558aa53b43b661e1925a0afdfa36a9a1085fe57a" | ||
|
|
||
| lodash.pad@^4.1.0: | ||
| version "4.5.1" | ||
|
|
@@ -3090,13 +3057,6 @@ lodash.restparam@^3.0.0: | |
| version "3.6.1" | ||
| resolved "https://registry.yarnpkg.com/lodash.restparam/-/lodash.restparam-3.6.1.tgz#936a4e309ef330a7645ed4145986c85ae5b20805" | ||
|
|
||
| lodash.toplainobject@^3.0.0: | ||
| version "3.0.0" | ||
| resolved "https://registry.yarnpkg.com/lodash.toplainobject/-/lodash.toplainobject-3.0.0.tgz#28790ad942d293d78aa663a07ecf7f52ca04198d" | ||
| dependencies: | ||
| lodash._basecopy "^3.0.0" | ||
| lodash.keysin "^3.0.0" | ||
|
|
||
| lodash.uniq@^3.2.2: | ||
| version "3.2.2" | ||
| resolved "https://registry.yarnpkg.com/lodash.uniq/-/lodash.uniq-3.2.2.tgz#146c36f25e75d19501ba402e88ba14937f63cd8b" | ||
|
|
@@ -3115,9 +3075,9 @@ lodash@^3.10.0, lodash@^3.6.0, lodash@^3.9.3: | |
| version "3.10.1" | ||
| resolved "https://registry.yarnpkg.com/lodash/-/lodash-3.10.1.tgz#5bf45e8e49ba4189e17d482789dfd15bd140b7b6" | ||
|
|
||
| lodash@^4.14.0: | ||
| version "4.17.4" | ||
| resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.4.tgz#78203a4d1c328ae1d86dca6460e369b57f4055ae" | ||
| lodash@^4.17.14: | ||
| version "4.17.21" | ||
| resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.21.tgz#679591c564c3bffaae8454cf0b3df370c3d6911c" | ||
|
|
||
| lodash@~2.3.0: | ||
| version "2.3.0" | ||
|
|
@@ -3290,9 +3250,9 @@ minimatch@~0.2.9: | |
| lru-cache "2" | ||
| sigmund "~1.0.0" | ||
|
|
||
| [email protected], minimist@~0.0.1: | ||
| version "0.0.8" | ||
| resolved "https://registry.yarnpkg.com/minimist/-/minimist-0.0.8.tgz#857fcabfc3397d2625b8228262e86aa7a011b05d" | ||
| [email protected], minimist@1.2.6, minimist@~0.0.1: | ||
| version "1.2.6" | ||
| resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.6.tgz#8637a5b759ea0d6e98702cfb3a9283323c93af44" | ||
|
|
||
| minimist@^1.1.0, minimist@^1.1.1: | ||
| version "1.2.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.
Please change this to 1.12.1
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.
When we change the version to anything more than 1.8.0, this is the error in the build pipeline. The plugin com.github.eirslett:frontend-maven-plugin:1.12.1 requires Maven version 3.6.0 @guptanikhil007
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.
Cool, then let's go with 1.8.0 only