Changelog
v1.4.0: Links that expire
Links can expire after a date or a number of clicks, and the API answers 410 for them. The link list now comes wrapped in an object.
A link can carry expires_at or max_clicks now, and stummel answers 410 Gone once either is reached. Half the links people asked me to delete were for events that were over.GET /api/links returns { "links": [...], "next": "..." } instead of a bare array, so the list can page. Update your client before you upgrade.Added
expires_at and max_clicks on a link, in the API and the form.410 Gone with a short page instead of 404.GET /api/links with next.Changed
GET /api/links wraps the list in links.Fixed
-const links: Link[] = await res.json();
+const { links, next } = await res.json() as { links: Link[]; next?: string };