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