Releases: Choices-js/Choices
Version 10.0.0
Changes
🚨 Breaking changes
- Upgrade to Fuse v6 @mtriff (#991)
- The
fuseOptions
have changed. See https://fusejs.io/api/options.html for details.
- The
- Introduce allowHTML option to allow people to disable injecting HTML into choices. @victiondev (#984)
- Previously all Choices elements were set using
innerHTML
. This had the potential to allow XSS attacks when loading items from external, untrusted sources. This behaviour has been deprecated. The new optionallowHTML
has been introduced, with the current default totrue
. The default will change tofalse
in a future release. It is recommended that you set it tofalse
unless you require HTML. - As a result of this change,
callbackOnCreateTemplates
now receives the full configuration object, instead of justclassNames
. The method signature to match previous versions is now({ classNames }, data)
. See the documentation for the updated example.
- Previously all Choices elements were set using
🐛 Bug Fixes
- Trigger search when clearing the input field with search floor of 0 @daicambruzzi (#992)
- Remove character sanitisation when searching @isaac-mercieca (#990)
- Prevent browser autocomplete suggestions on Choices elements @bobmaerten (#908)
- Fix Sanitization of > Characters @rjorel (#983)
🔧 Maintenance
Contributors
@bobmaerten, @mtriff, @rjorel, @victiondev, @isaac-mercieca, @daicambruzzi
Version 9.1.0
Changes
Although this is primarily a maintenance release, there have been a couple of large refactorings done (for example, conversion of the library to TypeScript). So, just to be cautious, this is a minor version bump.
🐛 Bug Fixes
- Resolve #780 @jshjohnson (#785)
- Resolve #774 @jshjohnson (#777)
- Resolve #762 @jshjohnson (#767)
🔧 Maintenance
- Switch to dart-sass, fix npm audit issues @mtriff (#979)
- Documentation of input type terms @trbroyles1 (#873)
- Solve deprecated warning using / for division outside of calc() @hans2103 (#976)
- Update README.md @flip111 (#844)
- Fix typo in README.md s/withing/within @JoshuaCrewe (#848)
- Update dependencies, fix GitHub Action workflows @mtriff (#977)
- Fix broken demo link in README.md @bzf (#975)
- Fix a typo in the README: s/seperates/separates @alexwlchan (#807)
- Update release drafter to latest @jshjohnson (#800)
- Convert to typescript @jshjohnson (#795)
- Adds a variable for the z-index @dgrammatiko (#794)
- Resolve #622 and #781 @jshjohnson (#784)
- Resolve #778 @jshjohnson (#783)
- Update polyfill list @jshjohnson (#765)
Contributors
@JoshuaCrewe, @actions-user, @alexwlchan, @bzf, @dgrammatiko, @flip111, @hans2103, @jshjohnson, @mtriff, @trbroyles1 and Joshua Crewe
Version 9.0.1
Changes
🐛 Bug Fixes
🔧 Maintenance
- Fix releases @jshjohnson (#761)
Contributors
@jshjohnson, @kzkn and GitHub Action
Version 9.0.0
Changes
🚨 Breaking changes
- Add missing type definitions + rename sortFn @jshjohnson (#734)
- Fix #727 @jshjohnson (#731)
🐛 Bug Fixes
- Remove redundant event listener conditional @jshjohnson (#755)
- Resolve bug #637 @jshjohnson (#754)
- Always hide remove button if no value is selected @bronzehedwick (#744)
- Indent fixed in "choices__list--dropdown" @dios-oleg (#750)
- Resolve bug 473 @jshjohnson (#739)
- Resolve bug 533 @jshjohnson (#736)
- fix setChoices flow @tinovyatkin (#730)
🔧 Maintenance
- Typo. @agamemnus (#759)
- Commit and push built files to master @jshjohnson (#756)
- Upgrade Cypress to 3.6 and use cache in Github Actions @tinovyatkin (#748)
- Fix id types @jshjohnson (#743)
- remove safari test, update snapshots for new macOS, use dependency caching @tinovyatkin (#745)
- Enable test on Safari @tinovyatkin (#737)
- [bug] Override Prettier settings for Demo page @tinovyatkin (#733)
- [TEST] Automatic screenshots comparing and error checking in IE11, Firefox and Chrome @tinovyatkin (#715)
- Add documentation label + headings @jshjohnson (#729)
- Update GitHub action workflows @jshjohnson (#728)
- Fix lint @tinovyatkin (#723)
- Store config in file @jshjohnson (#722)
- Add release drafter @jshjohnson (#720)
🔧 Maintenance
- improve whole-page performance by scoping events handlers @tinovyatkin (#740)
- Code refactoring @jshjohnson (#735)
- speed up getAdjacentEl @tinovyatkin (#726)
- use CSS queries @tinovyatkin (#718)
Contributors
@agamemnus, @bronzehedwick, @dios-oleg, @jshjohnson and @tinovyatkin
Version 8.0.0
This version contains multiple breaking changes:
- The ability to pass multiple elements to one instance of Choices has been removed - now only one element can be associated with Choices (#693)
- The undocumented
userDefaults
static property has been removed - The
ajax
method has been removed.setChoices
can now be used to set choices dynamically - more info can be found in the README (#701) - The
addItemFilterFn
option has been renamed toaddItemFilter
and now supports regex's (#699) Element.prototype.closest
has been added to the required polyfill list (#696)- The
.is-hidden
class has been replaced with thehidden
attribute (https://github.com/jshjohnson/Choices/pull/691/files)
This version also contains numerous bug fixes, type fixes + tooling improvements 🎉
Big thanks to @tinovyatkin for his contributions to this release!
Version 7.1.0
Version 7.0.2
Version 7.0.0
Version 6.0.3
Fixes an issue in the previous release where Fuse was not be transpiled to ES5 code.