Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump choices.js from 10.2.0 to 11.0.2 #1129

Closed
wants to merge 1 commit into from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Sep 11, 2024

Bumps choices.js from 10.2.0 to 11.0.2.

Release notes

Sourced from choices.js's releases.

v11.0.2

Changes

🚀 Features

  • duplicateItemsAllowed option is now respected by setChoices() method @​Xon (#1198)
  • Pass getClassNames as the 3rd argument to callbackOnCreateTemplates callback @​Xon (#1190)

🐛 Bug Fixes

  • Fix various opt-group handling issues @​Xon (#1200)
  • Fix clearChoices() would remove items, and clear the search flag @​Xon (#1196)
  • Fix "no choices to choose from"/"no results found" notice did not reliably trigger @​Xon (#1192 #1197)
  • Fix regression of UnhighlightItem event not firing (#1173) @​Xon (#1194)
  • Fix regression where webpack doesn't permit importing scss/css @​tagliala (#1193)

🔧 Maintenance

  • Add autocomplete example to end-to-end tests @​Xon (#1199)
  • Add e2e tests for "no choices" behavior to match v10 @​Xon (#1186)

Contributors

@​Xon and @​tagliala

v11.0.1

🐛 Bug Fixes

🔧 Maintenance

Contributors

@​Xon

v11.0.0

⚠ BREAKING CHANGES (from v10.2.0)

  • allowHtml now defaults to false.
  • Update to using Fuse.js v7.0.0
  • Update choices.js package to be an ES module, and use 'subpath exports' to expose multiple versions (UMD, MTS bundles, can product CJS bundles but it is not enabled by default).
  • Provide "fuse full" (default choices.js, ~19.9KB), or "fuse basic" (choices.search-basic.js ~18.8KB) or "prefix filter" (choices.search-filter.js ~14.6KB) based on how much Fuse.js is included.
  • Templates/text functions now escape ' characters for display.
  • addItemText/uniqueItemText/customAddItemText are now called with the value argument already escaped.
  • For select-one and select-multiple, the placeholder value is pulled from config.placeholderValue="..." or <select data-placeholder="..."> before attempting to extract a placeholder from the options list. #912 #567 #843
  • enter key now consistently opens/closes the dropdown instead of the behavior varying depending on backing element or internal state of the highlighted choice
  • Mutation APIs setChoiceByValue/setChoices/setValue now throw an error if the Choices instance was not initialized or multiple choices instances where initialized on the same element. Prevents bad internal states from triggering unexpected errors #1129
  • Improve consistency of the choice event firing. choice event now occurs after the addItem event
  • Trigger a search event (with empty value and 0 resultCount) when search stops
  • Update polyfills to include Element.prototype.replaceChildren
  • A number of internal APIs have been extensively refactored, this includes typescript class names.
  • Typescript source mapping files .d.ts.map are no longer generated and various .test.d.ts files are no longer generated

🚀 Features

... (truncated)

Changelog

Sourced from choices.js's changelog.

[11.0.2]

Features (from 11.0.0)

  • Pass getClassNames as the 3rd argument to callbackOnCreateTemplates callback
  • duplicateItemsAllowed option is now respected by setChoices() method #855

Bug Fixes (from 11.0.0)

  • Fix choice disable state wasn't considered when showing the "no choices to choose from" notice
  • Fix regression where webpack doesn't permit importing scss/css @​tagliala #1193
  • Fix regression "no choices to choose from"/"no results found" notice did not reliably trigger. #1185 #1191
  • Fix regression of UnhighlightItem event not firing #1173
  • Fix clearChoices() would remove items, and clear the search flag.
  • Fixes for opt-group handling/rendering
  • Fix removeChoice() did not properly remove a choice which was part of a group

Chore

  • Add e2e tests for "no choices" behavior to match v10

[11.0.1] (2024-08-30)

Bug Fixes (from 11.0.0)

  • Fix the rendered item list was not cleared when clearStore was called. This impacted the on-form-reset and refresh features.

Chore

  • Add e2e test for 'form reset' and 'on paste & search'.
  • Cleanup adding classes to generated elements.

[11.0.0] (2024-08-28)

⚠ BREAKING CHANGES

  • Update polyfills to include Element.prototype.replaceChildren
  • Number of internal APIs have changed
Commits
  • 1fdcf37 Compile JS files
  • d0a7e70 Merge branch 'opt-group_fix'
  • 3839cec Adjust timeouts for e2e CI
  • 6cdcc5f Use parentElement not parentNode, and cleanup arguments which will not have u...
  • 59f7d67 cleanup tests
  • ecc21a3 Fix regression of choices without groups where not rendered when groups where...
  • 6b77671 Fix removing a choice didn't work properly when it was part of a group
  • 8c56acb Use group reference instead of groupId
  • 8a12d5c Fix opt-group e2e tests false positive
  • 93531ab Fix group-id was not added to choices outside of search
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [choices.js](https://github.com/jshjohnson/Choices) from 10.2.0 to 11.0.2.
- [Release notes](https://github.com/jshjohnson/Choices/releases)
- [Changelog](https://github.com/Choices-js/Choices/blob/main/CHANGELOG.md)
- [Commits](Choices-js/Choices@v10.2.0...v11.0.2)

---
updated-dependencies:
- dependency-name: choices.js
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Sep 11, 2024
@driesvints driesvints closed this Sep 11, 2024
Copy link
Contributor Author

dependabot bot commented on behalf of github Sep 11, 2024

OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version. You can also ignore all major, minor, or patch releases for a dependency by adding an ignore condition with the desired update_types to your config file.

If you change your mind, just re-open this PR and I'll resolve any conflicts on it.

@dependabot dependabot bot deleted the dependabot/npm_and_yarn/choices.js-11.0.2 branch September 11, 2024 08:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code
Development

Successfully merging this pull request may close these issues.

1 participant