Releases: storybookjs/testing-react
v2.0.1
v2.0.1-future.1
v2.0.1-future.0
v2.0.0
🎉 This release contains work from a new contributor! 🎉
Thank you, Kasper Peulen (@kasperpeulen), for all your work!
Release Notes
Support 7.0.0 (#140)
Storybook 7.0.0 is out! This release will make @storybook/testing-react
compatible with Storybook 7, though I highly recommend not to use this package anymore!.
@storybook/testing-react
has been promoted to a first-class Storybook functionality in Storybook 7. This means that you no longer need this package. Instead, you can import the same utilities, but from the @storybook/react
package. Additionally, the internals of composeStories
and composeStory
have been revamped, so the way a story is composed is more accurate. The @storybook/testing-react
package will be deprecated, so we recommend you to migrate.
Please do the following:
- Uninstall this package
- Update your imports
- import { composeStories } from '@storybook/testing-react';
+ import { composeStories } from '@storybook/react';
// OR
- import { setProjectAnnotations } from '@storybook/testing-react';
+ import { setProjectAnnotations } from '@storybook/react';
Thank you so much for being with me on this journey! ✌️
Support Storybook 7.0 (#120)
💥 Breaking Change
This version adds support for Storybook 7.0. It requires you to be using Storybook 7.0, as there were several internal changes required, all of which depend on new Storybook packages.
🚀 Features
In Storybook 7.0, the play function can also be defined in the Meta (default export). This is now supported in @storybook/testing-react
.
⚠️ Deprecations
The setGlobalConfig
function is now deprecated in favor of setProjectAnnotations
, which aligns better with Storybook 7.0 nomenclature.
From:
import { setGlobalConfig } from '@storybook/testing-react';
import * as globalStorybookConfig from './.storybook/preview';
setGlobalConfig(globalStorybookConfig);
To:
import { setProjectAnnotations } from '@storybook/testing-react';
import * as globalStorybookConfig from './.storybook/preview';
setProjectAnnotations(globalStorybookConfig);
💥 Breaking Change
- Support Storybook 7.0 #120 (@IanVS @yannbf @kasperpeulen)
🐛 Bug Fix
- Bump @storybook/csf to 0.1.0 #139 (@kasperpeulen)
- Support Storybook 7.0.0 #138 (@yannbf)
- Add test for handling csf3
name
->storyName
#108 (@IanVS)
Authors: 4
- Ian VanSchooten (@IanVS)
- Kasper Peulen (@kasperpeulen)
- Michael Shilman (@shilman)
- Yann Braga (@yannbf)
v2.0.0-next.2
🐛 Bug Fix
- Bump @storybook/csf to 0.1.0 #139 (@kasperpeulen)
Authors: 1
- Kasper Peulen (@kasperpeulen)
v2.0.0-next.1
v2.0.0-next.0
🎉 This release contains work from a new contributor! 🎉
Thank you, Kasper Peulen (@kasperpeulen), for all your work!
Release Notes
Support Storybook 7.0 (#120)
💥 Breaking Change
This version adds support for Storybook 7.0. It requires you to be using Storybook 7.0, as there were several internal changes required, all of which depend on new Storybook packages.
🚀 Features
In Storybook 7.0, the play function can also be defined in the Meta (default export). This is now supported in @storybook/testing-react
.
⚠️ Deprecations
The setGlobalConfig
function is now deprecated in favor of setProjectAnnotations
, which aligns better with Storybook 7.0 nomenclature.
From:
import { setGlobalConfig } from '@storybook/testing-react';
import * as globalStorybookConfig from './.storybook/preview';
setGlobalConfig(globalStorybookConfig);
To:
import { setProjectAnnotations } from '@storybook/testing-react';
import * as globalStorybookConfig from './.storybook/preview';
setProjectAnnotations(globalStorybookConfig);
💥 Breaking Change
- Support Storybook 7.0 #120 (@IanVS @yannbf @kasperpeulen)
🐛 Bug Fix
Authors: 3
- Ian VanSchooten (@IanVS)
- Kasper Peulen (@kasperpeulen)
- Yann Braga (@yannbf)
v1.3.0
🎉 This release contains work from new contributors! 🎉
Thanks for all your work!
❤️ Matt Harker (@TeaSeaLancs)
❤️ Alejandro Ñáñez Ortiz (@alejandronanez)
🚀 Enhancement
- feat: add React18 to peerDeps #100 (@alejandronanez)
🐛 Bug Fix
- Allow render function to be sourced from story meta #103 (@TeaSeaLancs @yannbf)
Authors: 3
- Alejandro Ñáñez Ortiz (@alejandronanez)
- Matt Harker (@TeaSeaLancs)
- Yann Braga (@yannbf)
v1.2.4
🐛 Bug Fix
- chore(deps): bump shelljs from 0.8.4 to 0.8.5 #82 (@dependabot[bot])
- update tests #92 (@yannbf)
Authors: 2
- @dependabot[bot]
- Yann Braga (@yannbf)
v1.2.3
🎉 This release contains work from new contributors! 🎉
Thanks for all your work!
❤️ Fabien (@frassinier)
❤️ Imgbot (@ImgBotApp)
❤️ Tatsushi Toji (@tatsushitoji)
🐛 Bug Fix
- chore: update sb deps #79 (@frassinier)
- [ImgBot] Optimize images #53 (@ImgBotApp @imgbot[bot])
⚠️ Pushed to main
- Update linear-export.yml (@shilman)
📝 Documentation
- chore(docs): removed unnecessary "async" from sample code #74 (@tatsushitoji)
Authors: 5
- @imgbot[bot]
- Fabien (@frassinier)
- Imgbot (@ImgBotApp)
- Michael Shilman (@shilman)
- Tatsushi Toji (@tatsushitoji)