Skip to content
This repository was archived by the owner on Jan 31, 2024. It is now read-only.

Commit e63dc8b

Browse files
Update CHANGELOG.md [skip ci]
1 parent 5e53625 commit e63dc8b

File tree

1 file changed

+85
-0
lines changed

1 file changed

+85
-0
lines changed

CHANGELOG.md

+85
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,88 @@
1+
# v2.0.0 (Mon Apr 03 2023)
2+
3+
:tada: This release contains work from a new contributor! :tada:
4+
5+
Thank you, Kasper Peulen ([@kasperpeulen](https://github.com/kasperpeulen)), for all your work!
6+
7+
### Release Notes
8+
9+
#### Support 7.0.0 ([#140](https://github.com/storybookjs/testing-react/pull/140))
10+
11+
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!**.
12+
13+
`@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.
14+
15+
Please do the following:
16+
17+
1. Uninstall this package
18+
2. Update your imports
19+
20+
```diff
21+
- import { composeStories } from '@storybook/testing-react';
22+
+ import { composeStories } from '@storybook/react';
23+
24+
// OR
25+
- import { setProjectAnnotations } from '@storybook/testing-react';
26+
+ import { setProjectAnnotations } from '@storybook/react';
27+
```
28+
29+
Thank you so much for being with me on this journey! ✌️
30+
31+
#### Support Storybook 7.0 ([#120](https://github.com/storybookjs/testing-react/pull/120))
32+
33+
### 💥 Breaking Change
34+
35+
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.
36+
37+
### 🚀 Features
38+
39+
In Storybook 7.0, the play function can also be defined in the Meta (default export). This is now supported in `@storybook/testing-react`.
40+
41+
### ⚠️ Deprecations
42+
43+
The `setGlobalConfig` function is now deprecated in favor of `setProjectAnnotations`, which aligns better with Storybook 7.0 nomenclature.
44+
45+
**From:**
46+
```js
47+
import { setGlobalConfig } from '@storybook/testing-react';
48+
import * as globalStorybookConfig from './.storybook/preview';
49+
50+
setGlobalConfig(globalStorybookConfig);
51+
```
52+
53+
**To:**
54+
```js
55+
import { setProjectAnnotations } from '@storybook/testing-react';
56+
import * as globalStorybookConfig from './.storybook/preview';
57+
58+
setProjectAnnotations(globalStorybookConfig);
59+
```
60+
61+
---
62+
63+
</details>
64+
65+
---
66+
67+
#### 💥 Breaking Change
68+
69+
- Support Storybook 7.0 [#120](https://github.com/storybookjs/testing-react/pull/120) ([@IanVS](https://github.com/IanVS) [@yannbf](https://github.com/yannbf) [@kasperpeulen](https://github.com/kasperpeulen))
70+
71+
#### 🐛 Bug Fix
72+
73+
- Bump @storybook/csf to 0.1.0 [#139](https://github.com/storybookjs/testing-react/pull/139) ([@kasperpeulen](https://github.com/kasperpeulen))
74+
- Support Storybook 7.0.0 [#138](https://github.com/storybookjs/testing-react/pull/138) ([@yannbf](https://github.com/yannbf))
75+
- Add test for handling csf3 `name` -> `storyName` [#108](https://github.com/storybookjs/testing-react/pull/108) ([@IanVS](https://github.com/IanVS))
76+
77+
#### Authors: 4
78+
79+
- Ian VanSchooten ([@IanVS](https://github.com/IanVS))
80+
- Kasper Peulen ([@kasperpeulen](https://github.com/kasperpeulen))
81+
- Michael Shilman ([@shilman](https://github.com/shilman))
82+
- Yann Braga ([@yannbf](https://github.com/yannbf))
83+
84+
---
85+
186
# v1.3.0 (Thu May 19 2022)
287

388
:tada: This release contains work from new contributors! :tada:

0 commit comments

Comments
 (0)