Install
Works with Drupal: ^11.2 || ^12Using Composer to manage Drupal site dependencies
Alternative installation files
Download tar.gz
29.96 KB
MD5: 77928da58d9889493feaa7707e3dcf83
SHA-1: 1aaeed50872e2d79fd795610ac609df9d7544de3
SHA-256: 75723c41b4a915ce89df4a01656890c1d5eadd872d0cbb28f514c86bcbde0825
Download zip
46.74 KB
MD5: f45b90f84e8536d17d0897ce91e90ca1
SHA-1: db2bc3d114177581d6df7733f581fb9611893dc8
SHA-256: 7aaeeb7a3b3d86d93191bd336455b6ede05edc2554ab5501a59d11f34a8a8ec7
Release notes
Taarikh 2.0.0 is a major release introducing a modern zero-dependency date picker, full support for Drupal 11.2 and Drupal 12,
PHP attributes, and a streamlined Composer installation process.
Key Changes
- New Zero-Dependency Date Picker: Replaced the legacy jQuery Calendars plugin with
com/hussainweb/taarikh-picker">Taarikh Picker (
hussainweb/taarikh-picker). Because it is published natively on
Packagist as adrupal-library, Composer installs it automatically without needing custom repository entries in your
rootcomposer.json. - Modern Drupal Support: Requires Drupal
^11.2 || ^12. - Breaking Change (Drupal 10): Support for Drupal 10 has been dropped in the 2.x branch. Sites running
Drupal 10 should remain on the8.x-1.xrelease branch. - PHP Attributes: Converted form elements (
TaarikhDate,TaarikhDatetime) to native
PHP attributes (#[FormElement]) and cleaned up legacy annotations. - OOP Hooks: Removed legacy procedural hook implementations and obsolete Drupal 10 compatibility layers.
Upgrading from 1.x
- Update the module constraint:
composer require drupal/taarikh:^2.0 - Remove legacy
kbwood/jquery.calendarsand any custom package repository for it in your root
composer. json:
composer remove kbwood/jquery.calendars - (Optional) If you installed
drupal/jquery_downgradesolely for Drupal 12 jQuery Calendars compatibility, you
can remove it:composer remove drupal/jquery_downgrade - Rebuild Drupal caches:
drush cache:rebuild
Contributors (1)
Changelog
Issues: 3 issues resolved.
Changes since 8.x-1.3:
- #3630986: Replace jQuery Calendars with zero-dependency Taarikh Picker in
2.0.x - #3631396: Drop Drupal 10 support in 2.0.x and remove legacy
hooks/compatibility shims - #3631471: Convert form elements to PHP attributes and clean up
annotations - build(composer): update license identifier to GPL-2.0-or-later
- build(composer): allow taarikh-picker >=0.2.2 <2.0.0
- docs(readme): add 1.x to 2.x upgrade guide and requirements