Skip to content

[js] Update select2 4.1.0 → 4.2.0 (minor) - #6237

Merged
depfu[bot] merged 1 commit into
developfrom
depfu/update/yarn/select2-4.2.0
Dec 1, 2026
Merged

depfu[bot] merged 1 commit into
developfrom
depfu/update/yarn/select2-4.2.0

Conversation

@depfu

@depfu depfu Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

Here is everything you need to know about this update. Please take a good look at what changed and the test results before merging this pull request.

What changed?

✳️ select2 (4.1.0 → 4.2.0) · Repo · Changelog

Release Notes

4.2.0

New features / improvements

  • Allow templateSelection to return trusted HTML nodes, matching templateResult behavior (#6311)
  • Allow transports to report AJAX failure reasons as a text status string (e.g. 'timeout', 'abort', 'error', 'parseerror'), decoupling the failure contract from jqXHR internals (#6476)

Bug fixes

  • Disable Select2 when the original select is inside a disabled fieldset (#6482)
  • Fix disabled state of optgroup children when using data arrays (#6422)
  • Escape String objects consistently in template rendering (#6311)
  • Remove only the last choice when pressing Backspace in a multiple select with allowClear enabled (#3335, #6485)
  • Do not select a result when selectOnClose closes a disabled dropdown (#6486)
  • Closing the container no longer forces the page to scroll (#6483)
  • Show an error message when an AJAX request times out instead of staying on "Searching..." (#6476)
  • Object language values now take precedence over string language codes when resolving translations (#6451)
  • Prevent selecting stale results from a previous search while an AJAX query is in flight (#4854, #6499)
  • Guard closest dir lookup when no ancestor has a dir attribute (#6441)
  • Fix duplicate search queries when Korean IME input events fire on arrow keys or Enter (#6295)

Translations

  • Add Norwegian Nynorsk translation (nn) (#6501)

This release was sponsored in part by many contributors on the Open Source Collective and GitHub Sponsors.

4.1.1

Bug fixes

  • Fix unbound _normalizeItem crash for AJAX data in strict-mode builds (#6439)
  • Retain aria-label and aria-labelledby attributes from the origin <select> element (#6457)
  • Assign IDs to generated search fields (#6473)
  • Remove regex characters from event namespaces (#6484)

Documentation

  • Migrate documentation from Grav to MkDocs (#6413, #6419)
  • Address static docs regression (#6419)
  • Rewrite the docs workflow using newer GitHub Actions (#6408)
  • Add Google Analytics back to MkDocs (#6421)

Miscellaneous

  • Remove the Node engines constraint (#6446)
  • Add GitHub Sponsors to the README (#6426)
  • Add pre-commit hooks for JavaScript, JSON, CSS, and Markdown files (#6409, #6410, #6411, #6412)
  • Fix pre-commit.ci by dropping an empty skip key (#6418)

This release was sponsored in part by many contributors on the Open Source Collective and GitHub Sponsors.

Does any of this look wrong? Please let us know.

Commits

See the full diff on Github. The new version differs by 70 commits:


Depfu Status

Depfu will automatically keep this PR conflict-free, as long as you don't add any commits to this branch yourself. You can also trigger a rebase manually by commenting with @depfu rebase.

All Depfu comment commands
@​depfu rebase
Rebases against your default branch and redoes this update
@​depfu recreate
Recreates this PR, overwriting any edits that you've made to it
@​depfu merge
Merges this PR once your tests are passing and conflicts are resolved
@​depfu cancel merge
Cancels automatic merging of this PR
@​depfu close
Closes this PR and deletes the branch
@​depfu reopen
Restores the branch and reopens this PR (if it's closed)
@​depfu pause
Ignores all future updates for this dependency and closes this PR
@​depfu pause [minor|major]
Ignores all future minor/major updates for this dependency and closes this PR
@​depfu resume
Future versions of this dependency will create PRs again (leaves this PR as is)

@depfu depfu Bot added the dependencies Pull requests that update a dependency file label Nov 28, 2026
@codecov

codecov Bot commented Nov 28, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 82.44%. Comparing base (2ee4100) to head (f172e4f).
⚠️ Report is 1 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #6237      +/-   ##
===========================================
- Coverage    82.50%   82.44%   -0.06%     
===========================================
  Files         1346     1346              
  Lines        33035    33035              
  Branches      3611     3611              
===========================================
- Hits         27254    27235      -19     
- Misses        4940     4960      +20     
+ Partials       841      840       -1     
Flag Coverage Δ
javascript 10.68% <ø> (ø)
ruby 83.69% <ø> (-0.09%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@yoldas

yoldas commented Dec 1, 2026

Copy link
Copy Markdown
Member

@depfu merge

@depfu
depfu Bot force-pushed the depfu/update/yarn/select2-4.2.0 branch from 86917e6 to f172e4f Compare December 1, 2026 14:22
@depfu
depfu Bot merged commit 407fd99 into develop Dec 1, 2026
12 checks passed
@depfu
depfu Bot deleted the depfu/update/yarn/select2-4.2.0 branch December 1, 2026 14:33
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant