Skip to content

Releases: frost-js/ui-starrating

v4.0.0

Choose a tag to compare

@elusivecodes elusivecodes released this 23 Sep 09:12

Major release adopting Frost UI 4 and fQuery 5, adding compiled ESM exports, and improving rating normalization, keyboard and pointer interaction, accessibility, form synchronization, and component cleanup.

Breaking Changes

  • Requires @fr0st/ui 4 and @fr0st/query 5 as peer dependencies. Browser applications must load compatible builds; Frost UI's all-in-one bundle supplies both dependencies. Load Frost UI 4 CSS alongside the StarRating stylesheet.
  • The package root now resolves to the compiled ESM bundle. Package exports expose the root, dist/*, and src/*; internal prototype modules have been replaced with private component methods.
  • Declared Node.js support is ^20.19.0 || ^22.13.0 || >=24.

Fixed

  • Exposed a single accessible slider by hiding the original number input from the accessibility tree while retaining native form submission and required validation. Preserved focus when initializing a focused input and restored its original aria-hidden value during disposal.
  • Improved accessible names from explicit labels, wrapping labels, and existing ARIA label references, and preserved existing or application-modified label IDs during cleanup.
  • Synchronized the rendered rating after native form resets, respected canceled resets and subsequent explicit value changes, and supported inputs associated with external forms.
  • Canceled active dragging and restored the committed rating when disabling during a hover preview. Rechecked component state after focus callbacks and handled disabling or disposal during interaction.
  • Made Page Up and Page Down advance by at least one configured step, including when the step exceeds one.
  • Prevented rounding drift and invalid values with extremely small finite steps or overflowing step counts, while preserving fractional and exponent step support.
  • Restored original input visibility and tabindex while preserving unrelated classes, and made repeated disposal safe.
  • Removed the demo intro's column divider and corrected its Frost UI version badge.

Improved

  • Updated rendering and demos for Frost UI 4, including five sizes, themes, RTL interaction, reduced-motion preferences, and forced-colors presentation.
  • Added compiled ESM and UMD bundles with source maps, modernized build tooling, and updated development dependencies.
  • Added cross-browser Playwright coverage and CI, including accessibility, focus, form validation, reset, numeric precision, keyboard, drag, and disposal regression tests.
  • Aligned README installation and development guidance and improved JSDoc option types and behavior documentation.

v3.0.7

Choose a tag to compare

@elusivecodes elusivecodes released this 14 May 10:19
  • Updated NPM.

v3.0.6

Choose a tag to compare

@elusivecodes elusivecodes released this 24 Jun 04:28
  • Updated NPM.

v3.0.5

Choose a tag to compare

@elusivecodes elusivecodes released this 23 Dec 08:01
  • Disabled preventDefault on mouse drag event.

v3.0.4

Choose a tag to compare

@elusivecodes elusivecodes released this 29 Nov 04:00
  • Updated NPM.

v3.0.3

Choose a tag to compare

@elusivecodes elusivecodes released this 22 Aug 12:27
  • Fixed bug where no label generated undefined aria-labelledby attribute.

v3.0.2

Choose a tag to compare

@elusivecodes elusivecodes released this 22 Aug 12:16
  • Removed initial aria-valuenow and aria-valuetext attributes.

v3.0.1

Choose a tag to compare

@elusivecodes elusivecodes released this 20 Aug 08:05
  • Improved tooltip handling.

v3.0

Choose a tag to compare

@elusivecodes elusivecodes released this 18 Aug 13:15
  • Renamed tooltipText option to ratingText.
  • Added hover option.
  • Added ARIA attributes.
  • Added handling for more keyboard events.
  • Prevented tab focus when disabled.

v2.0.2

Choose a tag to compare

@elusivecodes elusivecodes released this 30 May 09:26
  • Updated FrostUI in demos.
  • Updated NPM.