diff --git a/.yarn/install-state.gz b/.yarn/install-state.gz index 96352d85..63b7fcef 100644 Binary files a/.yarn/install-state.gz and b/.yarn/install-state.gz differ diff --git a/package.json b/package.json index af1d925a..f707f6ec 100644 --- a/package.json +++ b/package.json @@ -42,16 +42,16 @@ }, "dependencies": { "@astrojs/check": "^0.5.10", - "@astrojs/cloudflare": "^10.2.4", + "@astrojs/cloudflare": "^10.2.5", "@astrojs/mdx": "^2.3.1", "@astrojs/partytown": "^2.1.0", - "@astrojs/react": "^3.3.1", + "@astrojs/react": "^3.3.2", "@astrojs/rss": "^4.0.5", "@astrojs/sitemap": "^3.1.4", "@fontsource-variable/nunito-sans": "^5.0.14", "@fontsource/baskervville": "^5.0.20", "@hookform/resolvers": "^3.3.4", - "astro": "^4.7.0", + "astro": "^4.7.1", "firebase": "^10.11.1", "firebase-admin": "^12.1.0", "gsap": "^3.12.5", @@ -66,26 +66,26 @@ "resend": "^3.2.0", "swiper": "^11.1.1", "three": "^0.164.1", - "zod": "^3.23.5" + "zod": "^3.23.6" }, "devDependencies": { "@astrojs/ts-plugin": "^1.6.1", - "@biomejs/biome": "1.7.1", + "@biomejs/biome": "1.7.2", "@commitlint/cli": "^19.3.0", "@commitlint/config-conventional": "^19.2.2", - "@testing-library/react": "^15.0.5", + "@testing-library/react": "^15.0.6", "@testing-library/react-hooks": "^8.0.1", - "@types/markdown-it": "^14.0.1", - "@types/node": "^20.12.7", + "@types/markdown-it": "^14.1.1", + "@types/node": "^20.12.8", "@types/react": "^18.3.1", "@types/react-dom": "^18.3.0", "@types/three": "^0.164.0", "husky": "^9.0.11", "lint-staged": "^15.2.2", - "stylelint": "^16.4.0", + "stylelint": "^16.5.0", "stylelint-config-recommended": "^14.0.0", "stylelint-order": "^6.0.4", "typescript": "^5.4.5", - "vitest": "^1.5.2" + "vitest": "^1.5.3" } } diff --git a/src/global.d.ts b/src/global.d.ts deleted file mode 100644 index da6eb1fe..00000000 --- a/src/global.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import type { ImageMetadata } from "astro"; - -declare global { - type ImageType = Promise<{ default: ImageMetadata }>; -} diff --git a/src/pages/articles/[...slug].astro b/src/pages/articles/[...slug].astro index f5974686..e0d238ae 100644 --- a/src/pages/articles/[...slug].astro +++ b/src/pages/articles/[...slug].astro @@ -5,6 +5,7 @@ import BaseLayout from "src/ui/components/templates/baseLayout/BaseLayout.astro" import "./_article.css"; import { DEFAULT_DATE_FORMAT } from "src/consts"; import { slugify } from "src/ui/shared/utils/slugify"; +import { ImageMetadata } from "astro"; export const prerender = true; @@ -23,7 +24,7 @@ export async function getStaticPaths() { } const MAX_RELATED_ARTICLES = 3; -const images = import.meta.glob("/src/assets/**/*.{jpeg,jpg,png,gif}"); +const images = import.meta.glob<{ default: ImageMetadata }>("/src/assets/**/*.{jpeg,jpg,png,gif}"); const articles = await getCollection("articles"); const { currentArticle } = Astro.props as ArticleProps; @@ -40,7 +41,7 @@ const relatedArticles = articles featuredImage && (
{title}("/src/assets/**/*.{jpeg,jpg,png,gif}"); articles.sort((a, b) => new Date(b.data?.publishDate).valueOf() - new Date(a.data?.publishDate).valueOf()); @@ -47,7 +48,7 @@ const featuredArticleShareUrl = new URL(featuredArticleHref, Astro.url).href; {featuredArticle.title} @@ -116,7 +117,7 @@ const featuredArticleShareUrl = new URL(featuredArticleHref, Astro.url).href; }`} > {article.featuredImage && ( - {article.title} + {article.title} )}