Merge "Combine changes limit and time period selectors"
[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
21 === New features in 1.31 ===
22 * Wikimedia\Rdbms\IDatabase->select() and similar methods now support
23 joins with parentheses for grouping.
24 * As a first pass in standardizing dialog boxes across the MediaWiki product,
25 Html class now provides helper methods for messageBox, successBox, errorBox and
26 warningBox generation.
27 * (T9240) Imports will now record unknown (and, optionally, known) usernames in
28 a format like "iw>Example".
29 * (T20209) Linker (used on history pages, log pages, and so on) will display
30 usernames formed like "iw>Example" as interwiki links, as if by wikitext like
31 [[iw:User:Example|iw>Example]].
32 * (T111605) The 'ImportHandleUnknownUser' hook allows extensions to auto-create
33 users during an import.
34
35 === External library changes in 1.31 ===
36
37 ==== Upgraded external libraries ====
38 * …
39
40 ==== New external libraries ====
41 * …
42
43 ==== Removed and replaced external libraries ====
44 * (T17845) The deprecated 'jquery.badge' module was removed.
45 * The deprecated 'jquery.autoEllipsis' module was removed. Use the CSS
46 text-overflow property instead.
47 * The deprecated 'jquery.placeholder' module was removed.
48 * The deprecated 'jquery.appear' module was removed. Use the
49 'mediawiki.viewport' module instead.
50 * The deprecated 'mediawiki.widgets.CategorySelector' module alias was removed.
51 Use the 'mediawiki.widgets.CategoryMultiselectWidget' module directly instead.
52
53 === Bug fixes in 1.31 ===
54 * (T90902) Non-breaking space in header ID breaks anchor
55
56 === Action API changes in 1.31 ===
57 * …
58
59 === Action API internal changes in 1.31 ===
60 * …
61
62 === Languages updated in 1.31 ===
63 MediaWiki supports over 350 languages. Many localisations are updated
64 regularly. Below only new and removed languages are listed, as well as
65 changes to languages because of Phabricator reports.
66
67 * (T180052) Mirandese (mwl) now supports gendered NS_USER/NS_USER_TALK namespaces.
68
69 === Other changes in 1.31 ===
70 * MessageBlobStore::insertMessageBlob() (deprecated in 1.27) was removed.
71 * The global function wfBCP47 was renamed to LanguageCode::bcp47.
72 * The global function wfBCP47 is now deprecated.
73 * The global function wfCountDown() is now deprecated in favor of
74 Maintenance::countDown()
75 * The OutputPage class constructor now requires a context parameter,
76 (instantiating without context was deprecated in 1.18)
77 * mw.page (deprecated in 1.30) was removed.
78 * Article::getLastPurgeTimestamp(), WikiPage::getLastPurgeTimestamp(), and the
79 related WikiPage::PURGE_* constants, deprecated in 1.29, were removed.
80 * The Article::selectFields(), Article::onArticleCreate(),
81 Article::onArticleDelete(), and Article::onArticleEdit() methods, deprecated
82 in 1.24, were removed.
83 * Installer::locateExecutable() and Installer::locateExecutableInDefaultPaths()
84 were removed, use ExecutableFinder::findInDefaultPaths() instead.
85 * Several methods for returning lists of fields to select from the database
86 have been deprecated in favor of similar methods that also return the tables
87 to select from and the join conditions for those tables.
88 * Block::selectFields() → Block::getQueryInfo()
89 * RecentChange::selectFields() → RecentChange::getQueryInfo()
90 * ArchivedFile::selectFields() → ArchivedFile::getQueryInfo()
91 * LocalFile::selectFields() → LocalFile::getQueryInfo()
92 * LocalFile::getCacheFields() with a prefix no longer works
93 * LocalFile::getLazyCacheFields() with a prefix no longer works
94 * OldLocalFile::selectFields() → OldLocalFile::getQueryInfo()
95 * RecentChange::selectFields() → RecentChange::getQueryInfo()
96 * Revision::userJoinCond() → Revision::getQueryInfo( [ 'user' ] )
97 * Revision::selectUserFields() → Revision::getQueryInfo( [ 'user' ] )
98 * Revision::pageJoinCond() → Revision::getQueryInfo( [ 'page' ] )
99 * Revision::selectPageFields() → Revision::getQueryInfo( [ 'page' ] )
100 * Revision::selectTextFields() → Revision::getQueryInfo( [ 'text' ] )
101 * Revision::selectFields() → Revision::getQueryInfo()
102 * Revision::selectArchiveFields() → Revision::getArchiveQueryInfo()
103 * User::selectFields() → User::getQueryInfo()
104 * WikiPage::selectFields() → WikiPage::getQueryInfo()
105 * Due to significant refactoring, method ContribsPager::getUserCond() that had
106 no access restriction has been removed.
107 * Revision::setUserIdAndName() was deprecated.
108 * Access to TitleValue class properties was deprecated, the relevant getters
109 should be used instead.
110 * DifferenceEngine::getDiffBodyCacheKey() is deprecated. Subclasses should
111 override DifferenceEngine::getDiffBodyCacheKeyParams() instead.
112 * The deprecated MW_DIFF_VERSION constant was removed.
113 DifferenceEngine::MW_DIFF_VERSION should be used instead.
114 * Use of Maintenance::error( $err, $die ) to exit script was deprecated. Use
115 Maintenance::fatalError() instead.
116 * Passing a ParserOptions object to OutputPage::parserOptions() is deprecated.
117 * Browser support for Opera 12 and older was removed.
118 Opera 15+ continues at Grade A support.
119 * The Block class will no longer accept usable-but-missing usernames for
120 'byText' or ->setBlocker(). Callers should either ensure the blocker exists
121 locally or use a new interwiki-format username like "iw>Example".
122
123 == Compatibility ==
124 MediaWiki 1.31 requires PHP 5.5.9 or later. There is experimental support for
125 HHVM 3.6.5 or later.
126
127 MySQL/MariaDB is the recommended DBMS. PostgreSQL or SQLite can also be used,
128 but support for them is somewhat less mature. There is experimental support for
129 Oracle and Microsoft SQL Server.
130
131 The supported versions are:
132
133 * MySQL 5.0.3 or later
134 * PostgreSQL 8.3 or later
135 * SQLite 3.3.7 or later
136 * Oracle 9.0.1 or later
137 * Microsoft SQL Server 2005 (9.00.1399)
138
139 == Upgrading ==
140 1.31 has several database changes since 1.30, and will not work without schema
141 updates. Note that due to changes to some very large tables like the revision
142 table, the schema update may take quite long (minutes on a medium sized site,
143 many hours on a large site).
144
145 Don't forget to always back up your database before upgrading!
146
147 See the file UPGRADE for more detailed upgrade instructions, including
148 important information when upgrading from versions prior to 1.11.
149
150 For notes on 1.30.x and older releases, see HISTORY.
151
152 == Online documentation ==
153 Documentation for both end-users and site administrators is available on
154 MediaWiki.org, and is covered under the GNU Free Documentation License (except
155 for pages that explicitly state that their contents are in the public domain):
156
157 https://www.mediawiki.org/wiki/Special:MyLanguage/Documentation
158
159 == Mailing list ==
160 A mailing list is available for MediaWiki user support and discussion:
161
162 https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
163
164 A low-traffic announcements-only list is also available:
165
166 https://lists.wikimedia.org/mailman/listinfo/mediawiki-announce
167
168 It's highly recommended that you sign up for one of these lists if you're
169 going to run a public MediaWiki, so you can be notified of security fixes.
170
171 == IRC help ==
172 There's usually someone online in #mediawiki on irc.freenode.net.