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

ref(flags): remove FeatureFlagContext type export #14646

Closed
wants to merge 1 commit into from

Conversation

aliu39
Copy link
Member

@aliu39 aliu39 commented Dec 10, 2024

Follow-up from getsentry/sentry#81925 (comment). Like the other context types this should be exported here. We're using it in sentry right now, but importing from /build.

@aliu39 aliu39 requested a review from billyvg December 10, 2024 21:32
billyvg
billyvg previously approved these changes Dec 10, 2024
@billyvg billyvg dismissed their stale review December 10, 2024 21:35

Too hasty

@@ -19,6 +19,7 @@ export type {
TraceContext,
CloudResourceContext,
MissingInstrumentationContext,
FeatureFlagContext,
Copy link
Member

Choose a reason for hiding this comment

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

🤔 Is this used anywhere in the SDK?

Copy link
Member Author

Choose a reason for hiding this comment

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

It's used in the scope class I believe, scope.ts

Copy link
Member Author

Choose a reason for hiding this comment

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

If not directly, then in the Contexts type.

Copy link
Member

Choose a reason for hiding this comment

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

I don't see it used anywhere

@aliu39
Copy link
Member Author

aliu39 commented Dec 12, 2024

Yeah I think this type won't be needed in sentry either after getsentry/sentry#81954

@aliu39 aliu39 closed this Dec 12, 2024
@billyvg
Copy link
Member

billyvg commented Dec 12, 2024

@aliu39 can we remove it completely since it's not used at all?

@aliu39 aliu39 changed the title feat(flags): export FeatureFlagContext type from core/types-hoist feat(flags): remove FeatureFlagContext export from core/types-hoist Dec 14, 2024
@aliu39 aliu39 reopened this Dec 14, 2024
@aliu39
Copy link
Member Author

aliu39 commented Dec 14, 2024

@billyvg we still need it for the Contexts type in types-hoist/context.ts right?

@aliu39 aliu39 changed the title feat(flags): remove FeatureFlagContext export from core/types-hoist ref(flags): remove FeatureFlagContext type export Dec 14, 2024
@aliu39 aliu39 marked this pull request as draft December 14, 2024 01:08
@billyvg
Copy link
Member

billyvg commented Dec 16, 2024

@billyvg we still need it for the Contexts type in types-hoist/context.ts right?

@aliu39 oh yeah, it's needed for Contexts - I don't think it needs to be exported though

@aliu39 aliu39 closed this Dec 16, 2024
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