Skip to content

Updating to @sentry/[email protected] changes fetch response from any to unknown #15536

Closed
@nonameolsson

Description

@nonameolsson

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using?

@sentry/sveltekit

SDK Version

9.2.0

Framework Version

SvelteKit 2.17.2

Link to Sentry event

No response

Reproduction Example/SDK Setup

No response

Steps to Reproduce

  1. Update from @sentry/sveltekit 9.1.0 to 9.2.0.
  2. Inspect response from an await fetch()

Expected Result

Type should stay the same any .
This is how it was in 9.1.0.
Image

Actual Result

Type is unknown.

Image

I'm not saying that this is totally wrong, since unknown is better to use than any. I just can't find a reason to this change, or where it took place.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Package: sveltekitIssues related to the Sentry SvelteKit SDK

    Type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions