v2.0.0-rc.1
Pre-release
Pre-release
Immutable
release. Only release title and notes can be modified.
2.0.0-rc.1 (2026-05-16)
⚠ BREAKING CHANGES
- compiled output now targets ES2022
- Node 18 and 20 are no longer supported; Node 22 or newer is now required
- the top-level
moduleandtypesfields are removed frompackage.json; consumers must use tooling that resolves theexportsfield zoom.disabledis removed; usezoom={{ supports: [] }}to disable zoomzoom.supportsno longer extends the implicit["image"]default; include"image"explicitly when also enabling custom types (e.g.zoom={{ supports: ["image", "custom-slide"] }}).yarll__selectableis removed; replace with.yarll__interactiveon the same wrapper (the new class is a superset)- slide navigation no longer triggers a view transition; CSS effects targeting
::view-transition-old(*)/::view-transition-new(*)must migrate to.yarll__slideand.yarll__slide_current - removed properties (migrate to the
slotsprop):LightboxProps.styles→slots.<key>.styleLightboxProps.className→slots.portal.classNameCarouselSettings.imageProps→slots.image
- renamed the following custom CSS properties:
--yarll__color→--yarll__foreground_color--yarll__fade_transition→--yarll__fade_duration+--yarll__fade_easing--yarll__scrollbar-width→--yarll__scrollbar_width(internal)
- declaration merging into
Labelsno longer works (it's now a type alias); merge into the newly exportedLabelRegistryinterface to register typed label keys - the
Callbacktype is no longer exported; use() => voidinstead
Features
- add infinite carousel mode (25c76d5)
- add configurable slide transition presets (12ef9ef)
- unify customization via
slotsprop (2951ca6) - replace
yarll__selectablewith broaderyarll__interactiveclass (1b20911) - expose imperative
reffor programmatic control (a152c42) - soft-disable navigation buttons to preserve focus (3aa0326)
- export
useControllerhook (499ee04) - export
IconButtoncomponent (8a59cb3) - add
zoom.maxZoomsetting (82cc029) - collapse zoom
{ disabled, supports }intozoom.supports(97cffcf) - support Shift+wheel for horizontal slide navigation (82b4e5c)
- accept custom keys in the
labelsprop (68893dd)
Bug Fixes
- detect double-tap from pointer events for Android reliability (20b7891)
- normalize wheel
deltaModefor Firefox compatibility (4277180)
Miscellaneous Chores
- bump ES target to 2022 (5ba82f4)
- bump minimum Node version to 22 (e31a2e0)
- remove legacy
moduleandtypesfields (59a415a)
Code Refactoring
- replace
startViewTransitionwith CSS cross-fade (a424be2) - drop trivial
Callbacktype alias (086f5ef)
Build System
- migrate build from
sasstolightningcss(a7ded49)