Breaking: #82378 - Remove namespaced jQuery¶
See forge#82378
Description¶
The possibility to jail jQuery into a namespace has been removed. This affects custom namespaces and
TYPO3.jQuery
as well.
The class constants TYPO3\CMS\Core\Page\PageRenderer::JQUERY_NAMESPACE_DEFAULT
and
TYPO3\CMS\Core\Page\PageRenderer::JQUERY_NAMESPACE_DEFAULT_NOCONFLICT
have been removed without
substitution, any usage will be detected by the Extension Scanner.
Impact¶
Namespaces will be ignored and automatically fall back to noConflict behavior.
Calling TYPO3.jQuery.*
will result in a TypeError.
Affected Installations¶
All installations using a custom namespace, PageRenderer::JQUERY_NAMESPACE_DEFAULT
PageRenderer::JQUERY_NAMESPACE_DEFAULT
or relying on TYPO3.jQuery
are affected.
Migration¶
Remove $namespace
argument in PageRenderer->loadJquery()
and either use window.$
or migrate
to RequireJS.