sentry-capacitor icon indicating copy to clipboard operation
sentry-capacitor copied to clipboard

fix: remove unnecessary dependencies to promises and @sentry/wizard

Open olivier-blanc-openit opened this issue 3 years ago • 6 comments

Sentry/capacitor had a runtime dependency on Sentry/wizard, which then depends on rxjs through inquirer.

This cause issues in monorepo configurations, for instance : https://github.com/ReactiveX/rxjs/issues/6628 and https://github.com/webpack/webpack/issues/14405.

Since Sentry/wizard is more or less a CLI tool, it is not required as a runtime dependency.

olivier-blanc-openit avatar May 30 '22 15:05 olivier-blanc-openit

wizard may be required once https://github.com/getsentry/sentry-capacitor/issues/39 is implemented.

lucas-zimerman avatar Jun 13 '22 16:06 lucas-zimerman

wizard may be required once #39 is implemented.

That also sounds like a dev dependency. I believe the OP's point still stands.

That said I recall we removed it once on React Native, and it caused issue.

https://github.com/getsentry/sentry-react-native/pull/2015

The PR linked doesn't say what error it was throwing, so it's unclear to me if this would break things here too. Maybe @jennmueng (author of the PR) or @marandaneto (approver) have additional thoughts

bruno-garcia avatar Jun 21 '22 18:06 bruno-garcia

@bruno-garcia The issue with https://github.com/getsentry/sentry-react-native/pull/2015 was that the linking script for RN on iOS automatically runs the Sentry Wizard, which wouldn't exist and would fail.

As we don't do any auto linking scripts here AFAIK that use the wizard we should be good to remove it.

jennmueng avatar Jun 21 '22 22:06 jennmueng

@olivier-blanc-openit could u please add a changelog entry?

bruno-garcia avatar Jun 22 '22 20:06 bruno-garcia

Also, I believe the wizard should become a dev dependency then, no?

bruno-garcia avatar Jun 22 '22 20:06 bruno-garcia

Hello, is there a way to hack this up with patch-package so we don't ship @sentry/wizard with our .... webapp?

Yes it's true, this react-native module affect our web bundle , see https://github.com/getsentry/sentry-react-native/issues/2409

kopax-polyconseil avatar Aug 04 '22 14:08 kopax-polyconseil

An update: Sentry Wizard will be supported by Capacitor, the promises package will be removed from the dependencies and Sentry Wizard will be moved to the devDependencies. All that after the integration with the Wizard is completed

lucas-zimerman avatar Nov 30 '22 13:11 lucas-zimerman

This pull request has gone three weeks without activity. In another week, I will close it.

But! If you comment or otherwise update it, I will reset the clock, and if you label it Status: Backlog or Status: In Progress, I will leave it alone ... forever!


"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀

github-actions[bot] avatar May 30 '23 00:05 github-actions[bot]

An update: Sentry Wizard will be supported by Capacitor, the promises package will be removed from the dependencies and Sentry Wizard will be moved to the devDependencies. All that after the integration with the Wizard is completed

Should we reopen this issue? The stale bot closed it.

marandaneto avatar Jun 06 '23 05:06 marandaneto

Hello! What's the status of this issue? npm audit --omit=dev throws 3 critical vulnerabilities because of that dependencies.

wizard may be required once #39 is implemented.

I don't think we should keep things "for the future". Moreover, we can always restore dependencies from the git history

PS: I can create new PR if needed

Zapominacz avatar Jun 26 '23 13:06 Zapominacz

This PR will move to https://github.com/getsentry/sentry-capacitor/pull/400 Thank you @olivier-blanc-openit for the contribution!

lucas-zimerman avatar Jun 27 '23 14:06 lucas-zimerman