chore(deps): update dependency @storybook/addon-svelte-csf to v5.0.3 #197
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
=5.0.0-next.28
->=5.0.3
Release Notes
storybookjs/addon-svelte-csf (@storybook/addon-svelte-csf)
v5.0.3
Compare Source
🐛 Bug Fix
Authors: 1
v5.0.2
Compare Source
🐛 Bug Fix
Authors: 2
v5.0.1
Compare Source
🐛 Bug Fix
meta
in stories #309 (@xeho91)Authors: 1
v5.0.0
Compare Source
Release Notes
Breaking: Add support for
render
indefineMeta
, replacingsetTemplate
-function (#295)setTemplate
-function removed in favor ofrender
indefineMeta
The
setTemplate
-function has been removed. Instead reference your default snippet with therender
-property indefineMeta
:This new API achieves the same thing, but in a less verbose way, and is closer aligned with Storybook's regular CSF. 🎉
Breaking: Rename
children
prop totemplate
, requireasChild
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 totemplate
The
children
-prop andchildren
-snippet onStory
has been renamed totemplate
, to align better with Svelte's API and not be confused with Svelte's defaultchildren
-snippet. If you have any stories using thechildren
prop or snippet, you need to migrate them:Story
children are now forwarded to componentsPreviously, to define static stories, you would just add children to a
Story
, and they would be the full story. To make it easier to passchildren
to your components in stories, the children are now instead forwarded to the component instead of replacing it completely.Previously:
Now:
To get the same behavior as previously, a new
asChild
boolean prop has been introduced on theStory
component.asChild
is a common prop in UI libraries, where you want thechildren
to be the output, instead of just being children of the Component. By adding that you can get the old behavior back, when you need more control over what the story renders:Require Storybook 8.2.0 and above, support Storybook 9.0.0 prereleases (#284)
The addon now requires Storybook
8.2.0
and upwards (was previously 8.0.0), and has a peer dependency on thestorybook
-package. That package should always be in your project anyway though.💥 Breaking Change
render
indefineMeta
, replacingsetTemplate
-function #295 (@JReinhold)children
prop totemplate
, requireasChild
for static stories #228 (@xeho91 @JReinhold)@storybook/docs-tools
dependency #190 (@JReinhold)🚀 Enhancement
'svelte-csf'
tag to all Svelte CSF stories #297 (@JReinhold)🐛 Bug Fix
children
not overridingargs.children
#298 (@JReinhold)getAbsolutePath
#296 (@JReinhold)meta
no longer destructurable fromdefineMeta()
call #244 (@xeho91 @JReinhold)source
prop when value isTemplateLiteral
#245 (@xeho91)post
enforcement #241 (@xeho91)@sveltejs/vite-plugin-svelte
v5 #237 (@JReinhold)parameters
attribute from legacy<Story>
being removed #224 (@xeho91)enhanceRollupError
in Vite #222 (@JReinhold)context="module"
withmodule
#217 (@xeho91)autodocs
tag issue and extractingrawCode
#201 (@xeho91)🏠 Internal
main
andnext
#305 (@xeho91 @JReinhold @ndelangen @storybook-bot @valentinpalkovic @bichikim @rChaoz @yannbf)svelte-preprocess
#300 (@xeho91)@storybook/experimental-addon-test
to repo (internal) #263 (@JReinhold)📝 Documentation
asChild
link in ERRORS.md #292 (@JReinhold)🧪 Tests
vitest
andvite
dependencies &jsdom
->happy-dom
#230 (@xeho91 @JReinhold)Authors: 12
v5.0.0-next.30
Compare Source
🐛 Bug Fix
🏠 Internal
svelte-preprocess
#300 (@xeho91)📝 Documentation
Authors: 2
v5.0.0-next.29
Compare Source
Release Notes
Breaking: Add support for
render
indefineMeta
, replacingsetTemplate
-function (#295)setTemplate
-function removed in favor ofrender
indefineMeta
The
setTemplate
-function has been removed. Instead reference your default snippet with therender
-property indefineMeta
:This new API achieves the same thing, but in a less verbose way, and is closer aligned with Storybook's regular CSF. 🎉
Breaking: Rename
children
prop totemplate
, requireasChild
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 totemplate
The
children
-prop andchildren
-snippet onStory
has been renamed totemplate
, to align better with Svelte's API and not be confused with Svelte's defaultchildren
-snippet. If you have any stories using thechildren
prop or snippet, you need to migrate them:Story
children are now forwarded to componentsPreviously, to define static stories, you would just add children to a
Story
, and they would be the full story. To make it easier to passchildren
to your components in stories, the children are now instead forwarded to the component instead of replacing it completely.Previously:
Now:
To get the same behavior as previously, a new
asChild
boolean prop has been introduced on theStory
component.asChild
is a common prop in UI libraries, where you want thechildren
to be the output, instead of just being children of the Component. By adding that you can get the old behavior back, when you need more control over what the story renders:💥 Breaking Change
render
indefineMeta
, replacingsetTemplate
-function #295 (@JReinhold)children
prop totemplate
, requireasChild
for static stories #228 (@xeho91 @JReinhold)🚀 Enhancement
'svelte-csf'
tag to all Svelte CSF stories #297 (@JReinhold)🐛 Bug Fix
children
not overridingargs.children
#298 (@JReinhold)getAbsolutePath
#296 (@JReinhold)🏠 Internal
📝 Documentation
asChild
link in ERRORS.md #292 (@JReinhold)Authors: 3
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.