Revert "Pass $context to 'GetPreferences' hook"
[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
25 ==== Removed configuration ====
26 * (T199334) $wgTagStatisticsNewTable — This temporary setting, added in
27 MediaWiki 1.32, has now been removed. When loading Special:Tags, MediaWiki
28 will now always use the `change_tag_def` instead of the `change_tag` table.
29 * MediaWiki now always tidies user output, and most related
30 configuration has been removed. Thus $wgUseTidy, $wgTidyBin,
31 $wgTidyConf, $wgTidyOpts, $wgTidyInternal, and $wgDebugTidy, all
32 deprecated since 1.26, have now all been removed. The $wgTidyConfig
33 setting remains only for Remex experimental features or debugging.
34 * …
35
36 === New features in 1.33 ===
37 * (T96041) __EXPECTUNUSEDCATEGORY__ on a category page causes the category
38 to be hidden on Special:UnusedCategories.
39 * Add PasswordPolicy to check the password isn't in the large blacklist.
40 * …
41
42 === External library changes in 1.33 ===
43
44 ==== New external libraries ====
45 * Added wikimedia/password-blacklist 0.1.4.
46 * …
47
48 ==== Changed external libraries ====
49 * Updated wikimedia/xmp-reader from 0.6.0 to 0.6.1.
50 * Updated wikimedia/scoped-callback from 2.0.0 to 3.0.0.
51 * …
52
53 ==== Removed external libraries ====
54 * …
55
56 === Bug fixes in 1.33 ===
57 * …
58
59 === Action API changes in 1.33 ===
60 * (T198913) Added 'ApiOptions' hook.
61 * The JSON formatversion=2 is no longer experimental.
62 * Internal API errors (those with code beginning "internal_api_error") will
63 include the exception class name in a data field named "errorclass".
64 * Class names are not guaranteed to remain stable, and in particular database
65 exceptions will now include the "Wikimedia\Rdbms\" prefix in the class name.
66 * The code including an exception class name is deprecated. In the future,
67 all internal errors will use code "internal_api_error".
68 * …
69
70 === Action API internal changes in 1.33 ===
71 * A number of deprecated methods for API documentation, intended for overriding
72 by extensions, are no longer called by MediaWiki, and will emit deprecation
73 notices if your extension attempts to use them:
74 * ApiBase::getDescription() (deprecated in 1.25)
75 * ApiBase::getParamDescription() (deprecated in 1.25)
76 * ApiBase::getExamples() (deprecated in 1.25)
77 * ApiBase::getDescriptionMessage() (deprecated in 1.30)
78 Additionally, the 'APIGetDescription' and 'APIGetParamDescription' hooks have
79 been removed, as their only use was to let extensions override values returned
80 by getDescription() and getParamDescription(), respectively.
81 * API error codes may only contain ASCII letters, numbers, underscore, and
82 hyphen. Methods such as ApiBase::dieWithError() and
83 ApiMessageTrait::setApiCode() will throw an InvalidArgumentException if
84 passed a bad code.
85 * …
86
87 === Languages updated in 1.33 ===
88 MediaWiki supports over 350 languages. Many localisations are updated regularly.
89 Below only new and removed languages are listed, as well as changes to languages
90 because of Phabricator reports.
91
92 * (T203908) Added language support for Eastern Pwo (kjp).
93
94 === Breaking changes in 1.33 ===
95 * The parameteter $lang in DifferenceEngine::setTextLanguage must be of type
96 Language. Other types are deprecated since 1.32.
97 * Skin::doEditSectionLink requires type Language for the parameter $lang.
98 The parameters $tooltip and $lang are mandatory. Omitting the parameters is
99 deprecated since 1.32.
100 * Language::truncate(), deprecated in 1.31, has been removed.
101 * UtfNormal, deprecated in 1.25, was removed. Use UtfNormal\Validator directly
102 instead.
103 * (T197179) In OOUI HTMLForm fields, the parameters 'notice', 'notice-messages',
104 and 'notice-message', which were deprecated in 1.32, were removed. Instead,
105 use 'help', 'help-message', and 'help-messages'.
106 * (T197179) HTMLFormField::getNotices(), deprecated in 1.32, was removed.
107 * The "Parsoid v1" compatibility mappings in ParsoidVirtualRESTService and
108 RestbaseVirtualRESTService, deprecated since 1.26, have been removed.
109 Use the RESTBase v1 or Parsoid v3 API instead.
110 * ParserOptions defaults 'tidy' to true now, since the untidy modes of the
111 parser are being deprecated and ParserOptions::getCanonicalOverrides()
112 has always been true at any rate.
113 * Support for disabling tidy and external tidy implementations has been removed.
114 This was deprecated in 1.32. The pure PHP Remex tidy implementation is now
115 used and no configuration is necessary.
116 * A number of deprecated methods for API documentation, intended for overriding
117 by extensions, are no longer called by MediaWiki, and will emit deprecation
118 notices if your extension attempts to use them:
119 * ApiBase::getDescription() (deprecated in 1.25)
120 * ApiBase::getParamDescription() (deprecated in 1.25)
121 * ApiBase::getExamples() (deprecated in 1.25)
122 * ApiBase::getDescriptionMessage() (deprecated in 1.30)
123 Additionally, the 'APIGetDescription' and 'APIGetParamDescription' hooks have
124 been removed, as their only use was to let extensions override values returned
125 by getDescription() and getParamDescription(), respectively.
126 * The authentication hooks 'AbortAutoAccount' 'AbortNewAccount', 'AbortLogin',
127 'LoginUserMigrated', 'UserCreateForm', and 'UserLoginForm', all deprecated by
128 the creation of AuthManager in 1.27, have been removed. This also means that
129 the FakeAuthTemplate and LoginForm classes are removed, that FakeAuthTemplate
130 is no longer passed into LoginSignupSpecialPage->getFieldDefinitions(), and
131 that LoginSignupSpecialPage->getBCFieldDefinitions() is removed.
132 * The 'jquery.localize' module, deprecated in 1.32, has been removed. Instead,
133 use 'jquery.i18n'.
134 * The hooks LanguageGetSpecialPageAliases and LanguageGetMagic, deprecated since
135 1.16, have now been removed. Instead, use $specialPageAliases or $magicWords
136 respectively in a $wgExtensionMessagesFiles file.
137 * The following methods of the Preferences class, deprecated in 1.31, have been
138 removed:
139 * getSaveBlacklist()
140 * loadPreferenceValues()
141 * getOptionFromUser()
142 * profilePreferences()
143 * skinPreferences()
144 * filesPreferences()
145 * datetimePreferences()
146 * renderingPreferences()
147 * editingPreferences()
148 * rcPreferences()
149 * watchlistPreferences()
150 * searchPreferences()
151 * miscPreferences()
152 * generateSkinOptions()
153 * getDateOptions()
154 * getImageSizes()
155 * getThumbSizes()
156 * validateSignature()
157 * cleanSignature()
158 * getTimezoneOptions()
159 * filterIntval()
160 * filterTimezoneInput()
161 * getTimeZoneList()
162 * mw.util.jsMessage(), deprecated in 1.20, was removed. Use mw.notify instead.
163 * (T61113) User::EDIT_TOKEN_SUFFIX was removed. It was deprecated since 1.27.
164
165 === Deprecations in 1.33 ===
166 * The configuration option $wgUseESI has been deprecated, and is expected
167 to be removed in a future release.
168 * The configuration option $wgSquidPurgeUseHostHeader has been deprecated,
169 and is expected to be removed in a future release.
170 * The configuration options $wgFixArabicUnicode and $wgFixMalayalamUnicode,
171 introduced in MW 1.17, have been deprecated. These fixes will always be
172 applied for Arabic and Malayalam in the future. Please enable these on
173 your local wiki (if you have them explicitly set to false) and run
174 maintenance/cleanupTitles.php to fix any existing page titles.
175 * The LegacyHookPreAuthenticationProvider class, deprecated since its creation
176 in 1.27 as part of the AuthManager re-write, now emits deprecation warnings.
177 This will help identify the issue if you added it to $wgAuthManagerConfig.
178 * wfSplitWikiId() is now deprecated. Cache key generation should have the wiki
179 domain ID as a key component and use makeGlobalKey().
180 * …
181
182 === Other changes in 1.33 ===
183 * (T208871) The hard-coded Google search form on the database error page was
184 removed.
185 * …
186
187 == Compatibility ==
188 MediaWiki 1.33 requires PHP 7.0.0 or later. Although HHVM 3.18.5 or later is
189 supported, it is generally advised to use PHP 7.0.0 or later for long term
190 support.
191
192 MySQL/MariaDB is the recommended DBMS. PostgreSQL or SQLite can also be used,
193 but support for them is somewhat less mature. There is experimental support for
194 Oracle and Microsoft SQL Server.
195
196 The supported versions are:
197
198 * MySQL 5.5.8 or later
199 * PostgreSQL 9.2 or later
200 * SQLite 3.3.7 or later
201 * Oracle 9.0.1 or later
202 * Microsoft SQL Server 2005 (9.00.1399)
203
204 == Upgrading ==
205 1.33 has several database changes since 1.32, and will not work without schema
206 updates. Note that due to changes to some very large tables like the revision
207 table, the schema update may take quite long (minutes on a medium sized site,
208 many hours on a large site).
209
210 Don't forget to always back up your database before upgrading!
211
212 See the file UPGRADE for more detailed upgrade instructions, including
213 important information when upgrading from versions prior to 1.11.
214
215 For notes on 1.32.x and older releases, see HISTORY.
216
217 == Online documentation ==
218 Documentation for both end-users and site administrators is available on
219 MediaWiki.org, and is covered under the GNU Free Documentation License (except
220 for pages that explicitly state that their contents are in the public domain):
221
222 https://www.mediawiki.org/wiki/Special:MyLanguage/Documentation
223
224 == Mailing list ==
225 A mailing list is available for MediaWiki user support and discussion:
226
227 https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
228
229 A low-traffic announcements-only list is also available:
230
231 https://lists.wikimedia.org/mailman/listinfo/mediawiki-announce
232
233 It's highly recommended that you sign up for one of these lists if you're
234 going to run a public MediaWiki, so you can be notified of security fixes.
235
236 == IRC help ==
237 There's usually someone online in #mediawiki on irc.freenode.net.