Skip to content

Releases: janosh/svelte-multiselect

v8.0.1

30 Oct 17:27
Compare
Choose a tag to compare

What's Changed

  • Add unit tests for 2-/1-way binding of activeIndex and activeOption by @janosh in #139
  • Revert SCSS preprocessing by @janosh in #141

Full Changelog: v8.0.0...v8.0.1

v8.0.0

22 Oct 23:47
Compare
Choose a tag to compare

What's Changed

  • Rename prop noOptionsMsg->noMatchingOptionsMsg by @janosh in #133

  • yarn to pnpm by @janosh in #134

  • New prop resetFilterOnAdd by @janosh in #137

    • clean up components {Repo,Color}Slot.svelte

    • unskip test 'parseLabelsAsHtml+allowUserOptions gives errors'

    • set playwright test mode to parallel, now uses 5 workers instead of 1

    • add IconifySlot.svelte used in Examples.svelte with new octicon options, pnpm add -D @iconify/svelte

    • refactor maxSelectMsg prop and invalid reset handling when new selected options change

    • assert aria-invalid attribute is removed on selecting a new option

    • add prop resetFilterOnAdd: Whether text entered into the input to filter options in the dropdown list is reset to empty string when user selects an option.

    • add test 'resetFilterOnAdd handles input value correctly after adding an option'

  • Add new prop value by @janosh in #138

    • If maxSelect={1}, value will be the single item in selected (or null if selected is empty). If maxSelect != 1, maxSelect and selected are equal.

    • improve test 'required but empty MultiSelect makes form not pass validity check'

    • add tests for '2-way bind selected' and '1-way bind value'

    • shorten document query selectors and tweak unit test titles

Full Changelog: v7.1.0...v8.0.0

v7.1.0

13 Oct 21:37
Compare
Choose a tag to compare

What's Changed

  • Allow preventing duplicate options when allowUserOptions is thruthy by @janosh in #132

Full Changelog: v7.0.2...v7.1.0

v7.0.2

08 Oct 20:55
Compare
Choose a tag to compare

What's Changed

  • Fix selecting options with falsy labels (like 0) by @janosh in #130
  • Fix TypeError: Cannot read properties of null (reading 'get_label') - take 2 by @janosh in #131

Full Changelog: v7.0.1...v7.0.2

v7.0.1

06 Oct 20:49
Compare
Choose a tag to compare

What's Changed

  • [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #124
  • Add SCSS preprocessing by @janosh in #126
  • Fix single select with arrow and enter keys by @janosh in #128
  • 1adbc99 more unit tests
  • fd8b377 test required but empty MultiSelect fails form validity check (i.e. causes unsubmittable form) and filled one passes it

Full Changelog: v7.0.0...v7.0.1

v7.0.0

03 Oct 16:14
Compare
Choose a tag to compare

What's Changed

  • Fix TypeError: Cannot read properties of null (reading 'get_label') at MultiSelect.svelte:75 by @janosh in #122
  • Make selected a single value (not a length-1 array) if maxSelect=1 by @janosh in #123

Full Changelog: v6.1.0...v7.0.0

v6.1.0

30 Sep 17:30
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v6.0.3...v6.1.0

v6.0.3

20 Sep 15:10
Compare
Choose a tag to compare

What's Changed

  • Fix using arrow keys to control active option in dropdown list by @janosh in #111
  • c688773 .eslintrc.yml set @typescript-eslint/no-inferrable-types: off + simplify readme props testing in tests/unit/readme.test.ts

Full Changelog: v6.0.2...v6.0.3

v6.0.2

17 Sep 19:06
Compare
Choose a tag to compare

What's Changed

  • Fix selected array not being initialized to options with preselected=true by @janosh in #108
  • Test readme docs on CSS variables by @janosh in #109

Full Changelog: v6.0.1...v6.0.2

v6.0.1

14 Sep 03:18
Compare
Choose a tag to compare

What's Changed

  • Better format for documenting component props in readme with better testing for QA,
    i.e. making sure readme and component stay in sync by @janosh in #105
    81a80a1 only publish to NPM in CI on Linux runner
    d105502 document minor breaking changes in v6.0.1
    9aaee2e sort MultiSelect props alphabetically
    af388a2 use more readable numbered list with code fences to document props in readme
    e91c191 test readme lists correct type and default value for primitive-type props
    e239668 drop tests action strategy matrix due to annoying RegExp() inconsistencies on windows

Full Changelog: v6.0.0...v6.0.1