MWMessagePack: Deprecate MWMessagePack class and its method
[lhc/web/wiklou.git] / RELEASE-NOTES-1.34
1 = MediaWiki 1.34 =
2
3 == MediaWiki 1.34.0-PRERELEASE ==
4
5 THIS IS NOT A RELEASE YET
6
7 MediaWiki 1.34 is an alpha-quality development branch, and is not recommended
8 for use in production.
9
10 == Upgrading notes for 1.34 ==
11 1.34 has several database changes since 1.33, and will not work without schema
12 updates. Note that due to changes to some very large tables like the revision
13 table, the schema update may take quite long (minutes on a medium sized site,
14 many hours on a large site).
15
16 Don't forget to always back up your database before upgrading!
17
18 See the file UPGRADE for more detailed upgrade instructions, including
19 important information when upgrading from versions prior to 1.11.
20
21 Some specific notes for MediaWiki 1.34 upgrades are below:
22
23 * …
24
25 For notes on 1.33.x and older releases, see HISTORY.
26
27 === Configuration changes for system administrators in 1.34 ===
28
29 ==== New configuration ====
30 * …
31
32 ==== Changed configuration ====
33 * …
34
35 ==== Removed configuration ====
36 * …
37
38 === New user-facing features in 1.34 ===
39 * …
40
41 === New developer features in 1.34 ===
42 * …
43
44 === External library changes in 1.34 ===
45
46 ==== New external libraries ====
47 * …
48
49 ==== Changed external libraries ====
50 * Updated Mustache from 1.0.0 to v3.0.1.
51 * Updated OOUI from v0.31.3 to v0.31.5.
52 * …
53
54 ==== Removed external libraries ====
55 * …
56
57 === Bug fixes in 1.34 ===
58 * (T222529) If a log entry or page revision is recorded in the database with an
59 empty username, attempting to display it will log an error and return a "no
60 username available" to the user instead of silently displaying nothing or
61 invalid links.
62
63 === Action API changes in 1.34 ===
64 * The 'recenteditcount' response property from action=query list=allusers,
65 deprecated in 1.25, has been removed.
66
67 === Action API internal changes in 1.34 ===
68 * …
69
70 === Languages updated in 1.34 ===
71 MediaWiki supports over 350 languages. Many localisations are updated regularly.
72 Below only new and removed languages are listed, as well as changes to languages
73 because of Phabricator reports.
74
75 * (T152908) Added language support for N'Ko (nqo).
76
77 === Breaking changes in 1.34 ===
78 * Preferences class, deprecated in 1.31, has been removed.
79 * The following parts of code, deprecated in 1.32, were removed in favor of
80 built-in PHP functions:
81 * CryptRand class
82 * CryptRand service
83 * Functions of the MWCryptRand class: singleton(), wasStrong() and generate().
84 * Language::setCode, deprecated in 1.32, was removed. Use Language::factory to
85 create a new Language object with a different language code.
86 * MWNamespace::clearCaches() has been removed. So has the $rebuild parameter
87 to MWNamespace::getCanonicalNamespaces(), which was deprecated since 1.31.
88 Instead, reset services, such as by calling $this->overrideMwServices() (if
89 your test extends MediaWikiTestCase). Services will generally not pick up
90 configuration changes from after they were created, so you must reset
91 services after any configuration change. Even if your code works now, it is
92 likely to break in future versions as more code is moved to services.
93 * The ill-defined "DatabaseOraclePostInit" hook has been removed.
94 * PreferencesFormLegacy and PreferencesForm classes, deprecated in 1.32, have
95 been removed.
96 * ObjectFactory class, deprecated in 1.31, has been removed.
97 * HWLDFWordAccumudlator class, deprecated in 1.28, has been removed.
98 * XMPInfo, XMPReader and XMPValidate, deprecated in 1.32, have been removed.
99 * The RedirectSpecialPage::execute method could sometimes return a Title object.
100 This behavior was removed, and the method now matches the parent signature
101 (SpecialPage::execute) which is to return HTML string or void.
102 To obtain the destination title, use RedirectSpecialPage::getRedirect.
103 * The 'recenteditcount' response property from action API action=query
104 list=allusers, deprecated in 1.25, has been removed.
105 * SearchEngine::userNamespaces(), SearchEngine::namespacesAsText(),
106 SearchEngine::create(), SearchEngine::getSearchTypes() and
107 SearchEngine::getNearMatch(), methods deprecated in 1.27, have been removed.
108 * FileRepo::streamFile(), deprecated in 1.26, has been removed.
109 * User::randomPassword() method, deprecated in 1.27, have been removed.
110 * MWNamespace::canTalk(), deprecated in 1.30, have been removed.
111 * Parser class property $mUniqPrefix, deprecated in 1.26, has been removed.
112 * wfArrayFilter() and wfArrayFilterByKey(), deprecated in 1.32, have been
113 removed.
114 * wfMakeUrlIndexes() function, deprecated in 1.33, have been removed.
115 * Method signatures in WatchedItemQueryServiceExtension have changed from taking
116 User objects to taking UserIdentity objects. Extensions implementing this
117 interface need to be changed accordingly.
118 * User::getGroupPage() and ::makeGroupLinkHTML(), deprecated in 1.29, have been
119 removed. Use UserGroupMembership::getGroupPage and ::getLink instead.
120 * User::makeGroupLinkWiki(), deprecated in 1.29, has been removed. Use
121 UserGroupMembership::getLink() instead.
122 * SavepointPostgres, deprecated in 1.31, has been removed.
123 * Output::sectionEditLinksEnabled(), ParserOutput::getEditSectionTokens,
124 ::getTOCEnabled, ::setEditSectionTokens, ::setTOCEnabled, deprecated in 1.31,
125 have been removed.
126 * EditPage::safeUnicodeInput() and ::safeUnicodeOutput(), deprecated in 1.30,
127 have been removed.
128 * Four methods in OutputPage, deprecated in 1.32, have been removed. You should
129 use OutputPage::showFatalError or throw a FatalError instead. The methods are
130 ::showFileCopyError(), ::showFileRenameError(), ::showFileDeleteError(), and
131 ::showFileNotFoundError().
132 * ApiBase::truncateArray(), deprecated in 1.32, has been removed.
133 * IcuCollation::getICUVersion(), deprecated in 1.32, has been removed. Use PHP's
134 INTL_ICU_VERSION constant directly.
135 * HTMLForm::setSubmitProgressive(), deprecated in 1.32, has been removed.
136 * ResourceLoaderStartUpModules::getStartupModules() and ::getLegacyModules(),
137 both deprecated in 1.32, have been removed.
138 * BaseTemplate::msgHtml() and QuickTemplate::msgHtml(), deprecated in 1.32, have
139 been removed. Use ->msg() or ->getMsg() instead.
140 * WatchAction::getUnwatchToken(), deprecated in 1.32, has been removed. Instead,
141 use WatchAction::getWatchToken() with action 'unwatch' directly.
142 * Language::initEncoding(), ::recodeForEdit(), and recodeInput(), deprecated in
143 1.28, have been removed.
144 * PageArchive::getTextFromRow(), ::listAllPages(), and ::getLastRevisionText(),
145 deprecated in 1.32, have been removed.
146 * …
147
148 === Deprecations in 1.34 ===
149 * The MWNamespace class is deprecated. Use NamespaceInfo.
150 * ExtensionRegistry->load() is deprecated, as it breaks dependency checking.
151 Instead, use ->queue().
152 * User::isBlocked() is deprecated since it does not tell you if the user is
153 blocked from editing a particular page. Use User::getBlock() or
154 PermissionManager::isBlockedFrom() or PermissionManager::userCan() instead.
155 * User::isLocallyBlockedProxy and User::inDnsBlacklist are deprecated and moved
156 to the BlockManager as private helper methods.
157 * User::isDnsBlacklisted is deprecated. Use BlockManager::isDnsBlacklisted
158 instead.
159 * The Config argument to ChangesListSpecialPage::checkStructuredFilterUiEnabled
160 is deprecated. Pass only the User argument.
161 * WatchedItem::getUser is deprecated. Use getUserIdentity.
162 * Passing a Title as the first parameter to the getTimestampById method of
163 RevisionStore is deprecated. Omit it, passing only the remaining parameters.
164 * Title::getPreviousRevisionId and Title::getNextRevisionId are deprecated. Use
165 RevisionLookup::getPreviousRevision and RevisionLookup::getNextRevision.
166 * The Title parameter to RevisionLookup::getPreviousRevision and
167 RevisionLookup::getNextRevision is deprecated and should be omitted.
168 * MWHttpRequest::factory is deprecated. Use HttpRequestFactory.
169 * The Http class is deprecated. For the request, get, and post methods, use
170 HttpRequestFactory. For isValidURI, use MWHttpRequest::isValidURI. For
171 getProxy, use (string)$wgHTTPProxy. For createMultiClient, construct a
172 MultiHttpClient directly.
173 * Http::$httpEngine is deprecated and has no replacement. The default 'guzzle'
174 engine will eventually be made the only engine for HTTP requests.
175 * RepoGroup::singleton(), RepoGroup::destroySingleton(),
176 RepoGroup::setSingleton(), wfFindFile(), and wfLocalFile() are all
177 deprecated. Use MediaWikiServices instead.
178 * The getSubjectPage, getTalkPage, and getOtherPage of Title are deprecated.
179 Use NamespaceInfo's getSubjectPage, getTalkPage, and getAssociatedPage.
180 * MWMessagePack class, no longer used, has been deprecated in 1.34.
181
182 === Other changes in 1.34 ===
183 * …
184
185 == Compatibility ==
186 MediaWiki 1.34 requires PHP 7.0.13 or later. Although HHVM 3.18.5 or later is
187 supported, it is generally advised to use PHP 7.0.13 or later for long term
188 support.
189
190 MySQL/MariaDB is the recommended DBMS. PostgreSQL or SQLite can also be used,
191 but support for them is somewhat less mature. There is experimental support for
192 Oracle and Microsoft SQL Server.
193
194 The supported versions are:
195
196 * MySQL 5.5.8 or later
197 * PostgreSQL 9.2 or later
198 * SQLite 3.8.0 or later
199 * Oracle 9.0.1 or later
200 * Microsoft SQL Server 2005 (9.00.1399)
201
202 == Online documentation ==
203 Documentation for both end-users and site administrators is available on
204 MediaWiki.org, and is covered under the GNU Free Documentation License (except
205 for pages that explicitly state that their contents are in the public domain):
206
207 https://www.mediawiki.org/wiki/Special:MyLanguage/Documentation
208
209 == Mailing list ==
210 A mailing list is available for MediaWiki user support and discussion:
211
212 https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
213
214 A low-traffic announcements-only list is also available:
215
216 https://lists.wikimedia.org/mailman/listinfo/mediawiki-announce
217
218 It's highly recommended that you sign up for one of these lists if you're
219 going to run a public MediaWiki, so you can be notified of security fixes.
220
221 == IRC help ==
222 There's usually someone online in #mediawiki on irc.freenode.net.