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