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

feat(node): Remove deprecated/duplicate/unused definitions #11120

Merged
merged 3 commits into from Mar 15, 2024

Conversation

timfish
Copy link
Collaborator

@timfish timfish commented Mar 15, 2024

  • Removes makeMain impl and exports from node (and downstream SDKs)
  • Removes custom getCurrentHub/getClient impl in favour of core
  • Removes callExtensionMethod as its not called from anywhere
  • Fixes all the tests that relied on getClient never returning undefined
  • Removes _callExtensionMethod from core as it's not used

@mydea
Copy link
Member

mydea commented Mar 15, 2024

Sounds all good, but let's leave getCurrentHub for now - there is a push to leave this shim in for now, let's decide on that later!

This comment was marked as outdated.

@timfish timfish requested a review from mydea March 15, 2024 11:54
Copy link
Member

@AbhiPrasad AbhiPrasad left a comment

Choose a reason for hiding this comment

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

Nice!

@@ -36,7 +36,7 @@ const _anrIntegration = ((options: Partial<AnrIntegrationOptions> = {}) => {
return {
name: INTEGRATION_NAME,
setup(client: NodeClient) {
if (NODE_MAJOR < 16 || (NODE_MAJOR === 16 && (NODE_VERSION.minor || 0) < 17)) {
if (NODE_VERSION.major < 16 || (NODE_VERSION.major === 16 && NODE_VERSION.minor < 17)) {
Copy link
Member

Choose a reason for hiding this comment

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

This gives me the reminder we need to clean up GLOBAL_OBJ usage soon.

@timfish timfish marked this pull request as ready for review March 15, 2024 13:53
@AbhiPrasad AbhiPrasad merged commit b8c75f4 into develop Mar 15, 2024
89 checks passed
@AbhiPrasad AbhiPrasad deleted the timfish/node-deprecations branch March 15, 2024 14:54
cadesalaberry pushed a commit to cadesalaberry/sentry-javascript that referenced this pull request Apr 19, 2024
…#11120)

- Removes `makeMain` impl and exports from node (and downstream SDKs)
- Removes custom `getCurrentHub/getClient` impl in favour of core
- Removes `callExtensionMethod` as its not called from anywhere
- Fixes all the tests that relied on `getClient` never returning
undefined
- Removes `_callExtensionMethod` from core as it's not used
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.

None yet

3 participants