import{t as e}from"./cache-DUthuMSu.mjs";import{t}from"./parse-date-BdYTmLpo.mjs";import{t as n}from"./got-BBDj7u1e.mjs";import{load as r}from"cheerio";const i={path:`/releases`,categories:[`program-update`],example:`/tiddlywiki/releases`,url:`tiddlywiki.com`,name:`Releases`,maintainers:[`p3psi-boo`],radar:[{source:[`github.com/TiddlyWiki/TiddlyWiki5`],target:`/releases`},{source:[`tiddlywiki.com`],target:`/releases`}],handler:a};async function a(){let i=r((await n({method:`get`,url:`https://github.com/TiddlyWiki/TiddlyWiki5/releases.atom`})).data),a=i(`entry`).toArray().map(e=>{e=i(e);let n=e.find(`title`).text(),r=e.find(`updated`).text();return{version:n.match(/v\d+\.\d+\.\d+/)?.[0],pubDate:t(r)}}).filter(e=>e.version);return{title:`TiddlyWiki Releases`,link:`https://tiddlywiki.com/static/Releases.html`,item:await Promise.all(a.map(t=>{let i=`https://tiddlywiki.com/static/Release%2520${t.version.slice(1)}.html`;return e.tryGet(i,async()=>{let e=r((await n({method:`get`,url:i})).data)(`.tc-tiddler-body`).html();return{title:t.version,link:i,pubDate:t.pubDate,description:e}})}))}}export{i as route};