-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Breaking API change between patch update of @sentry/tracing 6.0.2 to 6.0.3 #3223
Comments
So interesting to see how unstable |
It was never possible. We have a strict version requirement in @Sija you are comparing a rather small raven-js package, which was capable mostly of sending errors and messages, written in raw es5, to SDK written in TypeScript, which has 10x more features and complexity. There's also a difference between runtime stability vs. type issues which can be temporarily solved by pinning version and have no impact on the end-user of an app. |
@kamilogorek First versions of |
I'm getting a new issue as well on CI (not seeing this on local development):
This breaks event propagation and the element click handlers don't fire. We were not having this issue with the previous build (and may be unrelated to the OP issue) |
@clinejj see #3221 (comment) (it was caused due to misused event listener method in the end-users code) |
Got it. However this change was an API-breaking one, and I was under the impression that you were following semver, in which case bumping to 7.0.0 could have been an explicit way to highlight the change. Maybe I was wrong here and your versioning is following a different semantic? |
@kamilogorek I perfectly understand that there is strict version requirement. But actually it is not fully the case... Nothing prevents users from using As a user doing: npm i --save-dev @sentry/tracing@6.0.3
npm i --save-dev @sentry/browser@6.0.2 Does not raise any warnings. |
Agree, although there's one problem with that based on my tests. When dependency is marked as |
I appreciate that but still, when i come to Sentry and see this: ... and stupidly follow the documentation linked in that box, i end up with
in my Maybe adding a proper update documentation page would avoid some lost time for both sides 👌 |
Thanks @tsadiq, we'll look at it and see what we can do 😉 |
So the current fix is to update the documentation? No plan to find a way to enforce it via package managers? Or even rethink version bumps to avoid such breaks? |
The current fix adds an extra message to the alerts, warning the users that all sentry packages should also be updated and their versions should match. Regarding your questions, I believe that @kamilogorek can better answer them |
Correct, not in this major version (v6). |
This is still happening for @sentry/tracing 7.2.0. I'm using @sentry/vue and typescript is complaining of the same cc @kamilogorek |
@TooColline can you share the exact error you're getting? |
@lforst I'm getting My import is like this: And my initialization looks like this: With both @sentry/vue and @sentry/tracing version as 7.2.0 |
@TooColline I can't reproduce the error you're getting. Can you share your package-lock.json or yarn.lock? It might be some other library that has a dependency on an older sentry version. One thing I can recommend regardless is to delete your node_modules and reinstall them. Also, if you're getting this error in your editor I would try restarting the TS language server. |
Hey, @lforst you were right, had to confirm the yarn.lock file and found @sentry/tracing on the 7.1.1 version. It's all good now, thank you. |
@TooColline glad to hear. Thanks for letting us know! |
Package + Version
@sentry/browser
6.0.2@sentry/tracing
6.0.3Version:
Description
Latest patch version bump of
@sentry/tracing
from 6.0.2 to 6.0.3 broke our CI due to a type incompatibility. It seems this is caused by #3192 that introduces new non-optional methods in exported typeSpan
. As a consequence 6.0.3 is not compatible with version 6.0.2 of related packages (in our case@sentry/browser
) and single package updates through Dependabot isn't possible anymore. Initializing Sentry with mixed 6.0.2 + 6.0.3 versions results in following compilation error:Interface
Span
is a public exported interface shared between multiple packages, therefore adding non-optional methods to it should probably be considered as a major version change instead of patch to comply with semver.The text was updated successfully, but these errors were encountered: