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: Leave only valid buffer implementation #3744

Merged
merged 3 commits into from
Jun 25, 2021
Merged

Conversation

kamilogorek
Copy link
Contributor

In reference to #3736
Discussed it with @HazAT, and decided to not allow for incorrect implementation anymore.

@kamilogorek kamilogorek requested a review from AbhiPrasad June 24, 2021 14:31
@github-actions
Copy link
Contributor

github-actions bot commented Jun 24, 2021

size-limit report

Path Size
@sentry/browser - CDN Bundle (gzipped) 21.34 KB (-0.03% 🔽)
@sentry/browser - Webpack 22.35 KB (-0.03% 🔽)
@sentry/react - Webpack 22.39 KB (-0.04% 🔽)
@sentry/browser + @sentry/tracing - CDN Bundle (gzipped) 28.82 KB (-0.03% 🔽)

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.

Lowering bundle size :)

@@ -21,22 +18,14 @@ export class PromiseBuffer<T> {
/**
* Add a promise to the queue.
*
* @param taskProducer A function producing any PromiseLike<T>; In previous versions this used to be `@param task: PromiseLike<T>`, however, Promises were instantly created on the call-site, making them fall through the buffer limit.
Copy link
Member

Choose a reason for hiding this comment

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

I would still keep this comment, even if we are losing the backward compatibility.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Restored

@kamilogorek kamilogorek enabled auto-merge (squash) June 25, 2021 10:14
@kamilogorek kamilogorek merged commit 61eda62 into master Jun 25, 2021
@kamilogorek kamilogorek deleted the make-buffer-usable branch June 25, 2021 10:15
1999 added a commit to 1999/sentry-javascript that referenced this pull request Jun 30, 2021
…transport

* upstream/master:
  fix(tracing): Add check for document.scripts in metrics (getsentry#3766)
  ref(nextjs): Stop setting redundant `productionBrowserSourceMaps` in config (getsentry#3765)
  test: Ensure withScope and run bubble up exceptions (getsentry#3764)
  ref(gatsby): Default release to empty string (getsentry#3759)
  fix(nextjs): Make `withSentryConfig` return type match given config type (getsentry#3760)
  misc: Fix typos (getsentry#3763)
  fix(node): Enable autoSessionTracking correctly (getsentry#3758)
  release: 6.8.0
  meta: 6.8.0 changelog
  feat: Enable serialization of multiple DOM attributes for breadcrumbs. (getsentry#3755)
  ref: Leave only valid buffer implementation (getsentry#3744)
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