-
Notifications
You must be signed in to change notification settings - Fork 86
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 monorepo to v8 (major) #4792
base: main
Are you sure you want to change the base?
Conversation
v7 to v8 migration guide: https://storybook.js.org/docs/migration-guide Note:
|
d78c361
to
a95f18e
Compare
}; | ||
|
||
function getAbsolutePath(value) { | ||
return dirname(require.resolve(join(value, "package.json"))); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Detected possible user input going into a path.join
or path.resolve
function. This could possibly lead to a path traversal vulnerability, where the attacker can access arbitrary files stored in the file system. Instead, be sure to sanitize or validate user input first.
View Dataflow Graph
flowchart LR
classDef invis fill:white, stroke: none
classDef default fill:#e7f5ff, color:#1c7fd6, stroke: none
subgraph File0["<b>apps/hashdotdesign/.storybook/main.js</b>"]
direction LR
%% Source
subgraph Source
direction LR
v0["<a href=https://github.com/hashintel/hash/blob/726e5712a27dc56fc57d382121f14fd5e1715e74/apps/hashdotdesign/.storybook/main.js#L35 target=_blank style='text-decoration:none; color:#1c7fd6'>[Line: 35] value</a>"]
end
%% Intermediate
subgraph Traces0[Traces]
direction TB
v2["<a href=https://github.com/hashintel/hash/blob/726e5712a27dc56fc57d382121f14fd5e1715e74/apps/hashdotdesign/.storybook/main.js#L35 target=_blank style='text-decoration:none; color:#1c7fd6'>[Line: 35] value</a>"]
end
%% Sink
subgraph Sink
direction LR
v1["<a href=https://github.com/hashintel/hash/blob/726e5712a27dc56fc57d382121f14fd5e1715e74/apps/hashdotdesign/.storybook/main.js#L36 target=_blank style='text-decoration:none; color:#1c7fd6'>[Line: 36] value</a>"]
end
end
%% Class Assignment
Source:::invis
Sink:::invis
Traces0:::invis
File0:::invis
%% Connections
Source --> Traces0
Traces0 --> Sink
Edited/Blocked NotificationRenovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR. You can manually request rebase by checking the rebase/retry box above. |
}; | ||
|
||
function getAbsolutePath(value) { | ||
return dirname(require.resolve(join(value, "package.json"))); |
Check warning
Code scanning / Semgrep PRO
Semgrep Finding: javascript.lang.security.audit.path-traversal.path-join-resolve-traversal.path-join-resolve-traversal Warning
# Conflicts: # yarn.lock
Benchmark results
|
Function | Value | Mean | Flame graphs |
---|---|---|---|
get_entity_type_by_id | Account ID: d4e16033-c281-4cde-aa35-9085bf2e7579
|
Flame Graph |
scaling_read_entity_linkless
Function | Value | Mean | Flame graphs |
---|---|---|---|
entity_by_id | 1000 entities | Flame Graph | |
entity_by_id | 10000 entities | Flame Graph | |
entity_by_id | 10 entities | Flame Graph | |
entity_by_id | 1 entities | Flame Graph | |
entity_by_id | 100 entities | Flame Graph |
scaling_read_entity_complete_one_depth
Function | Value | Mean | Flame graphs |
---|---|---|---|
entity_by_id | 50 entities | Flame Graph | |
entity_by_id | 5 entities | Flame Graph | |
entity_by_id | 10 entities | Flame Graph | |
entity_by_id | 1 entities | Flame Graph | |
entity_by_id | 25 entities | Flame Graph |
scaling_read_entity_complete_zero_depth
Function | Value | Mean | Flame graphs |
---|---|---|---|
entity_by_id | 50 entities | Flame Graph | |
entity_by_id | 5 entities | Flame Graph | |
entity_by_id | 10 entities | Flame Graph | |
entity_by_id | 1 entities | Flame Graph | |
entity_by_id | 25 entities | Flame Graph |
representative_read_multiple_entities
Function | Value | Mean | Flame graphs |
---|---|---|---|
entity_by_property | depths: DT=0, PT=0, ET=2, E=2 | Flame Graph | |
entity_by_property | depths: DT=255, PT=255, ET=255, E=255 | Flame Graph | |
entity_by_property | depths: DT=0, PT=2, ET=2, E=2 | Flame Graph | |
entity_by_property | depths: DT=0, PT=0, ET=0, E=2 | Flame Graph | |
entity_by_property | depths: DT=0, PT=0, ET=0, E=0 | Flame Graph | |
entity_by_property | depths: DT=2, PT=2, ET=2, E=2 | Flame Graph | |
link_by_source_by_property | depths: DT=0, PT=0, ET=2, E=2 | Flame Graph | |
link_by_source_by_property | depths: DT=255, PT=255, ET=255, E=255 | Flame Graph | |
link_by_source_by_property | depths: DT=0, PT=2, ET=2, E=2 | Flame Graph | |
link_by_source_by_property | depths: DT=0, PT=0, ET=0, E=2 | Flame Graph | |
link_by_source_by_property | depths: DT=0, PT=0, ET=0, E=0 | Flame Graph | |
link_by_source_by_property | depths: DT=2, PT=2, ET=2, E=2 | Flame Graph |
representative_read_entity
Function | Value | Mean | Flame graphs |
---|---|---|---|
entity_by_id | entity type ID: https://blockprotocol.org/@alice/types/entity-type/book/v/1
|
Flame Graph | |
entity_by_id | entity type ID: https://blockprotocol.org/@alice/types/entity-type/person/v/1
|
Flame Graph | |
entity_by_id | entity type ID: https://blockprotocol.org/@alice/types/entity-type/block/v/1
|
Flame Graph | |
entity_by_id | entity type ID: https://blockprotocol.org/@alice/types/entity-type/building/v/1
|
Flame Graph | |
entity_by_id | entity type ID: https://blockprotocol.org/@alice/types/entity-type/uk-address/v/1
|
Flame Graph | |
entity_by_id | entity type ID: https://blockprotocol.org/@alice/types/entity-type/playlist/v/1
|
Flame Graph | |
entity_by_id | entity type ID: https://blockprotocol.org/@alice/types/entity-type/song/v/1
|
Flame Graph | |
entity_by_id | entity type ID: https://blockprotocol.org/@alice/types/entity-type/page/v/2
|
Flame Graph | |
entity_by_id | entity type ID: https://blockprotocol.org/@alice/types/entity-type/organization/v/1
|
Flame Graph |
Pull request was converted to draft
Pull request was converted to draft
We have now upgraded from Yarn 1, which Storybook 8 did not support, to Yarn 4. As such, we might now consider this PR unblocked and worth revisiting, with a view to picking up our use of Storybook again alongside future work (and for improved frontend component testing). After using Renovate to rebase, run |
This PR contains the following updates:
7.0.5
->8.2.7
7.0.5
->8.2.7
7.0.5
->8.2.7
7.0.5
->8.2.7
7.0.5
->8.2.7
7.0.5
->8.2.7
7.0.5
->8.2.7
Release Notes
storybookjs/storybook (@storybook/addon-essentials)
v8.2.7
Compare Source
v8.2.6
Compare Source
v8.2.5
Compare Source
@storybook/theming/create
alias - #28643, thanks @Averethel!v8.2.4
Compare Source
storybook
package is missing - #28604, thanks @kasperpeulen!v8.2.3
Compare Source
theming/create
aliases in docs preset - #28570, thanks @ndelangen!core-events
- #28573, thanks @ndelangen!v8.2.2
Compare Source
ESM
export todocs-tools
&node-logger
packages - #28539, thanks @ndelangen!@storybook/addon-interactions
- #28518, thanks @ndelangen!v8.2.1
Compare Source
v8.2.0
Compare Source
Hold onto your hats! Storybook 8.2 has dropped, packed with a treasure trove of new features and bug fixes:
beforeAll
play
functionList of all updates
tocbot
- #28318, thanks @shilman!--no-dev
option toinit
- #26918, thanks @fastfrwrd!--dev
and--no-dev
options tostorybook init
CLI - #26918, thanks @fastfrwrd!@storybook/addon-svelte-csf
when initializing new projects - #27070, thanks @benmccann!beforeAll
hook - #28255, thanks @ghengeveld!pkg-dir
tofd-package-json
- #28270, thanks @43081j!loading
->rendering
->playing
- #28431, thanks @kasperpeulen!.stories.mdx
handling - #25973, thanks @JReinhold!CJS
forcore/components
- #28440, thanks @ndelangen!preview.js
globals
toinitialGlobals
- #27517, thanks @shilman!markdown-to-jsx
to v7.4.5 - #26694, thanks @xyy94813!webpack-virtual-modules
to 0.6.0 - #27102, thanks @fyodorovandrei!read-pkg-up
tofd-package-json
- #28272, thanks @43081j!doctrine
withjsdoc-type-pratt-parser
- #26305, thanks @43081j!Stories
block, error when referenced in MDX - #28434, thanks @kasperpeulen!Typeset
Doc blockfontSizes
type - #26475, thanks @noranda!env.bugfixes
in SWC so destructuring is never transpiled - #28363, thanks @kasperpeulen!mount
in react, svelte, and vue renderers - #28385, thanks @kasperpeulen!CompatibleString
- #27180, thanks @sni-J!v8.1.11
Compare Source
v8.1.10
Compare Source
v8.1.9
Compare Source
--no-dev
option toinit
- #26918, thanks @fastfrwrd!init --skip-install
- #28226, thanks @shilman!v8.1.8
Compare Source
init --skip-install
- #28226, thanks @shilman!v8.1.7
Compare Source
v8.1.6
Compare Source
v8.1.5
Compare Source
v8.1.4
Compare Source
v8.1.3
Compare Source
v8.1.2
Compare Source
v8.1.1
Compare Source
v8.1.0
Compare Source
Storybook 8.1 is here with a tone of new features and bug fixes:
beforeEach
test hookList of all updates
@vitejs/plugin-react-swc
and plugins - #26837, thanks @JReinhold!providerImportSource
extension - #26868, thanks @bashmish!react-dom/server
imports breaking stories and docs - #26557, thanks @JReinhold![Object object]
displayName in some JSX components - #26566, thanks @yannbf!of
prop toSubtitle
- #22552, thanks @joaonunomota!of
prop toTitle
- #23728, thanks @Sidnioulz!docs.autodocs
automigration - #27089, thanks @shilman!extends
- #27097, thanks @shilman!vite-config-file.ts
- #26375, thanks @joevaugh4n!duration
andonClick
support to Notification API and improve Notification UI - #26696, thanks @ghengeveld!UPDATE_STORY_ARGS
which was for SSv6 - #25993, thanks @tmeasday!@joshwooding/vite-plugin-react-docgen-typescript
to0.3.1
- #26673, thanks @joshwooding!ejs
to3.1.10
- #27054, thanks @RiuSalvi!http://
links - #26488, thanks @JReinhold!document
for preview - #24248, thanks @DylanPiercey!react-dom-shim
- #26898, thanks @Tobbe!dev
/autodocs
/test
system tags - #26634, thanks @shilman!preview.js
- #27098, thanks @shilman!package.json
- #26688, thanks @kasperpeulen!experimental-playwright
entries withouttype:bundler
- #27107, thanks @ndelangen!v8.0.10
Compare Source
http://
links - #26488, thanks @JReinhold!react-dom-shim
- #26898, thanks @Tobbe!v8.0.9
Compare Source
@vitejs/plugin-react-swc
with plugins - #26837, thanks @JReinhold!v8.0.8
Compare Source
v8.0.7
Compare Source
v8.0.6
Compare Source
v8.0.5
Compare Source
react-dom/server
imports breaking stories and docs - #26557, thanks @JReinhold!v8.0.4
Compare Source
v8.0.3
Compare Source
v8.0.2
Compare Source
v8.0.1
Compare Source
main.ts
error message - #26035, thanks @ndelangen!v8.0.0
Compare Source
Storybook 8.0 is here
It brings major improvements to Storybook's feature set for testing and documentation, with
Configuration
📅 Schedule: Branch creation - "before 4am every weekday,every weekend" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.
This PR was generated by Mend Renovate. View the repository job log.