You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Adds `Attachment` interface and extends `AttachmentItemHeaders` with required fields
- Adds `addAttachment`, `getAttachments` and `clearAttachments` to `Scope`
- Adds `attachments: Attachment[]` to `EventHint`
- In the private capture/process/prepare/send methods in the `BaseClient`, the `EventHint` argument has moved as it's no longer optional
- We can't mutate the hint if it's undefined!
- Copies attachments from the scope to the hint in `_prepareEvent`
- Adds optional `textEncoder` to `InternalBaseTransportOptions` and overrides this in the node client to support node 8-10
- Manually pass `new TextEncoder()` in many of the tests so they pass on node.js 8-10
- Adds binary serialisation support for envelopes
- `serializeEnvelope` returns `string | Uint8Array` which all transports supported without modification
- Defaults to concatenating strings when no attachments are found. String concatenation is about 10x faster than the binary serialisation
- Rewrites `parseEnvelope` in `testutils.ts` so that it can parse binary envelopes
0 commit comments