Skip to content

ref(utils): Extract SyncPromise static methods into func #4312

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

Closed
wants to merge 6 commits into from

Conversation

AbhiPrasad
Copy link
Member

No description provided.

@@ -18,7 +18,7 @@ const enum States {
* Thenable class that behaves like a Promise and follows it's interface
* but is not async internally
*/
class SyncPromise<T> implements PromiseLike<T> {
export class SyncPromise<T> implements PromiseLike<T> {
Copy link
Member Author

Choose a reason for hiding this comment

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

I wonder if we can remove all sync promise usage in browser environments and only use it for node.

@AbhiPrasad AbhiPrasad added this to the Treeshaking / Bundle Size milestone Dec 16, 2021
@github-actions
Copy link
Contributor

size-limit report

Path Base Size (b8dc945) Current Size Change
@sentry/browser - CDN Bundle (gzipped) 21.01 KB 20.99 KB -0.07% 🔽
@sentry/browser - CDN Bundle (minified) 66.97 KB 66.85 KB -0.18% 🔽
@sentry/browser - Webpack 22.79 KB 22.84 KB +0.2% 🔺
@sentry/browser - Webpack - gzip = false 78.2 KB 78.1 KB -0.14% 🔽
@sentry/react - Webpack 22.82 KB 22.87 KB +0.2% 🔺
@sentry/nextjs Client - Webpack 47.34 KB 47.35 KB +0.02% 🔺
@sentry/browser + @sentry/tracing - CDN Bundle (gzipped) 29.35 KB 29.33 KB -0.05% 🔽

@AbhiPrasad AbhiPrasad force-pushed the abhi-sync-promise-static branch from c9b54ab to 29774ca Compare December 16, 2021 15:38
@AbhiPrasad
Copy link
Member Author

Closing due to low value.

@AbhiPrasad AbhiPrasad closed this Dec 16, 2021
@AbhiPrasad AbhiPrasad deleted the abhi-sync-promise-static branch December 16, 2021 16:24
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.

1 participant