Merge "Hide empty OOUI FieldsetLayout headers"
[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 * (T163562) $wgRangeContributionsCIDRLimit was introduced to control the size
29 of IP ranges that can be queried at Special:Contributions.
30 * (T45547) $wgUsePigLatinVariant added (off by default).
31 * (T152540) MediaWiki now supports a section ID escaping style that allows to display
32 non-Latin characters verbatim on many modern browsers. This is controlled by the
33 new configuration setting, $wgFragmentMode.
34 * $wgExperimentalHtmlIds is now deprecated and will be removed in a future version,
35 use $wgFragmentMode to migrate off it to a modern alternative.
36 * $wgExternalInterwikiFragmentMode was introduced to control how fragments in
37 sinterwikis going outside of current wiki farm are encoded.
38 * (T120333) Soft-deprecated the use of PHP extension 'mysql' in favor of 'mysqli'.
39 This PHP extension was deprecated in PHP 5.5 and removed in PHP 7.0. MediaWiki
40 auto-selects the 'mysqli' driver since MediaWiki 1.22, except if explicitly
41 requested through the configuration parameter $wgDBservers.
42 * $wgOOUIEditPage was removed, as it is now the default. This was documented as a
43 temporary variable during the migration period.
44
45 === New features in 1.30 ===
46 * (T37247) Output from Parser::parse() will now be wrapped in a div with
47 class="mw-parser-output" by default. This may be changed or disabled using
48 ParserOptions::setWrapOutputClass().
49 * (T163562) Added ability to search for contributions within an IP ranges
50 at Special:Contributions.
51 * Added 'ChangeTagsAllowedAdd' hook, enabling extensions to allow software-
52 specific tags to be added by users.
53 * Added a 'ParserOptionsRegister' hook to allow extensions to register
54 additional parser options.
55 * (T45547) Included Pig Latin, a language game in English, as a
56 LanguageConverter variant. This allows English-speaking developers
57 to develop and test LanguageConverter more easily. Pig Latin can be
58 enabled by setting $wgUsePigLatinVariant to true.
59 * Added RecentChangesPurgeRows hook to allow extensions to purge data that
60 depends on the recentchanges table.
61 * Added JS config values wgDiffOldId/wgDiffNewId to the output of diff pages.
62 * (T2424) Added direct unwatch links to entries in Special:Watchlist (if the
63 'watchlistunwatchlinks' preference option is enabled). With JavaScript
64 enabled, these links toggle so the user can also re-watch pages that have
65 just been unwatched.
66 * Added $wgParserTestMediaHandlers, where mock media handlers can be passed to
67 MediaHandlerFactory for parser tests.
68 * Edit summaries, block reasons, and other "comments" are now stored in a
69 separate database table. Use the CommentFormatter class to access them.
70 ** This is currently gated by $wgCommentTableSchemaMigrationStage. Most wikis
71 can set this to MIGRATION_NEW and run maintenance/migrateComments.php as
72 soon as any necessary extensions are updated.
73 * (T138166) Added ability for users to prohibit other users from sending them
74 emails with Special:Emailuser. Can be enabled by setting
75 $wgEnableUserEmailBlacklist to true.
76 * (T67297) $wgBrowserBlacklist is deprecated, and changing it will have no effect.
77 Instead, users using browsers that do not support Unicode will be unable to edit
78 and should upgrade to a modern browser instead.
79
80 === External library changes in 1.30 ===
81
82 ==== Upgraded external libraries ====
83 * Updated justinrainbow/json-schema from v3.0 to v5.2.
84 * Updated mediawiki/mediawiki-codesniffer from v0.7.2 to v0.12.0.
85 * Updated wikimedia/composer-merge-plugin from v1.4.0 to v1.4.1.
86 * Updated wikimedia/relpath from v1.0.3 to v2.0.0.
87 * Updated OOjs from v2.0.0 to v2.1.0.
88 * Updated OOUI from v0.21.1 to v0.23.0.
89 * Updated QUnit from v1.23.1 to v2.4.0.
90 * Updated phpunit/phpunit from v4.8.35 to v4.8.36.
91
92 ==== New external libraries ====
93 * The class \TestingAccessWrapper has been moved to the external library
94 wikimedia/testing-access-wrapper and renamed \Wikimedia\TestingAccessWrapper.
95 * Purtle, a fast, lightweight RDF generator.
96
97 ==== Removed and replaced external libraries ====
98 * …
99
100 === Bug fixes in 1.30 ===
101 * (T151633) Ordered list items use now Devanagari digits in Nepalese
102 (thanks to Sfic)
103
104 === Action API changes in 1.30 ===
105 * (T37247) action=parse output will be wrapped in a div with
106 class="mw-parser-output" by default. This may be changed or disabled using
107 the new 'wrapoutputclass' parameter.
108 * When errorformat is not 'bc', abort reasons from action=login will be
109 formatted as specified by the error formatter parameters.
110 * action=compare can now handle arbitrary text, deleted revisions, and
111 returning users and edit comments.
112 * (T164106) The 'rvdifftotext', 'rvdifftotextpst', 'rvdiffto',
113 'rvexpandtemplates', 'rvgeneratexml', 'rvparse', and 'rvprop=parsetree'
114 parameters to prop=revisions are deprecated, as are the similarly named
115 parameters to prop=deletedrevisions, list=allrevisions, and
116 list=alldeletedrevisions. Use action=compare, action=parse, or
117 action=expandtemplates instead.
118
119 === Action API internal changes in 1.30 ===
120 * ApiBase::getDescriptionMessage() and the "apihelp-*-description" messages are
121 deprecated. The existing message should be split between "apihelp-*-summary"
122 and "apihelp-*-extended-description".
123 * (T123931) Individual values of multi-valued parameters can now be marked as
124 deprecated.
125
126 === Languages updated in 1.30 ===
127 MediaWiki supports over 350 languages. Many localisations are updated
128 regularly. Below only new and removed languages are listed, as well as
129 changes to languages because of Phabricator reports.
130
131 * Added: kbp (Kabɩyɛ / Kabiyè)
132 * Added: skr (Saraiki, سرائیکی)
133 * Added: tay (Tayal / Atayal)
134 * Removed: tokipona (Toki Pona)
135
136 ==== Pig Latin added ====
137 * (T45547) Added Pig Latin, a made-up English variant (en-x-piglatin),
138 for easier variant development and testing. Disabled by default. It can be
139 enabled by setting $wgUsePigLatinVariant to true.
140
141 === Other changes in 1.30 ===
142 * The use of an associative array for $wgProxyList, where the IP address is in
143 the key instead of the value, is deprecated (e.g. [ '127.0.0.1' => 'value' ]).
144 Please convert these arrays to indexed/sequential ones (e.g. [ '127.0.0.1' ]).
145 * mw.user.bucket (deprecated in 1.23) was removed.
146 * LoadBalancer::getServerInfo() and LoadBalancer::setServerInfo() are
147 deprecated. There are no known callers.
148 * File::getStreamHeaders() was deprecated.
149 * MediaHandler::getStreamHeaders() was deprecated.
150 * Title::canTalk() was deprecated. The new Title::canHaveTalkPage() should be
151 used instead.
152 * MWNamespace::canTalk() was deprecated. The new MWNamespace::hasTalkNamespace()
153 should be used instead.
154 * The ExtractThumbParameters hook (deprecated in 1.21) was removed.
155 * The OutputPage::addParserOutputNoText and ::getHeadLinks methods (both
156 deprecated in 1.24) were removed.
157 * wfMemcKey() and wfGlobalCacheKey() were deprecated. BagOStuff::makeKey() and
158 BagOStuff::makeGlobalKey() should be used instead.
159 * (T146304) Preprocessor handling of LanguageConverter markup has been improved.
160 As a result of the new uniform handling, '-{' may need to be escaped
161 (for example, as '-<nowiki/>{') where it occurs inside template arguments
162 or wikilinks.
163 * (T163966) Page moves are now counted as edits for the purposes of
164 autopromotion, i.e., they increment the user_editcount field in the database.
165 * Two new hooks, LogEventsListLineEnding and NewPagesLineEnding, were added for
166 manipulating Special:Log and Special:NewPages lines.
167 * The OldChangesListRecentChangesLine, EnhancedChangesListModifyLineData,
168 PageHistoryLineEnding, ContributionsLineEnding and DeletedContributionsLineEnding
169 hooks have an additional parameter, for manipulating HTML data attributes of
170 RC/history lines. EnhancedChangesListModifyBlockLineData can do that via the
171 $data['attribs'] subarray.
172 * (T130632) The OutputPage::enableTOC() method was removed.
173 * WikiPage::getParserOutput() will now throw an exception if passed
174 ParserOptions that would pollute the parser cache. Callers should use
175 WikiPage::makeParserOptions() to create the ParserOptions object and only
176 change options that affect the parser cache key.
177 * Article::viewRedirect() is deprecated.
178 * IP::isValidBlock() was deprecated. Use the equivalent IP::isValidRange().
179 * DeprecatedGlobal no longer supports passing in a direct value, it requires a
180 callable factory function or a class name.
181 * The $parserMemc global, wfGetParserCacheStorage(), and ParserCache::singleton()
182 are all deprecated. The main ParserCache instance should be obtained from
183 MediaWikiServices instead. Access to the underlying BagOStuff is possible
184 through the new ParserCache::getCacheStorage() method.
185 * .mw-ui-constructive CSS class (deprecated in 1.27) was removed.
186 * Sanitizer::escapeId() was deprecated, use escapeIdForAttribute(),
187 escapeIdForLink() or escapeIdForExternalInterwiki() instead.
188 * Title::escapeFragmentForURL() was deprecated, use one of the aforementioned
189 Sanitizer functions or, if possible, Title::getFragmentForURL().
190 * Second parameter to Sanitizer::escapeIdReferenceList() ($options) now does
191 nothing and is deprecated.
192 * mw.util.escapeId() was deprecated, use escapeIdForAttribute() or
193 escapeIdForLink().
194 * MagicWord::replaceMultiple() (deprecated in 1.25) was removed.
195 * WikiImporter now requires the second parameter to be an instance of the Config,
196 class. Prior to that, the Config parameter was optional (a behavior deprecated in
197 1.25).
198 * Removed 'jquery.mwExtension' module. (deprecated since 1.26)
199 * mediawiki.ui: Deprecate greys, which are not part of WikimediaUI color palette
200 any more.
201 * CdbReader, CdbWriter, CdbException classes (deprecated in 1.25) were removed.
202 The namespaced classes in the Cdb namespace should be used instead.
203 * IPSet class (deprecated in 1.26) was removed. The namespaced IPSet\IPSet
204 should be used instead.
205 * RunningStat class (deprecated in 1.27) was removed. The namespaced
206 RunningStat\RunningStat should be used instead.
207 * MWMemcached and MemCachedClientforWiki classes (deprecated in 1.27) were removed.
208 The MemcachedClient class should be used instead.
209 * EditPage underwent some refactoring and deprecations:
210 * EditPage::isOouiEnabled() is deprecated and will always return true.
211 * EditPage::getSummaryInput() and ::getSummaryInputOOUI() are deprecated. Please
212 use ::getSummaryInputWidget() instead.
213 * EditPage::getCheckboxes() and ::getCheckboxesOOUI() are deprecated. Please
214 use ::getCheckboxesWidget() instead.
215 * Creating an EditPage instance without calling EditPage::setContextTitle() should
216 be avoided and will be deprecated in a future release.
217 * EditPage::safeUnicodeInput() and ::safeUnicodeOutput() are deprecated and no-ops.
218 * EditPage::$isCssJsSubpage, ::$isCssSubpage, and ::$isJsSubpage are deprecated. The
219 corresponding methods from Title should be used instead.
220 * EditPage::$isWrongCaseCssJsPage is deprecated. There is no replacement.
221 * EditPage::$mArticle and ::$mTitle are deprecated for public usage. The getters
222 ::getArticle() and ::getTitle() should be used instead.
223 * Trying to control or fake EditPage context by overriding $wgUser, $wgRequest, $wgOut,
224 and $wgLang is no longer supported and won't work. The IContextSource returned from
225 EditPage::getContext() must be modified instead.
226 * Parser::getRandomString() (deprecated in 1.26) was removed.
227 * Parser::uniqPrefix() (deprecated in 1.26) was removed.
228 * Parser::extractTagsAndParams() now only accepts three arguments. The fourth,
229 $uniq_prefix was deprecated in 1.26 and has now been removed.
230 * (T172514) The following tables have had their UNIQUE indexes turned into proper
231 PRIMARY KEYs for increased maintainability: categorylinks, imagelinks, iwlinks,
232 langlinks, log_search, module_deps, objectcache, pagelinks, query_cache, site_stats,
233 templatelinks, text, transcache, user_former_groups, user_properties.
234 * IDatabase::nextSequenceValue() is no longer needed by any database backends
235 (formerly it was needed by PostgreSQL and Oracle), and is now deprecated.
236 * (T146591) The lc_lang_key index on the l10n_cache table has been changed into a
237 PRIMARY KEY.
238 * (T157227) bot_password.bp_user, change_tag.ct_log_id, change_tag.ct_rev_id,
239 page_restrictions.pr_user, tag_summary.ts_log_id, tag_summary.ts_rev_id and
240 user_properties.up_user have all been made unsigned on MySQL.
241 * DB_SLAVE is deprecated. DB_REPLICA should be used instead.
242 * wfUsePHP() is deprecated.
243 * wfFixSessionID() was removed.
244 * wfShellExec() and related functions are deprecated, use Shell::command(). This also
245 slightly changes the behavior of how execution time limits are calculated when only
246 some of defaults are overridden per-call. When in doubt, always override both wall
247 clock and CPU time.
248 * (T138166) SpecialEmailUser::getTarget() now requires a second argument, the sending
249 user object. Using the method without the second argument is deprecated.
250 * (T67297) Browsers that don't support Unicode will have their edits rejected.
251 * (T178450) The module 'jquery.badge' is deprecated and will be removed in a future
252 release. For notifying the user of an event, the Notifications ("Echo") system
253 should be used instead.
254
255 == Compatibility ==
256 MediaWiki 1.30 requires PHP 5.5.9 or later. There is experimental support for
257 HHVM 3.6.5 or later.
258
259 MySQL/MariaDB is the recommended DBMS. PostgreSQL or SQLite can also be used,
260 but support for them is somewhat less mature. There is experimental support for
261 Oracle and Microsoft SQL Server.
262
263 The supported versions are:
264
265 * MySQL 5.5.8 or later
266 * PostgreSQL 8.3 or later
267 * SQLite 3.3.7 or later
268 * Oracle 9.0.1 or later
269 * Microsoft SQL Server 2005 (9.00.1399)
270
271 == Upgrading ==
272 1.30 has several database changes since 1.29, and will not work without schema
273 updates. Note that due to changes to some very large tables like the revision
274 table, the schema update may take a long time (minutes on a medium sized site,
275 many hours on a large site).
276
277 Don't forget to always back up your database before upgrading!
278
279 See the file UPGRADE for more detailed upgrade instructions, including
280 important information when upgrading from versions prior to 1.11.
281
282 For notes on 1.29.x and older releases, see HISTORY.
283
284 == Online documentation ==
285 Documentation for both end-users and site administrators is available on
286 MediaWiki.org, and is covered under the GNU Free Documentation License (except
287 for pages that explicitly state that their contents are in the public domain):
288
289 https://www.mediawiki.org/wiki/Special:MyLanguage/Documentation
290
291 == Mailing list ==
292 A mailing list is available for MediaWiki user support and discussion:
293
294 https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
295
296 A low-traffic announcements-only list is also available:
297
298 https://lists.wikimedia.org/mailman/listinfo/mediawiki-announce
299
300 It's highly recommended that you sign up for one of these lists if you're
301 going to run a public MediaWiki, so you can be notified of security fixes.
302
303 == IRC help ==
304 There's usually someone online in #mediawiki on irc.freenode.net.