Merge "Use RemexHtml as the tidy implementation for parser tests"
[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
35 === New features in 1.31 ===
36 * Wikimedia\Rdbms\IDatabase->select() and similar methods now support
37 joins with parentheses for grouping.
38 * As a first pass in standardizing dialog boxes across the MediaWiki product,
39 Html class now provides helper methods for messageBox, successBox, errorBox and
40 warningBox generation.
41 * (T9240) Imports will now record unknown (and, optionally, known) usernames in
42 a format like "iw>Example".
43 * (T20209) Linker (used on history pages, log pages, and so on) will display
44 usernames formed like "iw>Example" as interwiki links, as if by wikitext like
45 [[iw:User:Example|iw>Example]].
46 * (T111605) The 'ImportHandleUnknownUser' hook allows extensions to auto-create
47 users during an import.
48 * Added a hook, ParserOutputPostCacheTransform, to allow extensions to affect
49 the ParserOutput::getText() post-cache transformations.
50 * Added a hook, UploadForm:getInitialPageText, to allow extensions to alter the
51 initial page text for file uploads.
52 * (T181651) The info page for File pages now displays the file's base-16 SHA1
53 hash value in the table of basic information.
54 * Style tags with a 'data-mw-deduplicate' attribute will be deduplicated as a
55 ParserOutput::getText() post-cache transformation. This may be disabled by
56 passing 'deduplicateStyles' => false to that method.
57 * The identity of the logged-in or IP "actor" for logged actions is being moved
58 into a new actor table, with the rows in tables such as revision and logging
59 referring to the actor ID instead of storing the user ID and name/IP in
60 every row.
61 * This is currently gated by $wgActorTableSchemaMigrationStage. Most wikis
62 can set this to MIGRATION_NEW and run maintenance/migrateActors.php as
63 soon as any necessary extensions are updated.
64 * Most code accessing rows for logged actions from the database should use
65 the relevant getQueryInfo() methods to get the information needed to build
66 the SQL query. The ActorMigration class may also be used to get feature-flagged
67 information needed to access actor-related fields during the migration
68 period.
69
70 === External library changes in 1.31 ===
71
72 ==== Upgraded external libraries ====
73 * Updated jquery.chosen from v0.9.14 to v1.8.2.
74 * Updated composer/spdx-licenses from 1.1.4 to
75 1.3.0 (development dependency).
76 * Updated nikic/php-parser from 2.1.0 to 3.1.3
77 (development dependency).
78 * Updated wikimedia/ip-set from 1.1.0 to 1.2.0.
79 * Updated wikimedia/relpath from 2.0.0 to 2.1.1.
80 * Updated wikimedia/running-stat from 1.1.0 to 1.2.0.
81 * Updated wikimedia/wrappedstring from 2.2.0 to 2.3.0.
82 * Updated mediawiki/at-ease from 1.1.0 to 1.2.0.
83 * Updated wikimedia/php-session-serializer from 1.0.4 to 1.0.5.
84 * …
85
86 ==== New external libraries ====
87 * Added wikimedia/object-factory 1.0.0
88 * …
89
90 ==== Removed and replaced external libraries ====
91 * (T17845) The deprecated 'jquery.badge' module was removed.
92 * The deprecated 'jquery.autoEllipsis' module was removed. Use the CSS
93 text-overflow property instead.
94 * The deprecated 'jquery.placeholder' module was removed.
95 * The deprecated 'jquery.appear' module was removed. Use the
96 'mediawiki.viewport' module instead.
97 * The deprecated 'mediawiki.widgets.CategorySelector' module alias was removed.
98 Use the 'mediawiki.widgets.CategoryMultiselectWidget' module directly instead.
99
100 === Bug fixes in 1.31 ===
101 * (T90902) Non-breaking space in header ID breaks anchor
102
103 === Action API changes in 1.31 ===
104 * (T185058) The 'name' value to tgprop for action=query&list=tags has been
105 removed. It has never made a difference in the output, the name was always
106 returned regardless.
107
108 === Action API internal changes in 1.31 ===
109 * …
110
111 === Languages updated in 1.31 ===
112 MediaWiki supports over 350 languages. Many localisations are updated
113 regularly. Below only new and removed languages are listed, as well as
114 changes to languages because of Phabricator reports.
115
116 * (T180052) Mirandese (mwl) now supports gendered NS_USER/NS_USER_TALK namespaces.
117 * (T182305) New language support: Nyungar (nys).
118 * (T186359) New language support: Siberian Tatar [cебертатар] (sty).
119 * (T186635) New language support: Guianan Creole (gcr).
120 * (T186647) New language support: Kumyk [къумукъ] (kum).
121 * (T187750) New language support: Spanish formal address (es-formal).
122
123 === Other changes in 1.31 ===
124 * Browser support for Internet Explorer 10 was lowered from Grade A to Grade C.
125 * Introducing multi-content-revision capability into the storage layer. For details,
126 see <https://www.mediawiki.org/wiki/Requests_for_comment/Multi-Content_Revisions>.
127 * The Revision class was deprecated in favor of RevisionStore, BlobStore, and
128 RevisionRecord and its subclasses.
129 * MessageBlobStore::insertMessageBlob() (deprecated in 1.27) was removed.
130 * The global function wfBCP47 was renamed to LanguageCode::bcp47.
131 * The global function wfBCP47 is now deprecated.
132 * The global function wfCountDown() is now deprecated in favor of
133 Maintenance::countDown()
134 * The OutputPage class constructor now requires a context parameter,
135 (instantiating without context was deprecated in 1.18)
136 * mw.page (deprecated in 1.30) was removed.
137 * Article::getLastPurgeTimestamp(), WikiPage::getLastPurgeTimestamp(), and the
138 related WikiPage::PURGE_* constants, deprecated in 1.29, were removed.
139 * The Article::selectFields(), Article::onArticleCreate(),
140 Article::onArticleDelete(), and Article::onArticleEdit() methods, deprecated
141 in 1.24, were removed.
142 * Installer::locateExecutable() and Installer::locateExecutableInDefaultPaths()
143 were removed, use ExecutableFinder::findInDefaultPaths() instead.
144 * Several methods for returning lists of fields to select from the database
145 have been deprecated in favor of similar methods that also return the tables
146 to select from and the join conditions for those tables.
147 * Block::selectFields() → Block::getQueryInfo()
148 * RecentChange::selectFields() → RecentChange::getQueryInfo()
149 * ArchivedFile::selectFields() → ArchivedFile::getQueryInfo()
150 * LocalFile::selectFields() → LocalFile::getQueryInfo()
151 * LocalFile::getCacheFields() with a prefix no longer works
152 * LocalFile::getLazyCacheFields() with a prefix no longer works
153 * OldLocalFile::selectFields() → OldLocalFile::getQueryInfo()
154 * RecentChange::selectFields() → RecentChange::getQueryInfo()
155 * Revision::userJoinCond() → Revision::getQueryInfo( [ 'user' ] )
156 * Revision::selectUserFields() → Revision::getQueryInfo( [ 'user' ] )
157 * Revision::pageJoinCond() → Revision::getQueryInfo( [ 'page' ] )
158 * Revision::selectPageFields() → Revision::getQueryInfo( [ 'page' ] )
159 * Revision::selectTextFields() → Revision::getQueryInfo( [ 'text' ] )
160 * Revision::selectFields() → Revision::getQueryInfo()
161 * Revision::selectArchiveFields() → Revision::getArchiveQueryInfo()
162 * User::selectFields() → User::getQueryInfo()
163 * WikiPage::selectFields() → WikiPage::getQueryInfo()
164 * Due to significant refactoring, method ContribsPager::getUserCond() that had
165 no access restriction has been removed.
166 * Revision::setUserIdAndName() was deprecated.
167 * Access to TitleValue class properties was deprecated, the relevant getters
168 should be used instead.
169 * DifferenceEngine::getDiffBodyCacheKey() is deprecated. Subclasses should
170 override DifferenceEngine::getDiffBodyCacheKeyParams() instead.
171 * The deprecated MW_DIFF_VERSION constant was removed.
172 DifferenceEngine::MW_DIFF_VERSION should be used instead.
173 * Use of Maintenance::error( $err, $die ) to exit script was deprecated. Use
174 Maintenance::fatalError() instead.
175 * Passing a ParserOptions object to OutputPage::parserOptions() is deprecated.
176 * Browser support for Opera 12 and older was removed.
177 Opera 15+ continues at Grade A support.
178 * The Block class will no longer accept usable-but-missing usernames for
179 'byText' or ->setBlocker(). Callers should either ensure the blocker exists
180 locally or use a new interwiki-format username like "iw>Example".
181 * The RevisionInsertComplete hook is now deprecated, use RevisionRecordInserted instead.
182 RevisionInsertComplete is still called, but the second and third parameter will always be null.
183 Hard deprecation is scheduled for 1.32.
184 * The following methods that get and set ParserOutput state are deprecated.
185 Callers should use the new stateless $options parameter to
186 ParserOutput::getText() instead.
187 * ParserOptions::getEditSection()
188 * ParserOptions::setEditSection()
189 * ParserOutput::getEditSectionTokens()
190 * ParserOutput::setEditSectionTokens()
191 * ParserOutput::getTOCEnabled()
192 * ParserOutput::setTOCEnabled()
193 * OutputPage::enableSectionEditLinks()
194 * OutputPage::sectionEditLinksEnabled()
195 * The public ParserOutput state fields $mTOCEnabled and $mEditSectionTokens are also deprecated.
196 * The following methods and constants from the WatchedItem class were deprecated in
197 1.27 have been removed.
198 * WatchedItem::getTitle()
199 * WatchedItem::fromUserTitle()
200 * WatchedItem::addWatch()
201 * WatchedItem::removeWatch()
202 * WatchedItem::isWatched()
203 * WatchedItem::duplicateEntries()
204 * WatchedItem::IGNORE_USER_RIGHTS
205 * WatchedItem::CHECK_USER_RIGHTS
206 * WatchedItem::DEPRECATED_USAGE_TIMESTAMP
207 * The $statementsOnOwnLine parameter of JavaScriptMinifier::minify was removed.
208 The corresponding configuration variable ($wgResourceLoaderMinifierStatementsOnOwnLine)
209 has been deprecated since 1.27 and was removed as well.
210 * The $maxLineLength parameter of JavaScriptMinifier::minify was removed.
211 The corresponding configuration variable ($wgResourceLoaderMinifierMaxLineLength)
212 has been deprecated since 1.27 and was removed as well.
213 * The HtmlFormatter class was removed (deprecated in 1.27). The namespaced
214 HtmlFormatter\HtmlFormatter class should be used instead.
215 * License::getLicenses has been deprecated; use License::getLines instead.
216 * The driver 'mysql' for MySQL, deprecated in MediaWiki 1.30, has been removed.
217 The driver has been deprecated since PHP 5.5 and was removed in PHP 7.0. The
218 default driver for MySQL has been 'mysqli' since MediaWiki 1.22.
219 * The following properties of PreparedEdit were deprecated in 1.21 and have been removed:
220 * PreparedEdit->newText
221 * PreparedEdit->oldText
222 * PreparedEdit->pst
223 * QuickTemplate::setRef() was deprecated in favour of QuickTemplate::set().
224 Setting template variables by reference allowed violating the principle of data being
225 immutable once added to the skin template. In practice, this method was not being
226 used for that. Rather, setRef() existed as memory optimisation for PHP 4.
227 * QuickTemplate::setTranslator() was deprecated in favour of Skin::msg() parameters.
228 * MediaWikiI18N::set() was deprecated in favour of Skin::msg() parameters.
229 * MediaWikiI18N::translate() was deprecated in favour of Skin::msg() or wfMessage().
230 * Passing false to ParserOptions::setWrapOutputClass() is deprecated. Use the
231 'unwrap' transform to ParserOutput::getText() instead.
232 * ParserOutput objects generated using a non-default value for
233 ParserOptions::setWrapOutputClass() can no longer be added to the parser
234 cache.
235 * The following deprecated methods from the OutputPage class have been removed:
236 * OutputPage::addExtensionStyle(); deprecated in 1.27
237 * OutputPage::getExtStyle(); deprecated in 1.27
238 * OutputPage::setETag(); deprecated in 1.28 (obsolete no-op)
239 * OutputPage::setSquidMaxage(); deprecated in 1.27
240 * OutputPage::readOnlyPage(); deprecated in 1.25
241 * OutputPage::rateLimited(); deprecated in 1.25
242 * Additionally, the protected OutputPage::$mExtStyles array, only accessed through
243 the above and with no known uses, was removed.
244 * The no-op method Skin::showIPinHeader(), deprecated in 1.27, was removed.
245 * \ObjectFactory (no namespace) is deprecated, the namespaced \Wikimedia\ObjectFactory
246 from the wikimedia/object-factory library should be used instead.
247 * CommentStore::newKey is deprecated. Get an instance from MediaWikiServices instead.
248 * The following CommentStore methods have had their signatures changed to introduce a $key parameter,
249 usage of the methods on instances retrieved from CommentStore::newKey will remain unchanged but deprecated:
250 * CommentStore::getFields
251 * CommentStore::getJoin
252 * CommentStore::getComment
253 * CommentStore::getCommentLegacy
254 * CommentStore::insert
255 * CommentStore::insertWithTemplate
256 * The following methods in Title have been renamed, and the old ones are deprecated:
257 * Title::getSkinFromCssJsSubpage – use ::getSkinFromConfigSubpage
258 * Title::isCssOrJsPage – use ::isSiteConfigPage
259 * Title::isCssJsSubpage – use ::isUserConfigPage
260 * Title::isCssSubpage – use ::isUserCssConfigPage
261 * Title::isJsSubpage – use ::isUserJsConfigPage
262 * The following variables and methods in EditPage, deprecated in MediaWiki 1.30, were removed:
263 * $isCssJsSubpage — use ::isUserConfigPage()
264 * $isCssSubpage — use ::isUserCssConfigPage()
265 * $isJsSubpage — use ::isUserJsConfigPage()
266 * $isWrongCaseCssJsPage – use ::isWrongCaseUserConfigPage()
267 * ::getSummaryInput() – use ::getSummaryInputWidget()
268 * ::getSummaryInputOOUI() – use ::getSummaryInputWidget()
269 * ::getCheckboxes() – use ::getCheckboxesWidget() or ::getCheckboxesDefinition()
270 * ::getCheckboxesOOUI() – use ::getCheckboxesWidget() or ::getCheckboxesDefinition()
271 * The method ResourceLoaderModule::getPosition(), deprecated in 1.29, has been removed.
272 * The DeferredStringifier class is deprecated, use Message::listParam() instead.
273 * The type string for the parameter $lang of DateFormatter::getInstance is
274 deprecated.
275 * In User, the cookie-related methods which were wrappers for the functions on the response
276 object, and were deprecated in 1.27, have been removed:
277 * ::setCookie()
278 * ::clearCookie()
279 * ::setExtendedLoginCookie()
280 Note that User::setCookies() remains, and is not deprecated.
281 * The global functions wfProfileIn and wfProfileOut, deprecated in 1.25, have been removed.
282 * The following methods related to caching of half-parsed HTML were deprecated:
283 * Parser::serializeHalfParsedText()
284 * Parser::unserializeHalfParsedText()
285 * Parser::isValidHalfParsedText()
286 * StripState::getSubState()
287 * StripState::merge()
288
289 == Compatibility ==
290 MediaWiki 1.31 requires PHP 5.5.9 or later. Although HHVM 3.18.5 or later is supported,
291 it is generally advised to use PHP 5.5.9 or later for long term support.
292
293 MySQL/MariaDB is the recommended DBMS. PostgreSQL or SQLite can also be used,
294 but support for them is somewhat less mature. There is experimental support for
295 Oracle and Microsoft SQL Server.
296
297 The supported versions are:
298
299 * MySQL 5.0.3 or later
300 * PostgreSQL 8.3 or later
301 * SQLite 3.3.7 or later
302 * Oracle 9.0.1 or later
303 * Microsoft SQL Server 2005 (9.00.1399)
304
305 == Upgrading ==
306 1.31 has several database changes since 1.30, and will not work without schema
307 updates. Note that due to changes to some very large tables like the revision
308 table, the schema update may take quite long (minutes on a medium sized site,
309 many hours on a large site).
310
311 Don't forget to always back up your database before upgrading!
312
313 See the file UPGRADE for more detailed upgrade instructions, including
314 important information when upgrading from versions prior to 1.11.
315
316 For notes on 1.30.x and older releases, see HISTORY.
317
318 == Online documentation ==
319 Documentation for both end-users and site administrators is available on
320 MediaWiki.org, and is covered under the GNU Free Documentation License (except
321 for pages that explicitly state that their contents are in the public domain):
322
323 https://www.mediawiki.org/wiki/Special:MyLanguage/Documentation
324
325 == Mailing list ==
326 A mailing list is available for MediaWiki user support and discussion:
327
328 https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
329
330 A low-traffic announcements-only list is also available:
331
332 https://lists.wikimedia.org/mailman/listinfo/mediawiki-announce
333
334 It's highly recommended that you sign up for one of these lists if you're
335 going to run a public MediaWiki, so you can be notified of security fixes.
336
337 == IRC help ==
338 There's usually someone online in #mediawiki on irc.freenode.net.