Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
10597 fix package.json linting errors #13070
10597 fix package.json linting errors #13070
Changes from 36 commits
bd3df53
deead72
972104a
ba94b58
138ca62
d72bf0d
5fab680
8d4e840
161cb33
42959a1
02e55c0
ee02770
8960d23
ffcc2f9
5f2d147
76d46e0
4d3b9e1
14de05b
97b6d92
6e432e4
1803697
ea33dfd
b79dafe
9e33ca8
81bf0bf
b912d5b
f500569
6a2db02
2a13174
b55e871
6f09ffc
e3f8ae7
06a1cb2
5c61e09
97f6b78
c23bbe5
28984d1
0823b12
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
Calling out this change - wasn't sure the impact so I'd like to have someone 👍 or 👎 this
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.
Is there a reason this was set to 8.3.0 and not 8.0.0? Feel free to let me know if I should suppress the linter rule that enforces this here
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.
I don't believe so, unless @hectorhdzg knows of something that the exporter needs that requires 8.3.x?
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.
OpenTelemetry doesn't support node < 8.5.x actually we need to update this to >=8.5.0
https://github.com/open-telemetry/opentelemetry-js#node-support
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.
I can change that to 8.5.0 and turn off the linter error that complains (or allow overriding the node version in that rule). I can also update the README if you'd like since I'll be there: https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/monitor/opentelemetry-exporter-azure-monitor#prerequisites
Does that work for you @hectorhdzg ?
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.
/cc @bterlson @ramya-rao-a can we update our min-bar to Node 8.5.0 across the board?
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.
Originally I wanted to turn that rule off for
opentelemetry-exporter-azure-monitor
; however, that rule couples the required node version with the presence of that key inengines
so turning it off means there's nothing to stop someone from removing theengines
field entirely.So instead I'm providing an option called
overrideNodeVersion
to @azure/azure-sdk/ts-package-json-engine-is-presentYou can see the change in this commit: 28984d1
I also cleaned up the docs (they weren't accurate), added info about that override flag, and updated
opentelemetry-exporter-azure-monitor
to specify 8.5.0 as the min node version.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.
@maorleger this is great!
@hectorhdzg I wonder if
node
v8.5.0 is the minimum version supported, why not use this version for the dev dependency instead of v10?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.
@deyaaeldeen do you mean @types/node package?, that is interesting I can see OpenTelemetry have dependencies on latest version of the package.
https://github.com/open-telemetry/opentelemetry-js/blob/master/packages/opentelemetry-api/package.json#L58
So the issue is related to the code using classes that doesn't exist in previous node.js versions and potentially causing issues when running in older versions, makes total sense to update it in my opinion, I can take care of this update.
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.
@xirzec if you're asking from a policy perspective, I think yes. I'd be fine with 8.17 being a min bar even, I think.
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.
@hectorhdzg yeah I think the node version(s) specified in
engines
should match that of@types/node
. If using the latest node version is necessary, then having that as the version in engines and@types/node
should be fine. @xirzec @bterlson correct me if I am wrong about this.P.S. If you were to change the version of
@types/node
, you also need to change the version incommon/config/rush/common-versions.json
.