encodeURIComponent() does not handle undefined.
To be precise, it actually does and returns undefined, but normally
that is an error, so the Typescript definition wants sensible input
values, i.e. string | number | boolean.
decamelizeKeys is defined to return Object, but Typescript 3.5.1 is a
bit stricter about Object and indexing properties. The correct fix
would need to be done in the type definition of humps.
Remove the typings directory.
Declare and use the types/interfaces in the various index.ts files.
This will produce a package that can be used by Typescript without
errors.
Remove the typings directory. Declare and use the types/interfaces in the various index.ts files.
This will produce a package that can be used by Typescript without errors.
Commit messages are required for most of the RepositoryFile functions and was missing.
BREAKING CHANGE: create, edit and remove functions now require the commitMessage function argument
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
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
The NotificationSettings API was missing optional parameters in its function headers.
BREAKING CHANGE: NotificationSettings API edit function now takes one parameter, `options`
The function requires the mergerequestId but was exposing this parameter as optional.
BREAKING CHANGE: MergeRequest Pipelines require the mergeRequestId
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
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
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
It was interfering with an internally defined property which lead to confusion.
BREAKING CHANGE: Switching required initialization argument from 'url' to 'host'