Releases: mskocik/svelecte
Releases · mskocik/svelecte
v5.0.1
v4.5.1
v5.0.0
Rune mode enabled ⚡
It wasn't easy or quick, but finally it's here!
Breaking changes from v4💥
- svelte 5 only
- drop dispatching custom events through
createEventDispatcher
. Callback methods are expected instead. Previous event names has now added prefixon
and are properly capitalized. This is a list of event to callback mapping:change
changed toonChange
focus
changed toonFocus
blur
changed toonBlur
createoption
changed toonCreateOption
createFail
changed toonCreateFail
enterKey
changed toonEnterKey
fetch
changed toonFetch
fetchError
changed toonFetchError
invalidValue
changed toonInvalidValue
- drop support for
svelte-use-form
validation library (remove triggeringinput
event on<select>
element) - replace slots with snippets
- remove
svelte-tiny-virtual-list
dependency, provide own implementation - remove
vlHeight
property, related to removal of virtual list dependency, use--max-height
css property instead - do not automatically set
multiple
property ifname
included "[]" meaning multiple items when submitting form.
New:
- add
i18n.aria_removeItemLabel
function to avoid svelte compiler warning - add
emitValues
property to emit values instead of objects - add
html
renderer since default one escapes following HTML entities:<
,>
,&
,'
and"
- add properties for additional CSS styling:
controlClass
for.sv-control
dropdownClass
for.sv_dropdown
optionClass
for.sv-item--wrap.in-dropdown
elements