All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- None
2.0.0 - 2024-07-03
This package is now a pure ESM package and uses the fetch global function to perform network requests.
Additionally, every response returned by hCaptcha.com is now validated against its expected schema. This means that data can now be safely accessed according to the corresponding TypeScript type definition. Unexpected data will reject with an error; in this case open an issue to propose changes to the schema.
These are the current package's exports:
- Functions:
- verifyHcaptchaToken()
- TypeScript types:
- HcaptchaResponse
- BREAKING CHANGE: This package is now a pure ESM package.
- BREAKING CHANGE: Require Node.js 20 (latest LTS).
- BREAKING CHANGE: Use
fetch
for network requests.