diff --git a/CHANGELOG.md b/CHANGELOG.md index 985e5ad..16392b7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 0.5.2 (2026-11-30) + +Accepts `@profullstack/x402-gateway` 0.19 and 0.20. A site on gateway 0.20 with +throttle 0.5.1 got a second, nested 0.18 copy, and TypeScript sites failed to +build: the site's `Gateway` was not assignable to the throttle's own (`exempt` +returns `boolean | Promise` since gateway 0.18.3). No code change. + ## 0.5.1 (2026-11-22) **Security.** `exempt` no longer applies to brute-force guard rules (`guard: true`, diff --git a/package-lock.json b/package-lock.json index 168504c..fb4bdda 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,15 +1,15 @@ { "name": "@profullstack/throttle", - "version": "0.5.1", + "version": "0.5.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@profullstack/throttle", - "version": "0.5.1", + "version": "0.5.2", "license": "MIT", "dependencies": { - "@profullstack/x402-gateway": "^0.6.0 || ^0.7.0 || ^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^0.14.0 || ^0.15.0 || ^0.16.0 || ^0.17.0 || ^0.18.0" + "@profullstack/x402-gateway": "^0.6.0 || ^0.7.0 || ^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^0.14.0 || ^0.15.0 || ^0.16.0 || ^0.17.0 || ^0.18.0 || ^0.19.0 || ^0.20.0" }, "engines": { "node": ">=20.11" diff --git a/package.json b/package.json index f74ef0d..fb03675 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@profullstack/throttle", - "version": "0.5.1", + "version": "0.5.2", "type": "module", "description": "An app-wide rate limit whose answer to going over is a price, not a 429. 100 requests a minute free (times 5 headroom), then x402 Payment Required with an offer, settled by CoinPay. Meters every route, so a scraper wearing a browser user agent is charged like any other crawler.", "keywords": [ @@ -54,7 +54,7 @@ }, "sideEffects": false, "dependencies": { - "@profullstack/x402-gateway": "^0.6.0 || ^0.7.0 || ^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^0.14.0 || ^0.15.0 || ^0.16.0 || ^0.17.0 || ^0.18.0" + "@profullstack/x402-gateway": "^0.6.0 || ^0.7.0 || ^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^0.14.0 || ^0.15.0 || ^0.16.0 || ^0.17.0 || ^0.18.0 || ^0.19.0 || ^0.20.0" }, "scripts": { "test": "node --test"