904 Commits

Author SHA1 Message Date
semantic-release-bot
9b779a0b0a chore(release): 5.0.2 [skip ci]
## [5.0.2](https://github.com/jdalrymple/node-gitlab/compare/5.0.1...5.0.2) (2019-05-31)

### Bug Fixes

* Properly handling the response bodies returned from gitlab ([881b87b](https://github.com/jdalrymple/node-gitlab/commit/881b87b)), closes [#320](https://github.com/jdalrymple/node-gitlab/issues/320)
5.0.2
2019-05-31 20:45:14 +00:00
jdalrymple
d3fef9ba5e
Merge pull request #322 from jdalrymple/fixes-320
fix: Properly handling the response bodies returned from gitlab
2019-05-31 16:24:50 -04:00
Justin
881b87b828 fix: Properly handling the response bodies returned from gitlab
Gitlab occasionally sends non json responses, and this was being lost in the current implementation of the RequestHelper KyRequester.

fixes: #320
2019-05-31 15:28:41 -04:00
Justin
e2235776b4 refactor(config): Moved the noEmit option to the tsconfig 2019-05-29 09:58:07 -04:00
Justin
f4c735be3c build: Keep only the declaration files 2019-05-28 14:10:16 -04:00
Justin
77fec4ce09 style(docs): Linting tslint config 2019-05-27 15:49:15 -04:00
Justin
7b884dbc7f ci(codeclimate): Modifying the thresholds 2019-05-27 15:13:24 -04:00
Justin
ffc085bc9b ci(codeclimate): Switching to tslint.json for codeclimate support 2019-05-27 14:30:04 -04:00
Justin Dalrymple
0061231c8e ci(travis): Updating coverage directory to be cached 2019-05-26 12:25:00 -04:00
Justin Dalrymple
b80d49346c style(docs): Linting travis yaml 2019-05-26 12:05:57 -04:00
Justin
b68dc4147a Merge remote-tracking branch 'origin/master' 2019-05-26 11:55:34 -04:00
Justin Dalrymple
c23f353d42 ci(travis): Caching coverage reports to be handled by the coverage step 2019-05-26 11:54:53 -04:00
semantic-release-bot
01fb996d1d chore(release): 5.0.1 [skip ci]
## [5.0.1](https://github.com/jdalrymple/node-gitlab/compare/5.0.0...5.0.1) (2019-05-26)

### Bug Fixes

* **package:** Making lint-staged a dev dependency ([5c949b2](https://github.com/jdalrymple/node-gitlab/commit/5c949b2))
* **package:** Missing dependency ([40f5d21](https://github.com/jdalrymple/node-gitlab/commit/40f5d21))
5.0.1
2019-05-26 01:12:44 +00:00
Justin
40f5d215ac fix(package): Missing dependency 2019-05-25 20:58:38 -04:00
Justin
b969687589 style(docs): Linting changelog 2019-05-25 20:24:28 -04:00
Justin
5c949b2d17 fix(package): Making lint-staged a dev dependency 2019-05-25 19:51:10 -04:00
semantic-release-bot
c1806845a9 chore(release): 5.0.0 [skip ci]
# [5.0.0](https://github.com/jdalrymple/node-gitlab/compare/4.5.1...5.0.0) (2019-05-25)

### Bug Fixes

* [#227](https://github.com/jdalrymple/node-gitlab/issues/227) Fixing array syntax thanks to Lukas Eipert (https://github.com/leipert) ([aa6acb1](https://github.com/jdalrymple/node-gitlab/commit/aa6acb1))
* Fixing Todos support. If todoId was not passed, an undefined value would be introduced into the url ([cea5a2b](https://github.com/jdalrymple/node-gitlab/commit/cea5a2b))
* Fixing typing structure and configuration ([a79dabe](https://github.com/jdalrymple/node-gitlab/commit/a79dabe))
* Merge Request Approvals API did not match official API ([e4ba731](https://github.com/jdalrymple/node-gitlab/commit/e4ba731))
* Removed xhr library in favour of ky, and switched request for got for a smaller package size and retry functionality ([ee4730f](https://github.com/jdalrymple/node-gitlab/commit/ee4730f))
* ResourceAwardEmojis API wasn't properly filtering based on awardId ([a7b29c1](https://github.com/jdalrymple/node-gitlab/commit/a7b29c1))

### Code Refactoring

* Expose optional parameters for the NotiicationSettings API ([1ba9126](https://github.com/jdalrymple/node-gitlab/commit/1ba9126))
* Removed Fs dependency for better browser support ([037f4ed](https://github.com/jdalrymple/node-gitlab/commit/037f4ed))
* Removed inconsistent export strategies ([03e85ef](https://github.com/jdalrymple/node-gitlab/commit/03e85ef))
* Removed the confusing url parameter from BaseService ([26e2e52](https://github.com/jdalrymple/node-gitlab/commit/26e2e52))
* Requiring content for the Note related APIs ([7453779](https://github.com/jdalrymple/node-gitlab/commit/7453779))
* Similar to the RepositoryFiles API changes ([97dd060](https://github.com/jdalrymple/node-gitlab/commit/97dd060))
* SystemHooks API function header updates ([6ea90d3](https://github.com/jdalrymple/node-gitlab/commit/6ea90d3))
* Triggers API required arguments exposed as optional ([62e032b](https://github.com/jdalrymple/node-gitlab/commit/62e032b))
* Updating the MergeRequest API's pipeline function header ([46a541b](https://github.com/jdalrymple/node-gitlab/commit/46a541b))

### Features

* Added LDAP support to the Groups API ([3f6d409](https://github.com/jdalrymple/node-gitlab/commit/3f6d409))
* Added the ability to add sudo to specific requests ([18effa2](https://github.com/jdalrymple/node-gitlab/commit/18effa2))
* Added the missing edit function to the Groups API ([ee6d490](https://github.com/jdalrymple/node-gitlab/commit/ee6d490))
* Adding the option to conditionally camelize response body ([5f97193](https://github.com/jdalrymple/node-gitlab/commit/5f97193))

### BREAKING CHANGES

* Triggers API pipeline function requires the ref and token
* Notes now require a body argument
* NotificationSettings API edit function now takes one parameter, `options`
* MergeRequest Pipelines require the mergeRequestId
* Updated Approvals API support to match https://docs.gitlab.com/ee/api/merge_request_approvals.html
* Removed dependency on FS. Now the Projects API takes in two arguments `projectId` and `content` as well as an option fileName argument
* Removed projectId from System Hooks API since it wasn't required
* Added content as a required parameter for RepositoryFiles
* Changing everything to named exports for simplicity
* Switching required initialization argument from 'url' to 'host'
5.0.0
2019-05-25 23:41:38 +00:00
Justin
356f056e5f chore(merge): Fixing some merge conflicts 2019-05-25 19:25:07 -04:00
Justin
d85a64edaf Merge branch 'next' 2019-05-25 19:07:39 -04:00
Justin
06593705f8 refactor: Updating typings on all functions to include additional options (ie sudo) 2019-05-25 19:05:28 -04:00
Justin
62e032b5e6 refactor: Triggers API required arguments exposed as optional
The Trigger API's pipeline function requires two new arguments, the ref and token but was previously exposed as optional arguments.

BREAKING CHANGE: Triggers API pipeline function requires the ref and token
2019-05-25 19:05:28 -04:00
Justin
7453779e60 refactor: Requiring content for the Note related APIs
The Note APIs were  checking the options argument for a body parameter misleading the user to believe it was optional.

BREAKING CHANGE: Notes now require a body argument
2019-05-25 19:05:28 -04:00
Justin
1ba912603f refactor: Expose optional parameters for the NotiicationSettings API
The NotificationSettings API was missing optional parameters in its function headers.

BREAKING CHANGE: NotificationSettings API edit function now takes one parameter, `options`
2019-05-25 19:05:28 -04:00
Justin
46a541ba8c refactor: Updating the MergeRequest API's pipeline function header
The function requires the mergerequestId but was exposing this parameter as optional.

BREAKING CHANGE: MergeRequest Pipelines require the mergeRequestId
2019-05-25 19:05:28 -04:00
Justin
e4ba731bea fix: Merge Request Approvals API did not match official API
Updated the function headers to match the official API.

BREAKING CHANGE: Updated Approvals API support to match https://docs.gitlab.com/ee/api/merge_request_approvals.html
2019-05-25 19:05:28 -04:00
Justin
97dd060ae1 refactor: Similar to the RepositoryFiles API changes
Removed the dependency on FS for better browser support.

BREAKING CHANGE: Removed dependency on FS. Now the Projects API takes in two arguments `projectId` and `content` as well as an option fileName argument
2019-05-25 19:05:28 -04:00
Justin
6ea90d32ce refactor: SystemHooks API function header updates
No point in having extra arguments in the function header if they arent required!

BREAKING CHANGE: Removed projectId from System Hooks API since it wasn't required
2019-05-25 19:05:28 -04:00
Justin
037f4ed1ee refactor: Removed Fs dependency for better browser support
Allowing the user to pass in the content directly removes this limitation.

BREAKING CHANGE: Added content as a required parameter for RepositoryFiles
2019-05-25 19:05:28 -04:00
Justin
aa6acb1d18 fix: #227 Fixing array syntax thanks to Lukas Eipert (https://github.com/leipert) 2019-05-25 19:05:28 -04:00
Justin
cea5a2bc5e fix: Fixing Todos support. If todoId was not passed, an undefined value would be introduced into the url 2019-05-25 19:05:28 -04:00
Justin
a7b29c17dc fix: ResourceAwardEmojis API wasn't properly filtering based on awardId 2019-05-25 19:05:28 -04:00
Justin
3f6d4095cd feat: Added LDAP support to the Groups API 2019-05-25 19:05:28 -04:00
Justin
ee6d490799 feat: Added the missing edit function to the Groups API 2019-05-25 19:05:28 -04:00
Justin
6c5f81b83e test: Updating push rule test to improve clarity 2019-05-25 19:05:28 -04:00
Justin
c10690c609 test: More jest matcher updates 2019-05-25 19:05:28 -04:00
Justin
106e112dbe test: General updates to various tests to use the proper jest matchers 2019-05-25 19:05:28 -04:00
Justin
052d6ea11e test: Fix the ApplicationSettings test to work with the default camelize option 2019-05-25 19:05:28 -04:00
Justin
844e8f44ab test: Add integration test for the ProjectBundle export 2019-05-25 19:05:28 -04:00
Justin
7e4a3f1291 refactor(config): Updating tslint configuration 2019-05-25 19:05:28 -04:00
Justin
a79dabefea fix: Fixing typing structure and configuration 2019-05-25 19:05:28 -04:00
Justin
7ebb616a67 test: Remove nested test structure 2019-05-25 19:05:28 -04:00
Justin
54d804e0ae test: Updating tests to match changes to bundler function 2019-05-25 19:05:28 -04:00
Justin
4349da7408 test: Adding tests for the new camelize option 2019-05-25 19:05:28 -04:00
Justin
b780a5f520 test: Modified maxPages test to better handle the issue seen in #311 2019-05-25 19:05:28 -04:00
Justin
ee4730fbd0 fix: Removed xhr library in favour of ky, and switched request for got for a smaller package size and retry functionality 2019-05-25 19:05:28 -04:00
Justin
18effa2aca feat: Added the ability to add sudo to specific requests 2019-05-25 19:05:28 -04:00
Justin
5f97193dfd feat: Adding the option to conditionally camelize response body 2019-05-25 19:05:28 -04:00
Justin
03e85ef171 refactor: Removed inconsistent export strategies
Some exports were default ie Gitlab while others were named. This created some confusion and as such have been standardized as named exports.

BREAKING CHANGE: Changing everything to named exports for simplicity
2019-05-25 19:05:28 -04:00
Justin
26e2e52fad refactor: Removed the confusing url parameter from BaseService
It was interfering with an internally defined property which lead to confusion.

BREAKING CHANGE: Switching required initialization argument from 'url' to 'host'
2019-05-25 19:05:28 -04:00
Justin
3ad35f69fe refactor: Updating bundler function to follow the function name standard 2019-05-25 17:19:03 -04:00