v0.9.0-int.2
Pre-release
Pre-release
WCL package
New features
- Added
PageHelper
class andWikiClientHelper
class to provide some opinionated but could-be-useful methods for- stripping the bracketed part from disambiguation page titles
- computing SHA-1 hash from a string containing the page content, with limited local page content normalization support.
- generating
User-Agent
header with reflection information from the providedAssembly
object.
These utilities used to exist in an old NuGet package named CXuesong.MW.WikiClientLibrary.Bots.
API changes
- Pushed down
AccountInfo.Block*
properties into a stand-aloneAccountBlockInfo
object stored inAccountInfo.BlockInfo
property.- Also added the rest of properties for the block detail, including
AccountBlockInfo.BlockComponents
for composite blocks. - Breaking change: Removed the old
AccountInfo.Block*
properties in this version.
- Also added the rest of properties for the block detail, including
- Preset
AutomaticDecompression
of the defaultHttpClientHandler
used inWikiClient
class toAll
. This will enable Brotli compression support when sending MW API requests.
Bug fixes
MediaWikiHelper.JoinValues<T>
has not been correctly switching delimiter to\u001F
, when there are one or more items containing pipe character (|
).