Skip to content

Commit cb84201

Browse files
authored
Merge pull request #7533 from getsentry/prepare-release/7.44.1
meta(changelog): Update changelog for 7.44.1
2 parents f9cdc18 + 9ae443b commit cb84201

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44

55
- "You miss 100 percent of the chances you don't take. — Wayne Gretzky" — Michael Scott
66

7+
## 7.44.1
8+
9+
- ref(core): Move beforeEnvelope to client (#7527)
10+
711
## 7.44.0
812

913
This release introduces the first alpha version of `@sentry/sveltekit`, our newest JavaScript SDK for Sveltekit. Check out the [README](./packages/sveltekit/README.md) for usage instructions and what to expect from this alpha release.
@@ -41,6 +45,8 @@ This release introduces the first alpha version of `@sentry/sveltekit`, our newe
4145
- fix: Ensure unmaskTextSelector is used for masked attributes ([#81](https://github.com/getsentry/rrweb/pull/81))
4246
- fix: Mask <option> values for selects & radio/checkbox value ([#75](https://github.com/getsentry/rrweb/pull/75))
4347

48+
Work in this release contributed by @woochanleee and @baked-dev. Thank you for your contribution!
49+
4450
## 7.43.0
4551

4652
- feat(nextjs): Run source map upload in Vercel develop and preview environments (#7436)

packages/core/src/baseclient.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -647,6 +647,8 @@ export abstract class BaseClient<O extends ClientOptions> implements Client<O> {
647647
*/
648648
protected _sendEnvelope(envelope: Envelope): PromiseLike<void | TransportMakeRequestResponse> | void {
649649
if (this._transport && this._dsn) {
650+
this.emit('beforeEnvelope', envelope);
651+
650652
return this._transport.send(envelope).then(null, reason => {
651653
__DEBUG_BUILD__ && logger.error('Error while sending event:', reason);
652654
});

packages/core/src/transports/base.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ import {
2424
updateRateLimits,
2525
} from '@sentry/utils';
2626

27-
import { getCurrentHub } from '../hub';
28-
2927
export const DEFAULT_TRANSPORT_BUFFER_SIZE = 30;
3028

3129
/**
@@ -43,13 +41,9 @@ export function createTransport(
4341
): Transport {
4442
let rateLimits: RateLimits = {};
4543
const flush = (timeout?: number): PromiseLike<boolean> => buffer.drain(timeout);
46-
const client = getCurrentHub().getClient();
4744

4845
function send(envelope: Envelope): PromiseLike<void | TransportMakeRequestResponse> {
4946
const filteredEnvelopeItems: EnvelopeItem[] = [];
50-
if (client && client.emit) {
51-
client.emit('beforeEnvelope', envelope);
52-
}
5347

5448
// Drop rate limited items from envelope
5549
forEachEnvelopeItem(envelope, (item, type) => {

0 commit comments

Comments
 (0)