Merge "Introduce config var for moved-paragraph-detection threshold"
[lhc/web/wiklou.git] / RELEASE-NOTES-1.30
1 == MediaWiki 1.30 ==
2
3 THIS IS NOT A RELEASE YET
4
5 MediaWiki 1.30 is an alpha-quality branch and is not recommended for use in
6 production.
7
8 === MySQL version requirement in 1.30 ===
9 As of 1.30, MediaWiki now requires MySQL 5.5.8 or higher (see Compatibility
10 section).
11
12 === Configuration changes in 1.30 ===
13 * The "C.UTF-8" locale should be used for $wgShellLocale, if available, to avoid
14 unexpected behavior when code uses locale-sensitive string comparisons. For
15 example, the Scribunto extension considers "bar" < "Foo" in most locales
16 since it ignores case.
17 * $wgShellLocale now affects LC_ALL rather than only LC_CTYPE. See
18 documentation of $wgShellLocale for details.
19 * $wgShellLocale is now applied for all requests. wfInitShellLocale() is
20 deprecated and a no-op, as it is no longer needed.
21 * $wgJobClasses may now specify callback functions as an alternative to plain
22 class names. This is intended for extensions that want control over the
23 instantiation of their jobs, to allow for proper dependency injection.
24 * $wgResourceModules may now specify callback functions as an alternative
25 to plain class names, using the 'factory' key in the module description
26 array. This allows dependency injection to be used for ResourceLoader modules.
27 * $wgExceptionHooks has been removed.
28 * (T45547) $wgUsePigLatinVariant added (off by default).
29
30 === New features in 1.30 ===
31 * (T37247) Output from Parser::parse() will now be wrapped in a div with
32 class="mw-parser-output" by default. This may be changed or disabled using
33 ParserOptions::setWrapOutputClass().
34 * Added 'ChangeTagsAllowedAdd' hook, enabling extensions to allow software-
35 specific tags to be added by users.
36 * Added a 'ParserOptionsRegister' hook to allow extensions to register
37 additional parser options.
38 * (T45547) Included Pig Latin, a language game in English, as a
39 LanguageConverter variant. This allows English-speaking developers
40 to develop and test LanguageConverter more easily. Pig Latin can be
41 enabled by setting $wgUsePigLatinVariant to true.
42 * Added RecentChangesPurgeRows hook to allow extensions to purge data that
43 depends on the recentchanges table.
44
45 === Languages updated in 1.30 ===
46
47 * Support for kbp (Kabɩyɛ / Kabiyè) was added.
48
49 === External library changes in 1.30 ===
50
51 ==== Upgraded external libraries ====
52 * mediawiki/mediawiki-codesniffer updated to 0.8.1.
53 * wikimedia/composer-merge-plugin updated to 1.4.1.
54
55 ==== New external libraries ====
56 * The class \TestingAccessWrapper has been moved to the external library
57 wikimedia/testing-access-wrapper and renamed \Wikimedia\TestingAccessWrapper.
58
59 ==== Removed and replaced external libraries ====
60 * …
61
62 === Bug fixes in 1.30 ===
63 * (T151633) Ordered list items use now Devanagari digits in Nepalese
64 (thanks to Sfic)
65
66 === Action API changes in 1.30 ===
67 * (T37247) action=parse output will be wrapped in a div with
68 class="mw-parser-output" by default. This may be changed or disabled using
69 the new 'wrapoutputclass' parameter.
70 * When errorformat is not 'bc', abort reasons from action=login will be
71 formatted as specified by the error formatter parameters.
72 * action=compare can now handle arbitrary text, deleted revisions, and
73 returning users and edit comments.
74 * (T164106) The 'rvdifftotext', 'rvdifftotextpst', 'rvdiffto',
75 'rvexpandtemplates', 'rvgeneratexml', 'rvparse', and 'rvprop=parsetree'
76 parameters to prop=revisions are deprecated, as are the similarly named
77 parameters to prop=deletedrevisions, list=allrevisions, and
78 list=alldeletedrevisions. Use action=compare, action=parse, or
79 action=expandtemplates instead.
80
81 === Action API internal changes in 1.30 ===
82 * ApiBase::getDescriptionMessage() and the "apihelp-*-description" messages are
83 deprecated. The existing message should be split between "apihelp-*-summary"
84 and "apihelp-*-extended-description".
85 * (T123931) Individual values of multi-valued parameters can now be marked as
86 deprecated.
87
88 === Languages updated in 1.30 ===
89 MediaWiki supports over 350 languages. Many localisations are updated
90 regularly. Below only new and removed languages are listed, as well as
91 changes to languages because of Phabricator reports.
92
93 * …
94
95 ==== Pig Latin added ====
96 * (T45547) Added Pig Latin, a made-up English variant (en-x-piglatin),
97 for easier variant development and testing. Disabled by default. It can be
98 enabled by setting $wgUsePigLatinVariant to true.
99
100 === Other changes in 1.30 ===
101 * The use of an associative array for $wgProxyList, where the IP address is in
102 the key instead of the value, is deprecated (e.g. [ '127.0.0.1' => 'value' ]).
103 Please convert these arrays to indexed/sequential ones (e.g. [ '127.0.0.1' ]).
104 * mw.user.bucket (deprecated in 1.23) was removed.
105 * LoadBalancer::getServerInfo() and LoadBalancer::setServerInfo() are
106 deprecated. There are no known callers.
107 * File::getStreamHeaders() was deprecated.
108 * MediaHandler::getStreamHeaders() was deprecated.
109 * Title::canTalk() was deprecated. The new Title::canHaveTalkPage() should be
110 used instead.
111 * MWNamespace::canTalk() was deprecated. The new MWNamespace::hasTalkNamespace()
112 should be used instead.
113 * The ExtractThumbParameters hook (deprecated in 1.21) was removed.
114 * The OutputPage::addParserOutputNoText and ::getHeadLinks methods (both
115 deprecated in 1.24) were removed.
116 * wfMemcKey() and wfGlobalCacheKey() were deprecated. BagOStuff::makeKey() and
117 BagOStuff::makeGlobalKey() should be used instead.
118 * (T146304) Preprocessor handling of LanguageConverter markup has been improved.
119 As a result of the new uniform handling, '-{' may need to be escaped
120 (for example, as '-<nowiki/>{') where it occurs inside template arguments
121 or wikilinks.
122 * (T163966) Page moves are now counted as edits for the purposes of
123 autopromotion, i.e., they increment the user_editcount field in the database.
124 * Two new hooks, LogEventsListLineEnding and NewPagesLineEnding, were added for
125 manipulating Special:Log and Special:NewPages lines.
126 * The OldChangesListRecentChangesLine, EnhancedChangesListModifyLineData,
127 PageHistoryLineEnding, ContributionsLineEnding and DeletedContributionsLineEnding
128 hooks have an additional parameter, for manipulating HTML data attributes of
129 RC/history lines. EnhancedChangesListModifyBlockLineData can do that via the
130 $data['attribs'] subarray.
131 * (T130632) The OutputPage::enableTOC() method was removed.
132 * WikiPage::getParserOutput() will now throw an exception if passed
133 ParserOptions that would pollute the parser cache. Callers should use
134 WikiPage::makeParserOptions() to create the ParserOptions object and only
135 change options that affect the parser cache key.
136 * Article::viewRedirect() is deprecated.
137 * DeprecatedGlobal no longer supports passing in a direct value, it requires a
138 callable factory function or a class name.
139 * The $parserMemc global, wfGetParserCacheStorage(), and ParserCache::singleton()
140 are all deprecated. The main ParserCache instance should be obtained from
141 MediaWikiServices instead. Access to the underlying BagOStuff is possible
142 through the new ParserCache::getCacheStorage() method.
143 * .mw-ui-constructive CSS class (deprecated in 1.27) was removed.
144
145 == Compatibility ==
146 MediaWiki 1.30 requires PHP 5.5.9 or later. There is experimental support for
147 HHVM 3.6.5 or later.
148
149 MySQL/MariaDB is the recommended DBMS. PostgreSQL or SQLite can also be used,
150 but support for them is somewhat less mature. There is experimental support for
151 Oracle and Microsoft SQL Server.
152
153 The supported versions are:
154
155 * MySQL 5.5.8 or later
156 * PostgreSQL 8.3 or later
157 * SQLite 3.3.7 or later
158 * Oracle 9.0.1 or later
159 * Microsoft SQL Server 2005 (9.00.1399)
160
161 == Upgrading ==
162 1.30 has several database changes since 1.29, and will not work without schema
163 updates. Note that due to changes to some very large tables like the revision
164 table, the schema update may take a long time (minutes on a medium sized site,
165 many hours on a large site).
166
167 Don't forget to always back up your database before upgrading!
168
169 See the file UPGRADE for more detailed upgrade instructions, including
170 important information when upgrading from versions prior to 1.11.
171
172 For notes on 1.29.x and older releases, see HISTORY.
173
174 == Online documentation ==
175 Documentation for both end-users and site administrators is available on
176 MediaWiki.org, and is covered under the GNU Free Documentation License (except
177 for pages that explicitly state that their contents are in the public domain):
178
179 https://www.mediawiki.org/wiki/Special:MyLanguage/Documentation
180
181 == Mailing list ==
182 A mailing list is available for MediaWiki user support and discussion:
183
184 https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
185
186 A low-traffic announcements-only list is also available:
187
188 https://lists.wikimedia.org/mailman/listinfo/mediawiki-announce
189
190 It's highly recommended that you sign up for one of these lists if you're
191 going to run a public MediaWiki, so you can be notified of security fixes.
192
193 == IRC help ==
194 There's usually someone online in #mediawiki on irc.freenode.net.