Skip to content

v0.9.0-int.2

Pre-release
Pre-release
Compare
Choose a tag to compare
@CXuesong CXuesong released this 01 Sep 09:17
· 6 commits to master since this release

WCL package

New features

  • Added PageHelper class and WikiClientHelper 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 provided Assembly 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-alone AccountBlockInfo object stored in AccountInfo.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.
  • Preset AutomaticDecompression of the default HttpClientHandler used in WikiClient class to All. 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 (|).