chore(deps): update dependency msw-storybook-addon to v2 #1136
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:
^1.10.0
->^2.0.0
Release Notes
mswjs/msw-storybook-addon (msw-storybook-addon)
v2.0.2
Compare Source
🐛 Bug Fix
MswParameters
handlers type #146 (@jarojasm95)Authors: 1
v2.0.1
Compare Source
🐛 Bug Fix
Authors: 1
v2.0.0
Compare Source
Release Notes
BREAKING CHANGE: Support MSW 2.0 (#122)
MSW required version is now ^2.0.0
The addon now requires your MSW version to be 2.0.0 or higher. This means you will have to change the format of your handlers as well. More info on how to migrate to MSW 2.0.0: https://mswjs.io/docs/migrations/1.x-to-2.x/
mswDecorator is deprecated in favor of mswLoader
Using MSW in a decorator worked for most scenarios, but there's a slight chance the service worker will not get registered in time. As a result, a story that requests data might actually request real data. Since v1.7.0, this addon provided a
mswLoader
to use instead of themswDecorator
. Loaders get executed before a story renders, differently than decorators, which execute as the story renders.Please replace your
mswDecorator
withmswLoader
, as themswDecorator
will be removed in the next major release. It works the same, respecting the parameters you set, so there's no need to change anything else in your codebase.parameters.msw Array notation deprecated in favor of Object notation
Since v1.5.0, this addon started supporting the
parameters.msw.handlers
object format instead of usingparameters.msw
as an Array. This change was done to follow convention for Storybook addon parameters, but also allows for more advanced usage and make the addon more future proof for upcoming features. You can find more information here.Please migrate to this format, and the previous format will be removed in the next major release.
💥 Breaking Change
🐛 Bug Fix
main
Authors: 6
Configuration
📅 Schedule: Branch creation - "before 6am" (UTC), 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 has been generated by Mend Renovate. View repository job log here.