ApiQueryRevisions: Fix error message key
[lhc/web/wiklou.git] / RELEASE-NOTES-1.34
1 = MediaWiki 1.34 =
2
3 == MediaWiki 1.34.0-PRERELEASE ==
4
5 THIS IS NOT A RELEASE YET
6
7 MediaWiki 1.34 is an alpha-quality development branch, and is not recommended
8 for use in production.
9
10 == Upgrading notes for 1.34 ==
11 1.34 has several database changes since 1.33, and will not work without schema
12 updates. Note that due to changes to some very large tables like the revision
13 table, the schema update may take quite long (minutes on a medium sized site,
14 many hours on a large site).
15
16 Don't forget to always back up your database before upgrading!
17
18 See the file UPGRADE for more detailed upgrade instructions, including
19 important information when upgrading from versions prior to 1.11.
20
21 Some specific notes for MediaWiki 1.34 upgrades are below:
22
23 * …
24
25 For notes on 1.33.x and older releases, see HISTORY.
26
27 === Configuration changes for system administrators in 1.34 ===
28
29 ==== New configuration ====
30 * $wgAllowExternalReqID (T201409) - This configuration setting controls whether
31 Mediawiki accepts the request ID set by the incoming request via the
32 `X-Request-Id` header. If set to `true`, that value will be used throughout
33 the code as the request identificator. Otherwise, the sent header will be
34 ignored and the request ID will either be taken from Apache's mod_unique
35 module or will be generated by Mediawiki itself (depending on the set-up).
36
37 ==== Changed configuration ====
38 * …
39
40 ==== Removed configuration ====
41 * $wgWikiDiff2MovedParagraphDetectionCutoff — If you still want a custom change
42 size threshold, please specify in php.ini, using the configuration variable
43 wikidiff2.moved_paragraph_detection_cutoff.
44
45 === New user-facing features in 1.34 ===
46 * …
47
48 === New developer features in 1.34 ===
49 * Language::formatTimePeriod now supports the new 'avoidhours' option to output
50 strings like "5 days ago" instead of "5 days 13 hours ago".
51
52 === External library changes in 1.34 ===
53
54 ==== New external libraries ====
55 * …
56
57 ==== Changed external libraries ====
58 * Updated Mustache from 1.0.0 to v3.0.1.
59 * Updated OOUI from v0.31.3 to v0.31.5.
60 * Updated composer/semver from 1.4.2 to 1.5.0.
61 * Updated composer/spdx-licenses from 1.4.0 to 1.5.1 (dev-only).
62 * Updated mediawiki/codesniffer from 25.0.0 to 26.0.0 (dev-only).
63 * Updated cssjanus/cssjanus from 1.2.1 to 1.3.0.
64 * Updated wikimedia/at-ease from 1.2.0 to 2.0.0.
65 * …
66
67 ==== Removed external libraries ====
68 * The jquery.async module, deprecated in 1.33, was removed.
69 * …
70
71 === Bug fixes in 1.34 ===
72 * (T222529) If a log entry or page revision is recorded in the database with an
73 empty username, attempting to display it will log an error and return a "no
74 username available" to the user instead of silently displaying nothing or
75 invalid links.
76
77 === Action API changes in 1.34 ===
78 * The 'recenteditcount' response property from action=query list=allusers,
79 deprecated in 1.25, has been removed.
80
81 === Action API internal changes in 1.34 ===
82 * …
83
84 === Languages updated in 1.34 ===
85 MediaWiki supports over 350 languages. Many localisations are updated regularly.
86 Below only new and removed languages are listed, as well as changes to languages
87 because of Phabricator reports.
88
89 * (T152908) Added language support for N'Ko (nqo).
90
91 === Breaking changes in 1.34 ===
92 * The global functions wfSuppressWarnings and wfRestoreWarnings, deprecated in
93 1.26, have been removed. Use Wikimedia\AtEase\AtEase::suppressWarnings() and
94 Wikimedia\AtEase\AtEase::restoreWarnings() directly.
95 * Preferences class, deprecated in 1.31, has been removed.
96 * The following parts of code, deprecated in 1.32, were removed in favor of
97 built-in PHP functions:
98 * CryptRand class
99 * CryptRand service
100 * Functions of the MWCryptRand class: singleton(), wasStrong() and generate().
101 * Language::setCode, deprecated in 1.32, was removed. Use Language::factory to
102 create a new Language object with a different language code.
103 * MWNamespace::clearCaches() has been removed. So has the $rebuild parameter
104 to MWNamespace::getCanonicalNamespaces(), which was deprecated since 1.31.
105 Instead, reset services, such as by calling $this->overrideMwServices() (if
106 your test extends MediaWikiTestCase). Services will generally not pick up
107 configuration changes from after they were created, so you must reset
108 services after any configuration change. Even if your code works now, it is
109 likely to break in future versions as more code is moved to services.
110 * The ill-defined "DatabaseOraclePostInit" hook has been removed.
111 * PreferencesFormLegacy and PreferencesForm classes, deprecated in 1.32, have
112 been removed.
113 * ObjectFactory class, deprecated in 1.31, has been removed.
114 * HWLDFWordAccumudlator class, deprecated in 1.28, has been removed.
115 * XMPInfo, XMPReader and XMPValidate, deprecated in 1.32, have been removed.
116 * The RedirectSpecialPage::execute method could sometimes return a Title object.
117 This behavior was removed, and the method now matches the parent signature
118 (SpecialPage::execute) which is to return HTML string or void.
119 To obtain the destination title, use RedirectSpecialPage::getRedirect.
120 * The 'recenteditcount' response property from action API action=query
121 list=allusers, deprecated in 1.25, has been removed.
122 * SearchEngine::userNamespaces(), SearchEngine::namespacesAsText(),
123 SearchEngine::create(), SearchEngine::getSearchTypes() and
124 SearchEngine::getNearMatch(), methods deprecated in 1.27, have been removed.
125 * FileRepo::streamFile(), deprecated in 1.26, has been removed.
126 * User::randomPassword() method, deprecated in 1.27, have been removed.
127 * MWNamespace::canTalk(), deprecated in 1.30, have been removed.
128 * Parser class property $mUniqPrefix, deprecated in 1.26, has been removed.
129 * wfArrayFilter() and wfArrayFilterByKey(), deprecated in 1.32, have been
130 removed.
131 * wfMakeUrlIndexes() function, deprecated in 1.33, have been removed.
132 * Method signatures in WatchedItemQueryServiceExtension have changed from taking
133 User objects to taking UserIdentity objects. Extensions implementing this
134 interface need to be changed accordingly.
135 * User::getGroupPage() and ::makeGroupLinkHTML(), deprecated in 1.29, have been
136 removed. Use UserGroupMembership::getGroupPage and ::getLink instead.
137 * User::makeGroupLinkWiki(), deprecated in 1.29, has been removed. Use
138 UserGroupMembership::getLink() instead.
139 * SavepointPostgres, deprecated in 1.31, has been removed.
140 * Output::sectionEditLinksEnabled(), ParserOutput::getEditSectionTokens,
141 ::getTOCEnabled, ::setEditSectionTokens, ::setTOCEnabled, deprecated in 1.31,
142 have been removed.
143 * EditPage::safeUnicodeInput() and ::safeUnicodeOutput(), deprecated in 1.30,
144 have been removed.
145 * Four methods in OutputPage, deprecated in 1.32, have been removed. You should
146 use OutputPage::showFatalError or throw a FatalError instead. The methods are
147 ::showFileCopyError(), ::showFileRenameError(), ::showFileDeleteError(), and
148 ::showFileNotFoundError().
149 * ApiBase::truncateArray(), deprecated in 1.32, has been removed.
150 * IcuCollation::getICUVersion(), deprecated in 1.32, has been removed. Use PHP's
151 INTL_ICU_VERSION constant directly.
152 * HTMLForm::setSubmitProgressive(), deprecated in 1.32, has been removed.
153 * ResourceLoaderStartUpModules::getStartupModules() and ::getLegacyModules(),
154 both deprecated in 1.32, have been removed.
155 * BaseTemplate::msgHtml() and QuickTemplate::msgHtml(), deprecated in 1.32, have
156 been removed. Use ->msg() or ->getMsg() instead.
157 * WatchAction::getUnwatchToken(), deprecated in 1.32, has been removed. Instead,
158 use WatchAction::getWatchToken() with action 'unwatch' directly.
159 * Language::initEncoding(), ::recodeForEdit(), and recodeInput(), deprecated in
160 1.28, have been removed.
161 * PageArchive::getTextFromRow(), ::listAllPages(), and ::getLastRevisionText(),
162 deprecated in 1.32, have been removed.
163 * OutputPage::getModuleScripts(), ParserOutput::getModuleScripts(), deprecated
164 in 1.33, have been removed.
165 * User::getPasswordValidity(), deprecated in 1.33, has been removed.
166 * ApiQueryBase::prepareUrlQuerySearchString(), deprecated in 1.33, has been
167 removed.
168 * ChangeTags::purgeTagUsageCache(), deprecated in 1.33, has been removed.
169 * JobQueueGroup::pushLazyJobs(), deprecated in 1.33, has been removed.
170 * MediaWikiTestCase::stashMwGlobals(), deprecated in 1.32, has been removed.
171 * SearchEngine::transformSearchTerm(), deprecated in 1.32, has been removed.
172 * The Block typehint only refers to blocks stored in the database. It should be
173 updated to AbstractBlock in cases where any type of block could be expected.
174 * FileRepoStatus, deprecated in 1.25, has been removed.
175 * The LegacyHookPreAuthenticationProvider class, deprecated since its creation
176 in 1.27, has been removed.
177 * IP::isValidBlock(), deprecated in 1.30, has been removed.
178 * WikiPage::prepareContentForEdit now doesn't accept an integer for $revision,
179 was deprecated in 1.25.
180 * …
181
182 === Deprecations in 1.34 ===
183 * The MWNamespace class is deprecated. Use NamespaceInfo.
184 * ExtensionRegistry->load() is deprecated, as it breaks dependency checking.
185 Instead, use ->queue().
186 * User::isBlocked() is deprecated since it does not tell you if the user is
187 blocked from editing a particular page. Use User::getBlock() or
188 PermissionManager::isBlockedFrom() or PermissionManager::userCan() instead.
189 * User::isLocallyBlockedProxy and User::inDnsBlacklist are deprecated and moved
190 to the BlockManager as private helper methods.
191 * User::isDnsBlacklisted is deprecated. Use BlockManager::isDnsBlacklisted
192 instead.
193 * The Config argument to ChangesListSpecialPage::checkStructuredFilterUiEnabled
194 is deprecated. Pass only the User argument.
195 * WatchedItem::getUser is deprecated. Use getUserIdentity.
196 * Passing a Title as the first parameter to the getTimestampById method of
197 RevisionStore is deprecated. Omit it, passing only the remaining parameters.
198 * Title::getPreviousRevisionId and Title::getNextRevisionId are deprecated. Use
199 RevisionLookup::getPreviousRevision and RevisionLookup::getNextRevision.
200 * The Title parameter to RevisionLookup::getPreviousRevision and
201 RevisionLookup::getNextRevision is deprecated and should be omitted.
202 * MWHttpRequest::factory is deprecated. Use HttpRequestFactory.
203 * The Http class is deprecated. For the request, get, and post methods, use
204 HttpRequestFactory. For isValidURI, use MWHttpRequest::isValidURI. For
205 getProxy, use (string)$wgHTTPProxy. For createMultiClient, construct a
206 MultiHttpClient directly.
207 * Http::$httpEngine is deprecated and has no replacement. The default 'guzzle'
208 engine will eventually be made the only engine for HTTP requests.
209 * RepoGroup::singleton(), RepoGroup::destroySingleton(),
210 RepoGroup::setSingleton(), wfFindFile(), and wfLocalFile() are all
211 deprecated. Use MediaWikiServices instead.
212 * The getSubjectPage, getTalkPage, and getOtherPage of Title are deprecated.
213 Use NamespaceInfo's getSubjectPage, getTalkPage, and getAssociatedPage.
214 * MWMessagePack class, no longer used, has been deprecated in 1.34.
215 * The Block class is separated into Block (for blocks stored in the database),
216 and SystemBlock (for temporary blocks created by the system). SystemBlock
217 should be used when creating any temporary blocks.
218 * Parser::$mConf is deprecated. It will be removed entirely in a later version.
219 * Constructing Parser directly is deprecated. Obtain one from ParserFactory.
220
221 === Other changes in 1.34 ===
222 * …
223
224 == Compatibility ==
225 MediaWiki 1.34 requires PHP 7.0.13 or later. Although HHVM 3.18.5 or later is
226 supported, it is generally advised to use PHP 7.0.13 or later for long term
227 support.
228
229 MySQL/MariaDB is the recommended DBMS. PostgreSQL or SQLite can also be used,
230 but support for them is somewhat less mature. There is experimental support for
231 Oracle and Microsoft SQL Server.
232
233 The supported versions are:
234
235 * MySQL 5.5.8 or later
236 * PostgreSQL 9.2 or later
237 * SQLite 3.8.0 or later
238 * Oracle 9.0.1 or later
239 * Microsoft SQL Server 2005 (9.00.1399)
240
241 == Online documentation ==
242 Documentation for both end-users and site administrators is available on
243 MediaWiki.org, and is covered under the GNU Free Documentation License (except
244 for pages that explicitly state that their contents are in the public domain):
245
246 https://www.mediawiki.org/wiki/Special:MyLanguage/Documentation
247
248 == Mailing list ==
249 A mailing list is available for MediaWiki user support and discussion:
250
251 https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
252
253 A low-traffic announcements-only list is also available:
254
255 https://lists.wikimedia.org/mailman/listinfo/mediawiki-announce
256
257 It's highly recommended that you sign up for one of these lists if you're
258 going to run a public MediaWiki, so you can be notified of security fixes.
259
260 == IRC help ==
261 There's usually someone online in #mediawiki on irc.freenode.net.