Skip to content

Drop Svelte 3 and 4 Support in @sentry/svelte and @sentry/sveltekit #18853

Description

@Lms24

Description

Svelte(kit) deprecated some exports we rely on in our Svelte and SvelteKit SDKs. There are replacements but all of them require Svelte 5. To be able to support the next major version of SvelteKit (not sure when it will arrive), I think we have to drop support for Svelte versions prior to 5 so that we can safely import the new replacement APIs.

Most prominently, this concerns:

import { navigating, page } from '$app/stores'

to be replaced by

import { navigating, page } from '$app/state'

More details: https://svelte.dev/docs/kit/migrating-to-sveltekit-2#SvelteKit-2.12:-$app-stores-deprecated

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions