Skip to content
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

deps: clean up dependencies #5484

Merged

Conversation

pichlermarc
Copy link
Member

Which problem is this PR solving?

  • a dev dependency for @opentelemetry/api was missing in @opentelemetry/sampler-jaeger-remote
  • this may cause problems with new API versions
  • a dependency to the now unused @opentelemetry/[email protected] was still there
  • does not cause any problems, but we can remove it since we don't need it anymore

Type of change

  • dependencies

How Has This Been Tested?

  • Unit tests

Copy link

codecov bot commented Feb 18, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.97%. Comparing base (14d55d8) to head (2909e22).
Report is 6 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5484   +/-   ##
=======================================
  Coverage   94.97%   94.97%           
=======================================
  Files         309      309           
  Lines        8017     8017           
  Branches     1706     1706           
=======================================
  Hits         7614     7614           
  Misses        403      403           

@pichlermarc pichlermarc added the dependencies Pull requests that update a dependency file label Feb 18, 2025
@pichlermarc pichlermarc marked this pull request as ready for review February 18, 2025 16:48
@pichlermarc pichlermarc requested a review from a team as a code owner February 18, 2025 16:48
@@ -48,6 +48,7 @@
"@opentelemetry/api": "^1.3.0"
},
"devDependencies": {
"@opentelemetry/api": "1.9.0",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess I would have figured that the peerDep would suffice here. From npm help json section on peerDependencies:

       In npm versions 3 through 6, peerDependencies were not automatically
       installed, and would raise a warning if an invalid version of the peer
       dependency was found in the tree. As of npm v7, peerDependencies are
       installed by default.

npm@7 was the default npm version as of Node.js v15.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I figured that too, and in normal operation this is not an issue. There was, however, some problem when I tried to simulate a release locally. It ended up having a package conflict without that dependency for some reason.

@pichlermarc pichlermarc added this pull request to the merge queue Feb 19, 2025
Merged via the queue into open-telemetry:main with commit 492ed35 Feb 19, 2025
18 of 19 checks passed
@pichlermarc pichlermarc deleted the chore/deps-cleanup branch February 19, 2025 11:21
trentm pushed a commit to trentm/opentelemetry-js that referenced this pull request Feb 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants