Merge "Bump min supported HHVM version to 3.18.5"
[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
25 === New features in 1.31 ===
26 * Wikimedia\Rdbms\IDatabase->select() and similar methods now support
27 joins with parentheses for grouping.
28 * As a first pass in standardizing dialog boxes across the MediaWiki product,
29 Html class now provides helper methods for messageBox, successBox, errorBox and
30 warningBox generation.
31 * (T9240) Imports will now record unknown (and, optionally, known) usernames in
32 a format like "iw>Example".
33 * (T20209) Linker (used on history pages, log pages, and so on) will display
34 usernames formed like "iw>Example" as interwiki links, as if by wikitext like
35 [[iw:User:Example|iw>Example]].
36 * (T111605) The 'ImportHandleUnknownUser' hook allows extensions to auto-create
37 users during an import.
38 * Added a hook, ParserOutputPostCacheTransform, to allow extensions to affect
39 the ParserOutput::getText() post-cache transformations.
40
41 === External library changes in 1.31 ===
42
43 ==== Upgraded external libraries ====
44 * Updated jquery.chosen from v0.9.14 to v1.8.2.
45 * Updated composer/spdx-licenses from 1.1.4 to
46 1.2.0 (development dependency).
47 * Updated nikic/php-parser from 2.1.0 to 3.1.3
48 (development dependency).
49 * …
50
51 ==== New external libraries ====
52 * …
53
54 ==== Removed and replaced external libraries ====
55 * (T17845) The deprecated 'jquery.badge' module was removed.
56 * The deprecated 'jquery.autoEllipsis' module was removed. Use the CSS
57 text-overflow property instead.
58 * The deprecated 'jquery.placeholder' module was removed.
59 * The deprecated 'jquery.appear' module was removed. Use the
60 'mediawiki.viewport' module instead.
61 * The deprecated 'mediawiki.widgets.CategorySelector' module alias was removed.
62 Use the 'mediawiki.widgets.CategoryMultiselectWidget' module directly instead.
63
64 === Bug fixes in 1.31 ===
65 * (T90902) Non-breaking space in header ID breaks anchor
66
67 === Action API changes in 1.31 ===
68 * …
69
70 === Action API internal changes in 1.31 ===
71 * …
72
73 === Languages updated in 1.31 ===
74 MediaWiki supports over 350 languages. Many localisations are updated
75 regularly. Below only new and removed languages are listed, as well as
76 changes to languages because of Phabricator reports.
77
78 * (T180052) Mirandese (mwl) now supports gendered NS_USER/NS_USER_TALK namespaces.
79
80 === Other changes in 1.31 ===
81 * Introducing multi-content-revision capability into the storage layer. For details,
82 see <https://www.mediawiki.org/wiki/Requests_for_comment/Multi-Content_Revisions>.
83 * The Revision class was deprecated in favor of RevisionStore, BlobStore, and
84 RevisionRecord and its subclasses.
85 * MessageBlobStore::insertMessageBlob() (deprecated in 1.27) was removed.
86 * The global function wfBCP47 was renamed to LanguageCode::bcp47.
87 * The global function wfBCP47 is now deprecated.
88 * The global function wfCountDown() is now deprecated in favor of
89 Maintenance::countDown()
90 * The OutputPage class constructor now requires a context parameter,
91 (instantiating without context was deprecated in 1.18)
92 * mw.page (deprecated in 1.30) was removed.
93 * Article::getLastPurgeTimestamp(), WikiPage::getLastPurgeTimestamp(), and the
94 related WikiPage::PURGE_* constants, deprecated in 1.29, were removed.
95 * The Article::selectFields(), Article::onArticleCreate(),
96 Article::onArticleDelete(), and Article::onArticleEdit() methods, deprecated
97 in 1.24, were removed.
98 * Installer::locateExecutable() and Installer::locateExecutableInDefaultPaths()
99 were removed, use ExecutableFinder::findInDefaultPaths() instead.
100 * Several methods for returning lists of fields to select from the database
101 have been deprecated in favor of similar methods that also return the tables
102 to select from and the join conditions for those tables.
103 * Block::selectFields() → Block::getQueryInfo()
104 * RecentChange::selectFields() → RecentChange::getQueryInfo()
105 * ArchivedFile::selectFields() → ArchivedFile::getQueryInfo()
106 * LocalFile::selectFields() → LocalFile::getQueryInfo()
107 * LocalFile::getCacheFields() with a prefix no longer works
108 * LocalFile::getLazyCacheFields() with a prefix no longer works
109 * OldLocalFile::selectFields() → OldLocalFile::getQueryInfo()
110 * RecentChange::selectFields() → RecentChange::getQueryInfo()
111 * Revision::userJoinCond() → Revision::getQueryInfo( [ 'user' ] )
112 * Revision::selectUserFields() → Revision::getQueryInfo( [ 'user' ] )
113 * Revision::pageJoinCond() → Revision::getQueryInfo( [ 'page' ] )
114 * Revision::selectPageFields() → Revision::getQueryInfo( [ 'page' ] )
115 * Revision::selectTextFields() → Revision::getQueryInfo( [ 'text' ] )
116 * Revision::selectFields() → Revision::getQueryInfo()
117 * Revision::selectArchiveFields() → Revision::getArchiveQueryInfo()
118 * User::selectFields() → User::getQueryInfo()
119 * WikiPage::selectFields() → WikiPage::getQueryInfo()
120 * Due to significant refactoring, method ContribsPager::getUserCond() that had
121 no access restriction has been removed.
122 * Revision::setUserIdAndName() was deprecated.
123 * Access to TitleValue class properties was deprecated, the relevant getters
124 should be used instead.
125 * DifferenceEngine::getDiffBodyCacheKey() is deprecated. Subclasses should
126 override DifferenceEngine::getDiffBodyCacheKeyParams() instead.
127 * The deprecated MW_DIFF_VERSION constant was removed.
128 DifferenceEngine::MW_DIFF_VERSION should be used instead.
129 * Use of Maintenance::error( $err, $die ) to exit script was deprecated. Use
130 Maintenance::fatalError() instead.
131 * Passing a ParserOptions object to OutputPage::parserOptions() is deprecated.
132 * Browser support for Opera 12 and older was removed.
133 Opera 15+ continues at Grade A support.
134 * The Block class will no longer accept usable-but-missing usernames for
135 'byText' or ->setBlocker(). Callers should either ensure the blocker exists
136 locally or use a new interwiki-format username like "iw>Example".
137 * The RevisionInsertComplete hook is now deprecated, use RevisionRecordInserted instead.
138 RevisionInsertComplete is still called, but the second and third parameter will always be null.
139 Hard deprecation is scheduled for 1.32.
140 * The following methods that get and set ParserOutput state are deprecated.
141 Callers should use the new stateless $options parameter to
142 ParserOutput::getText() instead.
143 * ParserOptions::getEditSection()
144 * ParserOptions::setEditSection()
145 * ParserOutput::getEditSectionTokens()
146 * ParserOutput::setEditSectionTokens()
147 * ParserOutput::getTOCEnabled()
148 * ParserOutput::setTOCEnabled()
149 * OutputPage::enableSectionEditLinks()
150 * OutputPage::sectionEditLinksEnabled()
151 * The public ParserOutput state fields $mTOCEnabled and $mEditSectionTokens are also deprecated.
152 * The following methods and constants from the WatchedItem class were deprecated in
153 1.27 have been removed.
154 * WatchedItem::getTitle()
155 * WatchedItem::fromUserTitle()
156 * WatchedItem::addWatch()
157 * WatchedItem::removeWatch()
158 * WatchedItem::isWatched()
159 * WatchedItem::duplicateEntries()
160 * WatchedItem::IGNORE_USER_RIGHTS
161 * WatchedItem::CHECK_USER_RIGHTS
162 * WatchedItem::DEPRECATED_USAGE_TIMESTAMP
163 * The $statementsOnOwnLine parameter of JavaScriptMinifier::minify was removed.
164 The corresponding configuration variable ($wgResourceLoaderMinifierStatementsOnOwnLine)
165 has been deprecated since 1.27 and was removed as well.
166 * The HtmlFormatter class was removed (deprecated in 1.27). The namespaced
167 HtmlFormatter\HtmlFormatter class should be used instead.
168
169 == Compatibility ==
170 MediaWiki 1.31 requires PHP 5.5.9 or later. Although HHVM 3.18.5 or later is supported,
171 it is generally advised to use PHP 5.5.9 or later for long term support.
172
173 MySQL/MariaDB is the recommended DBMS. PostgreSQL or SQLite can also be used,
174 but support for them is somewhat less mature. There is experimental support for
175 Oracle and Microsoft SQL Server.
176
177 The supported versions are:
178
179 * MySQL 5.0.3 or later
180 * PostgreSQL 8.3 or later
181 * SQLite 3.3.7 or later
182 * Oracle 9.0.1 or later
183 * Microsoft SQL Server 2005 (9.00.1399)
184
185 == Upgrading ==
186 1.31 has several database changes since 1.30, and will not work without schema
187 updates. Note that due to changes to some very large tables like the revision
188 table, the schema update may take quite long (minutes on a medium sized site,
189 many hours on a large site).
190
191 Don't forget to always back up your database before upgrading!
192
193 See the file UPGRADE for more detailed upgrade instructions, including
194 important information when upgrading from versions prior to 1.11.
195
196 For notes on 1.30.x and older releases, see HISTORY.
197
198 == Online documentation ==
199 Documentation for both end-users and site administrators is available on
200 MediaWiki.org, and is covered under the GNU Free Documentation License (except
201 for pages that explicitly state that their contents are in the public domain):
202
203 https://www.mediawiki.org/wiki/Special:MyLanguage/Documentation
204
205 == Mailing list ==
206 A mailing list is available for MediaWiki user support and discussion:
207
208 https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
209
210 A low-traffic announcements-only list is also available:
211
212 https://lists.wikimedia.org/mailman/listinfo/mediawiki-announce
213
214 It's highly recommended that you sign up for one of these lists if you're
215 going to run a public MediaWiki, so you can be notified of security fixes.
216
217 == IRC help ==
218 There's usually someone online in #mediawiki on irc.freenode.net.