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