Skip to content

Releases: MitjaBezensek/SharpBucket

Release 0.17.0

13 Jan 18:33
Compare
Choose a tag to compare
  • Implements POST/GET/DELETE operations on tags as requested in #151
  • breaking change: Tag class has been completed and the type of some existing properties has been changed from object to the right type (string, Commit, etc.)
  • breaking change: all methods and classes declared as obsolete in V0.14.0 and v0.15.0 are now removed. So we recommend to upgrade to v0.16 and follow warning messages produced by the obsolete attributes to fix your code before upgrading to v0.17.0.

Release 0.16.1

19 Nov 09:08
Compare
Choose a tag to compare
  • Fix naming of property Reviewers and Participants in PullRequest. Thanks to @Bjorn1976 in #150

Release 0.16.0

03 Sep 08:31
Compare
Choose a tag to compare
  • Implement environments and environment variables  endpoints thanks to @GetoXs in #148
  • XML documentation is now published in the package so it will appear in IntelliSense when available (all public types and members are not commented)

Release 0.15.0

27 Aug 15:19
Compare
Choose a tag to compare
  • Implement /2.0/workspaces/* endpoints corresponding to deprecated /2.0/teams/* endpoints that are deprecating by bitbucket. More info here
  • TeamsEndPoint and underlying resources have been tag as obsolete with message that should guide you to the equivalent methods in WorspacesEndPoint and underlying resources.
  • Implement Post Branch. Done by @sjroesink in #142
  • Add support of branching model through BranchingModelResource class. Done by @alexhiggins732 in #144
    (was also proposed by @shalakolee in #143. Thanks you even if your branch has not been selected.)
  • A lot of grammar and typos fix thanks to @alexhiggins732 in #145
  • Bump RestSharp from 106.3.1 to 106.12.0
  • Breaking: UserShort class has been replaced by UserInfo to match naming of other classes.
  • Breaking: Remove obsolete authentication methods that were obsolete since v0.9.0
  • Breaking: Remove obsolete methods and properties that were obsolete since v0.11.0 (GDPR)

Release 0.14.0

26 Jun 10:00
Compare
Choose a tag to compare
  • Provide a full support of async. If previous version already provided some async overloads, there were multiple cases that were not covered:

    • A lot of simple Get, Put, Post and Delete methods hadn't async overload. They have been covered by @Casualrobin and @wbratz in #132 and #133
    • Obtention of the main branch revision which was hidden in the SrcResource constructor, and which is now exposed in RepositoryResource through the GetMainBranchRevision()and GetMainBranchRevisionAsync()methods
    • Enumeration of resources which is now provided through methods names EnumerateXxxAsync, available to *netstandard2.1 consumers
  • Expose public interfaces: ISharpBucket, ISharpBucketRequester, ISharpBucketV2 and ISharpBucketRequesterV2 that should help consumers to mock the requests done by the library.
    A work started long time ago by @anh-duc-le which has been finally achieved after multiple tries to find a pattern that should not break with new releases.

  • A basic support of Issues Resource mostly done by @penev92 through #136

  • A lot of methods have been deprecated, to provide a cleaner API. The multiplication of overloads in particular for listing methods (List, Enumerate, EnumerateAsync), has forced us to be more strict in the location and naming of all methods. Warning message should guide you to the right method to use.

  • breaking change : PullRequest POCO has been improved which has changed the type of the links, created_on and updated_on properties.

  • Comment POCO has been completed with an inline and a type property. It should also be considered as abstract since it will probably be changed like that in a future release. Methods that still use it directly are now tagged as obsolete, so if you fix the warnings you should by transitivity also move to CommitComment or PullRequestComment type instead of Comment type.

Release 0.13.0

06 Nov 19:55
Compare
Choose a tag to compare
  • Add an EnumerateSearchCodeSearchResults method in TeamResource #123 (and thanks to @starkmsu for is pre-version #122)
    • Note that is also the open door to provide alternatives to the List methods (see #124)
  • Breaking: Fix signature of RepositoryResource.DeleteRepository() and RepositoryResource.DeleteBranchRestriction(int) methods. They now return void, instead of a typed value which was always null.
  • Fix an issue in exception handling that probably cause timeout exceptions to not be properly thrown
  • Add support of async requests (#126)
    • For all methods of ProjectResource
    • For Get, Post and Delete methods of RepositoryResource
    • Potential Breaking: Authenticate expose now two new public async methods that should be overloaded in all implementations of Authenticate that were overloading the existing non async methods.
    • Potential Breaking: The client property in Authenticate is now virtual instead of abstract
    • Potential Breaking: All our implementations of Authenticate are now sealed

note: All potential breaking are real breaking changes for the assembly binding, but that are expected to have no impacts on consumers after a simple re-build since consumers are not really expected to implement the Authenticate classe

Release 0.12.0

30 Jul 08:02
Compare
Choose a tag to compare

That version improved multiple entities and return types so typing is more accurate.
Those type changes are breaking changes, but the property name remain the same. So if you intensively use the var keyword in your code base it could be transparent for you.

  • Add the approval property to the Activity entity #116
  • PullRequestResource.RemovePullRequestApproval()now returns void instead of a null PullRequestInfo
  • PullRequestResource.GetDiffForPullRequest()now clearly return string instead of object (which was a string)
  • UserShort entity has been completed with the new properties introduced with GDPR (account_id, nickname, ...)
  • Repository entity has been deeply reviewed to match more Bitbucket responses
  • Comment entity has been deeply reviewed to match more Bitbucket responses
  • Owner and Watcher entities have been dropped, replaced by UserShort
  • Fork entity has been dropped, replaced by Repository
  • Parent entity has been dropped, replaced by CommitInfo, RepositoryInfo or CommentInfo in function of the case
  • Link entity has no more a name property, instead, a NamedLink entity is now exposed when needed
  • Content and Summary entities have been dropped, replaced by Rendered

Release 0.11.0

22 Jun 06:10
08f45db
Compare
Choose a tag to compare

Major Changes

Other Changes

  • Expose the OAuth2TokenProvider to public so it can be reused in scenarios like repository cloning (need a git client not provided by this project) #111
  • Add new overloads of the ListCommits method to support filtering #114
  • Add DeleteBranch method in BranchResource #112 (thanks to @rickschott)

Release 0.10.0

04 Apr 10:22
Compare
Choose a tag to compare
  • Add BitbucketException and BitbucketV2Exception classes
  • All calls to BitBucket API that fail now return a BitbucketException (or BitbucketV2Exception on API V2) that provide all possible information on the failure (HTTP error code, error message, and so on)

Release 0.9.0

23 Jan 13:55
eeebd45
Compare
Choose a tag to compare

Major Changes

  • Suport of netstandard 2.0 #94 (thanks to @Tanzy who has started that in #67)
  • .Net Framework 4.0 is no more supported, minimal supported version is now .Net Framework 4.5.2
  • RestSharp dependency has been upgraded from 105.2.3 to 106.3.1 (warning: higher versions are known to be incompatible)

Other Changes

  • Abstract class Authenticate has a new overload for the GetResponse method that allow to get a raw string response
  • Teach FilterBuilder.ParseSingleQuotedString() how to handle double quotes #96 (thanks to @asherber)
  • API calls work with no authentication by default (can acess only public resources) #95 (thanks to @asherber)
  • Many parameters named repository have been renamed repoSlugOrName to make intent clearer, and support of UUIDs has been extended to all that parameters and to teamName parameters #90 #97 (thanks to @asherber)
  • Many methods of TeamsEndPoint are now obsolete and have been moved in TeamResource
  • GetDiff and GetPatch methods in RepositoryResource have been fixed, and the signatures have slightly changed #98 (thanks to @asherber)
  • Authentication classes and methods have been renamed and reworked to improve clarity and usability. Follow Obsolete message to find your way #102 #103. By the way Oauth2.0 support has been improved with a support of the refresh token exchange when needed.
  • Browsing the content of a repository through the Src resource is now implemented on API V2 #104
  • Manipulating team's projects is now implemented on API V2 #80 #106