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