Skip to content

Commit fba0a1b

Browse files
authored
Astro update and fix breaking changes (#959)
1 parent 5aaf44b commit fba0a1b

File tree

11 files changed

+283
-276
lines changed

11 files changed

+283
-276
lines changed

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,16 @@
1212
},
1313
"dependencies": {
1414
"@astro-community/astro-embed-youtube": "^0.5.6",
15-
"@astrojs/check": "^0.8.3",
16-
"@astrojs/mdx": "^3.1.9",
15+
"@astrojs/check": "^0.9.4",
16+
"@astrojs/mdx": "^4.0.5",
1717
"@astrojs/react": "^4.1.4",
1818
"@astrojs/sitemap": "^3.2.1",
1919
"@astrojs/tailwind": "^5.1.4",
2020
"@fontsource-variable/inter": "^5.1.1",
2121
"@tailwindcss/typography": "^0.5.16",
2222
"@types/react": "^19.0.7",
2323
"@types/react-dom": "^18.3.5",
24-
"astro": "^4.16.18",
24+
"astro": "^5.1.6",
2525
"astro-meta-tags": "^0.3.1",
2626
"clsx": "^2.1.1",
2727
"date-fns": "^4.1.0",

pnpm-lock.yaml

Lines changed: 273 additions & 259 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/components/BaseHead.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,4 @@ const { title, description, image = "/social-card.png" } = Astro.props;
5050
<meta http-equiv="X-Clacks-Overhead" content="GNU Oier Etxaniz" />
5151
<meta http-equiv="X-Clacks-Overhead" content="GNU Russel Winder" />
5252

53-
<script defer data-domain="ep2025.europython.eu" src="https://plausible.io/js/script.js"></script>
53+
<script defer is:inline data-domain="ep2025.europython.eu" src="https://plausible.io/js/script.js"></script>

src/components/footer.astro

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
import { Fullbleed } from "./layout/fullbleed";
33
4-
import { LogoExtended } from "./logo/logo-extended";
54
import links from "../data/links.json";
65
import { EPSLogo } from "./logo/eps-logo";
76
---

src/components/header/header-logo.astro

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ interface Props {
55
inverted?: boolean;
66
}
77
8-
const { inverted } = Astro.props;
98
---
109

1110
<a href="/">

src/components/hero-section/prague.astro

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
import Prose from "../prose/prose.astro";
33
import { ButtonLink } from "../button-link";
4-
import { Link } from "../link/link";
54
import { Title } from "../typography/title";
65
import { Image } from "astro:assets";
76

src/components/session-speakers.astro

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
11
---
2-
import type { ValidContentEntrySlug } from "astro:content";
32
import { getEntries } from "astro:content";
43
54
interface Props {
65
speakers: Array<{
7-
slug: ValidContentEntrySlug<"speakers">;
6+
slug: string;
87
collection: "speakers";
98
}>;
109
}
1110
1211
const { speakers: speakersEntries } = Astro.props;
1312
14-
const speakers = await getEntries(speakersEntries);
13+
const speakers = await getEntries(speakersEntries.map(entry => ({ collection: entry.collection, id: entry.slug })));
1514
---
1615

1716
{

src/components/sessions/list-sessions.astro

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,13 @@ const { sessions } = Astro.props;
33
import Prose from "../prose/prose.astro";
44
import { Tag } from "../tag/tag";
55
import SessionSpeakers from "../session-speakers.astro";
6-
import type { ValidContentEntrySlug } from "astro:content";
76
87
type Session = {
98
data: {
109
title: string;
1110
speakers: Array<{
1211
collection: "speakers";
13-
slug: ValidContentEntrySlug<"speakers">;
12+
slug: string;
1413
}>;
1514
session_type: string;
1615
track: string;

src/components/typography/title.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import clsx from "clsx";
2+
import type { JSX } from "react/jsx-runtime";
23

34
export const Title = ({
45
children,

src/pages/index.astro

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
---
2-
import { ButtonLink } from "../components/button-link";
32
import { CardContainer } from "../components/card/card-container";
43
import Hero from "../components/hero/hero.astro";
54
import HeroWithCTA from "../components/hero-section/hero-with-cta.astro";
@@ -9,10 +8,8 @@ import { Title } from "../components/typography/title";
98
import Layout from "../layouts/Layout.astro";
109
import DeadlineCard from "../components/deadline-card.astro";
1110
import { getCollection } from "astro:content";
12-
import Sponsors from "../components/sponsors/sponsors.astro";
1311
import Accent from "../components/accent/accent.astro";
1412
import Prague from "../components/hero-section/prague.astro";
15-
import Keynoters from "../components/keynoters/keynoters.astro";
1613
1714
import * as intro from "../data/home/intro.md";
1815
import * as venue from "../data/home/prague.mdx";

0 commit comments

Comments
 (0)