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