-
Notifications
You must be signed in to change notification settings - Fork 813
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
fix(deps): update dependency require-in-the-middle to v7.1.0 for types and named export #3727
Merged
pichlermarc
merged 9 commits into
open-telemetry:main
from
trentm:ritm-update-with-types
May 2, 2023
Merged
Changes from 2 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
ddf617f
chore(deps): update dependency require-in-the-middle to v7, plus types
trentm 63996d3
add a changelog entry
trentm 760dbd2
I missed these refs in my test updates
trentm 01dab4b
fix prettier formatting
trentm d679caa
Merge branch 'main' into ritm-update-with-types
trentm 051f975
Merge branch 'main' into ritm-update-with-types
trentm fa6f726
Merge branch 'main' into ritm-update-with-types
dyladan 9dc87c2
Merge branch 'main' into ritm-update-with-types
trentm 4123476
Merge branch 'main' into ritm-update-with-types
trentm File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 0 additions & 36 deletions
36
...ental/packages/opentelemetry-instrumentation/src/platform/node/require-in-the-middle.d.ts
This file was deleted.
Oops, something went wrong.
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.
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.
Note for reviewers: This points to the proposed elastic/require-in-the-middle#67 to move TypeScript types to the require-in-the-middle module. Do those look reasonable?
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.
Yes makes sense. It might be better though to create a new pull request for the types replacement.
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.
Using git to pull dependencies can result in significant slowdowns in many cases. Is there some reason you don't want to include them with the main package?
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 think the intention was not to merge this. Only to see if it works and to see if we agree with this change.
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.
@dyladan The intention was not the merge this, but to allow for feedback on the index.d.ts file I was adding to require-in-the-middle at elastic/require-in-the-middle#67 before merging that, doing an RITM release, and then updating this PR to an actual RITM release 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.
I can do that tomorrow. It'll then be one update to fix #3655 and a separate one for #3701
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've moved the fix for the first issue to #3743. Once that is in, I'll get a RITM 7.1.0 release with types and finish preparing this PR.
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.
In the other PR you use ^7.0.1 therefore 7.1.0 will be automatically used once released.
Will this result in problems/type conflicts and potentially broken builds?
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.
@Flarna I don't think it will cause a problem. I've now released require-in-the-middle@7.1.0 -- which includes types. It still supports the default
Hook
export for usage. I guess what I don't know is whether TypeScript will prefer the localrequire-in-the-middle.d.ts
over the types in therequire-in-the-middle
dep when resolvingopentelemetry-js/experimental/packages/opentelemetry-instrumentation/src/platform/node/instrumentation.ts
Line 27 in 61aae10
I re-ran
npm install
in "experimental/packages/opentelemetry-instrumentation" in a git clone of the main branch to get the new release:and
npm run compile
,npm test
, andnpm run lint
are passing for me.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 believe the types are actually merged "intelligently" when a module is declared twice