Skip to content

Bump svelte-modals from 1.3.0 to 2.0.1#575

Open
dependabot[bot] wants to merge 1 commit intomainfrom
dependabot/npm_and_yarn/svelte-modals-2.0.1
Open

Bump svelte-modals from 1.3.0 to 2.0.1#575
dependabot[bot] wants to merge 1 commit intomainfrom
dependabot/npm_and_yarn/svelte-modals-2.0.1

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github May 12, 2025

Bumps svelte-modals from 1.3.0 to 2.0.1.

Release notes

Sourced from svelte-modals's releases.

v2.0.1

v2.0.0

v2 introduces Svelte 5 support and an API overhaul to better solve the community requests from v1. Please check out the new documentation to see detailed examples and usage. The v1 documentation will remain available here

The following issues have been addressed or fixed with this release:

mattjennings/svelte-modals#7 mattjennings/svelte-modals#9 mattjennings/svelte-modals#18 mattjennings/svelte-modals#15 mattjennings/svelte-modals#17 mattjennings/svelte-modals#27 mattjennings/svelte-modals#21 mattjennings/svelte-modals#34 mattjennings/svelte-modals#35

Migration from v1

You can continue to use the v1 API and incrementally adopt the new API by using the svelte-modals/legacy import. Please check out the migration guide for a detailed walkthrough.

Breaking changes

API

  • Svelte 5 is now required as a peer dependency
  • modals has been changed from a store to being the main entrypoint for most svelte-modals methods.
    • openModal -> modals.open and now returns a promise
      • when using { replace: true } and the currently opened modal prevents the close, the promise will reject
    • closeModal -> modals.close
    • closeAllModals -> modals.closeAll
    • modals -> modals.stack and changed from a store to a rune
    • action -> modals.action and changed from a store to a rune
    • transition -> modals.transition and changed from a store to a rune
  • <Modals /> has been updated to use snippets instead of slots. The default slot has been changed to a modals snippet.
    • svelte-modals/legacy continues to use slots and the default slot
  • Deferred transitions are now enabled by using the exitBeforeEnter action instead of forwarding events

Types

  • SvelteModalComponent has been renamed to ModalComponent and updated for Svelte 5 component types
  • LazySvelteModalComponent has been renamed to LazyModalComponent and updated for Svelte 5 component types
Commits

Dependabot compatibility score

You can trigger a rebase of this PR 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 merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @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)

Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.

Bumps [svelte-modals](https://github.com/mattjennings/svelte-modals) from 1.3.0 to 2.0.1.
- [Release notes](https://github.com/mattjennings/svelte-modals/releases)
- [Commits](mattjennings/svelte-modals@v1.3.0...v2.0.1)

---
updated-dependencies:
- dependency-name: svelte-modals
  dependency-version: 2.0.1
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels May 12, 2025
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.

0 participants