Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update storybook to v8 #643

Draft
wants to merge 10 commits into
base: main
Choose a base branch
from
Draft

Update storybook to v8 #643

wants to merge 10 commits into from

Conversation

JoseWhite
Copy link

@JoseWhite JoseWhite commented Jun 7, 2024

This pull request aims to close the issue: Update Storybook to v7 by upgrading it to v8
Upgrade Notes:
From version 6.5x to 7.00:

  • Updated preview.js in accordance with the changelog entry
  • Migrate main.js from CJS export syntax to the now support ES6 in accordance with the changelog entry
  • React peer dependencies were already in place, so instead of adding them just migrated them to the latest available minor version. changelog entry
  • Storybook old binaries removed (start-storybook & build-storybook), updated yarn scripts to account for this. related changelog
  • Applied the new storybook concept of "framework" choosing @storybook/react-webpack5 and all its necessary package configurations
    • Removed dependencies:
      • Removed @storybook/builder-webpack5
      • Removed @storybook/manager-webpack5
      • Removed @storybook/react
  • Added dependencies:
    • Added @storybook/react-webpack5
    • Added @chromatic-com/storybook
  • Add framework specific config entries in .storybook/main.js

From version 7 to 8

  • storiesOF deprecated in favor of CSF syntax
    • Migrate All stories to CSF v1 then all stories into CSF v2 and finally into CSF v3
  • Removed all packages that were kept in v7 for backwards compatibility that are now deprecated
    • @storybook/addons
    • @storybook/preview-api
    • @storybook/manager-api
    • @storybook/channel-postmessage
    • @storybook/channel-websocket
    • @storybook/client-api
    • @storybook/core-client
    • @storybook/preview-web
    • @storybook/store
    • @storybook/api

Release Notes

Version bump type: PATCH from 10.1.0. => 10.1.1

Author Checklist

  • Update version in package.json (see the versioning guidelines)
  • Self review code changes
  • Check for regresions on storybook component display
  • Assign dev reviewer

JoseWhite added 6 commits June 6, 2024 17:45
- Migrated from StoriesOf to CSF v1
- Fixed project wide ES6 deprecated export syntax
- Storybook configuration files changes
- Storybook dependencies reorganized and pruned
- Mostly related to unnamed import references on other files
@JoseWhite JoseWhite self-assigned this Jun 7, 2024
JoseWhite added 4 commits June 7, 2024 15:19
- Adding missing dependencies
- Added base autodoc template
- Added min height to preview to fix broken doc entries like color
  picker
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant