Skip to content

v0.9.0-int.1

Pre-release
Pre-release
Compare
Choose a tag to compare
@CXuesong CXuesong released this 30 Aug 16:00
· 14 commits to master since this release
  • Migrated JSON framework dependency from Newtonsoft.Json to System.Text.Json v8.0.
    • This is a major breaking change as planned in #108 (Yes it's happening now)
    • All the Newtonsoft.Json.Linq public APIs are completely replaced by System.Text.Json.Nodes API.
    • While most of the regression tests have passed (except those running against FANDOM/Wikia due to "readonly" error), there could be still bugs needing to be smoothed out. Expect Exceptions to occur.
    • We are going to eventually upgrade the System.Text.Json package to v9.0 after it enters stable release phase, because WCL Wikibase package depends on the JsonSerializer.DeserializeAsyncEnumerable[TValue] API.
      • This means for now, WCL Wikibase package will be aggressively referencing the v9.0.0-preview.7 package.
    • You can still consume WCL packages on .NET 6.0. Referencing WCL packages will automatically reference System.Text.Json v8.0 NuGet package, though.
  • Converted all of the JSON contract object to leverage the new init accessor of the property and required keyword. Also marked them all as sealed.
  • Added MediaWikiReadOnlyException to map the readonly MediaWiki API error code.

While we are still in the process of plugging the latest int package in various projects, If you are experiencing any difficulty adopting this breaking change, feel free to open an issue. Thanks!