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