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

chore: Remove unneeded deps from main package.json #12644

Closed
wants to merge 6 commits into from

Conversation

AbhiPrasad
Copy link
Member

@AbhiPrasad AbhiPrasad commented Jun 25, 2024

While working on my OTEL bump PR (#12635), I noticed some deps we no longer need.

  • @codecov/rollup-plugin can be removed because we dont use codecov bundle analysis atm
  • es-check can be removed because we don't check for es5 bundles anymore
  • replace-in-file can be removed for a simpler script with modern node apis
  • inquirer can be removed in favour of simpler parseArgs call with Node

~4700 lines from yarn.lock is gone!

Also bumped size-limit deps

@AbhiPrasad AbhiPrasad requested a review from a team June 25, 2024 18:12
@AbhiPrasad AbhiPrasad self-assigned this Jun 25, 2024
@AbhiPrasad AbhiPrasad requested review from mydea and Lms24 and removed request for a team June 25, 2024 18:12
While working on my OTEL bump PR, I noticed some deps we no longer need.

- @codecov/rollup-plugin can be removed because we dont use codecov
  bundle analysis atm
- es-check can be removed because we don't check for es5 bundles anymore
- replace-in-file can be removed for a simpler script with modern node
  apis

Also bumped size-limit deps
Copy link
Contributor

github-actions bot commented Jun 26, 2024

size-limit report 📦

Path Size
@sentry/browser 22.21 KB (-0.07% 🔽)
@sentry/browser (incl. Tracing) 33.3 KB (-0.03% 🔽)
@sentry/browser (incl. Tracing, Replay) 69.04 KB (-0.08% 🔽)
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 62.41 KB (-0.02% 🔽)
@sentry/browser (incl. Tracing, Replay with Canvas) 73.07 KB (-0.1% 🔽)
@sentry/browser (incl. Tracing, Replay, Feedback) 85.7 KB (-0.06% 🔽)
@sentry/browser (incl. Tracing, Replay, Feedback, metrics) 87.56 KB (-0.06% 🔽)
@sentry/browser (incl. metrics) 26.5 KB (-0.03% 🔽)
@sentry/browser (incl. Feedback) 38.85 KB (-0.03% 🔽)
@sentry/browser (incl. sendFeedback) 26.83 KB (-0.06% 🔽)
@sentry/browser (incl. FeedbackAsync) 31.44 KB (-0.05% 🔽)
@sentry/react 24.95 KB (-0.07% 🔽)
@sentry/react (incl. Tracing) 36.34 KB (-0.06% 🔽)
@sentry/vue 26.32 KB (-0.03% 🔽)
@sentry/vue (incl. Tracing) 35.16 KB (-0.02% 🔽)
@sentry/svelte 22.34 KB (-0.07% 🔽)
CDN Bundle 23.41 KB (-0.08% 🔽)
CDN Bundle (incl. Tracing) 35.04 KB (-0.05% 🔽)
CDN Bundle (incl. Tracing, Replay) 69.12 KB (-0.09% 🔽)
CDN Bundle (incl. Tracing, Replay, Feedback) 74.33 KB (-0.08% 🔽)
CDN Bundle - uncompressed 68.73 KB (-0.1% 🔽)
CDN Bundle (incl. Tracing) - uncompressed 103.59 KB (-0.07% 🔽)
CDN Bundle (incl. Tracing, Replay) - uncompressed 213.96 KB (-0.08% 🔽)
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 226.67 KB (-0.08% 🔽)
@sentry/nextjs (client) 36.23 KB (-0.01% 🔽)
@sentry/sveltekit (client) 33.95 KB (-0.02% 🔽)
@sentry/node 111.04 KB (-16.16% 🔽)
@sentry/node - without tracing 88.43 KB (-3.75% 🔽)
@sentry/aws-serverless 97.57 KB (-17.63% 🔽)

@AbhiPrasad AbhiPrasad changed the title chore: Remove uneeded deps from main package.json chore: Remove unneeded deps from main package.json Jun 26, 2024
@AbhiPrasad
Copy link
Member Author

Removing multiple dependencies in a row is chaos - now the ts3.8 tests fail :(

I might have to remove each dep individually in a PR 😢

@AbhiPrasad AbhiPrasad closed this Jun 26, 2024
@AbhiPrasad AbhiPrasad deleted the abhi-clean-up-deps branch June 26, 2024 19:07
AbhiPrasad added a commit that referenced this pull request Jun 28, 2024
ref: #12644

We don't use `es-check` anymore, we can remove it. It was previously
used to validate our es5 builds, but we don't target that anymore.

Extracted from the previous PR because 1 big change was breaking CI and
I couldn't figure out the root cause.
AbhiPrasad added a commit that referenced this pull request Jun 28, 2024
ref: #12644

We can remove `replace-in-file` with some built-in functions and clean
up our lockfile even more.

Extracted from the previous PR because 1 big change was breaking CI and
I couldn't figure out the root cause.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants