18114f2559f89ddd35fe8b25499dae271e4e458b
[lhc/web/wiklou.git] / RELEASE-NOTES-1.31
1 == MediaWiki 1.31 ==
2
3 THIS IS NOT A RELEASE YET
4
5 MediaWiki 1.31 is an alpha-quality branch and is not recommended for use in
6 production.
7
8 === Configuration changes in 1.31 ===
9 * $wgEnableAPI and $wgEnableWriteAPI are now deprecated and will be removed in
10 a future version. The API is now considered to be stable, secure and
11 essential.
12 * $wgUsejQueryThree was removed, as it is now the default. This was documented as a
13 temporary variable during the migration period, deprecated since 1.29.
14 * $wgLogoHD has been updated to support svg images and uses $wgLogo where
15 possible for fallback images such as png.
16 * (T44246) $wgFilterLogTypes will no longer ignore 'patrol' when user does
17 not have the right to mark things patrolled.
18 * Wikis that contain imported revisions or CentralAuth global blocks should run
19 maintenance/cleanupUsersWithNoId.php.
20 * $wgResourceLoaderMinifierStatementsOnOwnLine and $wgResourceLoaderMinifierMaxLineLength
21 were removed (deprecated since 1.27).
22 * (T180921) $wgReferrerPolicy now supports having fallbacks for browsers that are not
23 using the latest version of the Referrer Policy specification.
24 * $wgFragmentMode is now set to [ 'legacy', 'html5' ] by default. This is a first step of
25 migration to human-readable section IDs that will later result in 'html5' being the
26 default mode.
27 * CACHE_ACCEL now only supports APC(u) or WinCache. XCache support was removed
28 as upstream is inactive and has no plans to move to PHP 7.
29 * The old CategorizedRecentChanges feature, including its related configuration
30 option $wgAllowCategorizedRecentChanges, has been removed.
31 * (T188472) The 'comma' value for $wgArticleCountMethod is no longer supported for
32 performance reasons, and installations with this setting will now work as if it
33 was configured with 'any'.
34 * $wgLogAutopatrol now defaults to false instead of true.
35
36 === New features in 1.31 ===
37 * (T76554) User sub-pages named ….json are now protected in the same way that ….js
38 and ….css pages are, so that configuration options can safely be placed there.
39 * Wikimedia\Rdbms\IDatabase->select() and similar methods now support
40 joins with parentheses for grouping.
41 * As a first pass in standardizing dialog boxes across the MediaWiki product,
42 Html class now provides helper methods for messageBox, successBox, errorBox and
43 warningBox generation.
44 * (T9240) Imports will now record unknown (and, optionally, known) usernames in
45 a format like "iw>Example".
46 * (T20209) Linker (used on history pages, log pages, and so on) will display
47 usernames formed like "iw>Example" as interwiki links, as if by wikitext like
48 [[iw:User:Example|iw>Example]].
49 * (T111605) The 'ImportHandleUnknownUser' hook allows extensions to auto-create
50 users during an import.
51 * Added a hook, ParserOutputPostCacheTransform, to allow extensions to affect
52 the ParserOutput::getText() post-cache transformations.
53 * Added a hook, UploadForm:getInitialPageText, to allow extensions to alter the
54 initial page text for file uploads.
55 * (T181651) The info page for File pages now displays the file's base-16 SHA1
56 hash value in the table of basic information.
57 * Style tags with a 'data-mw-deduplicate' attribute will be deduplicated as a
58 ParserOutput::getText() post-cache transformation. This may be disabled by
59 passing 'deduplicateStyles' => false to that method.
60 * The identity of the logged-in or IP "actor" for logged actions is being moved
61 into a new actor table, with the rows in tables such as revision and logging
62 referring to the actor ID instead of storing the user ID and name/IP in
63 every row.
64 * This is currently gated by $wgActorTableSchemaMigrationStage. Most wikis
65 can set this to MIGRATION_NEW and run maintenance/migrateActors.php as
66 soon as any necessary extensions are updated.
67 * Most code accessing rows for logged actions from the database should use
68 the relevant getQueryInfo() methods to get the information needed to build
69 the SQL query. The ActorMigration class may also be used to get feature-flagged
70 information needed to access actor-related fields during the migration
71 period.
72 * Added Wikimedia\Rdbms\IDatabase::cancelAtomic(), to roll back an atomic
73 section without having to roll back the whole transaction.
74 * Wikimedia\Rdbms\IDatabase::doAtomicSection(), non-native ::insertSelect(),
75 and non-MySQL ::replace() and ::upsert() no longer roll back the whole
76 transaction on failure.
77 * (T189785) Added a monthly heartbeat ping to the pingback feature.
78 * The CLI installer (maintenance/install.php) learned to detect and include
79 extensions. Pass --with-extensions to enable that feature.
80 * (T184791) rc_patrolled now has three states: "0" for unpatrolled,
81 "1" for manually patrolled and "2" for autopatrolled actions.
82
83 === External library changes in 1.31 ===
84
85 ==== Upgraded external libraries ====
86 * Updated jquery.chosen from v0.9.14 to v1.8.2.
87 * Updated composer/spdx-licenses from 1.1.4 to
88 1.3.0 (development dependency).
89 * Updated nikic/php-parser from 2.1.0 to 3.1.3
90 (development dependency).
91 * Updated wikimedia/ip-set from 1.1.0 to 1.2.0.
92 * Updated wikimedia/relpath from 2.0.0 to 2.1.1.
93 * Updated wikimedia/running-stat from 1.1.0 to 1.2.0.
94 * Updated wikimedia/wrappedstring from 2.2.0 to 2.3.0.
95 * Updated mediawiki/at-ease from 1.1.0 to 1.2.0.
96 * Updated wikimedia/php-session-serializer from 1.0.4 to 1.0.5.
97 * Updated wikimedia/remex-html from 1.0.2 to 1.0.3.
98 * …
99
100 ==== New external libraries ====
101 * Added wikimedia/object-factory 1.0.0
102 * …
103
104 ==== Removed and replaced external libraries ====
105 * (T17845) The deprecated 'jquery.badge' module was removed.
106 * The deprecated 'jquery.autoEllipsis' module was removed. Use the CSS
107 text-overflow property instead.
108 * The deprecated 'jquery.placeholder' module was removed.
109 * The deprecated 'jquery.appear' module was removed. Use the
110 'mediawiki.viewport' module instead.
111 * The deprecated 'mediawiki.widgets.CategorySelector' module alias was removed.
112 Use the 'mediawiki.widgets.CategoryMultiselectWidget' module directly instead.
113
114 === Bug fixes in 1.31 ===
115 * (T90902) Non-breaking space in header ID breaks anchor
116
117 === Action API changes in 1.31 ===
118 * (T185058) The 'name' value to tgprop for action=query&list=tags has been
119 removed. It has never made a difference in the output, the name was always
120 returned regardless.
121
122 === Action API internal changes in 1.31 ===
123 * ApiBase::getProfileDBTime was removed (deprecated since 1.25)
124 * ApiBase::getModuleProfileName was removed (deprecated since 1.25)
125
126 === Languages updated in 1.31 ===
127 MediaWiki supports over 350 languages. Many localisations are updated
128 regularly. Below only new and removed languages are listed, as well as
129 changes to languages because of Phabricator reports.
130
131 * (T180052) Mirandese (mwl) now supports gendered NS_USER/NS_USER_TALK namespaces.
132 * (T182305) New language support: Nyungar (nys).
133 * (T186359) New language support: Siberian Tatar [cебертатар] (sty).
134 * (T186635) New language support: Guianan Creole (gcr).
135 * (T186647) New language support: Kumyk [къумукъ] (kum).
136 * (T187750) New language support: Spanish formal address (es-formal).
137 * (T187824) New language support: Hungarian formal address (hu-formal).
138
139 === Other changes in 1.31 ===
140 * Browser support for Internet Explorer 10 was lowered from Grade A to Grade C.
141 * Introducing multi-content-revision capability into the storage layer. For details,
142 see <https://www.mediawiki.org/wiki/Requests_for_comment/Multi-Content_Revisions>.
143 * The Revision class was deprecated in favor of RevisionStore, BlobStore, and
144 RevisionRecord and its subclasses.
145 * MessageBlobStore::insertMessageBlob() (deprecated in 1.27) was removed.
146 * The global function wfBCP47 was renamed to LanguageCode::bcp47.
147 * The global function wfBCP47 is now deprecated.
148 * The global function wfCountDown() is now deprecated in favor of
149 Maintenance::countDown()
150 * The OutputPage class constructor now requires a context parameter,
151 (instantiating without context was deprecated in 1.18)
152 * mw.page (deprecated in 1.30) was removed.
153 * Article::getLastPurgeTimestamp(), WikiPage::getLastPurgeTimestamp(), and the
154 related WikiPage::PURGE_* constants, deprecated in 1.29, were removed.
155 * The Article::selectFields(), Article::onArticleCreate(),
156 Article::onArticleDelete(), and Article::onArticleEdit() methods, deprecated
157 in 1.24, were removed.
158 * Installer::locateExecutable() and Installer::locateExecutableInDefaultPaths()
159 were removed, use ExecutableFinder::findInDefaultPaths() instead.
160 * Several methods for returning lists of fields to select from the database
161 have been deprecated in favor of similar methods that also return the tables
162 to select from and the join conditions for those tables.
163 * Block::selectFields() → Block::getQueryInfo()
164 * RecentChange::selectFields() → RecentChange::getQueryInfo()
165 * ArchivedFile::selectFields() → ArchivedFile::getQueryInfo()
166 * LocalFile::selectFields() → LocalFile::getQueryInfo()
167 * LocalFile::getCacheFields() with a prefix no longer works
168 * LocalFile::getLazyCacheFields() with a prefix no longer works
169 * OldLocalFile::selectFields() → OldLocalFile::getQueryInfo()
170 * RecentChange::selectFields() → RecentChange::getQueryInfo()
171 * Revision::userJoinCond() → Revision::getQueryInfo( [ 'user' ] )
172 * Revision::selectUserFields() → Revision::getQueryInfo( [ 'user' ] )
173 * Revision::pageJoinCond() → Revision::getQueryInfo( [ 'page' ] )
174 * Revision::selectPageFields() → Revision::getQueryInfo( [ 'page' ] )
175 * Revision::selectTextFields() → Revision::getQueryInfo( [ 'text' ] )
176 * Revision::selectFields() → Revision::getQueryInfo()
177 * Revision::selectArchiveFields() → Revision::getArchiveQueryInfo()
178 * User::selectFields() → User::getQueryInfo()
179 * WikiPage::selectFields() → WikiPage::getQueryInfo()
180 * Due to significant refactoring, method ContribsPager::getUserCond() that had
181 no access restriction has been removed.
182 * Revision::setUserIdAndName() was deprecated.
183 * Access to TitleValue class properties was deprecated, the relevant getters
184 should be used instead.
185 * DifferenceEngine::getDiffBodyCacheKey() is deprecated. Subclasses should
186 override DifferenceEngine::getDiffBodyCacheKeyParams() instead.
187 * The deprecated MW_DIFF_VERSION constant was removed.
188 DifferenceEngine::MW_DIFF_VERSION should be used instead.
189 * Use of Maintenance::error( $err, $die ) to exit script was deprecated. Use
190 Maintenance::fatalError() instead.
191 * Passing a ParserOptions object to OutputPage::parserOptions() is deprecated.
192 * Browser support for Opera 12 and older was removed.
193 Opera 15+ continues at Grade A support.
194 * The Block class will no longer accept usable-but-missing usernames for
195 'byText' or ->setBlocker(). Callers should either ensure the blocker exists
196 locally or use a new interwiki-format username like "iw>Example".
197 * The RevisionInsertComplete hook is now deprecated, use RevisionRecordInserted instead.
198 RevisionInsertComplete is still called, but the second and third parameter will always be null.
199 Hard deprecation is scheduled for 1.32.
200 * The following methods that get and set ParserOutput state are deprecated.
201 Callers should use the new stateless $options parameter to
202 ParserOutput::getText() instead.
203 * ParserOptions::getEditSection()
204 * ParserOptions::setEditSection()
205 * ParserOutput::getEditSectionTokens()
206 * ParserOutput::setEditSectionTokens()
207 * ParserOutput::getTOCEnabled()
208 * ParserOutput::setTOCEnabled()
209 * OutputPage::enableSectionEditLinks()
210 * OutputPage::sectionEditLinksEnabled()
211 * The public ParserOutput state fields $mTOCEnabled and $mEditSectionTokens are also deprecated.
212 * The following methods and constants from the WatchedItem class, which were deprecated in
213 1.27, have been removed.
214 * WatchedItem::getTitle()
215 * WatchedItem::fromUserTitle()
216 * WatchedItem::addWatch()
217 * WatchedItem::removeWatch()
218 * WatchedItem::isWatched()
219 * WatchedItem::duplicateEntries()
220 * WatchedItem::IGNORE_USER_RIGHTS
221 * WatchedItem::CHECK_USER_RIGHTS
222 * WatchedItem::DEPRECATED_USAGE_TIMESTAMP
223 * The $statementsOnOwnLine parameter of JavaScriptMinifier::minify was removed.
224 The corresponding configuration variable ($wgResourceLoaderMinifierStatementsOnOwnLine)
225 has been deprecated since 1.27 and was removed as well.
226 * The $maxLineLength parameter of JavaScriptMinifier::minify was removed.
227 The corresponding configuration variable ($wgResourceLoaderMinifierMaxLineLength)
228 has been deprecated since 1.27 and was removed as well.
229 * The HtmlFormatter class was removed (deprecated in 1.27). The namespaced
230 HtmlFormatter\HtmlFormatter class should be used instead.
231 * License::getLicenses has been deprecated; use License::getLines instead.
232 * The driver 'mysql' for MySQL, deprecated in MediaWiki 1.30, has been removed.
233 The driver has been deprecated since PHP 5.5 and was removed in PHP 7.0. The
234 default driver for MySQL has been 'mysqli' since MediaWiki 1.22.
235 * The following properties of PreparedEdit were deprecated in 1.21 and have been removed:
236 * PreparedEdit->newText
237 * PreparedEdit->oldText
238 * PreparedEdit->pst
239 * QuickTemplate::setRef() was deprecated in favour of QuickTemplate::set().
240 Setting template variables by reference allowed violating the principle of data being
241 immutable once added to the skin template. In practice, this method was not being
242 used for that. Rather, setRef() existed as memory optimisation for PHP 4.
243 * QuickTemplate::setTranslator() was deprecated in favour of Skin::msg() parameters.
244 * MediaWikiI18N::set() was deprecated in favour of Skin::msg() parameters.
245 * MediaWikiI18N::translate() was deprecated in favour of Skin::msg() or wfMessage().
246 * Passing false to ParserOptions::setWrapOutputClass() is deprecated. Use the
247 'unwrap' transform to ParserOutput::getText() instead.
248 * ParserOutput objects generated using a non-default value for
249 ParserOptions::setWrapOutputClass() can no longer be added to the parser
250 cache.
251 * The following deprecated methods from the OutputPage class have been removed:
252 * OutputPage::addExtensionStyle(); deprecated in 1.27
253 * OutputPage::getExtStyle(); deprecated in 1.27
254 * OutputPage::setETag(); deprecated in 1.28 (obsolete no-op)
255 * OutputPage::setSquidMaxage(); deprecated in 1.27
256 * OutputPage::readOnlyPage(); deprecated in 1.25
257 * OutputPage::rateLimited(); deprecated in 1.25
258 * Additionally, the protected OutputPage::$mExtStyles array, only accessed through
259 the above and with no known uses, was removed.
260 * The no-op method Skin::showIPinHeader(), deprecated in 1.27, was removed.
261 * \ObjectFactory (no namespace) is deprecated, the namespaced \Wikimedia\ObjectFactory
262 from the wikimedia/object-factory library should be used instead.
263 * CommentStore::newKey is deprecated. Get an instance from MediaWikiServices instead.
264 * The following CommentStore methods have had their signatures changed to introduce a $key parameter,
265 usage of the methods on instances retrieved from CommentStore::newKey will remain unchanged but deprecated:
266 * CommentStore::getFields
267 * CommentStore::getJoin
268 * CommentStore::getComment
269 * CommentStore::getCommentLegacy
270 * CommentStore::insert
271 * CommentStore::insertWithTemplate
272 * The following methods in Title have been renamed, and the old ones are deprecated:
273 * Title::getSkinFromCssJsSubpage – use ::getSkinFromConfigSubpage
274 * Title::isCssOrJsPage – use ::isSiteConfigPage
275 * Title::isCssJsSubpage – use ::isUserConfigPage
276 * Title::isCssSubpage – use ::isUserCssConfigPage
277 * Title::isJsSubpage – use ::isUserJsConfigPage
278 * The following variables and methods in EditPage, deprecated in MediaWiki 1.30, were removed:
279 * $isCssJsSubpage — use ::isUserConfigPage()
280 * $isCssSubpage — use ::isUserCssConfigPage()
281 * $isJsSubpage — use ::isUserJsConfigPage()
282 * $isWrongCaseCssJsPage – use ::isWrongCaseUserConfigPage()
283 * ::getSummaryInput() – use ::getSummaryInputWidget()
284 * ::getSummaryInputOOUI() – use ::getSummaryInputWidget()
285 * ::getCheckboxes() – use ::getCheckboxesWidget() or ::getCheckboxesDefinition()
286 * ::getCheckboxesOOUI() – use ::getCheckboxesWidget() or ::getCheckboxesDefinition()
287 * The method ResourceLoaderModule::getPosition(), deprecated in 1.29, has been removed.
288 * The DeferredStringifier class is deprecated, use Message::listParam() instead.
289 * The type string for the parameter $lang of DateFormatter::getInstance is
290 deprecated.
291 * In User, the cookie-related methods which were wrappers for the functions on the response
292 object, and were deprecated in 1.27, have been removed:
293 * ::setCookie()
294 * ::clearCookie()
295 * ::setExtendedLoginCookie()
296 Note that User::setCookies() remains, and is not deprecated.
297 * Also in User, some auth-related methods which were deprecated in 1.27, have been removed:
298 * ::getEditTokenTimestamp() – use MediaWiki\Session\Token::getTimestamp()
299 * ::getPasswordFactory() – create a PasswordFactory directly
300 * ::passwordChangeInputAttribs()
301 * The global functions wfProfileIn and wfProfileOut, deprecated in 1.25, have been removed.
302 * The following methods related to caching of half-parsed HTML were deprecated:
303 * Parser::serializeHalfParsedText()
304 * Parser::unserializeHalfParsedText()
305 * Parser::isValidHalfParsedText()
306 * StripState::getSubState()
307 * StripState::merge()
308 * The "free" CSS class is now only applied to unbracketed URLs in wikitext. Links
309 written using square brackets will get the class "text" not "free".
310 * SpecialPageFactory::getList(), deprecated in 1.24, has been removed. You can
311 use ::getNames() instead.
312 * OpenSearch::getOpenSearchTemplate(), deprecated in 1.25, has been removed. You
313 can use ApiOpenSearch::getOpenSearchTemplate() instead.
314 * The global function wfBaseConvert, deprecated in 1.27, has been removed. Use
315 Wikimedia\base_convert() directly.
316 * RFC 157418: Whitespace is trimmed from wikitext headings, wikitext list items,
317 wikitext table captions, wikitext table headings, wikitext table cells. HTML
318 headings, HTML list items, HTML table captions, HTML table headings, HTML table cells
319 will not have this trimming behavior.
320 * Calling Database::begin() explicitly during an implicit transaction or when DBO_TRX
321 is set results in an exception. Calling Database::commit() explicitly for an implicit
322 transaction also results in an exception. Previously these were logged as errors.
323 The startAtomic() and endAtomic() methods, or AtomicSectionUpdate should be used
324 instead.
325 * The global function wfOutputHandler() was removed, use the its replacement
326 MediaWiki\OutputHandler::handle() instead. The global function was only sometimes defined.
327 Its replacement is always available via the autoloader.
328 * ChangeTags::listExtensionActivatedTags and ::listExtensionDefinedTags, deprecated
329 in 1.28, have been removed. Use ::listSoftwareActivatedTags() and
330 ::listSoftwareDefinedTags() instead.
331 * Title::getTitleInvalidRegex(), deprecated in 1.25, has been removed. You
332 can use MediaWikiTitleCodec::getTitleInvalidRegex() instead.
333 * HTMLForm & VFormHTMLForm::isVForm(), deprecated in 1.25, have been removed.
334 * The ProfileSection class, deprecated in 1.25 and unused, has been removed.
335 * Wikimedia\Rdbms\SavepointPostgres is deprecated.
336
337 == Compatibility ==
338 MediaWiki 1.31 requires PHP 5.5.9 or later. Although HHVM 3.18.5 or later is supported,
339 it is generally advised to use PHP 5.5.9 or later for long term support.
340
341 MySQL/MariaDB is the recommended DBMS. PostgreSQL or SQLite can also be used,
342 but support for them is somewhat less mature. There is experimental support for
343 Oracle and Microsoft SQL Server.
344
345 The supported versions are:
346
347 * MySQL 5.0.3 or later
348 * PostgreSQL 9.2 or later
349 * SQLite 3.3.7 or later
350 * Oracle 9.0.1 or later
351 * Microsoft SQL Server 2005 (9.00.1399)
352
353 == Upgrading ==
354 1.31 has several database changes since 1.30, and will not work without schema
355 updates. Note that due to changes to some very large tables like the revision
356 table, the schema update may take quite long (minutes on a medium sized site,
357 many hours on a large site).
358
359 Don't forget to always back up your database before upgrading!
360
361 See the file UPGRADE for more detailed upgrade instructions, including
362 important information when upgrading from versions prior to 1.11.
363
364 For notes on 1.30.x and older releases, see HISTORY.
365
366 == Online documentation ==
367 Documentation for both end-users and site administrators is available on
368 MediaWiki.org, and is covered under the GNU Free Documentation License (except
369 for pages that explicitly state that their contents are in the public domain):
370
371 https://www.mediawiki.org/wiki/Special:MyLanguage/Documentation
372
373 == Mailing list ==
374 A mailing list is available for MediaWiki user support and discussion:
375
376 https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
377
378 A low-traffic announcements-only list is also available:
379
380 https://lists.wikimedia.org/mailman/listinfo/mediawiki-announce
381
382 It's highly recommended that you sign up for one of these lists if you're
383 going to run a public MediaWiki, so you can be notified of security fixes.
384
385 == IRC help ==
386 There's usually someone online in #mediawiki on irc.freenode.net.