Skip to content

chore(deps-dev): bump svelte from 3.59.2 to 5.53.5#19568

Closed
dependabot[bot] wants to merge 1 commit intodevelopfrom
dependabot/npm_and_yarn/svelte-5.53.5
Closed

chore(deps-dev): bump svelte from 3.59.2 to 5.53.5#19568
dependabot[bot] wants to merge 1 commit intodevelopfrom
dependabot/npm_and_yarn/svelte-5.53.5

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Feb 27, 2026

Bumps svelte from 3.59.2 to 5.53.5.

Release notes

Sourced from svelte's releases.

svelte@5.53.5

Patch Changes

svelte@5.53.4

Patch Changes

  • fix: set server context after async transformError (#17799)

  • fix: hydrate if blocks correctly (#17784)

  • fix: handle default parameters scope leaks (#17788)

  • fix: prevent flushed effects from running again (#17787)

svelte@5.53.3

Patch Changes

  • fix: render :catch of #await block with correct key (#17769)

  • chore: pin aria-query@5.3.1 (#17772)

  • fix: make string coercion consistent to toString (#17774)

svelte@5.53.2

Patch Changes

  • fix: update expressions on server deriveds (#17767)

  • fix: further obfuscate node:crypto import from overzealous static analysis (#17763)

svelte@5.53.1

Patch Changes

  • fix: handle shadowed function names correctly (#17753)

svelte@5.53.0

Minor Changes

  • feat: allow comments in tags (#17671)

  • feat: allow error boundaries to work on the server (#17672)

Patch Changes

  • fix: use TrustedHTML to test for customizable support, where necessary (#17743)

... (truncated)

Changelog

Sourced from svelte's changelog.

svelte

4.2.3

Patch Changes

  • fix: improve a11y-click-events-have-key-events message (#9358)

  • fix: more robust hydration of html tag (#9184)

4.2.2

Patch Changes

  • fix: support camelCase properties on custom elements (#9328)

  • fix: add missing plaintext-only value to contenteditable type (#9242)

  • chore: upgrade magic-string to 0.30.4 (#9292)

  • fix: ignore trailing comments when comparing nodes (#9197)

4.2.1

Patch Changes

  • fix: update style directive when style attribute is present and is updated via an object prop (#9187)

  • fix: css sourcemap generation with unicode filenames (#9120)

  • fix: do not add module declared variables as dependencies (#9122)

  • fix: handle svelte:element with dynamic this and spread attributes (#9112)

  • fix: silence false positive reactive component warning (#9094)

  • fix: head duplication when binding is present (#9124)

  • fix: take custom attribute name into account when reflecting property (#9140)

  • fix: add indeterminate to the list of HTMLAttributes (#9180)

  • fix: recognize option value on spread attribute (#9125)

4.2.0

Minor Changes

  • feat: move svelteHTML from language-tools into core to load the correct svelte/element types (#9070)

... (truncated)

Commits
Maintainer changes

This version was pushed to npm by [GitHub Actions](https://www.npmjs.com/~GitHub Actions), a new releaser for svelte since your current version.


Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    You can disable automated security fix PRs for this repo from the Security Alerts page.

@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Feb 27, 2026
"@sveltejs/vite-plugin-svelte": "1.4.0",
"@testing-library/svelte": "^3.2.1",
"svelte": "3.59.2",
"svelte": "5.53.5",
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Major version bump breaks incompatible companion dev dependencies

High Severity

Bumping svelte from 3.59.2 to 5.53.5 without updating companion dev dependencies breaks builds and tests. @sveltejs/vite-plugin-svelte at 1.4.0 was built for Svelte 3 (depends on svelte-hmr@^0.15.1) and is incompatible with Svelte 5's completely rewritten compiler and runtime. @testing-library/svelte at ^3.2.1 uses Svelte 3/4 component instantiation APIs (new Component()) that no longer exist in Svelte 5 — version 5.x of this library is needed. Tests also use component.$set() which was removed in Svelte 5. The vite config alias mapping svelte to svelte/internal is broken since svelte/internal no longer exists in Svelte 5 (replaced by svelte/internal/client).

Additional Locations (1)

Fix in Cursor Fix in Web

@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/svelte-5.53.5 branch from f6a1d98 to d8943a7 Compare March 2, 2026 12:36
"@sveltejs/vite-plugin-svelte": "1.4.0",
"@testing-library/svelte": "^3.2.1",
"svelte": "3.59.2",
"svelte": "5.53.5",
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Svelte 5 removes type import paths breaking build

High Severity

Bumping svelte to 5.53.5 breaks the production type build (build:types:core via tsc). The source files types.ts, config.ts, and preprocessors.ts import PreprocessorGroup from svelte/types/compiler/preprocess and CompileOptions from svelte/types/compiler — these export paths were removed in Svelte 5, where both types are now exported from svelte/compiler. Since tsc resolves types against the devDependency, the type declaration build will fail.

Fix in Cursor Fix in Web

Bumps [svelte](https://github.com/sveltejs/svelte/tree/HEAD/packages/svelte) from 3.59.2 to 5.53.5.
- [Release notes](https://github.com/sveltejs/svelte/releases)
- [Changelog](https://github.com/sveltejs/svelte/blob/main/packages/svelte/CHANGELOG-pre-5.md)
- [Commits](https://github.com/sveltejs/svelte/commits/svelte@5.53.5/packages/svelte)

---
updated-dependencies:
- dependency-name: svelte
  dependency-version: 5.53.5
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/svelte-5.53.5 branch from d8943a7 to fd44702 Compare March 2, 2026 15:32
@Lms24 Lms24 closed this Mar 2, 2026
@dependabot @github
Copy link
Contributor Author

dependabot bot commented on behalf of github Mar 2, 2026

OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version. You can also ignore all major, minor, or patch releases for a dependency by adding an ignore condition with the desired update_types to your config file.

If you change your mind, just re-open this PR and I'll resolve any conflicts on it.

@dependabot dependabot bot deleted the dependabot/npm_and_yarn/svelte-5.53.5 branch March 2, 2026 15:33
@Lms24
Copy link
Member

Lms24 commented Mar 2, 2026

closed because we explicitly listed these versions as dev dependencies. Nothing here ships to users

"@sveltejs/vite-plugin-svelte": "1.4.0",
"@testing-library/svelte": "^3.2.1",
"svelte": "3.59.2",
"svelte": "5.53.5",
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: The trackUpdates: true feature silently fails in Svelte 5's default runes mode because it relies on deprecated beforeUpdate/afterUpdate hooks, leading to a loss of performance tracking.
Severity: MEDIUM

Suggested Fix

Update the performance tracking implementation to be compatible with Svelte 5's runes mode, potentially by using a different mechanism than the deprecated beforeUpdate and afterUpdate hooks. Alternatively, if supporting this feature in runes mode is not feasible, explicitly document this limitation and throw a more informative error when trackUpdates: true is used in an unsupported Svelte 5 environment.

Prompt for AI Agent
Review the code at the location below. A potential bug has been identified by an AI
agent.
Verify if this is a real issue. If it is, propose a fix; if not, explain why it's not
valid.

Location: packages/svelte/package.json#L52

Potential issue: The package advertises support for Svelte 5, which defaults to "runes"
mode. However, the performance tracking feature enabled by `trackUpdates: true` relies
on `beforeUpdate()` and `afterUpdate()` lifecycle hooks. These hooks are deprecated in
runes mode and throw an error. The implementation in
`packages/svelte/src/performance.ts` catches this error and suppresses it with only a
debug warning. As a result, for users on Svelte 5, the `trackUpdates` feature will
silently fail to record update performance spans, leading to an unexpected loss of
functionality without a clear error message.

Did we get this right? 👍 / 👎 to inform future reviews.

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

"@sveltejs/kit": "^2.53.3",
"@sveltejs/vite-plugin-svelte": "^3.0.0",
"svelte": "^4.2.8",
"svelte": "^5.53.5",
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Incompatible sveltekit vite-plugin-svelte for Svelte 5

High Severity

Bumping svelte to ^5.53.5 while @sveltejs/vite-plugin-svelte stays at ^3.0.0 (resolves to 3.1.2) creates an incompatibility. Version 3.x of the vite plugin was built for Svelte 4 and does not support Svelte 5's compiler API. This breaks the sveltekit package's dev/test pipeline. The plugin needs to be updated to at least v4+ for Svelte 5 compatibility.

Additional Locations (1)

Fix in Cursor Fix in Web

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

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant