- Issue created by @andrelzgava
This was announced for developers in jQuery updated to 4.0.0-beta → , and I think those functions were previously deprecated. The issues you related have been fixed appropriately. I am unsure of the reasons for doing this.
It looks like projects that are maintained are upgrading the deprecations. I suggest creating a contributed module.
- 🇧🇷Brazil andrelzgava
I developed this patch to restore 11 jQuery functions that were available in version 3.7 but removed in version 4. With this patch, you can continue using these functions in jQuery 4, which may help keep your site and other dependent packages functioning properly after the upgrade.
However, I strongly recommend updating your custom code to align with the changes in jQuery 4. You can also contribute to updating third-party packages, or, if that’s not feasible, consider removing packages that are no longer maintained or compatible with jQuery 4.
Please note: this is an emergency workaround intended to help maintain functionality temporarily after upgrading Drupal.
- 🇬🇧United Kingdom longwave UK
Agree with #3, if someone wants to maintain a contributed module that contains BC shims for previous versions of jQuery then they are free to do so, but this doesn't fit with our BC policy for core; we are trying to minimise JavaScript and so don't want to load backward compatibility code that probably won't be used on 99% of sites.