Skip to content

ref(utils): refactor promisebuffer #4323

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

Merged
merged 5 commits into from
Dec 16, 2021
Merged

ref(utils): refactor promisebuffer #4323

merged 5 commits into from
Dec 16, 2021

Conversation

JonasBa
Copy link
Member

@JonasBa JonasBa commented Dec 16, 2021

No description provided.

@JonasBa JonasBa force-pushed the jb/ref/promise-buffer branch from d64f28a to 598896d Compare December 16, 2021 14:56
@JonasBa JonasBa force-pushed the jb/ref/promise-buffer branch from 598896d to 29b6914 Compare December 16, 2021 14:58
@github-actions
Copy link
Contributor

github-actions bot commented Dec 16, 2021

size-limit report

Path Base Size (477aec2) Current Size Change
@sentry/browser - CDN Bundle (gzipped) 20.41 KB 20.35 KB -0.27% 🔽
@sentry/browser - CDN Bundle (minified) 65.23 KB 64.99 KB -0.37% 🔽
@sentry/browser - Webpack 22.4 KB 22.35 KB -0.21% 🔽
@sentry/browser - Webpack - gzip = false 76.77 KB 76.5 KB -0.34% 🔽
@sentry/react - Webpack 22.43 KB 22.38 KB -0.21% 🔽
@sentry/nextjs Client - Webpack 46.53 KB 46.49 KB -0.1% 🔽
@sentry/browser + @sentry/tracing - CDN Bundle (gzipped) 28.55 KB 28.51 KB -0.16% 🔽

@AbhiPrasad AbhiPrasad added this to the Treeshaking / Bundle Size milestone Dec 16, 2021
clearTimeout(capturedSetTimeout);
resolve(true);
});
});
}

const promiseBuffer: PromiseBuffer<T> = {
_buffer: buffer,
Copy link
Member

Choose a reason for hiding this comment

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

do we have to expose the buffer as well?

Copy link
Member Author

Choose a reason for hiding this comment

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

@AbhiPrasad nope, just dropped it. The buffer is stored as _buffer on BaseTransport which was misleading when I searched

@JonasBa JonasBa force-pushed the jb/ref/promise-buffer branch from 6057902 to 4a7463f Compare December 16, 2021 16:53
@JonasBa JonasBa merged commit d032b06 into master Dec 16, 2021
@JonasBa JonasBa deleted the jb/ref/promise-buffer branch December 16, 2021 19:24
onurtemizkan pushed a commit that referenced this pull request Dec 19, 2021
* ref(utils): refactor promisebuffer

* ref(utils): remove length and isReady from public api

* ref(promisebuffer): remove _buffer

* fix(lint): run linter

* fix(promisebuffer): add back the promise buffer
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