Releases: tajo/ladle
@ladle/[email protected]
Patch Changes
- #228
2891aba
Thanks @Shinyaigeek! - fix prevent dev-server from redirecting loop in top page
@ladle/[email protected]
@ladle/[email protected]
Minor Changes
Patch Changes
-
#214
8ff5d29
Thanks @tajo! - Enforce importsNotUsedAsValues tsc option, fix bad imports. -
#216
e9c2318
Thanks @tajo! - Error out when story named export has __. We use it to encode sublevels internally and this would break the sidebar navigation. -
#215
46a6b97
Thanks @tajo! - Fix browser open script when for pnp environments. -
#217
bc6ad85
Thanks @tajo! - Bump all dependencies to the latest versions.
@ladle/[email protected]
@ladle/[email protected]
@ladle/[email protected]
Major Changes
-
#191
3209be6
Thanks @tajo! - Upgrade to Vite 3. It should not be really a big breaking change for Ladle but we expose the wholevite.config.js
so you might run into some deprecations. Read more to see if this could impact you.Vite 3 also ships as ESM module. That forces us to stop distributing
@ladle/react-cjs
. We used it for our internal yarn pnp setup but we don't need it anymore. Pure ESM everywhere!
Minor Changes
- #194
63c8821
Thanks @tajo! - Bump all repo dependencies do the latest and abondon cjs build&publish.
Patch Changes
-
#191
3209be6
Thanks @tajo! - Uses hook version for iframe window ref to prevent some re-renders. Fix viewport when navigating from a different story. -
#193
e573adc
Thanks @tajo! - Improve the kebab casing of story names to convert MapSDK into map-sdk and not map-s-d-k. -
#194
63c8821
Thanks @tajo! - Add margin 0 to iframe's body just as Stackblitz workaround -
#191
3209be6
Thanks @tajo! - Find a free port for HMR server. Before, if there were multiple instances of Ladle, the client would always connect to the initial HMR server and reloads didn't work.
@ladle/[email protected]
Minor Changes
-
#190
21959e9
Thanks @tajo! - Add addon-width and iframe mode. You can setmeta.width
andmeta.iframed
to render stories inside of an iframe. This is useful for testing responsivness or components like modal that take full screen.
Patch Changes
-
#188
2f142cc
Thanks @pdeslaur! - Fix compatibility issue with resolve.alias vite config to fix issue #187. -
#187
ebb1923
Thanks @tajo! - Move background color to negative zindex to support cases when components use some negative zindexes as well. -
#189
f84bbde
Thanks @tajo! - Improve the performance of virtual stories modules. fs.promises.readFile much slower than fs.promises.readSync and it blocking CPU doesn't matter in our use case anyway. Also don't run the story watcher on the startup. -
#190
21959e9
Thanks @tajo! - Fix: Export default title and meta params. They were not correctly applied before. This might change the story IDs (URLs and the sidebar labels) if you were using them before.
@ladle/[email protected]
Minor Changes
- #174
5abef5f
Thanks @tajo! - - Add ladle preview command to quickly open a serve for the build folder.- Fix host and https options for serve and preview commands.
- Measure time and size of the build. Display it.
Patch Changes
-
#173
ddaebfd
Thanks @GeorgeNagel! - Add engine settings and node restriction for @ladle/react so that install fails for users when node < 16.x -
#170
04714c9
Thanks @GeorgeNagel! - Enforce that Node version >= v16.0.0. This causes a loud failure when installing ladle with an old version of Node, as opposed to silently failing and causing difficult-to-diagnose bugs. -
#172
5049ce9
Thanks @tajo! - Fix Chrome (tab) re-opening for pnp environments..
@ladle/[email protected]
Patch Changes
-
#166
14a1619
Thanks @tajo! - Move React Context into a separate package so there is a single instance in the dev mode and useLadleContext hook works. Also, adding some documentation for the hook. -
#166
14a1619
Thanks @tajo! - Align server.open more with the official Vite's API. -
Updated dependencies [
14a1619
]:- @ladle/[email protected]