Problem/Motivation
Drupal 10.0.0 stable was released on: 15 Dec 2022 by the Drupal core team
https://www.drupal.org/project/drupal/releases/10.0.0
Thank you so much!
The current composer require status for this module under Drupal 10
composer create-project drupal/recommended-project:~10.0 /var/www/html/sandboxes/drupal10autocomplete_deluxe
cd /var/www/html/sandboxes/drupal10autocomplete_deluxe/
composer config minimum-stability dev
composer require drupal/autocomplete_deluxe;
Further drupal-check on
composer require drupal/core-dev --with-all-dependencies
composer require mglaman/drupal-check --dev
composer require phpspec/prophecy-phpunit:^2 --dev
php vendor/bin/drupal-check -d web/modules/contrib/autocomplete_deluxe/
Output:
autocomplete_deluxe--drupal-check--report.txt
4/4 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100% [OK] No errors
Proposed resolution
- Support Drupal ~10 and change all deprecated packages, classes, functions, asset libraries to the Drupal 10 way
- Real physical testing with Drupal ~10
- Automated upgrade to Drupal ~10
Remaining tasks
- ✅ File an issue
- ✅ Addition/Change/Update/Fix
- ✅ Testing to ensure no regression
- ➖ Automated unit testing coverage
- ➖ Automated functional testing coverage
- ✅ UX/UI designer responsibilities
- ✅ Readability
- ✅ Accessibility
- ✅ Performance
- ➖ Security
- ➖ Documentation
- ✅ Code review by maintainers
- ✅ Full testing and approval
- ✅ Credit contributors
- ✅ Review with the product owner
- ✅ Release notes snippet
- ✅ Release autocomplete_deluxe-2.0.3
API changes
- N/A
Data model changes
- N/A
Release notes snippet
- Issue #3277443 by Rajab Natshah: Support Drupal 10 and update all use of deprecation in the Autocomplete Deluxe module
Comments
Comment #3
rajab natshahComment #4
rajab natshahComment #5
rajab natshahComment #6
rajab natshahComment #7
rajab natshahAction: Needs to Fix styling and JS issues
Comment #8
rajab natshahComment #9
rajab natshahComment #10
rajab natshahComment #11
rajab natshahUsing JQuery UI autocomplete.
Comment #12
rajab natshahRemove jQuery dependency from the once feature
#2402103: Add once.js to core
#3183149: Deprecate jquery.once and use the new once lib
#3207782: Add BC layer between @drupal/once and jQuery.once
@drupal/once
once.js
https://git.drupalcode.org/project/once
Comment #13
rajab natshahComment #14
rajab natshahSwitch from
core/jquery.oncetocore/onceand change the Drupal Autocomplete Deluxe behaviorsphpcs --standard=Drupal
rajab@vardot-dev:/var/www/html/products/autocomplete_deluxe$ phpcs --standard=Drupal --extensions=php,module,inc,install,test,theme,scss,less,css,info,txt,md,yml,js /var/www/html/products/autocomplete_deluxe --ignore="/var/www/html/products/autocomplete_deluxe/node_modules/"phpcs --standard=DrupalPractice
rajab@vardot-dev:/var/www/html/products/autocomplete_deluxe$ phpcs --standard=DrupalPractice --extensions=php,module,inc,install,test,theme,scss,less,css,info,txt,md,yml,js /var/www/html/products/autocomplete_deluxe --ignore="/var/www/html/products/autocomplete_deluxe/node_modules/"Tested Autocomplete Deluxe widget under Drupal ~10.0 with Claro admin theme
Tested Autocomplete Deluxe widget under Drupal ~10.0 with The Gin admin theme - Light mode
Tested Autocomplete Deluxe widget under Drupal ~9.0 with Claro admin theme
Tested Autocomplete Deluxe widget under Drupal ~9.0 with The Gin admin theme - Light mode
Comment #15
rajab natshahTested Autocomplete Deluxe widget under Drupal ~10.0 with The Gin admin theme - Dark mode
Tested Autocomplete Deluxe widget under Drupal ~9.0 with The Gin admin theme - Dark mode
Comment #16
rajab natshah#3277744: Actually remove deprecated jquery_ui libraries from core
jQuery UI Autocomplete deprecated in favor of @drupal/a11y_autocomplete library
#3076171: Provide a new library to replace jQuery UI autocomplete
Quick fix to switch from
core/jquery.ui.autocompletetojquery_ui_autocomplete/autocompleteby the jQuery UI Autocomplete moduleQuick fix to switch from
core/jquery.ui.buttontojquery_ui_button/buttonby the jQuery UI Button moduleComment #17
rajab natshahSwitching from
core/jquery.ui.autocompletetocore/drupal.autocompleteThe core/drupal.autocomplete library is in Drupal 10 core.libraries.yml
Comment #18
rajab natshahPassing null to parameter #1 ($string) of type string is deprecated
Comment #19
rajab natshah#3076171: Provide a new library to replace jQuery UI autocomplete
https://www.drupal.org/project/drupal/issues/3076171#comment-14652969
Comment #20
rajab natshahChanging
To
Comment #21
rajab natshahcore/jquery.oncetocore/onceand change the Drupal Autocomplete Deluxe behaviorscore/jquery.ui.autocompletetocore/drupal.autocompleteand fromcore/jquery.ui.buttontocore/drupal.dialogjQuery, Drupal, once, drupalSettings, Sortablefor the Autocomplete Deluxe widgetComment #22
rajab natshahComment #23
rajab natshahComment #24
rajab natshah✅ Released autocomplete_deluxe-2.0.3
Comment #26
eiriksmHey there!
Thanks for your work on this. Just wanted to point out that with this issue resolved and released, this module is no longer compatible with drupal 8. Of course, Drupal 8 is not even supported, but it would be nice to also indicate this on the module page, composer.json file and info file. If people were to upgrade right now (which it does seem like they can) their autocomplete things will certainly stop working (since the once library only exists in drupal 9).
At this point it's unfortunately too late to mark the release 2.0.3 as not supported in drupal 8, but I would recommend doing so from now on, so the next release will be marked as such.
Do you want me to open a new issue / merge request for this?