Skip to content

Release 2.0.0

Latest
Compare
Choose a tag to compare
@dentolos19 dentolos19 released this 23 Feb 14:24
· 12 commits to main since this release

This version is a complete revamp. Please be warned that there will be breaking changes to be made when updating to this version.

🎉 What's Changed

  • Added centralized client class: PasteMystClient
  • Added customized exception class: PasteMystException
  • Added documentation for methods and properties (finally)
  • Switched to System.Text.Json for JSON serialization
  • When getting current user, it uses its own type: PasteMystCurrentUser

⚠️ Breaking Changes

  • Parsed unix time now uses local time
  • Properties that uses arrays now uses IList<> or IReadOnlyList<>
  • Renamed properties
    • PasteMystPasty.Code -> PasteMystPasty.Content
    • PasteMystPastyForm.Code -> PasteMystPastyForm.Content
  • Renamed properties to follow API specifications
    • PasteMystPaste.CreationUnixTime -> PasteMystPaste.CreatedAt
    • PasteMystPaste.CreationTime -> PasteMystPaste.CreatedAtTime
    • PasteMystPaste.DeletionUnixTime -> PasteMystPaste.DeletedAt
    • PasteMystPaste.DeletionTime -> PasteMystPaste.DeletedAtTime
    • PasteMystPaste.ExpireDuration -> PasteMystPaste.ExpiresIn
    • ...
  • Removed methods in all classes and moved to PasteMystClient

Full Changelog: v1.2.3...v2.0.0