Skip to content

Releases: janosh/svelte-multiselect

v8.0.2

07 Nov 19:27
Compare
Choose a tag to compare

What's Changed

  • Add Collapsible code blocks to usage examples by @janosh in #143
  • REPL links for landing page examples by @janosh in #148
  • Link check CI and readme housekeeping by @janosh in #149
  • Pass JSON.stringified selected options to form submission handlers by @janosh in #152

Full Changelog: v8.0.1...v8.0.2

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