Skip to content

Commit 7f091d5

Browse files
committed
astro v5 + tw4 migration
1 parent af02b75 commit 7f091d5

File tree

5 files changed

+16
-12
lines changed

5 files changed

+16
-12
lines changed

.prettierrc.ts renamed to .prettierrc.mjs

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
// https://prettier.io/docs/en/configuration.html
2-
import type { Config } from "prettier";
3-
4-
export default {
1+
/**
2+
* @see https://prettier.io/docs/en/configuration.html
3+
* @type {import("prettier").Config}
4+
*/
5+
const config = {
56
trailingComma: "es5",
67
tabWidth: 2,
78
semi: true,
@@ -15,4 +16,6 @@ export default {
1516
},
1617
},
1718
],
18-
} as Config;
19+
};
20+
21+
export default config;

bun.lockb

706 Bytes
Binary file not shown.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"@tailwindcss/forms": "^0.5.10",
1818
"@tailwindcss/typography": "^0.5.16",
1919
"@types/bun": "latest",
20-
"fast-xml-parser": "^5.2.5",
20+
"fast-xml-parser": "^4.5.3",
2121
"kleur": "^4.1.5",
2222
"prettier": "^3.6.2",
2323
"prettier-plugin-astro": "^0.14.1",
@@ -26,8 +26,8 @@
2626
"dependencies": {
2727
"@astrojs/check": "^0.9.4",
2828
"@astrojs/mdx": "^4.3.0",
29-
"@astrojs/rss": "^4.0.12",
30-
"@astrojs/sitemap": "^3.4.1",
29+
"@astrojs/rss": "^4.0.11",
30+
"@astrojs/sitemap": "^3.4.0",
3131
"@tailwindcss/vite": "^4.1.11",
3232
"astro": "^5.11",
3333
"tailwindcss": "^4.1.11"

src/components/landing/posts.astro

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
import { getCollection } from "astro:content";
33
44
const posts = await getCollection("posts");
5-
posts.sort((a, b) => b.data.date.getTime() - a.data.date.getTime());
5+
posts.sort(
6+
(a, b) => new Date(b.data.date).getTime() - new Date(a.data.date).getTime()
7+
);
68
---
79

810
<section class="news" id="news">

src/components/landing/sponsors.astro

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,6 @@ const sponsors = [
124124
},
125125
{
126126
name: "Guillaume Knispel",
127-
href: null,
128127
},
129128
{
130129
name: "Mark Goetz",
@@ -186,7 +185,7 @@ const sponsors = [
186185
},
187186
],
188187
},
189-
] as const;
188+
];
190189
---
191190

192191
<section class="relative mb-24 px-5 lg:mb-28" id="sponsors">
@@ -210,7 +209,7 @@ const sponsors = [
210209
return (
211210
<div class="relative flex items-center justify-center min-h-[102px] border-[6px] border-white rounded-[30px] shadow-[0_0_8px_0_rgba(202,205,226,0.38)] p-4">
212211
<a class="text-black" href={sponsor.href} rel="nofollow">
213-
{"logo" in sponsor ? (
212+
{sponsor.logo ? (
214213
<img src={sponsor.logo} alt={sponsor.name} />
215214
) : (
216215
<span>{sponsor.name}</span>

0 commit comments

Comments
 (0)