chore(deps): update dependency storybook-addon-mock-date to v3#1760
Open
k8o-bot[bot] wants to merge 1 commit into
Open
chore(deps): update dependency storybook-addon-mock-date to v3#1760k8o-bot[bot] wants to merge 1 commit into
k8o-bot[bot] wants to merge 1 commit into
Conversation
Contributor
Author
|
Contributor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
2.0.0→3.0.1Release Notes
k35o/storybook-addon-mock-date (storybook-addon-mock-date)
v3.0.1Compare Source
Patch Changes
#47
e84f2e1Thanks @k35o! - Fix the addon catalog metadata so the package can be discovered andcategorised on storybook.js.org/addons.
keywordsso thatstorybook-addonis the first entry(the catalog requires this) and add
data-stateas the categorykeyword. Also include searchable terms (
mocking,date,time,fake-timers).storybook.supportedFrameworks: ["supported-frameworks"],which was the literal placeholder string from the addon-kit
template and confused the catalog parser. The decorator is
renderer-agnostic, so omitting the field reflects reality.
storybook.iconwith acustom clock icon committed at
.github/icon.png.descriptionfrom "Storybook addon to mockingdate" to "Storybook addon that mocks the JavaScript Date for
individual stories.".
v3.0.0Compare Source
Major Changes
#44
f1af2d7Thanks @k35o! - Switch the bundler fromtsuptovp pack(powered bytsdown) and bump@vitejs/plugin-reactto 6.0.1 withvite8.0.10. The published bundleoutput keeps the same shape (
dist/preview.js+dist/preview.d.ts).@sinonjs/fake-timersis now declared independenciesand externalizedfrom the bundle, so consumers receive upstream patches directly and the
addon ships ~140 kB lighter.
The previously broken
"."export entry (which pointed at adist/index.jsthat the build never emitted) has been removed from
package.json.#44
f1af2d7Thanks @k35o! - Drop the legacy manager surface and addon-kit scaffolding leftovers../managersubpath export and thedist/manager.jsbundle havebeen removed. The previous manager entry only registered the addon
with an empty callback (
addons.register(ADDON_ID, () => {})), so itnever contributed any UI or behaviour. Storybook 10's addon loader
resolves
<name>/managervia the package'sexportsmap andgracefully no-ops when that export is missing, which matches the
peerDependencies.storybook: ^10.0.0range this addon alreadydeclares.
manager.jsandpreview.jsbridge files have also beenremoved. Storybook 10 reads the
./previewentry fromexportsdirectly and no longer needs the legacy root bridges.
#35
d6a7176Thanks @k35o! - Bump minimum Node.js requirement to>=24.13.0(was>=22.0.0) and updatepackageManagertopnpm@10.33.2.Development environment is now pinned via
mise.toml, and the pnpm workspace addsblockExoticSubdepsandverifyDepsBeforeRunfor safer installs. CI workflows were consolidated behind a shared composite action and a new typecheck job runs on pull requests.Minor Changes
#46
e74cbe9Thanks @k35o! - Add a toolbar override and accept ISO 8601 strings formockingDate.that writes to a global
mockingDatevalue. The decorator nowhonours
globals.mockingDatefirst and falls back toparameters.mockingDate, so the toolbar can override any storywithout editing source.
parameters.mockingDateand the toolbar both accept astringinaddition to
Dateandnumber. Strings are parsed withnew Date(value), so anythingDateunderstands works (e.g.'2024-01-01','2024-01-01T00:00:00Z').The
./managersubpath export and thedist/manager.jsbundle havebeen re-introduced to host the toolbar entry point.
If you want the date mocking without the toolbar icon, you can opt into
"decorator-only" mode by importing the preview entry directly from
.storybook/preview.tsand leaving'storybook-addon-mock-date'out ofyour
.storybook/main.tsaddonslist. The README's "Disabling thetoolbar" section walks through the snippet.
Configuration
📅 Schedule: (in timezone Asia/Tokyo)
* * * * 0,6)🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate.