Skip to content

Releases: tajo/ladle

@ladle/[email protected]

04 Aug 21:23
0fe6a34
Compare
Choose a tag to compare

Minor Changes

  • #202 7fcdc97 Thanks @akx! - Add --base and --mode options à la vite build

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]

19 Jul 23:56
0352a24
Compare
Choose a tag to compare

Patch Changes

@ladle/[email protected]

19 Jul 22:42
215348a
Compare
Choose a tag to compare

Patch Changes

  • #196 f92ed78 Thanks @tajo! - Fix some CSS sync issue when switching into iframed version.

@ladle/[email protected]

19 Jul 03:46
f92e9d8
Compare
Choose a tag to compare

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 whole vite.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]

13 Jul 05:35
3230700
Compare
Choose a tag to compare

Minor Changes

  • #190 21959e9 Thanks @tajo! - Add addon-width and iframe mode. You can set meta.width and meta.iframed to render stories inside of an iframe. This is useful for testing responsivness or components like modal that take full screen.

  • 1745a95 Thanks @talshani! - Add support for native Windows.

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.

  • #187 ebb1923 Thanks @tajo! - Fix story source escaping.

  • #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]

24 Jun 20:55
b9f47f9
Compare
Choose a tag to compare

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]

21 Jun 06:26
Compare
Choose a tag to compare

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]

21 Jun 06:26
Compare
Choose a tag to compare

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.

@ladle/[email protected]

14 Jun 20:21
c229fd3
Compare
Choose a tag to compare

Patch Changes

@ladle/[email protected]

12 Jun 20:14
dcfb5ba
Compare
Choose a tag to compare

Minor Changes

  • #162 ff731f5 Thanks @kazuma1989! - Load vite.config.ts the same way as Vite

    WHAT 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.ts the way Vite does.
    For example, Ladle was not able to load vite.config.ts which 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 0e316d6 Thanks @tajo! - Reuse the same tab for Ladle serve when the env is Google Chrome and OSX.