Releases: tajo/ladle
@ladle/react@1.3.0
Minor Changes
-
#190
21959e9Thanks @tajo! - Add addon-width and iframe mode. You can setmeta.widthandmeta.iframedto render stories inside of an iframe. This is useful for testing responsivness or components like modal that take full screen.
Patch Changes
-
#188
2f142ccThanks @pdeslaur! - Fix compatibility issue with resolve.alias vite config to fix issue #187. -
#187
ebb1923Thanks @tajo! - Move background color to negative zindex to support cases when components use some negative zindexes as well. -
#189
f84bbdeThanks @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
21959e9Thanks @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/react@1.2.0
Minor Changes
- #174
5abef5fThanks @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
ddaebfdThanks @GeorgeNagel! - Add engine settings and node restriction for @ladle/react so that install fails for users when node < 16.x -
#170
04714c9Thanks @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
5049ce9Thanks @tajo! - Fix Chrome (tab) re-opening for pnp environments..
@ladle/react@1.1.2
Patch Changes
-
#166
14a1619Thanks @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
14a1619Thanks @tajo! - Align server.open more with the official Vite's API. -
Updated dependencies [
14a1619]:- @ladle/react-context@1.0.1
@ladle/react-context@1.0.1
@ladle/react@1.1.1
@ladle/react@1.1.0
Minor Changes
-
#162
ff731f5Thanks @kazuma1989! - Load vite.config.ts the same way as ViteWHAT the breaking change is
(Only for the package maintainers) a new E2E packages is added.
WHY the change was made
Ladle was not able to handle
vite.config.tsthe way Vite does.
For example, Ladle was not able to loadvite.config.tswhich imported other TS modules.HOW a consumer should update their code
(Only for the package maintainers) recognize a new e2e workspace with
pnpm install. -
#156
0e316d6Thanks @tajo! - Reuse the same tab for Ladle serve when the env is Google Chrome and OSX.
@ladle/react@1.0.1
@ladle/react@1.0.0
Major Changes
- #153
05bee5dThanks @tajo! - - Ladle now loads top-levelvite.config.js/ts/mjsand uses all its options.- All Vite related options from
config.mjsremoved and an error will be thrown, usevite.config.jsinstead. enableFlowoption removed, you can create your own plugin (check our e2e/flow test).- Programmatic API imports changed to
@ladle/react/serveand@ladle/react/build. --outrenamed to--outDirto mimic Vite configuration, added-oalias,outDirmoved to top-level inconfig.mjs.--porthas alias-p,portmoved to top-level inconfig.mjs.vite.config.jscan be customized throughviteConfigand--viteConfig.--base-urlremoved, usebaseinvite.config.js.--openremoved, useserver.openinvite.config.js.--sourcemapremoved, usebuild.sourcemapinvite.config.js.
- All Vite related options from