[!!!][TASK] Remove global jquery object window.$
The global window.$ accessor to the jQuery instance is now no longer provided. Global jQuery usage has been deprecated in #86438 with the suggestion to use JavaScript modules instead. With the integration of browser native ES6 modules jQuery should now be loaded as a regular module. Some remaining cases in acceptance test are removed. $.active == 0 checks have been no-ops as jQuery.ajax isn't used in those components anymore (core AjaxRequest which uses fetch() is used instead), therefore $.active always resolved to 0. This reveals why the additional 0.5s timeout-hack had been added there, the method is now explicitly marked as an explicit timeout instead of a waiting-method. Note that window.jQuery is still provided if the bootstrap javascript module is loaded as bootstrap JS needs to load jQuery from the global window object. window.jQuery global will be removed once we drop bootstrap jquery interop (which is another breaking change). Resolves: #97243 Related: #86438 Releases: main Change-Id: Ib1d937e474c9be1ef08bc941ac468a8ad1c3948a Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/74030 Tested-by:Andreas Fernandez <a.fernandez@scripting-base.de> Tested-by:
Christian Kuhn <lolli@schwarzbu.ch> Tested-by:
core-ci <typo3@b13.com> Tested-by:
Benni Mack <benni@typo3.org> Tested-by:
Benjamin Franzke <bfr@qbus.de> Reviewed-by:
Andreas Fernandez <a.fernandez@scripting-base.de> Reviewed-by:
Christian Kuhn <lolli@schwarzbu.ch> Reviewed-by:
Benni Mack <benni@typo3.org> Reviewed-by:
Benjamin Franzke <bfr@qbus.de>
Showing
- Build/Gruntfile.js 2 additions, 12 deletionsBuild/Gruntfile.js
- Build/Sources/TypeScript/recordlist/recordlist.ts 3 additions, 3 deletionsBuild/Sources/TypeScript/recordlist/recordlist.ts
- Build/util/cjs-to-esm.js 2 additions, 3 deletionsBuild/util/cjs-to-esm.js
- typo3/sysext/core/Documentation/Changelog/12.0/Breaking-97243-RemoveGlobalJQueryAccessViaWindow.rst 41 additions, 0 deletions...12.0/Breaking-97243-RemoveGlobalJQueryAccessViaWindow.rst
- typo3/sysext/core/Resources/Public/JavaScript/Contrib/jquery.js 1 addition, 1 deletion...sysext/core/Resources/Public/JavaScript/Contrib/jquery.js
- typo3/sysext/core/Tests/Acceptance/Application/FileList/FileStorageTreeFilterCest.php 5 additions, 7 deletions...ptance/Application/FileList/FileStorageTreeFilterCest.php
- typo3/sysext/core/Tests/Acceptance/Application/FormEngine/CategoryTreeCest.php 4 additions, 3 deletions...ts/Acceptance/Application/FormEngine/CategoryTreeCest.php
- typo3/sysext/core/Tests/Acceptance/Application/FormEngine/Inline1nCest.php 4 additions, 4 deletions.../Tests/Acceptance/Application/FormEngine/Inline1nCest.php
- typo3/sysext/core/Tests/Acceptance/Application/Impexp/AbstractCest.php 1 addition, 3 deletions...core/Tests/Acceptance/Application/Impexp/AbstractCest.php
- typo3/sysext/core/Tests/Acceptance/Application/Impexp/ExportCest.php 5 additions, 5 deletions...t/core/Tests/Acceptance/Application/Impexp/ExportCest.php
- typo3/sysext/core/Tests/Acceptance/Application/Impexp/ImportCest.php 1 addition, 1 deletion...t/core/Tests/Acceptance/Application/Impexp/ImportCest.php
- typo3/sysext/core/Tests/Acceptance/Application/PageTree/PageTreeFilterCest.php 7 additions, 9 deletions...ts/Acceptance/Application/PageTree/PageTreeFilterCest.php
- typo3/sysext/recordlist/Resources/Public/JavaScript/recordlist.js 1 addition, 1 deletion...sext/recordlist/Resources/Public/JavaScript/recordlist.js
Please register or sign in to comment