Skip to content

Latest commit

 

History

History
45 lines (33 loc) · 1.4 KB

File metadata and controls

45 lines (33 loc) · 1.4 KB

Migration

From version 9.x to 10.0.0

Support storybook 10.x and switch to ESM-only

Storybook v10 is now supported. The addon also becomes an ESM-only package. Due to these changes, it is not available for versions earlier than v10.

From version 8.x to 9.0.0

Support storybook 9.x

Storybook v9 is now supported. However, due to changes in the internal package, it is not available for versions earlier than v9.

From version 7.x to 8.0.0

withQuery decorator removed

The withQuery decorator is not necessary anymore and therefore its export was removed from the package. It's an internally defined decorator which is automatically applied to every story you have. Please remove from your stories/preview files:

import React from "react";
import { Button } from "../Button";
-import { withQuery } from "@storybook/addon-queryparams";

export default {
  title: "Button",
  component: Button,
-  decorators: [withQuery],
  parameters: {
    query: {
      greeting: "Hello world!",
    },
  },
};