Skip to content

Prerelease of Ky 2.0

github.com/sindresorhus
10 pointssholladay3 comments
On HN

Comments

Many quality of life improvements. Timeouts and hooks have been revamped. Quirks related to base URLs for custom instances have been solved. Every known bug has been fixed.

Please give it a try and let us know what you think!

How does it compare against axios (aside from the supply chain issues hehe)?

Ky was written to use fetch from the beginning, whereas Axios tries to adapt itself to fetch, which doesn't always work well. We also have much better TypeScript support, including built-in schema validation with type inference.

Documented here: https://github.com/sindresorhus/ky?tab=readme-ov-file#how-is...

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.