Change Log
============

1.13.0 - April 9, 2026
----------
New Features:
* New `logger` utility for logging in development environments (SUI-8704).

TypeScript:
* `expandShortHandHex` no longer has a TS error when a union type such as `let v: string | undefined` is used.

1.12.0  - November 4, 2025
----------
New Features:
* New `truncateNumber` util for returning `{max}+` when number exceeds `max` (SUI-8288).

TypeScript:
* `promise` now exports a `CancelablePromise` type.

Bug Fixes:
* Fix types definition files to match file signatures.

1.11.0 - October 7, 2025
----------
New Features:
* Added TS type definitions for all exported functions.
* New `search` and `addSearchData` utils for ranking items based on name, keywords, and or description.

Bug Fixes:
* `getSortedTabbableElements` will no longer return `inert` elements.

1.10.0 - July 2, 2025
----------
New Features:
* Added `scrollIntoViewIfNeeded` method that scrolls an element’s offset parent to bring the element into view when it’s outside the visible area.

1.9.0 - June 3, 2025
----------
API Changes:
* Deprecate `keyboard`'s `keycode` function and use of `event.keyCode` (SUI-7352).

1.8.0 - February 14, 2025
----------
New Features:
* Added new functions `hexToRgb` and `isValidRgb`.

1.7.1 - August 26, 2024
----------
Bug Fixes:
* `getSortedTabbableElements` now works correctly in `jsdom` environments (SUI-6521).
* `keycode` now correctly captures the key from `userEvent` in `testing-library` (SUI-6521).

1.7.0 - August 7, 2024
----------
New Features:
* Added `handleFocus` method which manages the focus for a group of elements (SUI-6268).

1.6.0 - May 2, 2023
----------
New Features:
* Added `options.ignoreTabIndex` to `getSortedTabbableElements`.

1.5.2 - December 6, 2022
----------
Bug Fixes:
* Optimizes bundle sizes of consumers by reducing footprint of "lodash" (SUI-5090).

1.5.1 - October 5, 2022
----------
Bug Fixes:
* Upgraded lodash to non-vulnerable version 14.17.21 (SUI-3289).

1.5.0 - June 29, 2022
----------
Notes:
* `normalizeBoolean` has been deprecated in `ui-utils`. Use the new version introduced in `splunk-utils` instead.

1.4.0 - September 8, 2021
----------
New Features:
* New `isTabKey` focus utility.

1.3.0 - March 31, 2021
----------
New Features:
* `expandShortHandHex` converts three/four-digit hex colors to six/eight-digit hex colors.
* `isValidHexColor` can be used to determine if the given string value is a 3, 4, 6, or 8-digit hex-color.
* `isCSSColor` can be used to determine if the given value is considered of type `<color>` in CSS.
* `extendedColorKeywords` is an array of the extended color keywords in CSS.

1.2.1 - February 4, 2021
----------
Bug Fixes:
* `getSortedTabbableElements` now treats radio groups as a single tab stop.

1.2.0 - August 31, 2020
----------
New Features:
* `isNumber` and `isDecimal` in the keyboard utils now support `locale` to define the decimal separator.

1.1.2 - October 14, 2019
----------
Notes:
* Relicensed to `Apache-2.0`.

1.1.1 - June 11, 2019
----------
Bug Fixes:
* `handleTab` in `focus` now handles hidden elements better (SUI-1759).

1.1.0 - September 13, 2018
----------
Bug Fixes:
* `i18n` no longer throws an exception if `window` isn't available.

Notes:
* Relicensed to `Splunk Software License Agreement`.

1.0.1 - April 23, 2018
----------
Bug Fixes:
* `cookie` does not throw an exception in a sandboxed environment (SUI-1422).

1.0.0 - January 4, 2018
----------
* Version bump.
