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