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