Merge "Improve error handling for wrong autoloader permissions"
[lhc/web/wiklou.git] / RELEASE-NOTES-1.33
1 == MediaWiki 1.33 ==
2
3 THIS IS NOT A RELEASE YET
4
5 MediaWiki 1.33 is an alpha-quality branch and is not recommended for use in
6 production.
7
8 === Configuration changes in 1.33 ===
9
10 ==== New configuration ====
11 * $wgEnablePartialBlocks – This enables the Partial Blocks feature, which gives
12 accounts with block permissions the ability to block users, IPs, and IP ranges
13 from editing specific pages, while allowing them to edit the rest of the wiki.
14 * $wgMediaInTargetLanguage – whether multilingual images should be dispalyed in
15 the current parse language where available.
16
17 ==== Changed configuration ====
18 * Some external link searches will not work correctly until update.php (or
19 refreshExternallinksIndex.php) is run. These include searches for links using
20 IP addresses, internationalized domain names, and possibly mailto links.
21 * (T193868) $wgChangeTagsSchemaMigrationStage — This temporary setting, added in
22 MediaWiki 1.32, now defaults to MIGRATION_NEW instead of MIGRATION_WRITE_BOTH.
23
24 ==== Removed configuration ====
25 * (T199334) $wgTagStatisticsNewTable — This temporary setting, added in
26 MediaWiki 1.32, has now been removed. When loading Special:Tags, MediaWiki
27 will now always use the `change_tag_def` instead of the `change_tag` table.
28 * MediaWiki now always tidies user output, and most related
29 configuration has been removed. Thus $wgUseTidy, $wgTidyBin,
30 $wgTidyConf, $wgTidyOpts, $wgTidyInternal, and $wgDebugTidy, all
31 deprecated since 1.26, have now all been removed. The $wgTidyConfig
32 setting remains only for Remex experimental features or debugging.
33 * $wgEnableParserCache, deprecated since 1.26, was removed.
34 If disabling the parser cache is still desirable,
35 set `$wgParserCacheType = CACHE_NONE;` instead.
36
37 === New features in 1.33 ===
38 * (T96041) __EXPECTUNUSEDCATEGORY__ on a category page causes the category
39 to be hidden on Special:UnusedCategories.
40 * Add PasswordPolicy to check the password isn't in the large blacklist.
41 * The AuthManagerLoginAuthenticateAudit hook has a new parameter for
42 additional information about the authentication event.
43 * TextContent::getText() was introduced as a replacement for
44 Content::getNativeData() for text-based content models.
45 * (T210814) SVGs are now by default displayed in wiki language on image
46 pages.
47
48 === External library changes in 1.33 ===
49
50 ==== New external libraries ====
51 * Added wikimedia/password-blacklist 0.1.4.
52 * Added guzzlehttp/guzzle 6.3.3.
53
54 ==== Changed external libraries ====
55 * Updated OOUI from v0.29.2 to v0.30.2.
56 * Updated wikimedia/xmp-reader from 0.6.0 to 0.6.1.
57 * Updated wikimedia/scoped-callback from 2.0.0 to 3.0.0.
58 * Updated wikimedia/ip-set from 1.2.0 to 2.0.0.
59 * The deprecated IPSet\IPSet alias was removed, Wikimedia\IPSet must be
60 used instead.
61 * Updated qunitjs from 2.6.2 to 2.9.1.
62
63 ==== Removed external libraries ====
64
65 === Bug fixes in 1.33 ===
66 * (T164211) Special:UserRights could sometimes fail with a
67 "conflict detected" error when there weren't any conflicts.
68
69 === Action API changes in 1.33 ===
70 * (T198913) Added 'ApiOptions' hook.
71 * The JSON formatversion=2 is no longer experimental.
72 * Internal API errors (those with code beginning "internal_api_error") will
73 include the exception class name in a data field named "errorclass".
74 * Class names are not guaranteed to remain stable, and in particular database
75 exceptions will now include the "Wikimedia\Rdbms\" prefix in the class name.
76 * The code including an exception class name is deprecated. In the future,
77 all internal errors will use code "internal_api_error".
78 * (T212356) When using action=delete on pages with many revisions, the module
79 may return a boolean-true 'scheduled' and no 'logid'. This signifies that the
80 deletion will be processed via the job queue.
81 * action=setnotificationtimestamp will now update the watchlist asynchronously
82 if entirewatchlist is set, so updates may not be visible immediately
83
84 === Action API internal changes in 1.33 ===
85 * A number of deprecated methods for API documentation, intended for overriding
86 by extensions, are no longer called by MediaWiki, and will emit deprecation
87 notices if your extension attempts to use them:
88 * ApiBase::getDescription() (deprecated in 1.25)
89 * ApiBase::getParamDescription() (deprecated in 1.25)
90 * ApiBase::getExamples() (deprecated in 1.25)
91 * ApiBase::getDescriptionMessage() (deprecated in 1.30)
92 Additionally, the 'APIGetDescription' and 'APIGetParamDescription' hooks have
93 been removed, as their only use was to let extensions override values returned
94 by getDescription() and getParamDescription(), respectively.
95 * API error codes may only contain ASCII letters, numbers, underscore, and
96 hyphen. Methods such as ApiBase::dieWithError() and
97 ApiMessageTrait::setApiCode() will throw an InvalidArgumentException if
98 passed a bad code.
99
100 === Languages updated in 1.33 ===
101 MediaWiki supports over 350 languages. Many localisations are updated regularly.
102 Below only new and removed languages are listed, as well as changes to languages
103 because of Phabricator reports.
104
105 * (T203908) Added language support for Eastern Pwo (kjp).
106 * (T213717) Fixed a translation error on Goan Konkani (gom-deva) translations
107 for NS_TEMPLATE.
108 * (T212221) Added $digitTransformTable for Santali (sat).
109
110 === Breaking changes in 1.33 ===
111 * The parameteter $lang in DifferenceEngine::setTextLanguage must be of type
112 Language. Other types are deprecated since 1.32.
113 * Skin::doEditSectionLink requires type Language for the parameter $lang.
114 The parameters $tooltip and $lang are mandatory. Omitting the parameters is
115 deprecated since 1.32.
116 * Language::truncate(), deprecated in 1.31, has been removed.
117 * UtfNormal, deprecated in 1.25, was removed. Use UtfNormal\Validator directly
118 instead.
119 * (T197179) In OOUI HTMLForm fields, the parameters 'notice', 'notice-messages',
120 and 'notice-message', which were deprecated in 1.32, were removed. Instead,
121 use 'help', 'help-message', and 'help-messages'.
122 * (T197179) HTMLFormField::getNotices(), deprecated in 1.32, was removed.
123 * The "Parsoid v1" compatibility mappings in ParsoidVirtualRESTService and
124 RestbaseVirtualRESTService, deprecated since 1.26, have been removed.
125 Use the RESTBase v1 or Parsoid v3 API instead.
126 * ParserOptions defaults 'tidy' to true now, since the untidy modes of the
127 parser are being deprecated and ParserOptions::getCanonicalOverrides()
128 has always been true at any rate.
129 * Support for disabling tidy and external tidy implementations has been removed.
130 This was deprecated in 1.32. The pure PHP Remex tidy implementation is now
131 used and no configuration is necessary.
132 * A number of deprecated methods for API documentation, intended for overriding
133 by extensions, are no longer called by MediaWiki, and will emit deprecation
134 notices if your extension attempts to use them:
135 * ApiBase::getDescription() (deprecated in 1.25)
136 * ApiBase::getParamDescription() (deprecated in 1.25)
137 * ApiBase::getExamples() (deprecated in 1.25)
138 * ApiBase::getDescriptionMessage() (deprecated in 1.30)
139 Additionally, the 'APIGetDescription' and 'APIGetParamDescription' hooks have
140 been removed, as their only use was to let extensions override values returned
141 by getDescription() and getParamDescription(), respectively.
142 * The authentication hooks 'AbortAutoAccount' 'AbortNewAccount', 'AbortLogin',
143 'LoginUserMigrated', 'UserCreateForm', and 'UserLoginForm', all deprecated by
144 the creation of AuthManager in 1.27, have been removed. This also means that
145 the FakeAuthTemplate and LoginForm classes are removed, that FakeAuthTemplate
146 is no longer passed into LoginSignupSpecialPage->getFieldDefinitions(), and
147 that LoginSignupSpecialPage->getBCFieldDefinitions() is removed.
148 * The 'jquery.localize' module, deprecated in 1.32, has been removed. Instead,
149 use 'jquery.i18n'.
150 * The hooks LanguageGetSpecialPageAliases and LanguageGetMagic, deprecated since
151 1.16, have now been removed. Instead, use $specialPageAliases or $magicWords
152 respectively in a $wgExtensionMessagesFiles file.
153 * The following methods of the Preferences class, deprecated in 1.31, have been
154 removed:
155 * getSaveBlacklist()
156 * loadPreferenceValues()
157 * getOptionFromUser()
158 * profilePreferences()
159 * skinPreferences()
160 * filesPreferences()
161 * datetimePreferences()
162 * renderingPreferences()
163 * editingPreferences()
164 * rcPreferences()
165 * watchlistPreferences()
166 * searchPreferences()
167 * miscPreferences()
168 * generateSkinOptions()
169 * getDateOptions()
170 * getImageSizes()
171 * getThumbSizes()
172 * validateSignature()
173 * cleanSignature()
174 * getTimezoneOptions()
175 * filterIntval()
176 * filterTimezoneInput()
177 * getTimeZoneList()
178 * mw.util.jsMessage(), deprecated in 1.20, was removed. Use mw.notify instead.
179 * (T61113) User::EDIT_TOKEN_SUFFIX was removed. It was deprecated since 1.27.
180 * The 'mediawiki.api' module aliases, deprecated in 1.32, have been removed.
181 Specifically: mediawiki.api.category, mediawiki.api.edit,
182 mediawiki.api.login, mediawiki.api.options, mediawiki.api.parse,
183 mediawiki.api.upload, mediawiki.api.user, mediawiki.api.watch,
184 mediawiki.api.messages, and mediawiki.api.rollback.
185 * The 'jquery.byteLimit' module alias for 'jquery.lengthLimit',
186 deprecated in 1.31, was removed.
187 * Revision::fetchRevision(), deprecated in 1.28, was removed.
188
189 === Deprecations in 1.33 ===
190 * The configuration option $wgUseESI has been deprecated, and is expected
191 to be removed in a future release.
192 * The configuration option $wgSquidPurgeUseHostHeader has been deprecated,
193 and is expected to be removed in a future release.
194 * The configuration options $wgFixArabicUnicode and $wgFixMalayalamUnicode,
195 introduced in MW 1.17, have been deprecated. These fixes will always be
196 applied for Arabic and Malayalam in the future. Please enable these on
197 your local wiki (if you have them explicitly set to false) and run
198 maintenance/cleanupTitles.php to fix any existing page titles.
199 * The LegacyHookPreAuthenticationProvider class, deprecated since its creation
200 in 1.27 as part of the AuthManager re-write, now emits deprecation warnings.
201 This will help identify the issue if you added it to $wgAuthManagerConfig.
202 * wfSplitWikiId() is now deprecated. Cache key generation should have the wiki
203 domain ID as a key component and use makeGlobalKey().
204 * (T202094) Title::getUserCaseDBKey() is deprecated; instead, please use
205 Title::getDBKey(), which doesn't vary case.
206 * User::getPasswordValidity() is now deprecated. User::checkPasswordValidity()
207 returns the same information in a more useful format.
208 * For Linker::generateTOC() and Linker::tocList(), passing strings or booleans
209 as the $lang parameter was deprecated. The same applies to DummyLinker.
210 * The PasswordPolicy 'PasswordCannotBePopular' has been deprecated. To
211 follow best practices, it is reccommended to use 'PasswordNotInLargeBlacklist'
212 instead which blacklists 100,000 commonly used passwords.
213 * (T208862) Action::requiresUnblock() is now called from
214 Title::getUserPermissionsErrors() and Title::userCan(). Previously, the method
215 was only called in Action::checkCanExecute(). Actions should ensure that their
216 requiresUnblock() returns the proper result (the default is `true`).
217 * (T211608) The MediaWiki\Services namespace has been renamed to
218 Wikimedia\Services. The old name is still supported, but deprecated.
219 * (T155582) Content::getNativeData has been deprecated. Please use model-
220 specific getters, such as TextContent::getText().
221 * The class WebInstallerOutput is now marked as @private.
222 * (T209699) The jquery.async module has been deprecated. JavaScript code that
223 needs asynchronous behaviour should use Promises.
224 * Password::equals() is deprecated, use verify().
225 * BaseTemplate::msgWiki() and QuickTemplate::msgWiki() will be removed. Use
226 other means to fetch a properly escaped message string or Message object.
227 * (T126091) The 'ResourceLoaderTestModules' hook, which lets you declare QUnit
228 testing code for your JavaScript modules, is deprecated. Instead, you can now
229 use the new extension registration key 'QUnitTestModule'.
230
231 === Other changes in 1.33 ===
232 * (T208871) The hard-coded Google search form on the database error page was
233 removed.
234 * (T201747) Html::openElement() warns if given an element name with a space
235 in it.
236
237 == Compatibility ==
238 MediaWiki 1.33 requires PHP 7.0.0 or later. Although HHVM 3.18.5 or later is
239 supported, it is generally advised to use PHP 7.0.0 or later for long term
240 support.
241
242 MySQL/MariaDB is the recommended DBMS. PostgreSQL or SQLite can also be used,
243 but support for them is somewhat less mature. There is experimental support for
244 Oracle and Microsoft SQL Server.
245
246 The supported versions are:
247
248 * MySQL 5.5.8 or later
249 * PostgreSQL 9.2 or later
250 * SQLite 3.3.7 or later
251 * Oracle 9.0.1 or later
252 * Microsoft SQL Server 2005 (9.00.1399)
253
254 == Upgrading ==
255 1.33 has several database changes since 1.32, and will not work without schema
256 updates. Note that due to changes to some very large tables like the revision
257 table, the schema update may take quite long (minutes on a medium sized site,
258 many hours on a large site).
259
260 Don't forget to always back up your database before upgrading!
261
262 See the file UPGRADE for more detailed upgrade instructions, including
263 important information when upgrading from versions prior to 1.11.
264
265 For notes on 1.32.x and older releases, see HISTORY.
266
267 == Online documentation ==
268 Documentation for both end-users and site administrators is available on
269 MediaWiki.org, and is covered under the GNU Free Documentation License (except
270 for pages that explicitly state that their contents are in the public domain):
271
272 https://www.mediawiki.org/wiki/Special:MyLanguage/Documentation
273
274 == Mailing list ==
275 A mailing list is available for MediaWiki user support and discussion:
276
277 https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
278
279 A low-traffic announcements-only list is also available:
280
281 https://lists.wikimedia.org/mailman/listinfo/mediawiki-announce
282
283 It's highly recommended that you sign up for one of these lists if you're
284 going to run a public MediaWiki, so you can be notified of security fixes.
285
286 == IRC help ==
287 There's usually someone online in #mediawiki on irc.freenode.net.