import{t as e}from"./ofetch-Dl6dVB_5.mjs";import{t}from"./parse-date-BdYTmLpo.mjs";import{load as n}from"cheerio";const r={path:`/code/changelog`,name:`Code Changelog`,url:`code.claude.com`,maintainers:[`rmaced0`],handler:async r=>{let i=Number.parseInt(r.req.query(`limit`)??`25`,10),a=`https://code.claude.com/docs/en/changelog`,o=n(await e(a));return{title:`Claude Code Changelog`,description:`Changelog for Claude Code CLI`,link:a,item:o(`div.update-container`).slice(0,i).toArray().map(e=>{let n=o(e),r=n.find(`[data-component-part="update-label"]`).text().trim();if(!r)return null;let i=n.find(`[data-component-part="update-description"]`).text().trim();return{title:r,description:n.find(`[data-component-part="update-content"]`).html()??``,link:`${a}#${n.attr(`id`)??r.replaceAll(`.`,`-`)}`,pubDate:i?t(i):void 0,guid:`claude-code-${r}`,id:`claude-code-${r}`}}).filter(Boolean),allowEmpty:!0}},example:`/claude/code/changelog`,categories:[`program-update`],features:{requireConfig:!1,requirePuppeteer:!1,antiCrawler:!1,supportRadar:!0,supportBT:!1,supportPodcast:!1,supportScihub:!1},radar:[{source:[`code.claude.com/docs/en/changelog`],target:`/code/changelog`}]};export{r as route};