@tkrotoff/fetch
Version:
Fetch wrapper
170 lines (97 loc) • 2.6 kB
Markdown
## 0.11.4 (2021/04/20)
### Features
- Improve documentation
- Various internal improvements
- Update npm packages
## 0.11.3 (2021/03/15)
### Fixes
- Use Rollup to generate CommonJS and UMD outputs
- No need anymore for mockFetch.ts: no more "TypeError: Cannot redefine property: ..." with Jest thx to Rollup CommonJS output
- Fix HttpError name when minified
## 0.11.1 (2021/03/10)
### Features
- More HTTP status codes
- Update npm packages
## 0.11.0 (2021/01/27)
### Features
- Introduce createHttpError() & createJSONHttpError()
## 0.10.2 (2021/01/22)
### Fixes
- Fix for Microsoft Edge <= 18 (EdgeHTML)
### Features
- Document HttpError
## 0.10.1 (2021/01/06)
### Features
- Update documentation: use RequestInfo as first parameter
- Update npm packages
## 0.10.0 (2020/12/16)
### Breaking Changes
- Make everything more generic: add Body methods to Promise<Response>
- New Node.js example
### Features
- Update npm packages
- Add postFormData(), putFormData(), patchFormData()
- Improve types
## 0.6.0 (2020/11/08)
### Features
- Update npm packages
- Add postFormData(), putFormData(), patchFormData()
- Improve types
## 0.5.1 (2020/03/16)
### Features
- Update npm packages
## 0.5.0 (2020/03/13)
### Breaking Changes
- Rework HttpError, remove createHttpError()
## 0.4.0 (2020/01/26)
### Breaking Changes
- Rename Json to JSON
## 0.3.4 (2020/01/14)
### Features
- Add error.statusCode because of Node.js http.ServerResponse.statusCode
## 0.3.3 (2020/01/04)
### Features
- Update npm packages
## 0.3.2 (2019/09/25)
### Fixes
- Do not publish test files, see c730ea
## 0.3.1 (2019/09/23)
### Features
- Better documentation
- Add an example for browsers
## 0.3.0 (2019/09/03)
### Features
- Expose defaults.init
- Document TypeError exception
- Upgrade npm packages
## 0.2.1 (2019/08/02)
### Features
- Export createHttpError()
- Upgrade npm packages
## 0.2.0 (2019/06/03)
### Features
- Improve typings thx to TypeScript 3.5
- Simplify code
- Improve tests
## 0.1.0 (2019/05/23)
### Features
- Allow to pass options
- Upgrade npm packages
### Fixes
- Do not reinterpret the response, see 00b5ec
## 0.0.4 (2019/03/25)
### Fixes
- No package.json side effects
## 0.0.3 (2019/03/18)
### Features
- Add Husky
- Upgrade npm packages
- Set a repository URL for npmjs.com
- Improve ESLint
## 0.0.2 (2019/02/28)
First release
### Features
- Http.ts: `getJson()`, `postJson()`, `putJson()`, `patchJson()`, `deleteJson()`
- HttpStatus.ts: `enum HttpStatus`
- HttpError.ts: `class HttpError extends Error`
- 100% code coverage