PageSourceSearch

https://skmtc.dev/assets/revisions_._revision.changelog-DckWe3XY.js

js skmtc.dev collected 2026-10-09 22:46:26 UTC 5,313 bytes, 1 lines download raw bytes

1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`33c5751d4846a654c1b8710f42ed27e1bf59f3b4`};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`2661abdf-477c-4854-94c8-69d6a9fa5c9d`,e._sentryDebugIdIdentifier=`sentry-dbid-2661abdf-477c-4854-94c8-69d6a9fa5c9d`)}catch{}})();import{t as e}from"./link-D2SFtBwo.js";import{t}from"./jsx-runtime-Dg_0dZba.js";import{t as n}from"./dist-Cq32k9xl.js";import{a as r}from"./change-presentation-ZpMGTJGO.js";import{J as i,Y as a,Z as o,dt as s,i as c,p as l}from"./index-CPx0VFWp.js";import{t as u}from"./changelog-detail-B1IPQORA.js";var d=t(),f=e=>new Date(e).toLocaleDateString(`en-US`,{month:`short`,day:`numeric`,year:`numeric`,timeZone:`UTC`}),p=({changedAt:e,publishedAt:t})=>(0,d.jsxs)(`time`,{dateTime:e,className:`text-xs text-muted-foreground`,children:[t===void 0?`Retrieved`:`Published`,` `,f(e)]}),m=({account:t,api:n,revision:r})=>(0,d.jsx)(e,{to:`/$account/apis/$api/revisions/$revision`,params:{account:t,api:n,revision:r},className:`font-mono hover:text-foreground hover:underline`,children:r}),h=[`not_acquired`,`absent`,`not_materialized`],g=1024*1024,_=e=>`${Number((e/g).toFixed(1))} MB`,v=(e,t)=>_(e)===_(t)?`just over ${_(t)}`:_(e),y=e=>{let t=e.maxDiffableBytes,n=t===void 0?`The diff engine has a size limit`:`The diff engine accepts documents up to ${_(t)}`,r=e=>t===void 0?_(e):v(e,t);return e.byteSize===void 0?e.previousByteSize===void 0?`A document in this comparison is too large to diff. ${n}, so no diff is computed.`:`The earlier revision this one is compared with has a document of ${r(e.previousByteSize)}. ${n}, so no diff is computed.`:`This revision's document is ${r(e.byteSize)}. ${n}, so no diff is computed.`},b=`It will be retried when the diff engine is next updated.`,x=(e,t)=>n(e).returnType().with(`earliest_in_group`,()=>t.versionLabel===void 0?`No earlier revision that this one can be compared with has a stored document, so there is nothing to diff against. If one is downloaded later, the diff will appear here.`:`No earlier revision of version ${t.versionLabel} has a stored document, so there is nothing to diff against. If one is downloaded later, the diff will appear here.`).with(`pending`,()=>`The diff against the previous revision has not been computed yet. It is queued and will appear here when it finishes.`).with(`oversize`,()=>y(t)).with(`failed`,()=>n(t.diffFailureReason).returnType().with(`timeout`,()=>`The diff engine timed out on this revision. ${b}`).with(`error`,()=>`The diff engine returned an error on this revision. ${b}`).with(void 0,()=>`The diff engine failed on this revision. ${b}`).exhaustive()).with(`withheld`,()=>`Diffs for this API are withheld because its schema repeatedly stopped the diff engine. They are tried again when the diff engine is next updated, or six hours after the last attempt.`).with(`not_acquired`,()=>`This revision's document has not been downloaded yet. Whether it can be diffed is known after the download finishes.`).with(`absent`,()=>`This revision's document will not be downloaded, so there is nothing to diff, and this will not change.`).with(`not_materialized`,()=>`This revision has no document stored and none is scheduled for download, so there is nothing to diff.`).exhaustive(),S=({account:t,api:n,revision:c})=>{let{data:f,isLoading:g,isError:_,error:v}=l({account:t,api:n,revision:c});return g?(0,d.jsxs)(`div`,{className:`flex flex-col gap-3`,children:[(0,d.jsx)(i,{className:`h-8 w-96`}),(0,d.jsx)(i,{className:`h-64 w-full`})]}):_||!f?(0,d.jsx)(a,{children:(0,d.jsxs)(o,{className:`flex flex-col items-center gap-3 py-12 text-center`,children:[(0,d.jsx)(`p`,{className:`text-sm font-medium`,children:`Could not load this changelog`}),(0,d.jsx)(`p`,{className:`max-w-md text-sm text-muted-foreground`,children:v?.message??`The request failed.`})]})}):f.previousRef===void 0&&f.diffState!==`computed`?(0,d.jsxs)(`div`,{className:`flex flex-col items-start gap-3`,children:[(0,d.jsxs)(`p`,{className:`flex items-center gap-3 text-xs text-muted-foreground`,children:[(0,d.jsx)(m,{account:t,api:n,revision:c}),(0,d.jsx)(p,{changedAt:f.changedAt,publishedAt:f.publishedAt})]}),(0,d.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:x(f.diffState,f)}),h.includes(f.diffState)?null:(0,d.jsx)(e,{to:`/$account/apis/$api/revisions/$revision`,params:{account:t,api:n,revision:c},className:`text-sm font-medium text-primary hover:underline`,children:`Read the docs at this revision`})]}):(0,d.jsx)(u,{changes:r(f.changes),refs:{account:t,api:n,base:f.previousRef,compare:c},fromLabel:f.previousRef===void 0?`Earlier revision (not recorded)`:(0,d.jsx)(m,{account:t,api:n,revision:f.previousRef}),toLabel:(0,d.jsx)(m,{account:t,api:n,revision:c}),capHeight:!1,headerAside:(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(p,{changedAt:f.changedAt,publishedAt:f.publishedAt}),(0,d.jsx)(s,{severity:f.severity}),(0,d.jsx)(e,{to:`/$account/apis/$api/revisions/$revision`,params:{account:t,api:n,revision:c},className:`text-xs font-medium text-primary hover:underline`,children:`Docs`})]})})},C=()=>{let{account:e,api:t,revision:n}=c.useParams();return(0,d.jsx)(S,{account:e,api:t,revision:n})};export{C as component};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.