Skip to content

build(deps-dev): bump @storybook/addon-svelte-csf from 5.0.0-next.28 to 5.0.0 #17

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dependabot[bot]
Copy link

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

Bumps @storybook/addon-svelte-csf from 5.0.0-next.28 to 5.0.0.

Release notes

Sourced from @​storybook/addon-svelte-csf's releases.

v5.0.0

5.0.0

Svelte CSF 5.0 is here

It brings support for Svelte 5, and major improvements to the Svelte CSF syntax, including

  • ✂️ Snippet-based API for stories
  • 🔬 Smaller bundle size
  • 🛟 Type-safe stories and meta definitions
  • 📚 Improved documentation and examples

Please checkout our Migration Guide to upgrade from earlier versions of the Svelte CSF addon. You can use the Legacy API flag to gradually migrate your stories to the new syntax. The biggest breaking change is that it now requires Svelte 5.

💥 Breaking Change

🚀 Enhancement

🐛 Bug Fix

... (truncated)

Changelog

Sourced from @​storybook/addon-svelte-csf's changelog.

v5.0.0 (Tue May 06 2025)

Release Notes

Breaking: Add support for render in defineMeta, replacing setTemplate-function (#295)

setTemplate-function removed in favor of render in defineMeta

The setTemplate-function has been removed. Instead reference your default snippet with the render-property in defineMeta:

<script module>
- import { defineMeta, setTemplate } from '@storybook/addon-svelte-csf';
+ import { defineMeta } from '@storybook/addon-svelte-csf';
  import MyComponent from './MyComponent.svelte';
const { Story } = defineMeta({
/* ... */

render: template
});
</script>

-<script>

setTemplate(template);
-</script>

{#snippet template(args)}
<MyComponent {...args}>
...
</MyComponent>
{/snippet}
<Story name="With Default Template" />

This new API achieves the same thing, but in a less verbose way, and is closer aligned with Storybook's regular CSF. 🎉

[!IMPORTANT] There is currently a bug in the Svelte language tools, which causes TypeScript to error with TS(2448): Block-scoped variable 'SNIPPET_NAMAE' used before its declaration.. Until that is fixed, you have to silent it with //@ts-ignore or //@ts-expect-error. See sveltejs/language-tools#2653

Breaking: Rename children prop to template, require asChild for static stories (#228)

This release contains breaking changes related to the children-API. The legacy API stays as-is to maintain backwards compatibility.

children renamed to template

The children-prop and children-snippet on Story has been renamed to template, to align better with Svelte's API and not be confused with Svelte's default children-snippet. If you have any stories using the children prop or snippet, you need to migrate them:

</tr></table> 

... (truncated)

Commits
  • 7f3d46b Bump version to: 5.0.0 [skip ci]
  • 731e7f5 Update CHANGELOG.md [skip ci]
  • 2c22773 Merge pull request #304 from storybookjs/next
  • 99a6f5f Merge pull request #305 from storybookjs/jeppe/fix-main-merge-conflicts
  • 43e7b7a Merge branch 'main' of github.com:storybookjs/addon-svelte-csf into jeppe/fix...
  • 0e01dcf Merge pull request #302 from storybookjs/jeppe/improve-types
  • d926543 Merge pull request #303 from storybookjs/jeppe/remove-svelte-bug-mention
  • 4dbdba7 Merge branch 'jeppe/improve-types' of github.com:storybookjs/addon-svelte-csf...
  • 24a9ced remove workarounds for Svelte TS snippet bug
  • 5447672 await async expectations
  • Additional commits viewable in compare view

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 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)

Bumps [@storybook/addon-svelte-csf](https://github.com/storybookjs/addon-svelte-csf) from 5.0.0-next.28 to 5.0.0.
- [Release notes](https://github.com/storybookjs/addon-svelte-csf/releases)
- [Changelog](https://github.com/storybookjs/addon-svelte-csf/blob/v5.0.0/CHANGELOG.md)
- [Commits](storybookjs/addon-svelte-csf@v5.0.0-next.28...v5.0.0)

---
updated-dependencies:
- dependency-name: "@storybook/addon-svelte-csf"
  dependency-version: 5.0.0
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels May 7, 2025
Copy link

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updated@​storybook/​addon-svelte-csf@​5.0.0-next.28 ⏵ 5.0.099100100 +1100100

View full report

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