Releases: dentolos19/PasteMystNet
Release 2.0.0
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<>
orIReadOnlyList<>
- 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
Release 1.2.3
🎉 What's Changed
- Changed target framework to
netstandard2.1
to support older versions of .NET
Full Changelog: v1.2.2...v1.2.3
Release 1.2.2
🎉 What's Changed
- Added new function
PasteMystPaste.GetTotalActivePastesAsync
- Updated target framework to
net6.0
- Updated function
PasteMystLanguage.GetLanguageByNameAsync
so it percent-encodes name before request - Updated property accessors from
init
toprivate init
for all object classes
Full Changelog: v1.2.1...v1.2.2
Release 1.2.1
🎉 What's Changed
- Updated classes from
PasteMystNet.Core
accessors frompublic
tointernal
- Removed strict form checking
Full Changelog: v1.2.0...v1.2.1
Release 1.2.0
Warning: This release contains breaking changes when updating from the previous release! (See those changes with
⚠️ )
🎉 What's Changed
- Changed target framework to
net5.0
- Changed from using
HttpWebRequest
toHttpClient
- Changed
PasteMystUser.HasPublicProfile
toPasteMystUser.IsPublicProfile
⚠️ - Removed JSON string representation for
PasteMystPaste
,PasteMystUser
andPasteMystLanguage
- Removed obsolete methods
⚠️ PasteMystLanguage.IdentifyByNameAsync
PasteMystLanguage.IdentifyByExtensionAsync
PasteMystUser.GetSelfAsync
PasteMystUser.GetSelfPastesAsync
Full Changelog: v1.1.6...v1.2.0
Release 1.1.6 (2021-07-19)
Warning: This release contains breaking changes when updating from the previous release! (See those changes with
⚠️ )
🎉 What's Changed
- Made
PasteMystLanguage.IdentifyByNameAsync
obsolete, useGetLanguageByNameAsync
instead - Made
PasteMystLanguage.IdentifyByExtensionAsync
obsolete, useGetLanguageByExtensionAsync
instead - Made
PasteMystUser.GetSelfAsync
obsolete, useGetUserAsync
instead - Made
PasteMystUser.GetSelfPastesAsync
obsolete, useGetUserPastesAsync
instead - Changed the name
PasteMystAuth
toPasteMystToken
⚠️
Full Changelog: v1.1.5...v1.1.6
Release 1.1.5 (2021-05-21)
🎉 What's Changed
- Added
IsContributor
property toPasteMystUser
- Added
GetSelfAsync
function toPasteMystUser
- Added
GetSelfPastesAsync
function toPasteMystUser
Full Changelog: v1.1.4...v1.1.5
Release 1.1.4 (2021-04-11)
Warning: This release contains breaking changes when updating from the previous release! (See those changes with
⚠️ )
🎉 What's Changed
- Changed from using arrays to lists in
PasteMystPasteForm
andPasteMystEditForm
⚠️ - Changed the enum
PasteMystExpiration
to the classPasteMystExpirations
⚠️
Full Changelog: v1.1.3...v1.1.4
Release 1.1.3 (2020-12-03)
🎉 What's Changed
- Added enum type for paste edit type
- Added singleton to restrict multiple instances of
HttpClient
- Added JSON string representation for
PasteMystPaste
,PasteMystUser
andPasteMystLanguage
- Fixed language name encoding
Full Changelog: v1.1.2...v1.1.3