mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-05 16:11:33 +08:00
Move migration notes
This commit is contained in:
parent
00fadd92ed
commit
774ec679ee
20
MIGRATION.md
20
MIGRATION.md
@ -1,5 +1,8 @@
|
||||
<h1>Migration</h1>
|
||||
|
||||
- [From version 6.0.x to 6.1.0](#from-version-60x-to-610)
|
||||
- [6.1 deprecations](#61-deprecations)
|
||||
- [Deprecated onBeforeRender](#deprecated-onbeforerender)
|
||||
- [From version 5.3.x to 6.0.x](#from-version-53x-to-60x)
|
||||
- [Hoisted CSF annotations](#hoisted-csf-annotations)
|
||||
- [Zero config typescript](#zero-config-typescript)
|
||||
@ -49,7 +52,6 @@
|
||||
- [Deprecated clearDecorators](#deprecated-cleardecorators)
|
||||
- [Deprecated configure](#deprecated-configure)
|
||||
- [Deprecated support for duplicate kinds](#deprecated-support-for-duplicate-kinds)
|
||||
- [Deprecated onBeforeRender](#deprecated-onbeforerender)
|
||||
- [From version 5.2.x to 5.3.x](#from-version-52x-to-53x)
|
||||
- [To main.js configuration](#to-mainjs-configuration)
|
||||
- [Using main.js](#using-mainjs)
|
||||
@ -129,6 +131,16 @@
|
||||
- [Packages renaming](#packages-renaming)
|
||||
- [Deprecated embedded addons](#deprecated-embedded-addons)
|
||||
|
||||
## From version 6.0.x to 6.1.0
|
||||
|
||||
### 6.1 deprecations
|
||||
|
||||
#### Deprecated onBeforeRender
|
||||
|
||||
The `@storybook/addon-docs` previously accepted a `jsx` option called `onBeforeRender`, which was unfortunately named as it was called after the render.
|
||||
|
||||
We've renamed it `transformSource` and also allowed it to receive the `StoryContext` in case source rendering requires additional information.
|
||||
|
||||
## From version 5.3.x to 6.0.x
|
||||
|
||||
### Hoisted CSF annotations
|
||||
@ -799,12 +811,6 @@ export * from './Bar3.stories'
|
||||
export const SomeStory = () => ...;
|
||||
```
|
||||
|
||||
#### Deprecated onBeforeRender
|
||||
|
||||
The `@storybook/addon-docs` previously accepted a `jsx` option called `onBeforeRender`, which was unfortunately named as it was called after the render.
|
||||
|
||||
We've renamed it `transformSource` and also allowed it to receive the `StoryContext` in case source rendering requires additional information.
|
||||
|
||||
## From version 5.2.x to 5.3.x
|
||||
|
||||
### To main.js configuration
|
||||
|
Loading…
x
Reference in New Issue
Block a user