- Add request property to HttpError
- Drop node-fetch due to
Request
class limitations
- Replace
wait(0)
withPromise.resolve()
: should reduce the bundle size - Improve documentation
- Breaking change: drop old browsers support (#28)
- Remove node-fetch from Node.js example (#36)
- Update npm packages
- Remove Node.js 14 & 16 from CI
- Breaking change: createHttpError & createJSONHttpError params are no longer optional
- Test with Undici fetch
- Update npm packages
- Test with Node.js 18 (#29)
- Accept URL as input
- Ship again ESM modules, https://github.com/rollup/rollup/wiki/pkg.module
- Just ship CommonJS
- More JSDoc
- Update npm packages
- Optional body for post(), put() & patch(), reasons:
- Fix web example
- Update npm packages
- Improve documentation
- Upload coverage to Code Climate & Codecov
- Remove Travis CI support
- Update to node-fetch 3
- Update other npm packages
- Switch to @playwright/test
- Update npm packages
- Update npm packages
- Switch HttpStatus from an enum to an object to reduce bundle size
- Do not bundle export entriesToObject()
- Document isJSONResponse() & improve documentation
- Change internal file organization
- Improve documentation
- Various internal improvements
- Update npm packages
- 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
- More HTTP status codes
- Update npm packages
- Introduce createHttpError() & createJSONHttpError()
- Fix for Microsoft Edge <= 18 (EdgeHTML)
- Document HttpError
- Update documentation: use RequestInfo as first parameter
- Update npm packages
- Make everything more generic: add Body methods to Promise
- New Node.js example
- Update npm packages
- Add postFormData(), putFormData(), patchFormData()
- Improve types
- Update npm packages
- Add postFormData(), putFormData(), patchFormData()
- Improve types
- Update npm packages
- Rework HttpError, remove createHttpError()
- Rename Json to JSON
- Add error.statusCode because of Node.js http.ServerResponse.statusCode
- Update npm packages
- Do not publish test files, see c730ea
- Better documentation
- Add an example for browsers
- Expose defaults.init
- Document TypeError exception
- Upgrade npm packages
- Export createHttpError()
- Upgrade npm packages
- Improve typings thx to TypeScript 3.5
- Simplify code
- Improve tests
- Allow to pass options
- Upgrade npm packages
- Do not reinterpret the response, see 00b5ec
- No package.json side effects
- Add Husky
- Upgrade npm packages
- Set a repository URL for npmjs.com
- Improve ESLint
First release
- Http.ts:
getJson()
,postJson()
,putJson()
,patchJson()
,deleteJson()
- HttpStatus.ts:
enum HttpStatus
- HttpError.ts:
class HttpError extends Error
- 100% code coverage