EditPage: Remove legacy non-OOUI render mode
[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 * (T152540) MediaWiki now supports a section ID escaping style that allows to display
30 non-Latin characters verbatim on many modern browsers. This is controlled by the
31 new configuration setting, $wgFragmentMode.
32 * $wgExperimentalHtmlIds is now deprecated and will be removed in a future version,
33 use $wgFragmentMode to migrate off it to a modern alternative.
34 * $wgExternalInterwikiFragmentMode was introduced to control how fragments in
35 sinterwikis going outside of current wiki farm are encoded.
36 * (T120333) Soft-deprecated the use of PHP extension 'mysql' in favor of 'mysqli'.
37 This PHP extension was deprecated in PHP 5.5 and removed in PHP 7.0. MediaWiki
38 auto-selects the 'mysqli' driver since MediaWiki 1.22, except if explicitly
39 requested through the configuration parameter $wgDBservers.
40 * $wgOOUIEditPage was removed, as it is now the default. This was documented as a
41 temporary variable during the migration period.
42
43 === New features in 1.30 ===
44 * (T37247) Output from Parser::parse() will now be wrapped in a div with
45 class="mw-parser-output" by default. This may be changed or disabled using
46 ParserOptions::setWrapOutputClass().
47 * Added 'ChangeTagsAllowedAdd' hook, enabling extensions to allow software-
48 specific tags to be added by users.
49 * Added a 'ParserOptionsRegister' hook to allow extensions to register
50 additional parser options.
51 * (T45547) Included Pig Latin, a language game in English, as a
52 LanguageConverter variant. This allows English-speaking developers
53 to develop and test LanguageConverter more easily. Pig Latin can be
54 enabled by setting $wgUsePigLatinVariant to true.
55 * Added RecentChangesPurgeRows hook to allow extensions to purge data that
56 depends on the recentchanges table.
57 * Added JS config values wgDiffOldId/wgDiffNewId to the output of diff pages.
58 * (T2424) Added direct unwatch links to entries in Special:Watchlist (if the
59 'watchlistunwatchlinks' preference option is enabled). With JavaScript
60 enabled, these links toggle so the user can also re-watch pages that have
61 just been unwatched.
62 * Added $wgParserTestMediaHandlers, where mock media handlers can be passed to
63 MediaHandlerFactory for parser tests.
64
65 === Languages updated in 1.30 ===
66
67 * Support for kbp (Kabɩyɛ / Kabiyè) was added.
68 * Support for skr (Saraiki, سرائیکی) was added.
69
70 === External library changes in 1.30 ===
71
72 ==== Upgraded external libraries ====
73 * mediawiki/mediawiki-codesniffer updated to 0.8.1.
74 * wikimedia/composer-merge-plugin updated to 1.4.1.
75
76 ==== New external libraries ====
77 * The class \TestingAccessWrapper has been moved to the external library
78 wikimedia/testing-access-wrapper and renamed \Wikimedia\TestingAccessWrapper.
79
80 ==== Removed and replaced external libraries ====
81 * …
82
83 === Bug fixes in 1.30 ===
84 * (T151633) Ordered list items use now Devanagari digits in Nepalese
85 (thanks to Sfic)
86
87 === Action API changes in 1.30 ===
88 * (T37247) action=parse output will be wrapped in a div with
89 class="mw-parser-output" by default. This may be changed or disabled using
90 the new 'wrapoutputclass' parameter.
91 * When errorformat is not 'bc', abort reasons from action=login will be
92 formatted as specified by the error formatter parameters.
93 * action=compare can now handle arbitrary text, deleted revisions, and
94 returning users and edit comments.
95 * (T164106) The 'rvdifftotext', 'rvdifftotextpst', 'rvdiffto',
96 'rvexpandtemplates', 'rvgeneratexml', 'rvparse', and 'rvprop=parsetree'
97 parameters to prop=revisions are deprecated, as are the similarly named
98 parameters to prop=deletedrevisions, list=allrevisions, and
99 list=alldeletedrevisions. Use action=compare, action=parse, or
100 action=expandtemplates instead.
101
102 === Action API internal changes in 1.30 ===
103 * ApiBase::getDescriptionMessage() and the "apihelp-*-description" messages are
104 deprecated. The existing message should be split between "apihelp-*-summary"
105 and "apihelp-*-extended-description".
106 * (T123931) Individual values of multi-valued parameters can now be marked as
107 deprecated.
108
109 === Languages updated in 1.30 ===
110 MediaWiki supports over 350 languages. Many localisations are updated
111 regularly. Below only new and removed languages are listed, as well as
112 changes to languages because of Phabricator reports.
113
114 * …
115
116 ==== Pig Latin added ====
117 * (T45547) Added Pig Latin, a made-up English variant (en-x-piglatin),
118 for easier variant development and testing. Disabled by default. It can be
119 enabled by setting $wgUsePigLatinVariant to true.
120
121 === Other changes in 1.30 ===
122 * The use of an associative array for $wgProxyList, where the IP address is in
123 the key instead of the value, is deprecated (e.g. [ '127.0.0.1' => 'value' ]).
124 Please convert these arrays to indexed/sequential ones (e.g. [ '127.0.0.1' ]).
125 * mw.user.bucket (deprecated in 1.23) was removed.
126 * LoadBalancer::getServerInfo() and LoadBalancer::setServerInfo() are
127 deprecated. There are no known callers.
128 * File::getStreamHeaders() was deprecated.
129 * MediaHandler::getStreamHeaders() was deprecated.
130 * Title::canTalk() was deprecated. The new Title::canHaveTalkPage() should be
131 used instead.
132 * MWNamespace::canTalk() was deprecated. The new MWNamespace::hasTalkNamespace()
133 should be used instead.
134 * The ExtractThumbParameters hook (deprecated in 1.21) was removed.
135 * The OutputPage::addParserOutputNoText and ::getHeadLinks methods (both
136 deprecated in 1.24) were removed.
137 * wfMemcKey() and wfGlobalCacheKey() were deprecated. BagOStuff::makeKey() and
138 BagOStuff::makeGlobalKey() should be used instead.
139 * (T146304) Preprocessor handling of LanguageConverter markup has been improved.
140 As a result of the new uniform handling, '-{' may need to be escaped
141 (for example, as '-<nowiki/>{') where it occurs inside template arguments
142 or wikilinks.
143 * (T163966) Page moves are now counted as edits for the purposes of
144 autopromotion, i.e., they increment the user_editcount field in the database.
145 * Two new hooks, LogEventsListLineEnding and NewPagesLineEnding, were added for
146 manipulating Special:Log and Special:NewPages lines.
147 * The OldChangesListRecentChangesLine, EnhancedChangesListModifyLineData,
148 PageHistoryLineEnding, ContributionsLineEnding and DeletedContributionsLineEnding
149 hooks have an additional parameter, for manipulating HTML data attributes of
150 RC/history lines. EnhancedChangesListModifyBlockLineData can do that via the
151 $data['attribs'] subarray.
152 * (T130632) The OutputPage::enableTOC() method was removed.
153 * WikiPage::getParserOutput() will now throw an exception if passed
154 ParserOptions that would pollute the parser cache. Callers should use
155 WikiPage::makeParserOptions() to create the ParserOptions object and only
156 change options that affect the parser cache key.
157 * Article::viewRedirect() is deprecated.
158 * DeprecatedGlobal no longer supports passing in a direct value, it requires a
159 callable factory function or a class name.
160 * The $parserMemc global, wfGetParserCacheStorage(), and ParserCache::singleton()
161 are all deprecated. The main ParserCache instance should be obtained from
162 MediaWikiServices instead. Access to the underlying BagOStuff is possible
163 through the new ParserCache::getCacheStorage() method.
164 * .mw-ui-constructive CSS class (deprecated in 1.27) was removed.
165 * Sanitizer::escapeId() was deprecated, use escapeIdForAttribute(),
166 escapeIdForLink() or escapeIdForExternalInterwiki() instead.
167 * Title::escapeFragmentForURL() was deprecated, use one of the aforementioned
168 Sanitizer functions or, if possible, Title::getFragmentForURL().
169 * Second parameter to Sanitizer::escapeIdReferenceList() ($options) now does
170 nothing and is deprecated.
171 * mw.util.escapeId() was deprecated, use escapeIdForAttribute() or
172 escapeIdForLink().
173 * MagicWord::replaceMultiple() (deprecated in 1.25) was removed.
174 * WikiImporter now requires the second parameter to be an instance of the Config,
175 class. Prior to that, the Config parameter was optional (a behavior deprecated in
176 1.25).
177 * Removed 'jquery.mwExtension' module. (deprecated since 1.26)
178 * mediawiki.ui: Deprecate greys, which are not part of WikimediaUI color palette
179 any more.
180 * CdbReader, CdbWriter, CdbException classes (deprecated in 1.25) were removed.
181 The namespaced classes in the Cdb namespace should be used instead.
182 * IPSet class (deprecated in 1.26) was removed. The namespaced IPSet\IPSet
183 should be used instead.
184 * RunningStat class (deprecated in 1.27) was removed. The namespaced
185 RunningStat\RunningStat should be used instead.
186 * MWMemcached and MemCachedClientforWiki classes (deprecated in 1.27) were removed.
187 The MemcachedClient class should be used instead.
188 * EditPage::isOouiEnabled() is deprecated and will always return true.
189
190 == Compatibility ==
191 MediaWiki 1.30 requires PHP 5.5.9 or later. There is experimental support for
192 HHVM 3.6.5 or later.
193
194 MySQL/MariaDB is the recommended DBMS. PostgreSQL or SQLite can also be used,
195 but support for them is somewhat less mature. There is experimental support for
196 Oracle and Microsoft SQL Server.
197
198 The supported versions are:
199
200 * MySQL 5.5.8 or later
201 * PostgreSQL 8.3 or later
202 * SQLite 3.3.7 or later
203 * Oracle 9.0.1 or later
204 * Microsoft SQL Server 2005 (9.00.1399)
205
206 == Upgrading ==
207 1.30 has several database changes since 1.29, and will not work without schema
208 updates. Note that due to changes to some very large tables like the revision
209 table, the schema update may take a long time (minutes on a medium sized site,
210 many hours on a large site).
211
212 Don't forget to always back up your database before upgrading!
213
214 See the file UPGRADE for more detailed upgrade instructions, including
215 important information when upgrading from versions prior to 1.11.
216
217 For notes on 1.29.x and older releases, see HISTORY.
218
219 == Online documentation ==
220 Documentation for both end-users and site administrators is available on
221 MediaWiki.org, and is covered under the GNU Free Documentation License (except
222 for pages that explicitly state that their contents are in the public domain):
223
224 https://www.mediawiki.org/wiki/Special:MyLanguage/Documentation
225
226 == Mailing list ==
227 A mailing list is available for MediaWiki user support and discussion:
228
229 https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
230
231 A low-traffic announcements-only list is also available:
232
233 https://lists.wikimedia.org/mailman/listinfo/mediawiki-announce
234
235 It's highly recommended that you sign up for one of these lists if you're
236 going to run a public MediaWiki, so you can be notified of security fixes.
237
238 == IRC help ==
239 There's usually someone online in #mediawiki on irc.freenode.net.