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