Releases: tajo/ladle
@ladle/react@4.0.2
@ladle/react@4.0.1
Patch Changes
- #537
213cbc8Thanks @nulladdict! - Scope @reach/dialog styles in ladle.css to prevent leaking on user stories
@ladle/react@4.0.0
Major Changes
-
#533
5b9f4efThanks @tajo! - Upgrade to Vite5, MSW2, MDX3 and all other deps as well.BREAKING changes
- The biggest breaking change is upgrading MSW to v2. Ladle ships its own copy of msw. You will need to update your existing MSW handlers. There are codemods and migration gudie that should ease the transition. If you don't use this addon, you can ignore this.
- Ladle v3 has already dropped support for older Node versions. However, there are more Ladle v4 dependencies following the suit (including Vite) to support only Node v18+. So now it's really time to upgrade your Node.
- Vite v5 should not really break anything for you unless you were using some more exotic rollup plugins. Check Vite 4 to Vite 5 migration guide if you run into any issues.
@ladle/react@3.3.1
Patch Changes
- #528
c9be1d7Thanks @LeelandClenista! - Export programmatic meta API
@ladle/react@3.3.0
Minor Changes
- #529
3ce9390Thanks @chasestarr! - disable hmr when --noWatch flag is passed to serve command
@ladle/react@3.2.2
Patch Changes
- #523
6138c7fThanks @chasestarr! - Add --noWatch option to serve command
@ladle/react@3.2.1
@ladle/react@3.2.0
@ladle/react@3.1.0
@ladle/react@3.0.0
Major Changes
-
#481
8050652Thanks @tajo! - Switch Ladle to SWC compiler by using react-plugin-swc as the default. The babel based one (react-plugin) can still be used by adding setting it up through vite.config.js. -
#479
657329aThanks @tajo! - Convert StoryDefault type into interface, add hotkeys into Meta type, relax type of Meta.width -
Only React v18+ is supported.
Patch Changes
-
#495
7cc65f8Thanks @tajo! - Don't use CSS transform for sidebar chevrons so it doesn't create layering (stacking context) issues -
#442
da95b96Thanks @hiddenist! - Changes Meta from a type to an interface so it can be extended by declaring a module -
#441
1b048c4Thanks @calloc134! - Fixed the type of the "ArgType" object so that options are properly loaded into the type -
#486
0c3c5ffThanks @tajo! - Add meta.mockDate feature so stories can mock/fix Date() values, great for testing and snapshots -
#483
b1983a4Thanks @tajo! - Add better styling for both markdown and MDX elements everywhere. -
#478
7650d11Thanks @tajo! - Preserve number type for controls (includes select, radio...). Previously, we incorrectly turned these values into strings on change. -
#484
35eaeceThanks @tajo! - Set tab-size to 2 for the source code addon