Skip to content

Commit

Permalink
Version 0.10
Browse files Browse the repository at this point in the history
Version 1 is coming soon!
  • Loading branch information
siddharthvp committed Feb 14, 2021
1 parent 62d04a1 commit 54ee835
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
9 changes: 7 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
Only breaking changes are documented in this change log.
Only breaking changes, deprecations and the like are documented in this change log.

### Breaking changes

#### 0.10.0
* `loginGetToken()` is now deprecated in favour of `login()` which will now fetch tokens as well.
* TypeScript source files are dropped from the npm package, per the standard practice followed in TypeScript libraries. This should not actually break anything.

#### 0.9.0
BREAKING CHANGES:
* [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
BREAKING CHANGES:
* For imports in JavaScript, use `const {mwn} = require('mwn');` instead of `const mwn = require('mwn');`
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 54ee835

Please sign in to comment.