Skip to content

v1.0.0

Choose a tag to compare

@JasonHassold JasonHassold released this 13 Nov 05:28
· 88 commits to main since this release
9a6aa71

The first stable release. It renames the beta's options and CSS variables, removes add(), remove(), direction and labels, and leaves roles and names to your markup, so beta users need to change code. See Upgrading from a beta. (#23)

Breaking changes

Beta 1.0
alignment: "left" / "right" alignment: "start" / "end"
--slides-per-view, --slide-gap, --slide-aspect --aero-slides-per-view, --aero-slide-gap, --aero-slide-aspect
slider.add(), slider.remove() Change the track's children, then call slider.refresh()
direction: "ttb" vertical: true
direction: "rtl" dir="rtl" on the slider or any ancestor
labels Write the names in your markup
  • Roles and names are yours. The library no longer writes roles or labels on the container, slides, arrows or dots. It adds only what changes at runtime: aria-current, focus handling, hidden loop clones, keyboard movement and a live status announcement.
  • data-aero-alignment now holds "start", "center" or "end", so selectors on "left" or "right" stop matching.

Changes

  • Fixes. Fractional slide sizes survive a resize, media plays in loop clones, and the other defects from the pre-1.0 audit are fixed, each with a regression test.
  • Thumbnail strips drag again. syncThumbnails no longer turns dragging off; a click without a drag still selects a thumbnail. A draggable: false passed on the strip is respected.
  • Packaging. A side-effect-free bundler entry, bundled type declarations, typed DOM events, and CDN fields that point at the file that sets window.AeroSlider.
  • Agent guide. aeroslider.md ships in the npm package and in this release's zip, and the site serves it at aeroslider.com/aeroslider.md.
  • Docs site. Redesigned around a storefront: eleven examples, a playground and a full API reference on the 1.0 names.

Tests

A Playwright suite runs on Chromium, Firefox and WebKit against the built files, with typecheck, format, size and package checks in CI.

JavaScript is 8.2 KB gzipped (8,382 bytes against a 9,000 budget), CSS 1.2 KB.