Add language support for Saisiyat (xsy)
[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 * Special:ActiveUsers will no longer filter out users who became inactive since
24 the last time the active users query cache was updated.
25 * If you ran migrateActors.php using an older version of MediaWiki and want to
26 run your wiki with $wgActorTableSchemaMigrationStage SCHEMA_COMPAT_READ_OLD,
27 note that log_search rows needed to find revision deletions by target user
28 were incorrectly deleted. See T215464 for details.
29
30 ==== Removed configuration ====
31 * (T199334) $wgTagStatisticsNewTable — This temporary setting, added in
32 MediaWiki 1.32, has now been removed. When loading Special:Tags, MediaWiki
33 will now always use the `change_tag_def` instead of the `change_tag` table.
34 * MediaWiki now always tidies user output, and most related
35 configuration has been removed. Thus $wgUseTidy, $wgTidyBin,
36 $wgTidyConf, $wgTidyOpts, $wgTidyInternal, and $wgDebugTidy, all
37 deprecated since 1.26, have now all been removed. The $wgTidyConfig
38 setting remains only for Remex experimental features or debugging.
39 * $wgEnableParserCache, deprecated since 1.26, was removed.
40 If disabling the parser cache is still desirable,
41 set `$wgParserCacheType = CACHE_NONE;` instead.
42 * $wgCommentTableSchemaMigrationStage has been removed. Extension code finding
43 it unset should treat it as being MIGRATION_NEW.
44
45 === New features in 1.33 ===
46 * (T96041) __EXPECTUNUSEDCATEGORY__ on a category page causes the category
47 to be hidden on Special:UnusedCategories.
48 * Add PasswordPolicy to check the password isn't in the large blacklist.
49 * The AuthManagerLoginAuthenticateAudit hook has a new parameter for
50 additional information about the authentication event.
51 * TextContent::getText() was introduced as a replacement for
52 Content::getNativeData() for text-based content models.
53 * (T210814) SVGs are now by default displayed in wiki language on image
54 pages.
55 * (T214706) LinksUpdate::getAddedExternalLinks() and
56 LinksUpdate::getRemovedExternalLinks() were introduced.
57 * Argon2 password hashing is now available, can be enabled via
58 $wgPasswordDefault = 'argon2'. It's designed to resist timing attacks
59 (requires PHP 7.2+) and GPU hacking (7.3+).
60
61 === External library changes in 1.33 ===
62
63 ==== New external libraries ====
64 * Added wikimedia/password-blacklist 0.1.4.
65 * Added guzzlehttp/guzzle 6.3.3.
66 * Added jakub-onderka/php-console-highlighter 0.3.2 explicitly (dev-only).
67
68 ==== Changed external libraries ====
69 * Updated OOUI from v0.29.2 to v0.30.3.
70 * Updated OOjs Router from pre-release to v0.2.0.
71 * Updated wikimedia/xmp-reader from 0.6.0 to 0.6.2.
72 * Updated wikimedia/scoped-callback from 2.0.0 to 3.0.0.
73 * Updated wikimedia/ip-set from 1.2.0 to 2.0.1.
74 * The deprecated IPSet\IPSet alias was removed, Wikimedia\IPSet must be
75 used instead.
76 * Updated qunitjs from 2.6.2 to 2.9.1.
77 * Updated jquery-client from 2.0.1 to 2.0.2.
78 * Updated psy/psysh from 0.9.6 to 0.9.9 (dev-only).
79 * Updated nikic/php-parser from 3.1.3 to 3.1.5 (dev-only).
80 * Updated pear/net_smtp from 1.8.0 to 1.8.1.
81 * Updated cssjanus/cssjanus from 1.2.0 to 1.2.1.
82 * Updated wikimedia/php-session-serializer from 1.0.6 to 1.0.7.
83
84 ==== Removed external libraries ====
85
86 === Bug fixes in 1.33 ===
87 * (T164211) Special:UserRights could sometimes fail with a
88 "conflict detected" error when there weren't any conflicts.
89 * (T215566) Unable to determine if the database exists
90 during a fresh installation.
91
92 === Action API changes in 1.33 ===
93 * (T198913) Added 'ApiOptions' hook.
94 * The JSON formatversion=2 is no longer experimental.
95 * Internal API errors (those with code beginning "internal_api_error") will
96 include the exception class name in a data field named "errorclass".
97 * Class names are not guaranteed to remain stable, and in particular database
98 exceptions will now include the "Wikimedia\Rdbms\" prefix in the class name.
99 * The code including an exception class name is deprecated. In the future,
100 all internal errors will use code "internal_api_error".
101 * (T212356) When using action=delete on pages with many revisions, the module
102 may return a boolean-true 'scheduled' and no 'logid'. This signifies that the
103 deletion will be processed via the job queue.
104 * action=setnotificationtimestamp will now update the watchlist asynchronously
105 if entirewatchlist is set, so updates may not be visible immediately
106 * Block info will be added to "blocked" errors from more modules.
107 * (T216245) Autoblocks will now be spread by action=edit and action=move.
108
109 === Action API internal changes in 1.33 ===
110 * A number of deprecated methods for API documentation, intended for overriding
111 by extensions, are no longer called by MediaWiki, and will emit deprecation
112 notices if your extension attempts to use them:
113 * ApiBase::getDescription() (deprecated in 1.25)
114 * ApiBase::getParamDescription() (deprecated in 1.25)
115 * ApiBase::getExamples() (deprecated in 1.25)
116 * ApiBase::getDescriptionMessage() (deprecated in 1.30)
117 Additionally, the 'APIGetDescription' and 'APIGetParamDescription' hooks have
118 been removed, as their only use was to let extensions override values returned
119 by getDescription() and getParamDescription(), respectively.
120 * API error codes may only contain ASCII letters, numbers, underscore, and
121 hyphen. Methods such as ApiBase::dieWithError() and
122 ApiMessageTrait::setApiCode() will throw an InvalidArgumentException if
123 passed a bad code.
124 * ApiBase::checkTitleUserPermissions() now takes an options array as its third
125 parameter. Passing a User object or null is deprecated.
126
127 === Languages updated in 1.33 ===
128 MediaWiki supports over 350 languages. Many localisations are updated regularly.
129 Below only new and removed languages are listed, as well as changes to languages
130 because of Phabricator reports.
131
132 * (T203908) Added language support for Eastern Pwo (kjp).
133 * (T213717) Fixed a translation error on Goan Konkani (gom-deva) translations
134 for NS_TEMPLATE.
135 * (T212221) Added $digitTransformTable for Santali (sat).
136 * (T216479) Added language support for Saisiyat (xsy).
137
138 === Breaking changes in 1.33 ===
139 * The parameteter $lang in DifferenceEngine::setTextLanguage must be of type
140 Language. Other types are deprecated since 1.32.
141 * Skin::doEditSectionLink requires type Language for the parameter $lang.
142 The parameters $tooltip and $lang are mandatory. Omitting the parameters is
143 deprecated since 1.32.
144 * Language::truncate(), deprecated in 1.31, has been removed.
145 * UtfNormal, deprecated in 1.25, was removed. Use UtfNormal\Validator directly
146 instead.
147 * (T197179) In OOUI HTMLForm fields, the parameters 'notice', 'notice-messages',
148 and 'notice-message', which were deprecated in 1.32, were removed. Instead,
149 use 'help', 'help-message', and 'help-messages'.
150 * (T197179) HTMLFormField::getNotices(), deprecated in 1.32, was removed.
151 * The "Parsoid v1" compatibility mappings in ParsoidVirtualRESTService and
152 RestbaseVirtualRESTService, deprecated since 1.26, have been removed.
153 Use the RESTBase v1 or Parsoid v3 API instead.
154 * ParserOptions defaults 'tidy' to true now, since the untidy modes of the
155 parser are being deprecated and ParserOptions::getCanonicalOverrides()
156 has always been true at any rate.
157 * Support for disabling tidy and external tidy implementations has been removed.
158 This was deprecated in 1.32. The pure PHP Remex tidy implementation is now
159 used and no configuration is necessary.
160 * A number of deprecated methods for API documentation, intended for overriding
161 by extensions, are no longer called by MediaWiki, and will emit deprecation
162 notices if your extension attempts to use them:
163 * ApiBase::getDescription() (deprecated in 1.25)
164 * ApiBase::getParamDescription() (deprecated in 1.25)
165 * ApiBase::getExamples() (deprecated in 1.25)
166 * ApiBase::getDescriptionMessage() (deprecated in 1.30)
167 Additionally, the 'APIGetDescription' and 'APIGetParamDescription' hooks have
168 been removed, as their only use was to let extensions override values returned
169 by getDescription() and getParamDescription(), respectively.
170 * The authentication hooks 'AbortAutoAccount' 'AbortNewAccount', 'AbortLogin',
171 'LoginUserMigrated', 'UserCreateForm', and 'UserLoginForm', all deprecated by
172 the creation of AuthManager in 1.27, have been removed. This also means that
173 the FakeAuthTemplate and LoginForm classes are removed, that FakeAuthTemplate
174 is no longer passed into LoginSignupSpecialPage->getFieldDefinitions(), and
175 that LoginSignupSpecialPage->getBCFieldDefinitions() is removed.
176 * The 'jquery.localize' module, deprecated in 1.32, has been removed. Instead,
177 use 'jquery.i18n'.
178 * The hooks LanguageGetSpecialPageAliases and LanguageGetMagic, deprecated since
179 1.16, have now been removed. Instead, use $specialPageAliases or $magicWords
180 respectively in a $wgExtensionMessagesFiles file.
181 * The following methods of the Preferences class, deprecated in 1.31, have been
182 removed:
183 * getSaveBlacklist()
184 * loadPreferenceValues()
185 * getOptionFromUser()
186 * profilePreferences()
187 * skinPreferences()
188 * filesPreferences()
189 * datetimePreferences()
190 * renderingPreferences()
191 * editingPreferences()
192 * rcPreferences()
193 * watchlistPreferences()
194 * searchPreferences()
195 * miscPreferences()
196 * generateSkinOptions()
197 * getDateOptions()
198 * getImageSizes()
199 * getThumbSizes()
200 * validateSignature()
201 * cleanSignature()
202 * getTimezoneOptions()
203 * filterIntval()
204 * filterTimezoneInput()
205 * getTimeZoneList()
206 * mw.util.jsMessage(), deprecated in 1.20, was removed. Use mw.notify instead.
207 * (T61113) User::EDIT_TOKEN_SUFFIX was removed. It was deprecated since 1.27.
208 * The 'mediawiki.api' module aliases, deprecated in 1.32, have been removed.
209 Specifically: mediawiki.api.category, mediawiki.api.edit,
210 mediawiki.api.login, mediawiki.api.options, mediawiki.api.parse,
211 mediawiki.api.upload, mediawiki.api.user, mediawiki.api.watch,
212 mediawiki.api.messages, and mediawiki.api.rollback.
213 * The 'jquery.byteLimit' module alias for 'jquery.lengthLimit',
214 deprecated in 1.31, was removed.
215 * Revision::fetchRevision(), deprecated in 1.28, was removed.
216 * Class SquidUpdate, deprecated in 1.27, was removed.
217 * Title->getSquidURLs(), deprecated in 1.27, was removed. Instead, use
218 Title->getCdnUrls().
219 * Title::escapeFragmentForURL(), deprecated in 1.30, was removed. Use
220 Sanitizer::escapeIdForLink() or escapeIdForExternalInterwiki() instead.
221 * Title->canTalk(), deprecated in 1.30, was removed. Instead, use
222 Title->canHaveTalkPage().
223 * Title's methods for site and user page related to CSS and JS, deprecated in
224 1.31, were removed:
225 * Title->isCssOrJsPage() — Use Title->isSiteConfigPage()
226 * Title->isCssJsSubpage() – Use Title->isUserConfigPage()
227 * Title->getSkinFromCssJsSubpage() – Use Title->getSkinFromConfigSubpage()
228 * Title->isCssSubpage() – Use Title->isUserCssConfigPage()
229 * Title->isJsSubpage() – Use Title->isUserJsConfigPage()
230 * SiteSQLStore, deprecated in 1.27 and whose only method, ::newInstance(),
231 would return the global SiteStore instance, has been removed. You can get to
232 this via MediaWiki\MediaWikiServices::getInstance()->getSiteStore() directly.
233 * Linker::formatSize, deprecated in 1.28, has been removed (with DummyLinker's).
234 Instead, use Language->formatSize() with the relevant Language object.
235 * Linker::formatTemplates, deprecated in 1.28, has been removed (along with the
236 version in DummyLinker). You can use TemplatesOnThisPageFormatter directly.
237 * EventRelayerGroup::singleton(), deprecated in 1.27, has been removed. You can
238 use MediaWikiServices::getInstance()->getEventRelayerGroup() directly.
239 * LinkCache->addLink(), deprecated in 1.27, has been removed. It is thought to
240 be unused, and is distinct from OutputPage->addLink(), which remains.
241 * JsonContent->getJsonData(), deprecated in 1.25, has been removed. Instead, use
242 JsonContent->getData().
243 * MWExceptionHandler::getLogId(), deprecated in 1.27, has been removed, as the
244 exception ID is the same as the request ID, from WebRequest::getRequestId().
245 * SearchEngine::getNearMatchResultSet(), deprecated in 1.27, has been removed.
246 You can use SearchEngine::getNearMatcher() instead.
247 * EmailNotification::updateWatchlistTimestamp, deprecated in 1.27, has been
248 removed. Instead, use WatchedItemStore::updateNotificationTimestamp directly.
249 * User::getGroupName() and ::getGroupMember(), both deprecated in 1.29, have
250 been removed. Instead, please use UserGroupMembership::getGroupName() and
251 UserGroupMembership::getGroupMemberName().
252 * Backwards compatibility for setting wgSessionsInObjectCache to false or using
253 wgSessionHandler, both of which were deprecated in 1.27 with the introduction
254 of SessionManager, has been removed.
255 * SessionManager::autoCreateUser, deprecated in 1.27, has been removed. Use
256 MediaWiki\Auth\AuthManager::autoCreateUser instead.
257 * The mw.libs.jpegmeta property, deprecated in 1.31, was removed.
258 Use require( 'mediawiki.libs.jpegmeta' ) instead.
259 * The mw.user.stickyRandomId() method, deprecated in 1.32, was removed.
260 Use mw.user.getPageviewToken() instead.
261 * Removed deprecated class property WikiRevision::$importer.
262 * ResourceLoaderFileModule::readStyleFiles() now requires its $context
263 parameter.
264 * The ChangeList::insertArticleLink() method, that was deprecated in 1.27, has
265 been removed.
266 * MessageBlobStore::__construct() now requires its $rl parameter.
267
268 === Deprecations in 1.33 ===
269 * The configuration option $wgUseESI has been deprecated, and is expected
270 to be removed in a future release.
271 * The configuration option $wgSquidPurgeUseHostHeader has been deprecated,
272 and is expected to be removed in a future release.
273 * The configuration options $wgFixArabicUnicode and $wgFixMalayalamUnicode,
274 introduced in MW 1.17, have been deprecated. These fixes will always be
275 applied for Arabic and Malayalam in the future. Please enable these on
276 your local wiki (if you have them explicitly set to false) and run
277 maintenance/cleanupTitles.php to fix any existing page titles.
278 * The LegacyHookPreAuthenticationProvider class, deprecated since its creation
279 in 1.27 as part of the AuthManager re-write, now emits deprecation warnings.
280 This will help identify the issue if you added it to $wgAuthManagerConfig.
281 * wfSplitWikiId() is now deprecated. Cache key generation should have the wiki
282 domain ID as a key component and use makeGlobalKey().
283 * (T202094) Title::getUserCaseDBKey() is deprecated; instead, please use
284 Title::getDBKey(), which doesn't vary case.
285 * User::getPasswordValidity() is now deprecated. User::checkPasswordValidity()
286 returns the same information in a more useful format.
287 * For Linker::generateTOC() and Linker::tocList(), passing strings or booleans
288 as the $lang parameter was deprecated. The same applies to DummyLinker.
289 * The PasswordPolicy 'PasswordCannotBePopular' has been deprecated. To
290 follow best practices, it is reccommended to use 'PasswordNotInLargeBlacklist'
291 instead which blacklists 100,000 commonly used passwords.
292 * (T208862) Action::requiresUnblock() is now called from
293 Title::getUserPermissionsErrors() and Title::userCan(). Previously, the method
294 was only called in Action::checkCanExecute(). Actions should ensure that their
295 requiresUnblock() returns the proper result (the default is `true`).
296 * (T211608) The MediaWiki\Services namespace has been renamed to
297 Wikimedia\Services. The old name is still supported, but deprecated.
298 * (T155582) Content::getNativeData has been deprecated. Please use model-
299 specific getters, such as TextContent::getText().
300 * The class WebInstallerOutput is now marked as @private.
301 * (T209699) The jquery.async module has been deprecated. JavaScript code that
302 needs asynchronous behaviour should use Promises.
303 * Password::equals() is deprecated, use verify().
304 * BaseTemplate::msgWiki() and QuickTemplate::msgWiki() will be removed. Use
305 other means to fetch a properly escaped message string or Message object.
306 * (T126091) The 'ResourceLoaderTestModules' hook, which lets you declare QUnit
307 testing code for your JavaScript modules, is deprecated. Instead, you can now
308 use the new extension registration key 'QUnitTestModule'.
309 * (T213426) The jquery.throttle-debounce module has been deprecated. JavaScript
310 code that needs this behaviour should use OO.ui.debounce/throttle.
311 * The mw.language.specialCharacters property from the
312 'mediawiki.language.specialCharacters' module has been deprecated.
313 Use require( 'mediawiki.language.specialCharacters' ) instead.
314 * ChangeTags::purgeTagUsageCache() has been deprecated, and is expected to be
315 removed in a future release.
316 * Passing a User object or null as the third parameter to
317 ApiBase::checkTitleUserPermissions() has been deprecated. Pass an array
318 [ 'user' => $user ] instead.
319
320 === Other changes in 1.33 ===
321 * (T201747) Html::openElement() warns if given an element name with a space
322 in it.
323 * The implementation of buildStringCast() in Wikimedia\Rdbms\Database has
324 changed to explicitly cast. Subclasses relying on the base-class
325 implementation should check whether they need to override it now.
326
327 == Compatibility ==
328 MediaWiki 1.33 requires PHP 7.0.13 or later. Although HHVM 3.18.5 or later is
329 supported, it is generally advised to use PHP 7.0.13 or later for long term
330 support.
331
332 MySQL/MariaDB is the recommended DBMS. PostgreSQL or SQLite can also be used,
333 but support for them is somewhat less mature. There is experimental support for
334 Oracle and Microsoft SQL Server.
335
336 The supported versions are:
337
338 * MySQL 5.5.8 or later
339 * PostgreSQL 9.2 or later
340 * SQLite 3.3.7 or later
341 * Oracle 9.0.1 or later
342 * Microsoft SQL Server 2005 (9.00.1399)
343
344 == Upgrading ==
345 1.33 has several database changes since 1.32, and will not work without schema
346 updates. Note that due to changes to some very large tables like the revision
347 table, the schema update may take quite long (minutes on a medium sized site,
348 many hours on a large site).
349
350 Don't forget to always back up your database before upgrading!
351
352 See the file UPGRADE for more detailed upgrade instructions, including
353 important information when upgrading from versions prior to 1.11.
354
355 For notes on 1.32.x and older releases, see HISTORY.
356
357 == Online documentation ==
358 Documentation for both end-users and site administrators is available on
359 MediaWiki.org, and is covered under the GNU Free Documentation License (except
360 for pages that explicitly state that their contents are in the public domain):
361
362 https://www.mediawiki.org/wiki/Special:MyLanguage/Documentation
363
364 == Mailing list ==
365 A mailing list is available for MediaWiki user support and discussion:
366
367 https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
368
369 A low-traffic announcements-only list is also available:
370
371 https://lists.wikimedia.org/mailman/listinfo/mediawiki-announce
372
373 It's highly recommended that you sign up for one of these lists if you're
374 going to run a public MediaWiki, so you can be notified of security fixes.
375
376 == IRC help ==
377 There's usually someone online in #mediawiki on irc.freenode.net.