Closed nkabrown closed 6 months ago
See this section of the v8 migration guide: https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#removed-deprecated-shim-packages
Is this API in v7 as well? I would like to maintain backwards compatibility with it, if we can.
It is. In fact i updated to the v7 library version in package.json
instead of the v8 version and I've tested in v7 and v8 Storybook instances.
This API was added to @storybook/preview-api
when v7.0.0 was released. Here is the relevant section from the 6 to 7 migration guide.
"You might also depend (and use) these packages in your addon's decorators: @storybook/store, @storybook/preview-web, @storybook/core-client, @storybook/client-api; these have all been consolidated into @storybook/preview-api. So if you use any of these packages, please import what you need from @storybook/preview-api instead."
You are awesome! Thanks!
The only downside is that this will introduce a breaking change because we are dropping v6 support. I'm totally ok with that, but I need to plan accordingly.
Fixes #47
As of Storybook v8 the
@storybook/client-api
package has been removed and incorporated into@storybook/preview-api
. Update theuseArgs
import statement.