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