v0.6-int4
Pre-release
Pre-release
This version has a bug that is fixed in the next pre-release. This version of NuGet package has been unlisted.
If you have any questions or suggestions, feel free to open an issue :-)
New features
- Added two page generators:
BacklinksGenerator
andTranscludedInGenerator
. - MW API requests via
WikiSite.GetJsonAsync
will automatically attempt to re-fetch tokens onbadtoken
error. (#21)
Major interface changes
- Renamed
PageGenerator
toWikiPageGenerator
, andRecentChangesEntry
toRecentChangeItem
. IWikiClientLoggable.SetLoggerFactory
has been replaced with a R/W propertyIWikiClientLoggable.LoggerFactory
.UnauthorizedOperationException
is now a subclass ofOperationFailedException
.- Though for certain locally detected authorization failure,
UnauthorizedOperationException.ErrorCode
will benull
.
- Though for certain locally detected authorization failure,
- Added
WikiRequestMessage
class to contain query parameters.- This class (
WikiFormRequestMessage
, to be more exact) unifiesapplication/x-www-form-urlencoded
andmultipart/form-data
, while enables per request configurations in the future, and a better request-tracing experience. WikiClient.GetJsonAsync
now only acceptsWikiRequestMessage
.WikiSite.PostValuesAsync
is kept for now but is marked as obsolete. It will be removed in the next pre-release. You need to useWikiSite.GetJsonAsync
now. (See usage example.)- See the documentation of
WikiFormRequestMessage
for more information.
- This class (
Bug fix
- Fixed incorrect logic for getting
patrol
token for MW [1.17, 1.20). - Fixed some incorrect logging emissions.
Other changes
- Re-implemented
WikiSite.GetToken(s)Async
. Still the code might need more simplifications.
Unit tests
- Use MSTest adapter for xUnit. Now you can execute unit tests with VS.
- Added xUnit console runner
dotnet-xunit
. Now you can execute unit tests withdotnet xunit
command. - Now the unit test is net452/netcoreapp2.0 multi-targeted.
- Thanks to AArnott, again. Now I have
XUnit.SkippableFact
to take over the originalUnitTestProject1.Utility.Inconclusive
method. (I'm also a fan ofNerdbank.FullDuplexStream
!)