Skip to content

Commit bb80696

Browse files
committed
Replace Bundlephobia with Package Phobia
Should begin to work per styfle/packagephobia#1077
1 parent ae11619 commit bb80696

17 files changed

+37
-42
lines changed

app/list/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export default async function ListPage() {
4848
NPM
4949
</th>
5050
<th className="px-4 py-2 text-left text-xs font-medium text-gray-500 dark:text-gray-300 uppercase tracking-wider border-b border-gray-300 dark:border-gray-600">
51-
Bundlephobia
51+
Package Phobia
5252
</th>
5353
</tr>
5454
</thead>
@@ -77,7 +77,7 @@ export default async function ListPage() {
7777
<LinkTo href={item.npm?.url} />
7878
</td>
7979
<td className="px-4 py-2 text-sm">
80-
<LinkTo href={item.bundlephobia?.url} />
80+
<LinkTo href={item.packagephobia?.url} />
8181
</td>
8282
</tr>
8383
))}

components/Card.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -248,10 +248,10 @@ const Card = memo(({ info }: CardProps) => {
248248
/>
249249
<Metric
250250
icon={<GoPackage />}
251-
value={info.bundlephobia?.gzipSize}
251+
value={info.packagephobia?.installSize}
252252
formatter={(n: number) => (n >= 0 ? filesize(n) : "?? KB")}
253-
title={"Gzipped package size is %s"}
254-
href={info.bundlephobia?.url}
253+
title={"Package install size is %s"}
254+
href={info.packagephobia?.url}
255255
/>
256256
<Metric
257257
icon={<FaUsers />}

components/IndexPage.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,8 @@ export default function IndexPage({ items, ts }: IndexPageProps) {
9898
</a>
9999
</div>
100100
<div>
101-
<a href="https://bundlephobia.com/" className="hover:underline">
102-
Package sizes from Bundlephobia
101+
<a href="https://packagephobia.com/" className="hover:underline">
102+
Package sizes from Package Phobia
103103
</a>
104104
</div>
105105
<div>

components/TableView.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ const TableView = memo(({ items }: TableViewProps) => {
184184
</div>
185185
</TooltipTrigger>
186186
<TooltipContent>
187-
<p>Gzipped Bundle Size</p>
187+
<p>Package Install Size</p>
188188
</TooltipContent>
189189
</Tooltip>
190190
</TableHead>
@@ -263,9 +263,9 @@ const TableView = memo(({ items }: TableViewProps) => {
263263
</TableCell>
264264
<TableCell className="text-right">
265265
<MetricCell
266-
value={item.bundlephobia?.gzipSize}
266+
value={item.packagephobia?.installSize}
267267
formatter={(n: number) => (n >= 0 ? filesize(n) : "?? KB")}
268-
href={item.bundlephobia?.url}
268+
href={item.packagephobia?.url}
269269
/>
270270
</TableCell>
271271
<TableCell className="text-right">

data/angular-ui-grid.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ homeUrl: http://ui-grid.info/
33
demoUrl: http://ui-grid.info/
44
githubRepo: angular-ui/ui-grid
55
npmPackage: angular-ui-grid
6-
ignoreBundlephobia: true
76
license: MIT License
87
revenueModel: Free
98
description: >

data/grid-js.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ homeUrl: https://gridjs.io/
33
demoUrl: https://gridjs.io/docs/examples/hello-world/
44
githubRepo: grid-js/gridjs
55
npmPackage: gridjs
6-
ignoreBundlephobia: true
76
license: MIT License
87
revenueModel: Free
98
description: >

data/jqgrid.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ homeUrl: http://guriddo.net/
33
demoUrl: http://guriddo.net/?page_id=119
44
githubRepo: tonytomov/jqGrid
55
npmPackage: jqGrid
6-
ignoreBundlephobia: true
76
license: CC-BY-NC-3.0 or Commerical License
87
revenueModel: Free for Personal Use / Commercial License
98
description: >

data/ng-table.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ homeUrl: https://esvit.github.io/ng-table/
33
demoUrl: null
44
githubRepo: esvit/ng-table
55
npmPackage: ng-table
6-
ignoreBundlephobia: true
76
license: BSD 3-Clause License
87
revenueModel: Free
98
description: >

data/paramquery.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ homeUrl: https://paramquery.com/
33
demoUrl: https://paramquery.com/demos
44
githubRepo: paramquery/grid
55
npmPackage: pqgrid
6-
ignoreBundlephobia: true
76
license: GPLv3 or Commercial License
87
revenueModel: Free (Vanilla JS Only) and Pro Versions
98
description: >

data/react-pivot.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ homeUrl: https://davidguttman.github.io/react-pivot/
33
demoUrl: https://davidguttman.github.io/react-pivot/
44
githubRepo: davidguttman/react-pivot
55
npmPackage: react-pivot
6-
ignoreBundlephobia: true
76
license: MIT License
87
revenueModel: Free
98
description: >

0 commit comments

Comments
 (0)