@@ -6,7 +6,7 @@ import { z } from 'astro/zod'
66import { AREAS , CATALOG } from './content/catalog'
77import { dependencyGraph } from './content/graph'
88import { documentation } from './content/readme'
9- import { composerFile , downloads , latestRelease , readme } from './content/sources'
9+ import { composerFile , latestRelease , readme } from './content/sources'
1010
1111const libraries = defineCollection ( {
1212 loader : {
@@ -15,19 +15,18 @@ const libraries = defineCollection({
1515 const names = new Set ( CATALOG . map ( ( entry ) => entry . name ) )
1616 const sources = await Promise . all (
1717 CATALOG . map ( async ( entry ) => {
18- const [ text , composer , release , stats ] = await Promise . all ( [
18+ const [ text , composer , release ] = await Promise . all ( [
1919 readme ( entry . name ) ,
2020 composerFile ( entry . name ) ,
2121 latestRelease ( entry . name ) ,
22- downloads ( entry . name ) ,
2322 ] )
24- return { entry, text, composer, release, stats }
23+ return { entry, text, composer, release }
2524 } ) ,
2625 )
2726 const graph = dependencyGraph ( new Map ( sources . map ( ( source ) => [ source . entry . name , source . composer ] ) ) )
2827
2928 store . clear ( )
30- for ( const [ index , { entry, text, composer, release, stats } ] of sources . entries ( ) ) {
29+ for ( const [ index , { entry, text, composer, release } ] of sources . entries ( ) ) {
3130 const node = graph [ index ]
3231 if ( node === undefined ) {
3332 throw new Error ( `No node of the graph for ${ entry . name } .` )
@@ -45,7 +44,6 @@ const libraries = defineCollection({
4544 license : [ composer . license ?? 'MIT' ] . flat ( ) . join ( ', ' ) ,
4645 version : release . version ,
4746 released : release . time ,
48- downloads : stats ,
4947 dependsOn : node . dependsOn ,
5048 usedBy : node . usedBy ,
5149 testedWith : node . testedWith ,
@@ -69,7 +67,6 @@ const libraries = defineCollection({
6967 license : z . string ( ) ,
7068 version : z . string ( ) ,
7169 released : z . string ( ) ,
72- downloads : z . object ( { total : z . number ( ) , monthly : z . number ( ) } ) ,
7370 dependsOn : z . array ( z . string ( ) ) ,
7471 usedBy : z . array ( z . string ( ) ) ,
7572 testedWith : z . array ( z . string ( ) ) ,
0 commit comments