ky

🌳 Tiny & elegant JavaScript HTTP client based on the browser Fetch API

MIT License

Downloads
7.7M
Stars
11.4K
Committers
108

Bot releases are visible (Hide)

ky -

Published by sindresorhus about 2 years ago

  • Fix copying response body with 204 status code when using onDownloadProgress (#444) d48ed95

https://github.com/sindresorhus/ky/compare/v0.31.0...v0.31.1

ky -

Published by sindresorhus over 2 years ago

Breaking

  • Require Node.js 14 when used in Node.js e557973

Improvements

  • Add typed JSON response (#437) cff4c7a
  • Export BeforeRetryState type (#442) e4077b9

Fixes

  • Fix response details getting lost when using onDownloadProgress (#441) f34fb1f

https://github.com/sindresorhus/ky/compare/v0.30.0...v0.31.0

ky -

Published by sindresorhus over 2 years ago

  • Allow overriding Content-Type header for JSON requests (#429) d00864f

https://github.com/sindresorhus/ky/compare/v0.29.0...v0.30.0

ky -

Published by sindresorhus over 2 years ago

ky -

Published by sindresorhus almost 3 years ago

  • Fix source map generation (#396) b0e3001

https://github.com/sindresorhus/ky/compare/v0.28.6...v0.28.7

ky -

Published by sindresorhus about 3 years ago

  • Fix types for TypeScript 4.4 (#384) ca20d65

https://github.com/sindresorhus/ky/compare/v0.28.5...v0.28.6

ky -

Published by sindresorhus over 3 years ago

ky -

Published by sindresorhus over 3 years ago

  • Fix missing hook method types for TypeScript (#353) 8fc2f22

https://github.com/sindresorhus/ky/compare/v0.28.3...v0.28.4

ky -

Published by sindresorhus over 3 years ago

  • Fix incompatibility with New Relic (#351) 5f3c315

https://github.com/sindresorhus/ky/compare/v0.28.2...v0.28.3

ky -

Published by sindresorhus over 3 years ago

  • Fix missing Options TypeScript type 3ad1eab
  • Restore main field in package.json (#342) 1338996

https://github.com/sindresorhus/ky/compare/v0.28.1...v0.28.2

ky -

Published by sindresorhus over 3 years ago

  • Fix searchParams option TypeScript type (#344) 010b082

https://github.com/sindresorhus/ky/compare/v0.28.0...v0.28.1

ky -

Published by sindresorhus over 3 years ago

Breaking

  • Make HTTPError and TimeoutError named exports 6ec7fd7

Improvements

  • Improve HTTPError messages (#333) ca098f8

Fixes

  • Fix merging of searchParams in .create() and .extend() (#335) b3c9e88
  • Throw timeouts even if throwHttpErrors option is false (#334) eefcde5

Meta

  • Move codebase to TypeScript (#330) 2d8d68a

https://github.com/sindresorhus/ky/compare/v0.27.0...v0.28.0

ky -

Published by sindresorhus over 3 years ago

  • Don't mangle user-provided searchParams string (#325) 5815518

https://github.com/sindresorhus/ky/compare/v0.26.0...v0.27.0

ky -

Published by sindresorhus almost 4 years ago

Breaking

  • Ky is now a pure ESM module (#313) d976029
  • Drop UMD build (#315) 1a7ec7f
  • Require Node.js 12 when used in Node.js (#315) 1a7ec7f

Improvements

  • Add request and options to HTTPError (#309) 519d17e

Fixes

  • Fix aborting when onDownloadProgress throws an exception (#301) 87c94fd
  • Fix support for ky.stop as return type in BeforeRetryHook TypeScript type (#307) b86ff0a
  • Fix BeforeRetryHook and NormalizedOptions TypeScript type definitions (#308) 5da3da0

Docs

  • Improve docs for ky.stop (#314) 0ced1f1

https://github.com/sindresorhus/ky/compare/v0.25.1...v0.26.0

ky -

Published by sindresorhus almost 4 years ago

  • Fix React Native compatibility (#304) bc646cd

https://github.com/sindresorhus/ky/compare/v0.25.0...v0.25.1

ky -

Published by sindresorhus almost 4 years ago

Possibly breaking for TypeScript users

  • Fix Deno and React Native compatibility (#295) 2bff89a
    • If you use TypeScript and don't already include the dom library in your tsconfig, you need to do this now.

Improvements

  • Expose TimeoutError#request (#299) 599a45b

https://github.com/sindresorhus/ky/compare/v0.24.0...v0.25.0

ky -

Published by sindresorhus about 4 years ago

Breaking

Fixes

  • Fix handling of network errors for beforeRetry hook (#276) 9876da1

https://github.com/sindresorhus/ky/compare/v0.23.0...v0.24.0

ky -

Published by sindresorhus about 4 years ago

  • Add option for custom fetch implementation (#273) ccda3b9

https://github.com/sindresorhus/ky/compare/v0.22.0...v0.23.0

ky -

Published by sindresorhus over 4 years ago

  • Add support for relative URLs and searchParams even in non-browsers (#271) c9e5206
  • Add parseJson option (#272) 95e7fd7
  • Fix headers construction in old browsers (#270) 71a8d59

https://github.com/sindresorhus/ky/compare/v0.21.0...v0.22.0

ky -

Published by sindresorhus over 4 years ago

  • Add Request to TimeoutError (#267) b9dbd19

https://github.com/sindresorhus/ky/compare/v0.20.0...v0.21.0

Package Rankings
Top 0.62% on Npmjs.org
Top 14.85% on Deno.land
Top 3.88% on Proxy.golang.org
Top 13.52% on Repo1.maven.org
Badges
Extracted from project README
Coverage Status