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

Update dependency select2 to v4 (master) #876

Closed
wants to merge 1 commit into from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Feb 9, 2021

WhiteSource Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
select2 (source) ^3.5.2-browserify -> ^4.0.0 age adoption passing confidence

Release Notes

select2/select2

v4.0.13

Compare Source

New features / improvements
  • Trigger input event before change events (#​4649)
  • Feed back the keypress code that was responsible for the 'close' event (#​5513)
  • Only trigger selection:update once on DOM change events (#​5734)
Bug fixes
  • Prevent opening of disabled elements (#​5751)
Documentation
  • Fix "edit this page" links in docs (#​5689)
Miscellaneous

v4.0.12

Compare Source

Bug fixes
  • Fixes incorrect offset when using the Shadow DOM and styling the <html> element (#​5682)
Miscellaneous
  • Replace cdnjs with jsDelivr in the documentation (#​5687)
  • Fix incorrect provider for the automated NPM deployment (#​5686)

v4.0.11

Compare Source

Bug fixes
  • Fixes jQuery migrate error when getting offset when dropdownParent not in document (#​5584)
Miscellaneous
  • Enable GitHub actions for CI (#​5591)
  • Documentation has been moved into and is deployed from the code repository (#​5638)
  • Remove Travis CI integration (#​5665)

v4.0.10

Compare Source

New features / improvements
  • Support passing in a selector for dropdownParent option (#​5622)
Bug fixes
  • Fix bug where dropdowns pointing upwards were incorrectly positioned (#​5621)

v4.0.9

Compare Source

New features / improvements
  • Mirror disabled state through aria-disabled on selection (#​5579)
  • Select2 now clears the internal ID when it is destroyed (#​5587)
  • Set the main ARIA 1.1 roles and properties for comboboxes (#​5582)
  • The language option now has a clearly defined fallback chain (#​5602)
Bug fixes
  • Do not propagate click when search box is not empty (#​5580)
  • Fix maximumSelectionLength being ignored by closeOnSelect (#​5581)
  • Fix generated options not receiving result IDs (#​5586)
  • Remove selection title attribute if text is empty (#​5589)
  • Reposition dropdown whenever items are selected (#​5590)
  • Fix dropdown positioning when displayed above with messages (#​5592)
  • Fix search box expanding width of container (#​5595)
  • allowClear no longer shifts selections to a new line (#​5603)
Translations
  • Fix error in German translations (#​5604)
Miscellaneous
  • Updated development grunt version so it no longer shows as vulnerable (#​5597)
  • Remove unused variables (#​5554)

v4.0.8

Compare Source

New features / improvements
  • Test against and fix compatibility with jQuery 3.4.1 (#​5531)
  • Results respect disabled state of <option> (#​5560)
  • Add computedstyle option for calculating the width (#​5559)
Bug fixes
  • Fix tag creation being broken in 4.0.7 (#​5558)
  • Fix infinite scroll when the scrollbar is not visible (#​5575)
  • Revert change to focusing behaviour in 4.0.6 (#​5576)
Translations
  • Fix wording in French translations (#​5521)
Miscellaneous
  • Update grunt-contrib-qunit to latest version (#​5530)
  • Removed unused .select2-selection__placeholder CSS definitions for multiple selects (#​5508)
  • Remove deprecated jQuery shorthand (#​5564)

v4.0.7

Compare Source

New features/improvements
  • Do not close on select if Ctrl or Meta (Cmd) keys being held (#​5222)
Bug fixes
  • Fixed issue where single select boxes would automatically reopen when they were closed (#​5490, #​5492)
Miscellaneous
  • Move almost and jquery-mousewheel to devDependencies (#​5489)

v4.0.6

Compare Source

New features/improvements
Bug fixes
  • Fix up arrow error when there are no options in dropdown (#​5127)
  • Add ; before beginning of factory wrapper (#​5089)
  • Fix IE11 issue with select losing focus after selecting an item (#​4860)
  • Clear tooltip from select2-selection__rendered when selection is cleared (#​4640, #​4746)
  • Fix keyboard not closing when closing dropdown on iOS 10 (#​4680)
  • User-defined types not normalized properly when passed in as data (#​4632)
  • Perform deep merge for Defaults.set() (#​4364)
  • Fix "the results could not be loaded" displaying during AJAX request (#​4356)
  • Cache objects in Utils.__cache instead of using $.data (#​4346, #​5486)
  • Removing the double event binding registration of selection:update (#​4306)
Accessibility
  • Improve .select2-hidden-accessible (#​4908)
  • Add role and aria-readonly attributes to single selection dropdown value (#​4881)
Translations
  • Add Turkmen translations (tk) (#​5125)
  • Fix error in French translations (#​5122)
  • Add Albanian translation (sq) (#​5199)
  • Add Georgian translation (ka) (#​5179)
  • Add Nepali translation (ne) (#​5295)
  • Add Bangla translation (bn) (#​5248)
  • Add removeAllItems translation for clear "x" title (#​5291)
  • Fix wording in Vietnamese translations (#​5387)
  • Fix error in Russian translation (#​5401)
Miscellaneous
  • Remove duplicate CSS selector in classic theme (#​5115)

v4.0.5

Compare Source

Bug fixes
  • Replace autocapitalize=off with autocapitalize=none (#​4994)
Translations
  • Vietnamese: remove an unnecessary quote mark (#​5059)
  • Czech: Add missing commas and periods (#​5052)
  • Spanish: Update the 'errorLoading' message (#​5032)
  • Fix typo in Romanian (#​5005)
  • Improve French translation (#​4988)
  • Add Pashto translation (ps) (#​4960)
  • Add translations for lower and upper Sorbian (dsb and hsb) (#​4949)
  • Updates to Slovak (#​4915)
  • Fixed Norwegian inputTooShort message (#​4817, 4896)
  • Add Afrikaans translation (af) (#​4850)
  • Add Bosnian translation (bs) (#​4504)

v4.0.4

Compare Source

New features / Improvements
  • Make tag matching case insensitive [https://github.com/select2/select2/commit/cb9a90457867ffb14c7b1550bb67e872e0a5c2dd, https://github.com/select2/select2/commit/1167bace78cd3b1a918c1b04f3bac54674eab62b]
  • Support selecting options with blank or 0 option values [https://github.com/select2/select2/commit/16b4840c0e2df0461998e3b464ee0a546173950d, https://github.com/select2/select2/commit/0358ee528765157234643d289bce6b8ca5889c72]
Bug fixes
  • Fix issue with entire form losing focus when tabbing away from a Select2 control (#​4419)
  • Fix UMD support for CommonJS [https://github.com/select2/select2/commit/45a877345482956021161203ac789c25f40a7d5e]
Documentation
Translations
  • Add errorLoading Hungarian translation [https://github.com/select2/select2/commit/7d1d13352321e21670ff1c6cba7413aa264fd57a]
  • Add errorLoading German translation [https://github.com/select2/select2/commit/4df965219ea4c39147fde9335bc260840465933a]
  • Add Slovene language [https://github.com/select2/select2/commit/8e6422c570a87da8d89c45daf0d253695a943c84]
  • Add errorLoading Galician translation [https://github.com/select2/select2/commit/8fcc6202c37f4e06d951342bf142a3b906b6b8e3]
  • Add errorLoading Thai translation [https://github.com/select2/select2/commit/625fc78ee616baedf64aa37357403b4b72c7363c]
  • Add searching and errorLoading Finnish translations [https://github.com/Add missing finnish translations select2/select2#4730]
  • Add errorLoading Turkish translation [https://github.com/select2/select2/commit/fd4a0825315c7055347726d5818c999279f96ff8, https://github.com/select2/select2/commit/751b36767f9f28b9de9428d5e8035c9a404915d9]
  • Add Armenian language [https://github.com/select2/select2/commit/f6fa52dcc02341df1523f50348f2effc54ee2911]

v4.0.3

Compare Source

This is the third bugfix release of Select2 4.0.0. It builds upon the second bugfix release and fixes many common issues.

New features / Improvements
  • The old dropdownAutoWidth option now properly works [https://github.com/select2/select2/commit/fe26b083eb830836061de1458e483782cefef424]
  • A focus event on the original <select> is now handled [https://github.com/select2/select2/commit/31e7a1d4c52ed7477769fcad5d15166ae3c9b4d0]
  • Adding and removing options now refreshes the selection automatically [https://github.com/select2/select2/commit/ea79a197e0ffe55aa600eed6d18cbd1c804c3176]
Bug fixes
  • select2('option') no longer mutate the arguments when working on multiple elements [https://github.com/select2/select2/commit/c2c1aeef31c95c6df5545c900a4e1782d712497c]
  • Better detect aborted requests [https://github.com/select2/select2/commit/cfb66f5e4f71a56c46a6890c5dde4b7f24f11fa8]
  • New options are now properly created during tokenization [https://github.com/select2/select2/commit/3b8cd2e36990e695e4cb4b966c8658e7ca1574dc]
  • Fix positioning bug with non-static parents for the dropdown [https://github.com/Fixing bug with non-static parents for dropdowns select2/select2#4267]
  • Infinite scrolling no longer resets the keyboard focus [https://github.com/select2/select2/commit/e897d008a672da262ba84cee2a144578696ada29, https://github.com/select2/select2/commit/9f581285d88128b29a01fc1e5fd2d445d610b553]
  • selectOnClose now works properly with closeOnSelect [https://github.com/select2/select2/commit/481c43883e23874e9c35879d173eb8cc5b994b12]
  • Apply ajax.delay to empty search terms as well [https://github.com/select2/select2/commit/4b9e02f02211248be25ac4c16d4635cf38237bb9]
Documentation
Translations

v4.0.2

Compare Source

This is the second bugfix release of Select2 4.0.0. It builds upon the first release candidate of Select2 4.0.2 with some minor improvements.

New features / Improvements
Bug fixes
Documentation
  • Updated Bootstrap and Font Awesome dependencies [https://github.com/select2/select2/commit/a5e539b509778eabeb8ce79e191b3ee1e81f6deb, https://github.com/select2/select2/commit/81a4a68b113e0d3e0fb1d0f8b1c33ae1b48ba04f, https://github.com/select2/select2/commit/6369f5f173fb81ec692213782945cc737e248da5]
  • Use Jekyll's highlighting instead of prettify [https://github.com/select2/select2/commit/54441e6a22be3969dd934ccb769f5d7dde684bfb, https://github.com/select2/select2/commit/74387b98632c75b06d15d83ad5359b9daf0f5dcb, https://github.com/select2/select2/commit/a126b53b4c90fac33b5d855894647cd8bcac3558, https://github.com/select2/select2/commit/75163d67cb80e4279965a97e9eeda5b171806085]
  • Corrected responsive width example to properly show it working [https://github.com/select2/select2/commit/63d531a9c0ab51f05327492a56f3245777762b45]
  • Replaced protocol-relative URLs with HTTPS protocol [https://github.com/Replaced protocol-relative URLs with HTTPS protocol select2/select2#4127]
  • Code snippets for mapping id and text [https://github.com/How override default "text" key to custom key? select2/select2#4086]
  • Document how to trigger change just for Select2 [https://github.com/Refresh Select2 without triggering change event select2/select2#3620]
  • Added notes about DOM events [https://github.com/select2/select2/commit/37dbe059fce4578b46b7561e6243b7fdc63ac002]
Translations
  • Correct Romanian translation [https://github.com/select2/select2/commit/72d905f9e026d49e7c600f37a1ce742c404654d7]

v4.0.1

Compare Source

New features / improvements
  • Trigger input event before change events (#​4649)
  • Feed back the keypress code that was responsible for the 'close' event (#​5513)
  • Only trigger selection:update once on DOM change events (#​5734)
Bug fixes
  • Prevent opening of disabled elements (#​5751)
Documentation
  • Fix "edit this page" links in docs (#​5689)
Miscellaneous

v4.0.0

Compare Source

This builds upon the second release candidate, so review all previous release notes before upgrading from previous versions of Select2.

Supported environments
  • jQuery 1.7.2+
  • Modern browsers (Chrome, Firefox, Safari)
  • Internet Explorer 8+
New features
Breaking changes
  • Select2 now uses the MIT license
  • The full build of Select2 no longer includes jQuery - You must include jQuery separately on your page.
  • Select2 will prevent the inner scrolling of modals (and other scrollable containers) when it is open to prevent the UI from breaking. Read more at the commit.
  • jQuery is no longer listed as a dependency in the bower.json/component.json files.
  • <select> has replaced <input type="hidden" /> for all options (including remote data)
  • The matcher has been revamped to include full context, a compatibility module (select2/compat/matcher) has been created
  • The display always reflects the order data is sent to the server
  • The click mask is no longer the default (again). You can get back the old functionality by wrapping your selectionAdapter with the ClickMask (select2/selection/clickMask) decorator.
  • Select2 no longer stops the propagation of events happening within the dropdown and selection. You can use the StopPropagation modules available in the full builds to prevent this. [https://github.com/select2/select2/commit/8f8140e3b00c5d5bb232455137c4c633d7da4275]
  • The enter key no longer toggles the state of multiple select items in the results, but instead will only select them. Use CTRL + Space instead to toggle the state. [https://github.com/select2/select2/commit/017c20109471fa5b835603faf5dc37f7c2c2ea45]
  • Warnings will now be triggered in the developer console if Select2 detects an unsupported configuration.
Options
  • The default value of the width option has been changed from style to resolve.
  • The copy value for the width option has been renamed to style.
Renamed
  • formatSelection -> templateSelection
  • formatResult -> templateResult
  • sortResults -> sorter
  • createSearchChoice -> createTag
  • selectOnBlur -> selectOnClose
  • ajax.jsonpCallback -> ajax.jsonp
  • ajax.results -> ajax.processResults
  • tags: [array,of,data] -> data: [array,of,data], tags: true
  • placeholderOption has been replaced by placeholder.id (placeholder -> placeholder.text)
Internationalization
  • formatNoMatches -> language.noMatches
  • formatSearching -> language.searching
  • formatInputTooShort -> language.inputTooShort
  • formatInputTooLong -> language.inputTooLong
  • formatAjaxError -> language.errorLoading
  • formatLoading -> language.loadingMore
  • formatSelectionTooBig -> language.maximumSelected
Deprecated/Removed
  • initSelection - This is no longer needed with <select> tags. Limited backwards compatibility in the full build.
  • id - Data objects should now always have id and text attributes that are strings, use $.map when migrating
  • query - Use a custom data adapter instead. Limited backwards compatibility in the full build.
  • ajax.params - All parameters passed to ajax will be passed to the AJAX data transport function
Methods
Renamed
  • .select2("val", [value]) -> .val([value])
  • .select2("enable", !disabled) -> .prop("disabled", disabled)
Removed
  • .select2("onSortStart") and .select2("onSortEnd") - A custom selection adapter should be created instead
  • .select2("data", data) - Create the <option> tags for the objects that you would like to set, and set the .val to select them
  • .select2("readonly") - There is no way to make a <select> element read-only, disable it instead
Events
New
  • select2:closing is triggered before the dropdown is closed
  • select2:select is triggered when an option is selected
Renamed
  • select2-close is now select2:close
  • select2-open is now select2:open
  • select2-opening is now select2:opening
  • select2-selecting is now select2:selecting
  • select2-removed is now select2:unselect
  • select2-removing is now select2:unselecting
Removed
  • select2-clearing has been removed in favor of select2:unselecting
  • select2-highlight
  • select2-loaded
  • select2-focus - Use the native focus event instead
  • select2-blur - Use the native blur event instead
  • All extra properties from the change event were removed
    • val can be retrieved with $element.val() instead
    • added can be retrieved by listening to select2:select
    • removed can be retrieved by listening to select2:unselect

Renovate configuration

📅 Schedule: At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻️ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by WhiteSource Renovate. View repository job log here.

@renovate renovate bot added the type: maintenance Regular maintenance, like updating dependencies label Feb 9, 2021
@renovate renovate bot force-pushed the renovate/master-select2-4.x branch 13 times, most recently from 9f8d456 to f40a170 Compare February 12, 2021 23:00
@renovate renovate bot force-pushed the renovate/master-select2-4.x branch from f40a170 to 91fc392 Compare February 13, 2021 16:03
@davidmehren
Copy link
Member

Can't upgrade as select2 v4 only supports bootstrap 4

@renovate
Copy link
Contributor Author

renovate bot commented Feb 13, 2021

Renovate Ignore Notification

As this PR has been closed unmerged, Renovate will ignore this upgrade and you will not receive PRs for any future 4.x releases. However, if you upgrade to 4.x manually then Renovate will then reenable updates for minor and patch updates automatically.

If this PR was closed by mistake or you changed your mind, you can simply rename this PR and you will soon get a fresh replacement PR opened.

@renovate renovate bot deleted the renovate/master-select2-4.x branch February 13, 2021 16:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: maintenance Regular maintenance, like updating dependencies
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants