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

Support Storybook 7.0.0 #138

Merged
merged 2 commits into from Mar 31, 2023
Merged

Support Storybook 7.0.0 #138

merged 2 commits into from Mar 31, 2023

Conversation

yannbf
Copy link
Member

@yannbf yannbf commented Mar 31, 2023

Preparing for the release of Storybook 7!

Change Type

Indicate the type of change your pull request is:

  • documentation
  • patch
  • minor
  • major
πŸ“¦ Published PR as canary version: 1.3.1--canary.138.1078df7.0

✨ Test out this PR locally via:

npm install @storybook/testing-react@1.3.1--canary.138.1078df7.0
# or 
yarn add @storybook/testing-react@1.3.1--canary.138.1078df7.0

Version

Published prerelease version: v2.0.0-next.1

Changelog

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

πŸ› Bug Fix

Authors: 3

@yannbf yannbf added the patch Increment the patch version when merged label Mar 31, 2023
@socket-security
Copy link

New dependency changes detected. Learn more about Socket for GitHub β†—οΈŽ


🚨 Potential security issues found in this pull request. To accept the risk, merge this PR and you will not be notified again.

Bot Commands

To ignore an alert, reply with a comment starting with @SocketSecurity ignore followed by a space separated list of package-name@version specifiers. e.g. @SocketSecurity ignore foo@1.0.0 bar@* or ignore all packages with @SocketSecurity ignore-all

  • @SocketSecurity ignore esbuild@0.17.14
  • @SocketSecurity ignore exec-sh@0.3.6
  • @SocketSecurity ignore execa@3.4.0
  • @SocketSecurity ignore execa@4.1.0
  • @SocketSecurity ignore execa@5.1.1
  • @SocketSecurity ignore external-editor@3.1.0
  • @SocketSecurity ignore fb-watchman@2.0.2
  • @SocketSecurity ignore fork-ts-checker-webpack-plugin@4.1.6
  • @SocketSecurity ignore fork-ts-checker-webpack-plugin@6.5.3
  • @SocketSecurity ignore git-raw-commits@2.0.11
  • @SocketSecurity ignore gitlog@4.0.4
  • @SocketSecurity ignore husky@5.2.0
  • @SocketSecurity ignore jake@10.8.5
  • @SocketSecurity ignore jest-haste-map@25.5.1
  • @SocketSecurity ignore jest-haste-map@29.3.1
  • @SocketSecurity ignore jest-worker@24.9.0
  • @SocketSecurity ignore jest-worker@25.5.0
  • @SocketSecurity ignore jest-worker@26.6.2
  • @SocketSecurity ignore jest-worker@27.5.1
  • @SocketSecurity ignore jest-worker@29.3.1
  • @SocketSecurity ignore jscodeshift@0.13.1
  • @SocketSecurity ignore jsdom@15.2.1
  • @SocketSecurity ignore jsdom@16.7.0
  • @SocketSecurity ignore node-notifier@6.0.0
  • @SocketSecurity ignore open@7.4.2
  • @SocketSecurity ignore open@8.4.0
  • @SocketSecurity ignore opener@1.5.2
  • @SocketSecurity ignore puppeteer-core@2.1.1
  • @SocketSecurity ignore react-dev-utils@12.0.1
  • @SocketSecurity ignore react-scripts@5.0.1
  • @SocketSecurity ignore requireg@0.2.2
  • @SocketSecurity ignore rollup@2.79.1
  • @SocketSecurity ignore shelljs@0.8.5
  • @SocketSecurity ignore tree-kill@1.2.2
  • @SocketSecurity ignore ts-node@10.9.1
  • @SocketSecurity ignore update-browserslist-db@1.0.10
  • @SocketSecurity ignore webpack@4.46.0
  • @SocketSecurity ignore webpack@5.75.0
  • @SocketSecurity ignore webpack-dev-server@4.11.1
  • @SocketSecurity ignore x-default-browser@0.4.0
  • @SocketSecurity ignore esbuild-register@3.4.2
  • @SocketSecurity ignore expect@27.5.1
  • @SocketSecurity ignore handlebars@4.7.7
  • @SocketSecurity ignore is-callable@1.2.7
  • @SocketSecurity ignore is-generator-function@1.0.10
  • @SocketSecurity ignore jest-diff@27.5.1
  • @SocketSecurity ignore jest-snapshot@25.5.1
  • @SocketSecurity ignore js-yaml@3.14.1
  • @SocketSecurity ignore lodash@4.17.21
  • @SocketSecurity ignore lodash-es@4.17.21
πŸ“œ Install scripts

Install scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.

Packages should not be running non-essential scripts during install and there are often solutions to problems people solve with install scripts that can be run at publish time instead.

Package Script field Source
esbuild@0.17.14 (added) postinstall package.json via @storybook/react@7.0.0-rc.10
⚠️ Shell access

This module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.

Packages should avoid accessing the shell which can reduce portability, and make it easier for malicious shell access to be introduced.

Package Module Location Source
esbuild@0.17.14 (added) child_process install.js package.json via @storybook/react@7.0.0-rc.10
esbuild@0.17.14 (added) child_process lib/main.js package.json via @storybook/react@7.0.0-rc.10
exec-sh@0.3.6 (added) child_process lib/exec-sh.js package.json via tsdx@0.14.1
exec-sh@0.3.6 (added) child_process test/exec-sh.js package.json via tsdx@0.14.1
execa@3.4.0 (added) child_process index.js package.json via tsdx@0.14.1
execa@4.1.0 (added) child_process index.js package.json via tsdx@0.14.1
execa@5.1.1 (added) child_process index.js package.json via @auto-it/conventional-commits@10.37.6, @auto-it/first-time-contributor@10.37.6, @auto-it/released@10.37.6, auto@10.37.6, example/package.json via @storybook/preset-create-react-app@4.1.2, @storybook/react@6.5.16, @storybook/react-webpack5@7.0.0-alpha.62, react-scripts@5.0.1, storybook@7.0.0-alpha.62
external-editor@3.1.0 (added) child_process main/index.js package.json via tsdx@0.14.1
fb-watchman@2.0.2 (added) child_process index.js package.json via tsdx@0.14.1, example/package.json via @storybook/addon-essentials@7.0.0-alpha.62, @storybook/preset-create-react-app@4.1.2, react-scripts@5.0.1
fork-ts-checker-webpack-plugin@4.1.6 (added) child_process lib/index.js example/package.json via @storybook/preset-create-react-app@4.1.2, @storybook/react@6.5.16
fork-ts-checker-webpack-plugin@6.5.3 (added) child_process lib/rpc/rpc-ipc/RpcIpcMessagePort.js example/package.json via @storybook/addon-essentials@7.0.0-alpha.62, @storybook/addon-interactions@7.0.0-alpha.62, @storybook/preset-create-react-app@4.1.2, @storybook/react@6.5.16, react-scripts@5.0.1
git-raw-commits@2.0.11 (added) child_process index.js package.json via @auto-it/conventional-commits@10.37.6
gitlog@4.0.4 (added) child_process dist/gitlog.cjs.development.js package.json via @auto-it/conventional-commits@10.37.6, @auto-it/first-time-contributor@10.37.6, @auto-it/released@10.37.6, auto@10.37.6
gitlog@4.0.4 (added) child_process dist/gitlog.cjs.production.min.js package.json via @auto-it/conventional-commits@10.37.6, @auto-it/first-time-contributor@10.37.6, @auto-it/released@10.37.6, auto@10.37.6
gitlog@4.0.4 (added) child_process dist/gitlog.esm.js package.json via @auto-it/conventional-commits@10.37.6, @auto-it/first-time-contributor@10.37.6, @auto-it/released@10.37.6, auto@10.37.6
husky@5.2.0 (added) child_process lib/commands/install.js package.json
husky@5.2.0 (added) child_process lib/commands/uninstall.js package.json
jake@10.8.5 (added) child_process jake-v10.8.5/jakefile.js example/package.json via @storybook/preset-create-react-app@4.1.2, react-scripts@5.0.1, storybook@7.0.0-alpha.62
jake@10.8.5 (added) child_process jake-v10.8.5/lib/package_task.js example/package.json via @storybook/preset-create-react-app@4.1.2, react-scripts@5.0.1, storybook@7.0.0-alpha.62
jake@10.8.5 (added) child_process jake-v10.8.5/lib/publish_task.js example/package.json via @storybook/preset-create-react-app@4.1.2, react-scripts@5.0.1, storybook@7.0.0-alpha.62
jake@10.8.5 (added) child_process jake-v10.8.5/lib/utils/index.js example/package.json via @storybook/preset-create-react-app@4.1.2, react-scripts@5.0.1, storybook@7.0.0-alpha.62
jake@10.8.5 (added) child_process jake-v10.8.5/test/integration/concurrent.js example/package.json via @storybook/preset-create-react-app@4.1.2, react-scripts@5.0.1, storybook@7.0.0-alpha.62
jake@10.8.5 (added) child_process jake-v10.8.5/test/integration/file_task.js example/package.json via @storybook/preset-create-react-app@4.1.2, react-scripts@5.0.1, storybook@7.0.0-alpha.62
jake@10.8.5 (added) child_process jake-v10.8.5/test/integration/file.js example/package.json via @storybook/preset-create-react-app@4.1.2, react-scripts@5.0.1, storybook@7.0.0-alpha.62
jake@10.8.5 (added) child_process jake-v10.8.5/test/integration/helpers.js example/package.json via @storybook/preset-create-react-app@4.1.2, react-scripts@5.0.1, storybook@7.0.0-alpha.62
jake@10.8.5 (added) child_process jake-v10.8.5/test/integration/jakelib/rule.jake.js example/package.json via @storybook/preset-create-react-app@4.1.2, react-scripts@5.0.1, storybook@7.0.0-alpha.62
jake@10.8.5 (added) child_process jake-v10.8.5/test/integration/publish_task.js example/package.json via @storybook/preset-create-react-app@4.1.2, react-scripts@5.0.1, storybook@7.0.0-alpha.62
jake@10.8.5 (added) child_process jake-v10.8.5/test/integration/rule.js example/package.json via @storybook/preset-create-react-app@4.1.2, react-scripts@5.0.1, storybook@7.0.0-alpha.62
jake@10.8.5 (added) child_process jake-v10.8.5/test/integration/selfdep.js example/package.json via @storybook/preset-create-react-app@4.1.2, react-scripts@5.0.1, storybook@7.0.0-alpha.62
jake@10.8.5 (added) child_process jake-v10.8.5/test/integration/task_base.js example/package.json via @storybook/preset-create-react-app@4.1.2, react-scripts@5.0.1, storybook@7.0.0-alpha.62
jake@10.8.5 (added) child_process jake-v10.8.5/test/integration/task_base.js example/package.json via @storybook/preset-create-react-app@4.1.2, react-scripts@5.0.1, storybook@7.0.0-alpha.62
jest-haste-map@25.5.1 (added) child_process build/crawlers/node.js package.json via tsdx@0.14.1
jest-haste-map@25.5.1 (added) child_process build/index.js package.json via tsdx@0.14.1
jest-haste-map@29.3.1 (added) child_process build/crawlers/node.js example/package.json via @storybook/addon-essentials@7.0.0-alpha.62
jest-haste-map@29.3.1 (added) child_process build/lib/isWatchmanInstalled.js example/package.json via @storybook/addon-essentials@7.0.0-alpha.62
jest-worker@24.9.0 (added) child_process build/types.js package.json via tsdx@0.14.1
jest-worker@24.9.0 (added) child_process build/workers/ChildProcessWorker.js package.json via tsdx@0.14.1
jest-worker@25.5.0 (added) child_process build/workers/ChildProcessWorker.js package.json via tsdx@0.14.1
jest-worker@26.6.2 (added) child_process build/workers/ChildProcessWorker.js example/package.json via @storybook/preset-create-react-app@4.1.2, @storybook/react@6.5.16, react-scripts@5.0.1
jest-worker@27.5.1 (added) child_process build/workers/ChildProcessWorker.js example/package.json via @storybook/addon-essentials@7.0.0-alpha.62, @storybook/addon-interactions@7.0.0-alpha.62, @storybook/preset-create-react-app@4.1.2, @storybook/react@6.5.16, @storybook/react-webpack5@7.0.0-alpha.62, react-scripts@5.0.1
jest-worker@29.3.1 (added) child_process build/workers/ChildProcessWorker.js example/package.json via @storybook/addon-essentials@7.0.0-alpha.62
jscodeshift@0.13.1 (added) child_process dist/Runner.js example/package.json via storybook@7.0.0-alpha.62
jscodeshift@0.13.1 (added) child_process src/Runner.js example/package.json via storybook@7.0.0-alpha.62
jsdom@15.2.1 (added) child_process lib/jsdom/living/xmlhttprequest.js package.json via tsdx@0.14.1
jsdom@16.7.0 (added) child_process lib/jsdom/living/xhr/XMLHttpRequest-impl.js example/package.json via @storybook/preset-create-react-app@4.1.2, react-scripts@5.0.1
node-notifier@6.0.0 (added) child_process lib/utils.js package.json via tsdx@0.14.1, example/package.json via @storybook/preset-create-react-app@4.1.2, react-scripts@5.0.1
open@7.4.2 (added) child_process index.js example/package.json via @storybook/preset-create-react-app@4.1.2, @storybook/react@6.5.16, storybook@7.0.0-alpha.62
open@8.4.0 (added) child_process index.js example/package.json via @storybook/preset-create-react-app@4.1.2, @storybook/react@6.5.16, @storybook/react-webpack5@7.0.0-alpha.62, react-scripts@5.0.1, storybook@7.0.0-alpha.62
opener@1.5.2 (added) child_process lib/opener.js package.json via @size-limit/preset-small-lib@4.12.0
puppeteer-core@2.1.1 (added) child_process lib/Launcher.js example/package.json via storybook@7.0.0-alpha.62
react-dev-utils@12.0.1 (added) child_process getProcessForPort.js example/package.json via @storybook/preset-create-react-app@4.1.2, react-scripts@5.0.1
react-dev-utils@12.0.1 (added) child_process getProcessForPort.js example/package.json via @storybook/preset-create-react-app@4.1.2, react-scripts@5.0.1
react-dev-utils@12.0.1 (added) child_process launchEditor.js example/package.json via @storybook/preset-create-react-app@4.1.2, react-scripts@5.0.1
react-dev-utils@12.0.1 (added) child_process openBrowser.js example/package.json via @storybook/preset-create-react-app@4.1.2, react-scripts@5.0.1
react-scripts@5.0.1 (added) child_process scripts/eject.js example/package.json via @storybook/preset-create-react-app@4.1.2
react-scripts@5.0.1 (added) child_process scripts/init.js example/package.json via @storybook/preset-create-react-app@4.1.2
react-scripts@5.0.1 (added) child_process scripts/test.js example/package.json via @storybook/preset-create-react-app@4.1.2
requireg@0.2.2 (added) child_process lib/resolvers.js package.json via @auto-it/conventional-commits@10.37.6, @auto-it/first-time-contributor@10.37.6, @auto-it/released@10.37.6, auto@10.37.6
rollup@2.79.1 (added) child_process dist/shared/watch-cli.js example/package.json via @storybook/preset-create-react-app@4.1.2, react-scripts@5.0.1
shelljs@0.8.5 (added) child_process src/exec-child.js package.json via tsdx@0.14.1, example/package.json via storybook@7.0.0-alpha.62
shelljs@0.8.5 (added) child_process src/exec.js package.json via tsdx@0.14.1, example/package.json via storybook@7.0.0-alpha.62
tree-kill@1.2.2 (added) child_process index.js package.json via concurrently@6.5.1
ts-node@10.9.1 (added) child_process dist/child/spawn-child.js package.json via @auto-it/conventional-commits@10.37.6, @auto-it/first-time-contributor@10.37.6, @auto-it/released@10.37.6, auto@10.37.6, example/package.json via @storybook/preset-create-react-app@4.1.2, react-scripts@5.0.1
update-browserslist-db@1.0.10 (added) child_process check-npm-version.js package.json via @size-limit/preset-small-lib@4.12.0, @storybook/react@7.0.0-rc.10, tsdx@0.14.1, example/package.json via @storybook/addon-essentials@7.0.0-alpha.62, @storybook/addon-interactions@7.0.0-alpha.62, @storybook/components@7.0.0-alpha.62, @storybook/preset-create-react-app@4.1.2, @storybook/react@6.5.16, @storybook/react-webpack5@7.0.0-alpha.62, react-scripts@5.0.1, storybook@7.0.0-alpha.62
update-browserslist-db@1.0.10 (added) child_process index.js package.json via @size-limit/preset-small-lib@4.12.0, @storybook/react@7.0.0-rc.10, tsdx@0.14.1, example/package.json via @storybook/addon-essentials@7.0.0-alpha.62, @storybook/addon-interactions@7.0.0-alpha.62, @storybook/components@7.0.0-alpha.62, @storybook/preset-create-react-app@4.1.2, @storybook/react@6.5.16, @storybook/react-webpack5@7.0.0-alpha.62, react-scripts@5.0.1, storybook@7.0.0-alpha.62
webpack@4.46.0 (added) child_process bin/webpack.js package.json via @size-limit/preset-small-lib@4.12.0, example/package.json via @storybook/preset-create-react-app@4.1.2, @storybook/react@6.5.16
webpack@5.75.0 (added) child_process bin/webpack.js example/package.json via @storybook/addon-essentials@7.0.0-alpha.62, @storybook/addon-interactions@7.0.0-alpha.62, @storybook/preset-create-react-app@4.1.2, @storybook/react@6.5.16, @storybook/react-webpack5@7.0.0-alpha.62, react-scripts@5.0.1
webpack-dev-server@4.11.1 (added) child_process bin/webpack-dev-server.js example/package.json via @storybook/preset-create-react-app@4.1.2, @storybook/react@6.5.16, @storybook/react-webpack5@7.0.0-alpha.62, react-scripts@5.0.1
x-default-browser@0.4.0 (added) child_process lib/detect-linux.js example/package.json via @storybook/preset-create-react-app@4.1.2, @storybook/react@6.5.16
x-default-browser@0.4.0 (added) child_process lib/detect-mac.js example/package.json via @storybook/preset-create-react-app@4.1.2, @storybook/react@6.5.16
x-default-browser@0.4.0 (added) child_process lib/detect-windows.js example/package.json via @storybook/preset-create-react-app@4.1.2, @storybook/react@6.5.16
x-default-browser@0.4.0 (added) child_process lib/detect-windows10.js example/package.json via @storybook/preset-create-react-app@4.1.2, @storybook/react@6.5.16
⚠️ Uses eval

Package uses eval() which is a dangerous function. This prevents the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.

Avoid packages that use eval, since this could potentially execute any code.

Package Eval Type Location Source
esbuild-register@3.4.2 (added) Function dist/node.js package.json via @storybook/react@7.0.0-rc.10
expect@27.5.1 (added) Function build/index.js example/package.json via @storybook/preset-create-react-app@4.1.2, react-scripts@5.0.1
expect@27.5.1 (added) Function build/index.js example/package.json via @storybook/preset-create-react-app@4.1.2, react-scripts@5.0.1
expect@27.5.1 (added) Function build/index.js example/package.json via @storybook/preset-create-react-app@4.1.2, react-scripts@5.0.1
expect@27.5.1 (added) Function build/utils.js example/package.json via @storybook/preset-create-react-app@4.1.2, react-scripts@5.0.1
handlebars@4.7.7 (added) Function dist/cjs/handlebars/compiler/javascript-compiler.js package.json via @auto-it/conventional-commits@10.37.6, @storybook/react@7.0.0-rc.10, example/package.json via @storybook/addon-essentials@7.0.0-alpha.62, @storybook/addon-interactions@7.0.0-alpha.62, @storybook/preset-create-react-app@4.1.2, @storybook/react@6.5.16, @storybook/react-webpack5@7.0.0-alpha.62, storybook@7.0.0-alpha.62
handlebars@4.7.7 (added) Function dist/cjs/handlebars/compiler/javascript-compiler.js package.json via @auto-it/conventional-commits@10.37.6, @storybook/react@7.0.0-rc.10, example/package.json via @storybook/addon-essentials@7.0.0-alpha.62, @storybook/addon-interactions@7.0.0-alpha.62, @storybook/preset-create-react-app@4.1.2, @storybook/react@6.5.16, @storybook/react-webpack5@7.0.0-alpha.62, storybook@7.0.0-alpha.62
handlebars@4.7.7 (added) Function dist/handlebars.amd.js package.json via @auto-it/conventional-commits@10.37.6, @storybook/react@7.0.0-rc.10, example/package.json via @storybook/addon-essentials@7.0.0-alpha.62, @storybook/addon-interactions@7.0.0-alpha.62, @storybook/preset-create-react-app@4.1.2, @storybook/react@6.5.16, @storybook/react-webpack5@7.0.0-alpha.62, storybook@7.0.0-alpha.62
handlebars@4.7.7 (added) Function dist/handlebars.amd.js package.json via @auto-it/conventional-commits@10.37.6, @storybook/react@7.0.0-rc.10, example/package.json via @storybook/addon-essentials@7.0.0-alpha.62, @storybook/addon-interactions@7.0.0-alpha.62, @storybook/preset-create-react-app@4.1.2, @storybook/react@6.5.16, @storybook/react-webpack5@7.0.0-alpha.62, storybook@7.0.0-alpha.62
handlebars@4.7.7 (added) Function dist/handlebars.amd.min.js package.json via @auto-it/conventional-commits@10.37.6, @storybook/react@7.0.0-rc.10, example/package.json via [@storybook/addon-essentials@7.0.0-alpha.62](https://socket.dev/npm/package/@story

@yannbf yannbf merged commit d7a6e8e into next Mar 31, 2023
2 of 3 checks passed
@yannbf yannbf deleted the feat/prepare-for-sb7 branch March 31, 2023 14:15
@github-actions github-actions bot mentioned this pull request Apr 3, 2023
6 tasks
@github-actions
Copy link

github-actions bot commented Apr 3, 2023

πŸš€ PR was released in v2.0.0 πŸš€

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
patch Increment the patch version when merged released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant