npm choices.js 10.0.0
Version 10.0.0

latest release: 10.1.0
2 years ago

Changes

🚨 Breaking changes

  • Upgrade to Fuse v6 @mtriff (#991)
  • 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 option allowHTML has been introduced, with the current default to true. The default will change to false in a future release. It is recommended that you set it to false unless you require HTML.
    • As a result of this change, callbackOnCreateTemplates now receives the full configuration object, instead of just classNames. The method signature to match previous versions is now ({ classNames }, data). See the documentation for the updated example.

🐛 Bug Fixes

🔧 Maintenance

Contributors

@bobmaerten, @mtriff, @rjorel, @victiondev, @isaac-mercieca, @daicambruzzi

Don't miss a new choices.js release

NewReleases is sending notifications on new releases.