wiki.techinc.nl/RELEASE-NOTES-1.38

358 lines
15 KiB
Text
Raw Normal View History

= MediaWiki 1.38 =
== MediaWiki 1.38.0-PRERELEASE ==
THIS IS NOT A RELEASE YET
MediaWiki 1.38 is an alpha-quality development branch, and is not recommended
for use in production.
== Upgrading notes for 1.38 ==
Don't forget to always back up your database before upgrading!
See the file UPGRADE for more detailed per-version upgrade instructions from the
oldest supported upgrading version, MediaWiki 1.29.
Some specific notes for MediaWiki 1.38 upgrades are below:
* …
For notes on 1.36.x and older releases, see HISTORY.
=== Configuration changes for system administrators in 1.38 ===
* …
==== New configuration ====
* $wgBrowserFormatDetection This setting allows overriding browsers' automatic
detection and handling of formats. It's initially used to prevent auto-linking
of possible telephone numbers in wiki pages' output in Safari on iOS; this can
be re-enabled if you wish, or locally extended for other browsers' quirks.
* …
==== Changed configuration ====
* $wgMaxImageArea - This setting may now be set to false to disable size
checking before scaling. Extensions can still override its value by
using the BitmapHandlerCheckImageArea hook.
* …
==== Removed configuration ====
* $wgShellLocale - This setting has been removed as it was a flawed solution
to the problem of locale dependence, MediaWiki will now always set a locale
of C.UTF-8 or C and works around the remaining problems of the C locale by
not using escapeshellarg. This follows the direction of PHP 8.0, which sets
a locale of C by default instead of respecting LC_CTYPE.
* $wgLoggedOutMaxAge - Experiment removed, originally added in 1.35. (T293848)
* $wgIncludejQueryMigrate - Deprecated in 1.36. We only support jQuery v3.
* …
=== New user-facing features in 1.38 ===
* …
=== New developer features in 1.38 ===
* Added a deleteUserEmail maintenance script - This file enables the deletion
of a given user's associated email address. It can be helpful for
privacy-preserving operations.
* …
=== External library changes in 1.38 ===
* …
==== New external libraries ====
* Added vue-composition-api 1.2.2
===== New development-only external libraries =====
* …
==== Changed external libraries ====
* Updated OOUI from v0.42.0 to v0.42.1
* Updated WVUI from v0.3.0 to v0.3.2
* Updated wikimedia/parsoid from v0.14.0-a14 to v0.15.0-a1.
* Updated wikimedia/purtle from 1.0.7 to 1.0.8.
* Updated wikimedia/shellbox from 2.0.0 to 3.0.0.
* Updated pear/mail_mime from 1.10.9 to 1.10.11.
* Updated pear/net_smtp from 1.9.2 to 1.10.0.
* Updated psr/log from 1.1.3 to 1.1.4.
* Updated wikimedia/wrappedstring from 3.2.0 to 4.0.1.
* …
===== Changed development-only external libraries =====
* Updated doctrine/dbal for PHP < 7.3 from 2.10.4 to 2.13.3.
* Updated doctrine/dbal for PHP >= 7.3 from 3.0.0 to 3.1.2.
* Updated composer/spdx-licenses from 1.5.4 to 1.5.5.
* Updated composer/semver from 3.5.4 to 3.5.5.
* …
==== Removed external libraries ====
* …
=== Bug fixes in 1.38 ===
* …
=== Action API changes in 1.38 ===
* …
=== Action API internal changes in 1.38 ===
* …
=== Languages updated in 1.38 ===
MediaWiki supports over 400 languages. Many localisations are updated regularly.
Below only new and removed languages are listed, as well as changes to languages
because of Phabricator reports.
* (T292166) Updated namespace names for the Lombard language.
* (T291899) Added language support for Xiang Chinese (hsn).
* (T292612) Added language support for S'gaw Karen (ksw).
* (T293656) Added language support for Farefare (gur).
=== Breaking changes in 1.38 ===
* (T291008) The IP class, deprecated since 1.35 in favor of the IPUtils library,
has been removed. The IP related regexes which were also deprecated in favor
of the IPUtils library were also removed, IPUtils::RE_* should be used
instead.
* LinkCache::singleton(), deprecated since 1.28, has been removed.
* RepoGroup::singleton(), ::destroySingletons() and setSingleton(), all
deprecated since 1.34, have been removed.
* The following methods from FileDeleteForm were removed:
- ::__construct (the class is no longer newable)
- ::execute()
- ::haveDeletableFile()
Use FileDeleteAction instead.
* MessageCache::singleton(), deprecated since 1.34, has been removed.
* LockManagerGroup::singleton() and ::destroySingletons(), both deprecated since
1.34, have been removed.
* FileBackendGroup::singleton() and ::destroySingletons(), both deprecated since
1.35, have been removed.
* TemplateParser used to support disabling the cache with a boolean parameter
in its constructor. This was deprecated in 1.35 and has now been removed.
* The ArticleUndeleteLogEntry hook, deprecated in 1.37, was removed.
* The BeforeResetNotificationTimestamp hook, deprecated in 1.37, was removed.
* The global function mimeTypeMatch() has been removed without a deprecation
process.
* The following JavaScript mw.config keys have been removed:
- $wgCookiePrefix
- $wgCookieDomain
- $wgCookiePath
- $wgCookieExpiration
Use mw.cookie from the mediawiki.cookie module instead.
* The signature of PageUpdater::markAsRevert method was changed. It has never
been used outside of MediaWiki core.
* If you want to use interwiki titles with HTMLTitleTextField, you now need
to pass 'interwiki' => true. In 1.37, the default behavior was to let
interwiki title through by default, logging a deprecation warning.
* The `UndeleteForm::undelete` hook, deprecated in 1.37, was removed.
* BagOStuff::setDebug(), deprecated since 1.36, has been removed.
* The `jquery.mw-jump` ResourceLoader module was removed.
* The `wgForeignUploadTargets` and `wgEnableUploads` configuration values were
removed from mw.config. They had previously been documented as being included
for internal use by the mediawiki.ForeignUpload module.
* Several Skin methods, which have emitted deprecation warnings since 1.36, have
been removed. These include:
- Skin::privacyLink()
- Skin::aboutLink()
- Skin::disclaimerLink()
For these, instead use Skin::footerLink() to alter footer links.
- Skin::getLogo()
For this, use ResourceLoaderSkinModule::getAvailableLogos() instead.
- Skin::getIndicatorsHTML()
For this, use Skin::getIndicatorsData() instead.
- Skin::subPageSubtitle()
For this, use Skin::prepareSubtitle() instead.
- Skin::makeVariablesScript()
For this, use ResourceLoader::makeInlineScript() instead.
- Skin::getAllowedSkins()
- Skin::getSkinNames()
For these, use SkinFactory::getAllowedSkins() or ::getInstalledSkins().
- Skin::makeUrl()
- Skin::getSearchLink()
- Skin::mainPageLink()
For these, use Skin::getSearchPageTitle() instead.
* Parser::getUser and ::mUser, as well as ParserOptions::getUser, deprecated
since 1.37, has been removed.
Make Parser::$mStripState private This property was deprecated in 1.35. The replacement function Parser::getStripState() was introduced in MediaWiki 1.34. Code search: https://codesearch.wmcloud.org/search/?q=-%3EmStripState&i=nope&files=&excludeFiles=&repos= Depends-On clauses below are for WMF-deployed code. Other uses in non-WMF-deployed code have been patched in: * https://github.com/SemanticMediaWiki/SemanticMediaWiki/pull/4936 * Idc2fadf5105d6eb30777a16dff0035bceff17174 (BlueSpiceSocial) * I130fd61a8fe2d28e6b116a3fcc767b8abd466cea (ContributionScores) * I3676fe9882ce9de5732cb7230528134df544ff98 (HierarchyBuilder) * Ic392afd1e93ae0003fd0ab65114ec1ff38bb2927 (Mpdf) * I4b01017da752def982777c4fea5fad5e21e4c7ea (MsLinks) * I09726078ee62eb99e032b8faa5f938e20107f48c (Negref) * Ibfd6b7064a8e650c3492e0d2764d4f7afc4937bf (PageForms) * Ia865435688d36178508f21cffae79538c919035c (PageInCat) * Ib94db0e6d365e4cb3f51121340a04d31b88add62 (ParserFun) * I8660c0691b7e9842106d7dcb224ff5ecf374e4bc (PhpTags) * I1ad5f78e5a937767123400ceca4967941e256e5e (RandomImageByCategory) * I4539e7cea597f71b2a2d9a6cae137bc25085ed6b (ReplaceSet) * If8ff2e21952b3f08d3a8950d42e2afb56973fb89 (SemanticDrilldown) * I4a5bd64760cdde5b614a7d4e2b09e8d0634b2056 (SemanticPageSeries) * Ia04f1aac1d8ae4ea16c98cfbbe72195fffe653b6 (SemanticRating) * Id2a2e2d024922e3babf756ebae1a4f59b4358146 (Spark) * I4a979024b18ec4834dc06b51ee0f018d749c6dab (Tooltip) * Iaf179914863998b32bfecc16c874c3cffd6c26e9 (VIKI) * I2de0e7a6c133c2e1f3cb7502a81d809c4489db4c (XSL) * https://gitlab.com/hydrawiki/extensions/characterescapes/-/merge_requests/1 (characterescapes) * https://github.com/JeroenDeDauw/Validator/pull/38 (Validator) * https://github.com/lingua-libre/CustomSubtitle/pull/3 (CustomSubtitle) * https://github.com/mkroetzsch/AutoCreatePage/pull/12 (AutoCreatePage) * https://gitlab.com/nonsensopedia/extensions/advancedbacklinks/-/merge_requests/95 (advancedbacklinks) * https://github.com/vonloxley/Shariff-Mediawiki/pull/16 (Shariff-Mediawiki) Bug: T275160 Depends-On: I062ac8b69756a7ad35d8cc744b4735fd2e70f13e Depends-On: Ic4be2bad176f2c59a1104219be10045cd5929261 Depends-On: I3cb117a91c8c57331b6b513f64ddb68d6ae2758c Depends-On: I67b5926f2f851b3dc709d044eec5dd3df5065482 Depends-On: I7806068e1cd6e4da66adfe7bb75095d4bfb5d6bc Depends-On: I429da35ca4e276c852b8d6ee102ff19f742c22c0 Change-Id: I4af85a46cfcafba15aa5ee50fda9f7b04681d6e6
2021-02-19 22:01:19 +00:00
* Parser::$mStripState, deprecated in 1.35, has been made private. Use
Parser::getStripState() instead.
* The following deprecated features in blocks were removed:
- DatabaseBlock constructor 'byText' property with blocker's name, use 'by'
property with UserIdentity value instead.
- DatabaseBlock constructor 'by' property with blocker's ID, use 'by' property
with UserIdentity value instead.
- DatabaseBlock::isWhitelistedFromAutoblocks, use ::isExemptedFromAutoblocks.
- DatabaseBlock::setBlocker now only accepts UserIdentity.
- AbstractBlock::getTargetAndType and ::getTarget, use ::getTargetName,
::getTargetUserIdentity and ::getType instead
* The following functions, emitting deprecations since 1.37, have been removed:
- Title::isWatchable()
- WatchAction::doWatchOrUnwatch(), WatchAction::doWatch(),
WatchAction::doUnwatch(), WatchAction::getWatchToken()
- User::isWatched(), User::isTempWatched(), User::addWatch(),
User::removeWatch()
* ParserOptions::setTidy() that had no effect and was deprecated since 1.35
has been removed.
* The constant ApiBase::PARAM_VALUE_LINKS, deprecated since 1.35 has been
removed.
* UserLoadOptions, UserSaveOptions and UserResetAllOptions hooks, deprecated
since 1.37, were removed.
* The experimental FileJournal system has been removed without deprecation. This
includes the FileJournal abstract class, its implementation classes
DBFileJournal and NullFileJournal, various minor getters and setters, and
the option for the wiki configuration $wgFileBackends.
[BREAKING] Change cleanup API of checkboxHack Before this commit, each bind function would return an object containing a reference to the function used in the event listener creation with the intention that this could later be used to cleanup the event listeners. This is problematic for the following reasons: * In order to cleanup the event listener, it forces the client to know which element the event listener was added to (button, checkbox, document, window, etc.),. the event type that was used ('click', 'focusin', etc), and whether or not the "useCapture" param was also used. The `removeEventListener` API won't remove the correct event listener unless these three pieces of info are known by the client [1]. * Because the above point is tricky to get right, numerous potential memory leaks were possible with the `unbind` function as the `useCapture` param wasn't being passed in some cases. This commit aims to simplify the cleanup API by returning an anonymous function in each bind function that the client can call to cleanup the relevant event listeners without knowing any of the implementation details. This also makes the `unbind` function unnecessary. ** This is a breaking change to the checkboxHack API ** but because there aren't any known clients of the return values [2], a formal deprecation process was assumed to be unnecessary. Note gadgets should not be using the internal function mw.loader.require so these were not considered. [1] https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/removeEventListener#matching_event_listeners_for_removal [2] https://codesearch.wmcloud.org/search/?q=checkboxHack&i=nope&files=&excludeFiles=&repos= Bug: T291096 Change-Id: Ia2d79f27dd81fdc74a44829da3ca472f4c01d4b5
2021-10-22 16:49:56 +00:00
* The return values for each `bind` function in checkboxHack.js has been changed
from an object to a function. In addition, the `unbind` function has been
removed. A deprecation process was assumed unnecessary as there were no known
usages.
* File::getUser, ::getImageSize, ArchivedFile::getRawDescription, ::getUser,
::getRawUser and ::getRawDescription, deprecated since 1.37, has been removed.
* ShellboxHttpClient class has been removed without deprecation. It was an
internal class used by ShellboxClientFactory.
* The following User methods, deprecated in 1.37, have been removed:
- ::resetIdByNameCache,
- ::getStubThreshold,
- ::matchEditTokenNoSuffix,
- ::changeableByGroup,
- ::changeableGroups,
- ::isAllowUsertalk
* Http::$httpEngine, deprecated since 1.34, has been removed. The only available
HTTP engine is now Guzzle. CurlHttpRequest and PhpHttpRequest classes were
removed.
* Parser option enableLimitReport was deprecated. The report is now generated
post-parse and can be included by providing 'includeLimitReport' option
to ParserOutput::getText. Thus, ParserOptions::enableLimitReport and
::getEnableLimitReport methods were deprecated.
* …
=== Deprecations in 1.38 ===
* The MWGrants class is deprecated in favor of the new GrantsInfo and
GrantsLocalization services.
* The global functions wfReadOnly() and wfReadOnlyReason() have been
deprecated in favor of the ReadOnlyMode service.
* PageProps::getInstance() has been deprecated. Use
MediaWikiServices::getPageProps() instead.
* User::setOption(), deprecated since 1.35, now emits deprecation warnings.
Introduce CommentFormatter CommentParser: * Move comment formatting backend from Linker to a CommentParser service. Allow link existence and file existence to be batched. * Rename $local to $samePage since I think that is clearer. * Rename $title to $selfLinkTarget since it was unclear what the title was used for. * Rename the "autocomment" concept to "section link" in public interfaces, although the old term remains in CSS classes. * Keep unsafe HTML pass-through in separate "unsafe" methods, for easier static analysis and code review. CommentFormatter: * Add CommentFormatter and RowCommentFormatter services as a usable frontend for comment batches, and to replace the Linker static methods. * Provide fluent and parametric interfaces. Linker: * Remove Linker::makeCommentLink() without deprecation -- nothing calls it and it is obviously an internal helper. * Soft-deprecate Linker methods formatComment(), formatLinksInComment(), commentBlock() and revComment(). Caller migration: * CommentFormatter single: Linker, RollbackAction, ApiComparePages, ApiParse * CommentFormatter parametric batch: ImageHistoryPseudoPager * CommentFormatter fluent batch: ApiQueryFilearchive * RowCommentFormatter sequential: History feed, BlocklistPager, ProtectedPagesPager, ApiQueryProtectedTitles * RowCommentFormatter with index: ChangesFeed, ChangesList, ApiQueryDeletedrevs, ApiQueryLogEvents, ApiQueryRecentChanges * RevisionCommentBatch: HistoryPager, ContribsPager Bug: T285917 Change-Id: Ia3fd50a4a13138ba5003d884962da24746d562d0
2021-07-01 06:55:03 +00:00
* Linker::formatComment(), ::formatLinksInComment(), ::commentBlock() and
revComment() were deprecated. Use the new CommentFormatter service.
* Skin::getSkinStylePath now triggers deprecation warnings. Direct string path
should be used instead.
* DatabaseBlock::purgeExpired(), deprecated since 1.36, now emits
deprecation warnings.
* SkinTemplate::getPersonalToolsList(), deprecated since 1.35, now emits
deprecation warnings.
* The following methods from the User class now trigger deprecation warnings:
- ::blockedBy
- ::getBlockId
* Content::getParserOutput and AbstractContent::fillParserOutput
was hard-deprecated, use ContentRenderer::getParserOutput instead.
Extensions defining a content model should
override ContentHandler::fillParserOutput.
* Article::doDelete() was deprecated. Use WikiPage::doDeleteArticleReal if
you only need to delete the article. If you also need things to happen
with OutputPage, you may want to check the hooks in DeleteAction instead.
* Instantiating the MessageContent class now emits deprecation notices.
* Message::content() now triggers deprecation warnings.
* The following methods from the ParserOutput class now emit deprecation
warnings:
- ::hideNewSection() - use ::setHideNewSection()
- ::preventClickjacking() - use ::{get,set}PreventClickjacking()
- ::getProperty() - use ::getPageProperty()
- ::setProperty() - use ::setPageProperty()
- ::unsetProperty() - use ::unsetPageProperties()
- ::getProperties() - use ::getPageProperties()
- ::getCategoryLinks() - use ::getCategoryNames()
- ::setCategoryLinks() - use ::setCategories()
- ::addTrackingCategory() - use Parser::addTrackingCategory()
or TrackingCategories::addTrackingCategory()
- ::addWarning() - use ::addWarningMsg()
* The following methods from the ParserOutput class were deprecated:
- ::getFlag() - use ::getOutputFlag()
- ::setFlag() - use ::setOutputFlag()
- ::getAllFlags() - this method is now marked @internal
* The following methods were deprecated; use ::setPreventClickjacking(..)
instead:
- OutputPage::preventClickjacking()
- OutputPage::allowClickjacking()
- ImageHistoryList::preventClickjacking()
- ImageHistoryPseudoPager::preventClickjacking()
- ContribsPager::preventClickjacking()
* Collation::singleton() and ::factory() now trigger deprecation warnings.
* The following methods in MWNamespace, all deprecated since 1.34, now emit
deprecation warnings:
- isTalk()
- exists()
- subjectEquals()
- getCanonicalNamespaces()
- getCanonicalName()
- getCanonicalIndex()
- getValidNamespaces()
- isContent()
- hasSubpages()
- getContentNamespaces()
* Return values in the parameter $pageLang of the hook PageContentLanguage
with other types than a Language object, deprecated since 1.33, now emmits
deprecation warnings.
* All external access to ParserOutput and CacheTime classes properties will now
emit deprecation warnings. Use getters and setters instead.
* The PageArchive class has had several methods deprecated. The replacements
are as follows:
- Use UndeletePage instead of ::undeleteAsUser(), ::getFileStatus() and
::getRevisionStatus().
- Use the respective methods of the new ArchivedRevisionLookup service
instead of ::listRevisions, ::getRevisionRecordByTimestamp,
::getArchivedRevisionRecord, ::getPreviousRevisionRecord and
::getLastRevisionId.
- Use ArchivedRevisionLookup::hasArchivedRevisions instead of ::isDeleted.
* LinkCache::addGoodLinkObj() has been hard deprecated.
* …
=== Other changes in 1.38 ===
* The following things were changed in the file deletion form:
- The name and ID of the submit button are now `wpConfirmB`, not
`mw-filedelete-submit`
- The ID of the form is now `deleteconfirm`, not `mw-img-deleteconfirm`
- The `mw-filedelete-editreasons` class was replaced with
`mw-delete-editreasons`
The goal of these changes is to make the HTML more similar to that of
normal page deletion.
* ParserOptions created with ::newFrom* or ::newCanonical are now identical.
* …
== Compatibility ==
MediaWiki 1.38 requires PHP 7.3.19 or later and the following PHP extensions:
* ctype
* dom
* fileinfo
* iconv
* intl
* json
* mbstring
* xml
MySQL/MariaDB is the recommended DBMS. PostgreSQL or SQLite can also be used,
but support for them is somewhat less mature.
The supported versions are:
* MySQL 5.5.8 or later
* PostgreSQL 9.4 or later
* SQLite 3.8.0 or later
== Online documentation ==
Documentation for both end-users and site administrators is available on
MediaWiki.org, and is covered under the GNU Free Documentation License (except
for pages that explicitly state that their contents are in the public domain):
https://www.mediawiki.org/wiki/Special:MyLanguage/Documentation
== Mailing list ==
A mailing list is available for MediaWiki user support and discussion:
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
A low-traffic announcements-only list is also available:
https://lists.wikimedia.org/mailman/listinfo/mediawiki-announce
It's highly recommended that you sign up for one of these lists if you're
going to run a public MediaWiki, so you can be notified of security fixes.
== IRC help ==
There's usually someone online in #mediawiki on irc.libera.chat.