release: v0.17.0 (#677)

See CHANGELOG.md, section [0.17.0] — 2026-09-23.
This commit is contained in:
Ralksta
2026-09-23 12:09:08 +02:00
committed by GitHub
parent a3a6319c29
commit 89a8fac564
78 changed files with 9485 additions and 2050 deletions

View File

@@ -82,7 +82,10 @@ export async function POST(req: NextRequest) {
{ error: 'Too many requests' },
{
status: 429,
headers: { 'Retry-After': String(retryAfterSeconds(resetAt)), 'Cache-Control': 'no-store' },
headers: {
'Retry-After': String(retryAfterSeconds(resetAt)),
'Cache-Control': 'no-store',
},
},
);
}
@@ -111,7 +114,10 @@ export async function POST(req: NextRequest) {
// An already-tracked path may still increment past the cap; only a
// brand-new key is refused once the day is full.
if (dayObj.pages[pagePath] !== undefined || Object.keys(dayObj.pages).length < MAX_PAGES_PER_DAY) {
if (
dayObj.pages[pagePath] !== undefined ||
Object.keys(dayObj.pages).length < MAX_PAGES_PER_DAY
) {
dayObj.pages[pagePath] = (dayObj.pages[pagePath] || 0) + 1;
}