Skip to content

Latest commit

 

History

History
28 lines (23 loc) · 2.22 KB

CHANGELOG.md

File metadata and controls

28 lines (23 loc) · 2.22 KB

CHANGLOG

0.6.0

Thanks to @andrewyalung for authoring most of this version!

  • requesterFn has been added as an option. When requesterFn is provided, all request will be processed by that function.
  • useXhr has been removed and replaced with requesterFn.
  • Fixed non-default port being ignored in default request implementation.

0.5.2

  • Functions that take an API response as an argument now properly handle taking the entire response, as they did in 0.4.x. They also still accept just the response's body property, as in 0.5.1. Affected functions: hasNextPage, hasPreviousPage, getNextPage, getPreviousPage, repositories.getForksFromResponse, repositories.hasParent, repositories.getParentFromResponse.

0.5.1

This version is targeted at two main goals:

  1. Bitbucket's breaking API changes (migrating from users and teams to "workspaces"), in order to comply with GDPR. For more details, see: https://developer.atlassian.com/cloud/bitbucket/bitbucket-api-changes-workspaces/
  2. Modernizing the code from node-callbacks to promises.

Due to the aforementioned breaking changes on Bitbucket's end, usage of previous versions of this package will stop working in general after 2020-04-29, except for a few basic uses like getting the authenticated user.

  • Started CHANGELOG document.
  • Added Node 7.6 requirement.
  • All asynchronous functions now return a promise, and no longer accept a callback.
  • On success, the old response will now be packed inside a body property, and it now has a sibling statusCode property.
  • On errors that result from API responses, the response body will now be on a property called body (instead of msg), and status has been renamed to statusCode.
  • When useXhr is enabled, the entire XHR response will now be provided on both success and failure. Note that this is consistent with the body and statusCode properties previously described.
  • repositories.getByUser and repositories.getByTeam have been merged to repositories.getByWorkspace.
  • teams.get has been removed.
  • workspaces.get has been added.
  • Fixed a bug where double JSON parsing would cause parsing to throw an error. Thanks to @mateusmcg for the fix!