WikiClientLibrary Versions Save

/*🌻*/ Wiki Client Library is a portable & asynchronous MediaWiki API client library on .NET Standard.

v0.8.0-int.8

2 months ago

Full Changelog: https://github.com/CXuesong/WikiClientLibrary/compare/v0.8.0-int.7...v0.8.0-int.8

v0.8.0-int.7

1 year ago
  • Add token parameter in ScribuntoConsole.InvokeApiAsync calls since MW 1.40.0-wmf.5 (wikimedia/mediawiki-extensions-Scribunto@0f2585244cbdc22580cc431745328a8f1fb270bd). (6c2e2c0639ae52faa6f8e780e6f9796eaa14ce42)
  • Bug fix: WbTime.FromDateTime/FromDateTimeOffset incorrectly loads the DateTime(Offset) components. (#98)

v0.8.0-int.6

2 years ago
  • Bug fix: QueryPageGenerator.EnumItemsAsync haven't ever been working before. (#92)
    • QueryPageGenerator now yields a sequence of QueryPageResultItem instead of WikiPageStub.
  • Bug fix: False-positive warnings on interwiki prefix casing violation "Interwiki prefix must be all lower-case".

v0.8.0-int.5

2 years ago

Bug fixes

  • SiteInfo.MagicWords collection is empty. (#89)
  • InterwikiMap[prefix] accessor does not normalize prefix, as expected, when matching interwiki entry. (#93)

v0.8.0-int.4

2 years ago

v0.8.0-int.3

3 years ago
  • Fix NRE when trying to fetch for page content on MW 1.19. (#86)

v0.8.0-int.2

3 years ago

Bug fix

  • Use more aggressive version expression truncation strategy in MediaWikiVersion.Parse (#86).

v0.8.0-int.1

3 years ago
  • Bug fix: RefreshAsync(PageQueryOptions.FetchContent) does not fetch page content (#85)

v0.8.0-int.0

3 years ago
  • Re-targeted WCL packages to .NET Standard 2.1 & .NET 5.0 (#82)
  • Enabled Nullable Reference Type in a subset of the packages (noted below)

WikiClientLibrary

  • Remove dependency on CXuesong.AsyncEnumerableExtensions since we have native async iterator function (async stream) support now.
  • Enable Nullable Reference Type support.
  • Introduce implicit conversions on WikiPageStub. You can now implicitly convert WikiPage instance, page title (string) or page ID (int) into WikiPageStub
  • Now WikiPagePropertyList and its dervied classes accept WikiPageStub instead of page title and page ID. You can leverage the implicit conversion above to pass in the page information.
  • WikiSite.SearchApiEndpointAsync is now cancellable.
  • Added UploadResult.StashErrors property. (MW 1.29+)
  • Added WikiPage.CreateCategoriesGenerator extension method.
  • Added MediaWikiVersion.{In, Above} methods for comparing version without instantiating one.
  • Rectified the constructor overloads of MediaWikiVersion. All the version segments should be of short type.
  • Type fix: EntityQueryOptions.SupressRedirects --> EntityQueryOptions.SuppressRedirects
  • Add (CSRF) token parameter in WikiSite.LogoutAsync on earlier MW versions since security fix of phab:T25227 has been back-ported to
    • MW 1.27.6+
    • MW 1.30.2+
    • MW 1.31.2+
    • MW 1.32.2+
    • MW 1.33-rc.0+
  • Now PatrolAsync can refresh CSRF token automatically if the cached token is invalid.

WikiClientLibrary.Cargo

  • Enable Nullable Reference Type support.
  • Bug fix: Endless loop when enumerating empty sequence from CargoRecordQueryable.

WikiClientLibrary.Flow

This package will not receive any feature updates.

WikiClientLibrary.Wikibase

  • Enable Nullable Reference Type support.
  • Added Entity.IdFromSiteLinkAsync to retrieve a single Wikibase entity ID from site link.

WikiClientLibrary.Wikia

For migrated FANDOM sites MW 1.33+ (See UCP migration post), you need to use Bot Password in order to login successfully.

Some of the Wikia API v1 is not working on UCP. We are still waiting for UCP migration to complete before we can start on revamp these APIs in WCL.

  • WikiaSite.LogoutAsync: For migrated FANDOM sites (on MW 1.33+), action=logout is now available now and we won't use the mitigation as described in #40

v0.7.5

3 years ago

This version of WCL release is intended to be the last version that targets .NET Standard 2.0 or below. That is, .NET Framework, .NET Core 2.1 or below are no longer supported since v0.8.x. (#82)

WikiClientLibrary

  • OperationFailedException now also includes customized error message from MediaWiki site. (e.g. the details of wikibase-api-permissiondenied error).

WikiClientLibrary.Cargo

This is a new library for querying tables on MediaWiki sites with Cargo extension. (#77) This library also provides LINQ to Cargo support!

  • Go to CargoTests in UnitTestProject1 or \Samples\LinqToCargo.csproj to check it out!

WikiClientLibrary.Flow

There is no update in this release. This library will not receive feature updates in the near future as the development of StructuredDiscussion is stalled:

The StructuredDiscussions extension was developed by the Collaboration team at the Wikimedia Foundation. It is still being maintained to fix bugs, but no substantial development on the extension has been done since 2015, other than a rename to "StructuredDiscussions" in September 2017. Development may possibly start again in the future.

WikiClientLibrary.Wikia

There is no update in this release.

WikiClientLibrary.Wikibase

  • Bug fix: WbQuantity.ToString throws InvalidOperationException when WbQuantity.Unit is unity (1).
  • Improve error message for wrong snak dataValue type (#80; thanks @mormegil-cz ! )