RELEASE-NOTES-1.43 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357
  1. = MediaWiki 1.43 =
  2. == MediaWiki 1.43.0-PRERELEASE ==
  3. THIS IS NOT A RELEASE YET
  4. MediaWiki 1.43 is an alpha-quality development branch, and is not recommended
  5. for use in production.
  6. == Upgrading notes for 1.43 ==
  7. Don't forget to always back up your database before upgrading!
  8. See the file UPGRADE for more detailed per-version upgrade instructions from the
  9. oldest supported upgrading version, MediaWiki 1.35.
  10. Some specific notes for MediaWiki 1.43 upgrades are below:
  11. * It is now necessary that the OpenSSL PHP extension is installed.
  12. * …
  13. For notes on 1.42.x and older releases, see HISTORY.
  14. === Configuration changes for system administrators in 1.43 ===
  15. * $wgBlockTargetMigrationStage, which was introduced in 1.42, is now deprecated
  16. and has no effect.
  17. * …
  18. ==== New configuration ====
  19. * (T13555) $wgParserEnableLegacyHeadingDOM - Defaults to `true`, can be set to
  20. `false` to enable new, more accessible HTML markup for wikitext headings.
  21. Note that each skin must also use the 'supportsMwHeading' option to allow it.
  22. More information: https://www.mediawiki.org/wiki/Heading_HTML_changes
  23. In a future release the new markup will become the default,
  24. and later this option will be removed.
  25. * …
  26. ==== Changed configuration ====
  27. * wgPageLinksSchemaMigrationStage – (T299947) This temporary setting, which
  28. controls the database schema migration for the page links table, is now set
  29. by default to write to both old and new data and read from the new data.
  30. * The "error-json" channel, configurable via $wgDebugLogGroups, has been
  31. removed. For structured logging, use the "error" channel directly instead.
  32. Since MediaWiki 1.25, structured logging is supported via Monolog for all
  33. channels, including the "error" channel. For silenced errors, you use the
  34. "silenced-error" channel added in MediaWiki 1.42. (T193472)
  35. * …
  36. ==== Removed configuration ====
  37. * wgSessionInsecureSecrets has been removed since OpenSSL is now a required
  38. PHP extension.
  39. * …
  40. === New user-facing features in 1.43 ===
  41. * (T338341) Support reading XMP and EXIF from WebP files
  42. * (T242346) Special:TalkPage is a new special page that will redirect to the
  43. associated talk namespace page, e.g. [[Special:TalkPage/Foo]] redirects to
  44. [[Talk:Foo]]; [[Special:TalkPage/Project:Foo]] goes to [[Project talk:Foo]].
  45. This allows for links by templates and tools without having to parse what
  46. namespaces are valid and have associated talk pages.
  47. * …
  48. === New features for sysadmins in 1.43 ===
  49. * …
  50. === New developer features in 1.43 ===
  51. * StatusValue class gained new method getMessages(): MessageSpecifier[],
  52. allowing the errors to be inspected and displayed more easily, for example:
  53. foreach ( $status->getMessages() as $msg ) {
  54. if ( $msg->getKey() !== 'ignored-message' ) {
  55. $this->getOutput()->addWikiMsg( $msg );
  56. }
  57. }
  58. * (T13555) Skins can enable the 'supportsMwHeading' option for new, more
  59. accessible HTML markup for wikitext headings. MediaWiki's own styles and
  60. scripts have been updated to support it, but your skin may also need updates.
  61. More information: https://www.mediawiki.org/wiki/Heading_HTML_changes
  62. A future release will emit deprecation warnings for skins with
  63. 'supportsMwHeading' set to false.
  64. * (T219397) New `Language::formatDurationBetweenTimestamps()` function added
  65. which takes two timestamps and a precision in order to calculate a more
  66. accurate text representation of duration.
  67. * …
  68. === External library changes in 1.43 ===
  69. * The OOjs Router library has been merged into core and will be archived
  70. upstream.
  71. ==== New external libraries ====
  72. * …
  73. ===== New development-only external libraries =====
  74. * …
  75. ==== Changed external libraries ====
  76. * Updated codex, codex-design-tokens and codex-icons
  77. from v1.3.6 to v1.6.0.
  78. * Updated guzzlehttp/guzzle from 7.7.1 to 7.8.1.
  79. * Updated pear/net_smtp from 1.11.1 to 1.12.1.
  80. * Updated monolog/monolog from 2.9.2 to 2.9.3.
  81. * Updated symfony/yaml from 5.4.35 to 5.4.39.
  82. * …
  83. ===== Changed development-only external libraries =====
  84. * Upgraded eslint-config-wikimedia from 0.26.0 to 0.27.0.
  85. * Updated seld/jsonlint from 1.10.1 to 1.10.2.
  86. * Updated doctrine/dbal from 3.7.2 to 3.8.4.
  87. * Updated phpunit/phpunit from 9.6.16 to 9.6.19.
  88. * …
  89. ==== Removed external libraries ====
  90. * …
  91. === Bug fixes in 1.43 ===
  92. * …
  93. === Action API changes in 1.43 ===
  94. * APIQueryUserInfo now returns null in the field registrationdate for users
  95. created before December 2005 (their registration date was not recorded).
  96. * …
  97. === Action API internal changes in 1.43 ===
  98. * …
  99. === Languages updated in 1.43 ===
  100. MediaWiki supports over 350 languages. Many localisations are updated regularly.
  101. Below only new and removed languages are listed, as well as changes to languages
  102. because of Phabricator reports.
  103. * (T290657) Added language support for Levantine Arabic (apc).
  104. * (T364291) Added language support for Musi, also known as Palembang (mui).
  105. * …
  106. === Breaking changes in 1.43 ===
  107. * ErrorPageError public properties 'msg' and 'title' may now contain
  108. any MessageSpecifier object, not just Message.
  109. * Reset button functionality suppressReset() and $mShowReset from HTMLForm
  110. was removed without replacement.
  111. * UserGroupMembership::getGroupName(), deprecated in 1.38, and
  112. UserGroupMembership::getGroupMemberName(), deprecated in 1.40, have
  113. been removed.
  114. * SerializedValueContainer::isUnified(), deprecated in 1.42, has been
  115. removed.
  116. * Parser::getFreshParser(), deprecated in 1.39, has been removed.
  117. * ConfigFactory::getDefaultInstance(), deprecated since 1.27, has been
  118. removed.
  119. * IReadableDatabase::getReplicaPos() has been removed without deprecation
  120. as it's not used anywhere.
  121. * ILoadBalancer::laggedReplicaUsed() has been moved to ILoadBalancerForOwner::
  122. effectively making it internal.
  123. * Overriding MWException::getHTML(), ::getText(), ::getPageTitle(), and
  124. ::reportHTML() in order to display custom exception messages is no
  125. longer supported.
  126. * In PageHandlerTestTrait, the newRouter() method was renamed to
  127. newRouterForPageHandler() to avoid a conflict with a method of the same
  128. name in RestTestTrait. Also, PageHandlerTestTrait is no longer marked as
  129. "stable to use". It was marked this way by accident, the functionality it
  130. provides is specific to certain handlers implemented in MediaWiki core.
  131. * TablePager::getBody(), final and deprecated since 1.24, has been removed.
  132. Use ::getBodyOutput() or ::getFullOutput() instead.
  133. * ImportableUploadRevisionImporter::downloadSource(), deprecated in 1.31, is now
  134. private. Its only known external caller was removed in 1.40.
  135. * The following methods in the User class have been removed:
  136. * Deprecated in 1.33:
  137. * User::isBlockedFrom()
  138. * Deprecated in 1.34:
  139. * User::isBlocked()
  140. * Deprecated in 1.35:
  141. * User::addGroup()
  142. * User::getAllGroups()
  143. * User::getGroups()
  144. * User::getGroupMemberships()
  145. * User::getImplicitGroups()
  146. * User::getOption()
  147. * User::removeGroup()
  148. * Deprecated in 1.37:
  149. * User::isBlockedFromCreateAccount()
  150. * BotPassword::invalidateAllPasswordsForCentralId() and
  151. BotPassword::removeAllPasswordsForCentralId(), deprecated in 1.37,
  152. have been removed.
  153. * Title::getBrokenLinksFrom(), deprecated in 1.42, has been removed.
  154. * The $type parameter to Skin::getCopyright(), deprecated in 1.40, has been
  155. removed.
  156. * Skin::footerLink(), deprecated in 1.40, has been removed.
  157. * Skin::getAction(), deprecated in 1.39, has been removed.
  158. * Title::getCdnUrls() and Title::purgeSquid(), deprecated in 1.35, have been
  159. removed.
  160. * Constructing MWHttpRequest objects now requires timeout and connectTimeout to
  161. be set; this was deprecated in 1.35.
  162. * Hooks that were run from SpecialContributions are now run from the parent,
  163. ContributionsSpecialPage. The page passed in is a ContributionsSpecialPage
  164. type, and documentation and type comparisons may need to be updated. Affected
  165. hooks are: ContributionsBeforeMainOutputHook, ContributionsToolLinksHook,
  166. SpecialContributions__getForm__filtersHook.
  167. * Hooks that were run from ContribsPager are now run from the parent,
  168. ContributionsPager. If a pager is passed in, it is a ContributionsPager type,
  169. and documentation and type comparisons may need to be updated. Affected
  170. hooks are: ContribsPager__reallyDoQueryHook, ContribsPager__getQueryInfoHook,
  171. ContributionsLineEndingHook, SpecialContributions__formatRow__flagsHook.
  172. * DatabaseBlock::purgeExpired, deprecated since 1.38, has been removed.
  173. * AbstractBlock::getPermissionsError, deprecated since 1.35, has been removed.
  174. * IDatabase::namedLocksEnqueue() has been removed without deprecation.
  175. * IDatabase::getTopologyBasedServerId() has been removed without deprecation.
  176. Use IDatabase::getServerName() instead.
  177. * WikiPage::doDeleteArticleBatched, hard deprecated since 1.37, has been
  178. removed.
  179. * SpecialEmailUser::submit, deprecated since 1.41, has been removed.
  180. * SpecialEmailUser::validateTarget, deprecated since 1.41, has been removed.
  181. * SpecialEmailUser::getPermissionsError, deprecated since 1.41 has been
  182. removed.
  183. * SpecialBlock::getTargetAndType, deprecated since 1.36, has been removed.
  184. * ApiQueryBlockInfoTrait::addBlockInfoToQuery(), deprecated since 1.42, has been
  185. removed.
  186. * Linker::makeHeadline(), Linker::generateTOC(), Linker::tocIndent(),
  187. Linker::tocUnindent(), Linker::tocLine(), Linker::tocLineEnd(), and
  188. Linker::tocList(), deprecated in 1.42, have been removed.
  189. * Linker::formatComment(), Linker::formatLinksInComment(),
  190. Linker::commentBlock(), and Linker::revComment(), deprecated in 1.38,
  191. have been removed.
  192. * DummyLinker has been removed. The former DummyLinker parameter
  193. to the 'ImageBeforeProduceHTML' hook is now null.
  194. * …
  195. === Deprecations in 1.43 ===
  196. * The methods StatusValue::getErrors() and StatusValue::getErrorsByType(),
  197. as well as Status::getErrorsArray() and Status::getWarningsArray(), have
  198. been deprecated in favor of new method StatusValue::getMessages().
  199. * SearchEngineConfig::getConfig() has been deprecated, use DI with
  200. ServiceOptions to inject the required options.
  201. * Using the "post" source in parameter declarations returned from
  202. Handler::getParamSettings() is deprecated, use "body" instead.
  203. * IMaintainableDatabase::textFieldSize() is now deprecated.
  204. * ISQLPlatform::tableNamesN() is now deprecated.
  205. * The implementation in SQLPlatform of ISQLPlatform::tableNames(), deprecated in
  206. MediaWiki 1.39, now emits deprecation warnings.
  207. * The following methods, previously deprecated, now emit deprecation warnings:
  208. - ContentHandler::getDefaultModelFor(), deprecated since 1.33
  209. - ContentHandler::getAllContentFormats(), deprecated since 1.35
  210. - ContentHandler::getContentModels(), deprecated since 1.35
  211. - ContentHandler::getForContent(), deprecated since 1.35
  212. - ContentHandler::getForModelID(), deprecated since 1.35
  213. - ContentHandler::getContentText(), deprecated since 1.37
  214. * OutputPage::showFatalError() is deprecated, use showErrorPage() instead.
  215. * LoadBalancer::getConnectionRef(), deprecated since 1.39, now emits deprecation
  216. warnings. Use ::getConnection() instead.
  217. * DBAccessObjectUtils::getDBOptions() is deprecated, use
  218. SelectQueryBuilder::recency() instead.
  219. * IDatabase::lockForUpdate is deprecated, use
  220. SelectQueryBuilder::acquireRowLocks instead.
  221. * wfGetUrlUtils() is deprecated; instead, get a UrlUtils from services.
  222. * DerivedPageDataUpdater::getPreparedEdit(), provided for back-compatibility, is
  223. now deprecated; use the getters directly, instead.
  224. * AuthManager::forcePrimaryAuthenticationProviders(), provided for back-
  225. compatibility, is now deprecated.
  226. * WikiPage::hasDifferencesOutsideMainSlot(), provided as a stop-gap before
  227. refactoring to support MCR, is now deprecated.
  228. * ChangesList::getTimestamp() has been deprecated; use ::revDateLink() instead.
  229. * SiteConfig::variants() has been deprecated; use ::variantsFor().
  230. * ObjectCache::$instances and ::getInstance() have been deprecated; instead, use
  231. ObjectCacheFactory::getInstance().
  232. * ApiTestCase::setExpectedApiException() has been deprecated; instead, use
  233. ::expectApiErrorCode() to test error codes instead of messages.
  234. * User::isBlockedGlobally(), deprecated since 1.40, now emits deprecation
  235. warnings.
  236. * User::isBlockedFromEmailuser() and User::canSendEmail(), deprecated since
  237. 1.41, now emit deprecation warnings.
  238. * StatusValue will emit deprecation warnings when an error is given as
  239. a MessageSpecifier combined with a parameters array, which is usually
  240. a mistake, as the parameters have always been ignored.
  241. * In StatusValue::replaceMessage(), ::hasMessage() and ::hasMessagesExcept()
  242. passing MessageSpecifier or MessageValue as $source has been deprecated.
  243. * DatabaseBlock::getQueryInfo() and DatabaseBlock::getRangeCond() are
  244. deprecated and emit deprecation warnings. Use the equivalent methods in
  245. DatabaseBlockStore.
  246. * DatabaseBlockStore::getReadStage() and ::getWriteStage() are deprecated.
  247. Use the new schema unconditionally.
  248. * …
  249. === Other changes in 1.43 ===
  250. * Class aliases to support the old PHPUnit 4 style un-namespaced `PHPUnit_`
  251. classes (such as PHPUnit_Framework_Error) have been removed.
  252. * [Temporary accounts] If $wgAutoCreateTempUser is enabled, then MediaWiki
  253. will create a temporary account and log the user in for unsuccessful edit
  254. attempts and null edits, in addition to edits that change content. This is
  255. a change from the previous paradigm, where temporary accounts were created
  256. only for successful edits. This change is done to support better logging
  257. support and moderation, to ensure that hooks run in a pre-save context have
  258. a user object to associate log entries and other actions with.
  259. * Several entries have been removed from the default list of interwikis used
  260. when installing new wikis. This does not affect existing wikis.
  261. * User auto-creations are now performed as the target user instead of
  262. anonymous IP user.
  263. * …
  264. == Compatibility ==
  265. MediaWiki 1.43 requires PHP 8.1.0 or later and the following PHP extensions:
  266. * ctype
  267. * dom
  268. * fileinfo
  269. * iconv
  270. * intl
  271. * json
  272. * mbstring
  273. * openssl
  274. * xml
  275. MariaDB is the recommended database software. MySQL, PostgreSQL, or SQLite can
  276. be used instead, but support for them is somewhat less mature.
  277. The supported versions are:
  278. * MariaDB 10.3 or higher
  279. * MySQL 5.7.0 or higher
  280. * PostgreSQL 10 or later
  281. * SQLite 3.8.0 or later
  282. == Online documentation ==
  283. Documentation for both end-users and site administrators is available on
  284. MediaWiki.org, and is covered under the GNU Free Documentation License (except
  285. for pages that explicitly state that their contents are in the public domain):
  286. <https://www.mediawiki.org/wiki/Special:MyLanguage/Documentation>
  287. == Mailing list ==
  288. A mailing list is available for MediaWiki user support and discussion:
  289. <https://lists.wikimedia.org/postorius/lists/mediawiki-l.lists.wikimedia.org/>
  290. A low-traffic announcements-only list is also available:
  291. <https://lists.wikimedia.org/postorius/lists/mediawiki-announce.lists.wikimedia.org/>
  292. It's highly recommended that you sign up for one of these lists if you're
  293. going to run a public MediaWiki, so you can be notified of security fixes.
  294. == IRC help ==
  295. There's usually someone online in #mediawiki on irc.libera.chat.