fetch

A Fetch API wrapper

MIT License

Downloads
438
Stars
61
fetch -

Published by tkrotoff almost 4 years ago

Features

  • Update documentation: use RequestInfo as first parameter
  • Update npm packages
fetch -

Published by tkrotoff almost 4 years ago

Breaking Changes

  • Make everything more generic: add Body methods to Promise
  • New Node.js example
fetch -

Published by tkrotoff almost 4 years ago

Features

  • Update npm packages
  • Add postFormData(), putFormData(), patchFormData()
  • Improve types
fetch -

Published by tkrotoff over 4 years ago

Features

  • Update npm packages
fetch -

Published by tkrotoff over 4 years ago

Breaking Changes

  • Rework HttpError, remove createHttpError()
fetch -

Published by tkrotoff over 4 years ago

Features

  • Add error.statusCode because of Node.js http.ServerResponse.statusCode
fetch -

Published by tkrotoff over 4 years ago

Breaking Changes

  • Rename Json to JSON
fetch -

Published by tkrotoff almost 5 years ago

Features

  • Update npm packages
fetch -

Published by tkrotoff about 5 years ago

Fixes

  • Do not publish test files, see c730ea
fetch -

Published by tkrotoff about 5 years ago

Features

  • Better documentation
  • Add an example for browsers
fetch -

Published by tkrotoff about 5 years ago

Features

  • Expose defaults.init
  • Document TypeError exception
  • Upgrade npm packages
fetch -

Published by tkrotoff about 5 years ago

Features

  • Export createHttpError()
  • Upgrade npm packages
fetch -

Published by tkrotoff over 5 years ago

Features

  • Improve typings thx to TypeScript 3.5
  • Simplify code
  • Improve tests
fetch - v0.0.3

Published by tkrotoff over 5 years ago

Features

  • Add Husky
  • Upgrade NPM packages
  • Set a repository URL for npmjs.com
  • Improve ESLint
fetch - v0.0.4

Published by tkrotoff over 5 years ago

Fix

  • No package.json side effects
fetch - v0.1.0

Published by tkrotoff over 5 years ago

Features

  • Allow to pass options
  • Upgrade npm dependencies

Fix

  • Do not reinterpret the response, see 00b5ec
fetch - v0.0.2

Published by tkrotoff over 5 years ago

First release

Features

  • Http.ts: getJson(), postJson(), putJson(), patchJson(), deleteJson()
  • HttpStatus.ts: enum HttpStatus
  • HttpError.ts: class HttpError extends Error
  • 100% code coverage