It doesn't make sense maintaining two separate implementations. That said the one over @sentry/utils seem to be failing with some of the edge cases we cover here. We need to upstream these fixes and then switch over to using the common code.
This is not going to happen as @sentry/utils is meant for JS SDKs and it doesn't care about the edge cases or payloads from other SDKs for the time being.
There's existing envelope parsing code here: https://github.com/getsentry/sentry-javascript/blob/develop/packages/utils/src/envelope.ts
It doesn't make sense maintaining two separate implementations. That said the one over
@sentry/utils
seem to be failing with some of the edge cases we cover here. We need to upstream these fixes and then switch over to using the common code.