Skip to content

Latest commit

 

History

History
319 lines (209 loc) · 9.98 KB

CHANGELOG.md

File metadata and controls

319 lines (209 loc) · 9.98 KB

Change Log

All notable changes to this project will be documented in this file.
This project adheres to Semantic Versioning.

Unreleased

Added:

Changed:

Removed:

2.2.0 / 2023-11-15

Added:

Changed:

  • Uses PSR-17 internally instead of the deprecated PHP-HTTP MessageFactory

Deprecated:

  • Usage of Api:api with not fully qualified class name
  • Usage of Api::HTTP_RESPONSE_* constants
  • Usage of response format other than json
  • Passing a string as $params to the methods create and update of the PullRequests, BranchRestrictions, Pipelines, and Repository API
  • ClientInterface, use Client instead
  • Passing a string as $params to the request method of Client
  • Usage of Client::getMessageFactory use Client::getRequestFactory instead
  • Passing Http\Message\MessageFactory to HttpPluginClientBuilder

2.1.0 / 2021-07-23

Added:

  • PullRequest: add diffstat endpoint

2.0.0 / 2021-07-13

See the Upgrade Guide for more information.

Added:

  • Create a file through API via Src:create (PR #40)
  • Added manage team hooks endpoints (PR #75)
  • Added user permissions endpoints (PR #76)
  • Added team permissions endpoints (PR #77)
  • Added workspaces endpoints (PR #78)
  • Added support for PHP 8

Changed:

  • Updated Api:api in order to support class name resolution via ::class (PR #38)
  • Updated BranchRestrictions with newly available restriction types (PR #39)
  • Minimum required PHP version has been bumped to 5.6 from 5.4
  • All endpoints now automatically use the correct API version
  • Endpoints for SSH Keys, Deploy Keys, Emails, Repository and Issues have been updated to use v2
  • The library is powered by HTTP plug and can be used with any compatible HTTP client (PR #74)
  • Updated minimum supported PHP version to 7.1

Removed:

  • Removed all deprecated/removed Bitbucket API v1 Privileges endpoints (PR #58)
  • Removed all deprecated/removed Bitbucket API v1 Emails endpoints (PR #56)
  • Removed all deprecated/removed Bitbucket API v1 Wiki endpoints (PR #53)
  • Removed all deprecated/removed Bitbucket API v1 Changeset endpoints (PR #61)
  • Removed all deprecated/removed Bitbucket API v1 Followers endpoints (PR #62)
  • Removed all deprecated/removed Bitbucket API v1 Services endpoints (PR #65)
  • Removed all deprecated/removed Bitbucket API v1 Links endpoints (PR #64)
  • Removed all deprecated/removed Bitbucket API v1 Events endpoints (PR #66)
  • Removed all deprecated/removed Bitbucket API v1 OAuth endpoints (PR #54)
  • Removed all deprecated/removed Bitbucket API v1 User endpoints(PR #57, PR #68, PR #69)
  • Removed all deprecated/removed Bitbucket API v1 Repository endpoints (PR #67)
  • Removed all deprecated/removed Bitbucket API v1 Issues endpoints (PR #63)
  • Removed all deprecated/removed Bitbucket API v1 Invitations endpoints (PR #70)
  • Removed OAuth1 plugin and dependency on deprecated jacobkiers/oauth library
  • Removed OAuth2 plugin

1.1.2 / 2018-06-18

Fixed:

  • Request content was not set when a json was provided (issue #74)

1.1.1 / 2018-06-11

Fixed:

  • Fixed count() issue with PHP 7.2 (issue #72)
  • kriswallsmith/buzz constrained to ^0.16 from ~0.15 in order to work on PHP > 7.0 (issue #73)

1.1.0 / 2017-11-06

Added:

  • Implemented Pipeline support. ( thanks to @marco_veenendaal )

Changed:

  • Added $params arg to Repositories:all method (issue #65)

Fixed:

  • Include format param only in API v1

1.0.0 / 2017-06-12

Added:

  • Endpoint to get a list of teams to which caller has access.
  • Endpoint to get emails for authenticated user.
  • Basic pager in order to support response pagination. (@see #17)
  • Refs/Branches and Refs/Tags endpoints.

Changed:

  • Minimum required PHP version has been bumped to 5.4 from 5.3
  • SSL certificate verification is now enabled by default.
  • Api constructor signature was modified in order to reflect removal of transport object dependency. (@see Removed[2])

Removed:

  • Removed deprecated methods from Api (childFactory, processResponse, authorize)
  • Removed transport object dependency from Api.

Fixed:

  • NormalizeArrayListener should not run on FormRequest (issue #62)
  • [Tests] Use mocked HTTP client in OAuth2ListenerTest:testGetAccessTokenFail

0.8.4 / 2017-05-15

Fixed:

  • Updated broken links (.org to .io) inside README.md
  • Fixed broken tests on PHP 5.3 due to short array syntax.

0.8.3 / 2017-05-15

Fixed:

  • Client::setApiVersion should accept only argument of type string (issue #57)

0.8.2 / 2017-01-10

Fixed:

  • Added missing polyfill for "json_last_error_msg".

0.8.1 / 2016-05-08

Fixed:

  • Declining a PR without a message parameter caused a 500 response. (issue #43)

0.8.0 / 2015-12-05

Added:

  • Implemented build statuses endpoints. (PR #27)

Fixed:

  • Usage of short array syntax inside one test, forced the test suite to fail on PHP 5.3

0.7.1 / 2015-11-07

Fixed:

  • HTTP Client options where not forwarded to child classes. (PR #26)

0.7.0 / 2015-09-08

Added:

  • Implemented webhooks endpoints.
  • Toggle spam on a changeset comment. (issue #2)
  • Support for OAuth2. (issue #34)

Changed:

  • Marked Repositories/Services as deprecated in favor of Repositories/Hooks. (issue #29)
  • [DOCS] Added example on how to use this library in combination with a 3rd party OAuth1 client in a 3-legged flow.

Fixed:

  • forking_policy parameter renamed to fork_policy on repository endpoint. (issue #32)

0.6.2 / 2015-05-18

Fixed:

  • Client listener propagation to child classes. (PR #23)

0.6.1 / 2015-03-24

Changed:

Fixed:

  • Request body was build the wrong way when no ( or wrong type of ) additional params where passed to Repository::create()
  • Commits::all() should use GET instead of POST
  • Listener::delListener did not properly deleted the listener.
  • Forward all available listener when a child class is requested via Api::api or Api::childClass.

0.6.0 / 2014-10-21

Added:

  • Added Changelog
  • Added Api::api()* as a single entry point for concrete apis ( thanks to @digitalkaoz )

Fixed:

  • Fixed Privileges::grant() parameters format ( Fixes #22 )

Changed:

  • Marked eabay/bitbucket-repo-sync as conflict in composer.json
  • CS fixes

0.5.2 / 2014-07-09

Fixed:

  • Make tests go green again. ( My bad and I'm sorry ).

0.5.1 / 2014-07-08

Fixed:

  • Bug: A default content-type is added for POST and PUT, if none was given. ( Fixes #19 )

0.5.0 / 2014-06-09

Added:

  • Allow setting custom Request and Response inside HTTP client, which should facilitate integration in 3rd party software.

Changed:

  • Implemented basic priority for listeners.

Fixed:

  • Bug: Missing content-type made PullRequests::merge and PullRequests::declined unusable.

0.4.1 / 2014-06-01

Fixed:

  • Bug: OAuthListener: Parameters may be included from the body if the content-type is urlencoded. ( Fixes #18 )

0.4.0 / 2014-05-14

Added:

  • Added API 2.0 endpoints for Users ( get, followers, following, repositories )
  • Added API 2.0 endpoints for Teams. ( profile, members, followers, following, repositories )
  • Added API 2.0 endpoints for BranchRestrictions. ( all, create, get, update, delete )
  • Added delListener() method for ClientInterface.

Fixed:

  • Bug: Mandatory parameters inside PullRequest's methods were not checked.

Changed:

  • Documentation updated.

0.3.0 / 2014-05-12

Started to implement version 2.0 of the API.

  • All 1.0 endpoints that have a "twin" in version 2.0 will be updated to use the never version.
  • All specific 2.0 endpoints will be added gradual.

Added:

  • Implemented Commits and Commits::Comments endpoints for API 2.0
  • Added Repository::get() ( API 2.0 )
  • Added all endpoints for PullRequests ( API 2.0 )
  • Added repositories endpoint ( API 2.0 )

Changed:

  • Updated Repository to use API 2.0 (create, delete) and implemented endpoints specific to API 2.0 ( watchers, forks )
  • Updated PullRequests::all() to API 2.0
  • Updated PullRequests::Comments::get() and PullRequests::Comments::all() to API 2.0
  • Updated Repositories::PullRequests::all() to allow state param.
  • CS fixes.

0.2.1 / 2014-04-21

Added:

  • Added Repositories::PullRequests::all() method to get a list of all pull requests.

0.2.0 / 2014-02-24

Fixed:

  • Bug: group privileges returned 400 error ( Fixes #14 )

Added:

  • Implemented HttpClient which abstracts HTTP layer from base clases and allows custom HTTP libraries to be used.
  • Implemented simple EventListener which can be used to change request before and after its executed.

Changed:

  • Updated Api::setCredentials() to use our new EventListener.

0.1.2 / 2013-12-24

Fixed:

  • Bug: Duplicate array keys in groups filters. ( Fixes #12 )

0.1.1 / 2013-11-26

Removed:

  • Removed newuser endpoint. ( Fixes #10 )
  • Removed repositories/changesets/likes endpoint. ( ref #1 )

Changed:

  • Code clean, fixed typos.

0.1.0 / 2013-06-09

  • First public release