Currently, on all responses mw.config includes configuration variables wgForeignUploadTargets and wgEnableUploads. These are documented[1] as being
@internal For mediawiki.ForeignUpload
We should switch to providing them via package files instead, so that they are only loaded when the mediawiki.Title module is used. There is a single use in JavaScript outside of mediawiki.ForeignUpload, in the TinyMCE extension (uses wgEnableUploads, not deployed), so we can add an entry in the release notes about the removal.