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