Skip to content

Commit

Permalink
add CHANGELOG.md
Browse files Browse the repository at this point in the history
  • Loading branch information
siddharthvp committed Jan 27, 2021
1 parent 24a8d05 commit 24b2bd8
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Only breaking changes are documented in this change log.

### Breaking changes

#### 0.9.0
* [mwn#rawRequest](https://tools-static.wmflabs.org/mwn/docs/classes/_bot_.mwn.html#rawrequest) now returns the `AxiosResponse` object directly, rather than the `data` part of `AxiosResponse`.
* In cases of error, the shape of the error thrown by [mwn#request](https://tools-static.wmflabs.org/mwn/docs/classes/_bot_.mwn.html#request) is different.
* Earlier: `error.response` was the API response data along with response and request objects, the former making it a cyclic object.
* Now: `error.response` is an object with fields {data, headers, status, statusText}


#### 0.8.0
* For imports in JavaScript, use `const {mwn} = require('mwn');` instead of `const mwn = require('mwn');`

0 comments on commit 24b2bd8

Please sign in to comment.