date.js accepts jQuery object as an argument though it doesn't declare the jQuery library as a dependency. Currently it causes the following error under some conditions.
date.js?v=9.4.0-dev:94 Uncaught ReferenceError: jQuery is not defined
at date.js?v=9.4.0-dev:94
It appears that jQuery is not actually used in that file so we can simply remove it from argument list.
Issue fork drupal-3255504
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
anagomes commentedComment #4
anagomes commentedComment #5
anagomes commentedComment #6
anagomes commentedComment #7
cilefen commentedYou have to remove the parameter from the IIFE’s invocation also. I think this code probably does not work in this branch as it is.
Comment #8
cilefen commentedThere is no test coverage or tests would fail.
Comment #9
anagomes commentedComment #10
anagomes commentedThanks @cilefen! I believe this last commit should solve this.
Comment #11
paulocsMerge request looks good.
Thanks @anagomes!
Comment #12
alexpottCommitted 2b1f143 and pushed to 10.0.x. Thanks!
Committed and pushed cddccd7dbd5 to 9.4.x and 3f59ee8a860 to 9.3.x. Thanks!
I think maybe we can completely remove this in D10. Looking at the code I'm not sure that any supported browser would fail:
Note sure about our support for Opera Mini - see https://caniuse.com/?search=date
Comment #16
alexpottLooking at #3202818: Remove untrue declaration of Opera Mini (in reverse proxy mode) support from Drupal 9.3 we don't support Opera Mini - so I think we can file a follow-up issue to completely remove the library in Drupal 10.0.x and deprecate it in Drupal 9.4.x
Comment #17
cilefen commented#3256549: Deprecate core/drupal.date asset library in 9.4.0