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