All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
5.0.2 - 2025-11-24
Fixes
- close dropdown for keyboard navigation
5.0.1 - 2025-09-11
Fixes
- patch
svelte-searchto v2.1.2
5.0.0 - 2025-01-20
Breaking Changes
- set
package.json#typetomodulewithexportsfield - drop bundled ESM/UMD builds (only Svelte source code is distributed)
- colocate TypeScript definitions with Svelte source code
Fixes
- patch
svelte-searchto v2.1.1 - run
npm pkg fixto fixpackage.jsonmetadata
4.4.2 - 2024-11-20
- fix
$$restPropstype errors by upgradingsvelte-search
4.4.1 - 2022-11-12
- replace
aria-ownswitharia-controlsto resolvea11y-role-has-required-aria-propswarning
4.4.0 - 2022-11-08
Features
- add
showAllResultsOnFocusprop to display all results when focusing an empty input
Fixes
- silence a11y warnings emitted by Svelte@3.52
- event type for dispatched
clearevent should benull - unset
ulmargin
4.3.2 - 2022-09-01
Fixes
- allow results to be selected if using
showDropdownOnFocus
4.3.1 - 2022-08-29
Fixes
- skip disabled results when auto-selecting a result
4.3.0 - 2022-08-29
Features
- add
showDropdownOnFocusprop to only show dropdown if the search input is focused
4.2.4 - 2022-07-05
Fixes
- set dropdown menu
z-index: 1when expanded
4.2.3 - 2022-07-04
Fixes
- update selected index when hovering over a result
4.2.2 - 2022-03-20
Fixes
- pressing "ArrowUp" on last item should not reset highlighted index
4.2.1 - 2021-10-30
Fixes
- prevent keyboard selection and navigation of disabled results
- add missing annotation for
TItem.disabledtoresultsprop
Documentation
- add
pnpminstallation command - remove "disabling items after selection" example
- remove
idfields fromdataarray - simplify dispatched events example
4.2.0 - 2021-10-26
Features
- use TypeScript generics so that the item type can be inferred from
datavalue
4.1.0 - 2021-10-03
Features
- render a "no-results" slot when the search value does not yield results
- add
valueto the default slot props
4.0.0 - 2021-09-05
Breaking Changes
- use
.svelte.d.tsextension for component TypeScript definition
3.0.0 - 2021-03-16
Breaking Changes
- the
ulelement is rendered even without results to preserve the accessibility label
Fixes
- disable form ARIA attributes in
svelte-search - pass the correct
aria-activedescendantitem tosvelte-search
2.4.1 - 2021-03-14
Fixes
- pass
idtoSearchto fixaria-labelledbyreferences
2.4.0 - 2021-03-04
Features
- add
limitprop to limit number of results; default value isInfinity
2.3.0 - 2021-02-21
Features
- add
disable,filterprops to disable and filter items from the result set
Fixes
- bind the input element reference correctly to fix focusing behavior
- don't pass the Typeahead id to Search
2.2.0 - 2021-02-20
Features
- add
inputAfterSelectprop to allow user to preserve or clear the input field after selecting a result; possible values are"update" | "clear" | "keep"(default is"update") - add searched value to dispatched "select" event detail (
e.detail.searched)
2.1.0 - 2021-02-20
Features
- include
originalitem andoriginalIndexin dispatched "select" event
2.0.0 - 2020-12-31
Breaking Changes
- upgrade
svelte-searchto version 1.0.0 - defer to default
label,placeholderprops fromsearch-svelte - use
SvelteComponentTypedinterface in TypeScript definitions
1.0.0 - 2020-11-28
Features
- export reactive
resultsarray containing fuzzy results - add
focusAfterSelectto opt in to focusing input after selecting a result - keydown default behavior is preventing if pressing "ArrowUp", "ArrowDown", or "Escape"
Breaking changes
focusAfterSelectisfalseby default- redesigned default styles
- if using TS, Svelte version >=3.30 is required
0.2.0 - 2020-11-17
- Add TypeScript definitions
0.1.1 - 2020-08-06
- Remove
filternamed export
0.1.0 - 2020-04-15
- Initial release