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(utils): Deprecate getGlobalObject as it's no longer used #5949

Merged
merged 2 commits into from
Oct 13, 2022

Conversation

timfish
Copy link
Collaborator

@timfish timfish commented Oct 13, 2022

ref: #5611

This PR wraps up the changes to the global object detection by removing getGlobalObject which is no longer used.

*
* @returns Global scope object
*/
export function getGlobalObject<T>(): T & InternalGlobal {
Copy link
Member

Choose a reason for hiding this comment

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

For now let's deprecate this just in case, and we can remove in v8 - I know we don't have to follow semvar in utils, but getGlobalObject might be more commonly used than other functions, and doesn't cost us much to just wait.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yep, better idea!

@AbhiPrasad AbhiPrasad changed the title ref(utils): Remove getGlobalObject as it's no longer used ref(utils): Deprecate getGlobalObject as it's no longer used Oct 13, 2022
@AbhiPrasad AbhiPrasad merged commit 6ddf40f into getsentry:master Oct 13, 2022
@timfish timfish deleted the remove-getGlobalObject branch October 17, 2022 09:53
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