Skip to content

Commit

Permalink
fix(deps): update dependency astro to v4.16.1 [security] (#406)
Browse files Browse the repository at this point in the history
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: rai <[email protected]>
  • Loading branch information
renovate[bot] and r4ai authored Nov 8, 2024
1 parent d1ea737 commit b5fe8d9
Show file tree
Hide file tree
Showing 9 changed files with 23 additions and 9 deletions.
Binary file modified bun.lockb
Binary file not shown.
14 changes: 9 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"@tailwindcss/typography": "^0.5.10",
"@xterm/addon-fit": "^0.10.0",
"@xterm/xterm": "^5.4.0",
"astro": "4.10.2",
"astro": "4.16.1",
"bowser": "^2.11.0",
"budoux": "^0.6.1",
"cowsay": "^1.6.0",
Expand All @@ -51,8 +51,10 @@
"@types/eslint-config-prettier": "^6.11.3",
"@types/eslint__eslintrc": "^2.1.1",
"@types/eslint__js": "^8.42.3",
"@types/hast": "3.0.4",
"@types/jsdom": "^21.1.6",
"@types/lint-staged": "^13.3.0",
"@types/mdast": "4.0.4",
"@typescript-eslint/eslint-plugin": "^7.0.0",
"@typescript-eslint/parser": "^7.0.0",
"astro-eslint-parser": "^1.0.0",
Expand All @@ -75,19 +77,21 @@
"jsdom": "^25.0.0",
"katex": "^0.16.9",
"lefthook": "^1.6.16",
"mdast-util-to-hast": "13.2.0",
"pagefind": "^1.0.4",
"postcss-load-config": "^5.0.2",
"prettier": "^3.1.1",
"prettier-plugin-astro": "^0.14.0",
"prettier-plugin-tailwindcss": "^0.5.9",
"punycode": "^2.3.1",
"rehype-custom-code": "^0.5.0",
"rehype-katex": "^7.0.0",
"rehype-katex": "7.0.1",
"rehype-stringify": "^10.0.0",
"remark-math": "^6.0.0",
"remark-meta-string": "^0.2.0",
"remark-parse": "^11.0.0",
"remark-rehype": "^11.0.0",
"remark-parse": "11.0.0",
"remark-rehype": "11.1.1",
"remark-stringify": "11.0.0",
"shikiji": "^0.10.0",
"sirv": "^3.0.0",
"tailwind-merge": "^2.2.0",
Expand All @@ -99,7 +103,7 @@
"textlint-rule-preset-ja-technical-writing": "^10.0.1",
"typescript": "^5.3.3",
"unfurl.js": "^6.3.2",
"unified": "^11.0.4",
"unified": "11.0.5",
"unist-util-inspect": "^8.0.0",
"unist-util-visit": "^5.0.0",
"vite": "^5.0.10",
Expand Down
2 changes: 2 additions & 0 deletions src/lib/remark-plugins/remarkCallout.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ const process = async (md: string) => {
let mdast: mdast.Root
const html = (
await unified()
// @ts-expect-error broken types
.use(remarkParse)
.use(remarkCallout)
.use(() => (tree: mdast.Root) => {
Expand All @@ -25,6 +26,7 @@ const process = async (md: string) => {
hast = tree
return hast
})
// @ts-expect-error broken types
.use(rehypeStringify)
.process(md)
).toString()
Expand Down
2 changes: 2 additions & 0 deletions src/lib/remark-plugins/remarkEmbed.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ const process = async (md: string) => {
let mdast: mdast.Root
const html = (
await unified()
// @ts-expect-error broken types
.use(remarkParse)
.use(remarkEmbed, {
transformers: [youTubeTransformer, googleSlidesTransformer, oEmbedTransformer],
Expand All @@ -27,6 +28,7 @@ const process = async (md: string) => {
hast = tree
return hast
})
// @ts-expect-error broken types
.use(rehypeStringify)
.process(md)
).toString()
Expand Down
2 changes: 2 additions & 0 deletions src/lib/remark-plugins/remarkInlineCode.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ const process = async (md: string) => {
let mdast: mdast.Root
const html = (
await unified()
// @ts-expect-error broken types
.use(remarkParse)
.use(remarkInlineCode)
.use(() => (tree: mdast.Root) => {
Expand All @@ -25,6 +26,7 @@ const process = async (md: string) => {
hast = tree
return hast
})
// @ts-expect-error broken types
.use(rehypeStringify)
.process(md)
).toString()
Expand Down
2 changes: 2 additions & 0 deletions src/lib/remark-plugins/remarkInlineCode.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import "mdast-util-to-hast"

import type { Root } from "mdast"
import { type Plugin } from "unified"
import { visit } from "unist-util-visit"
Expand Down
2 changes: 2 additions & 0 deletions src/lib/remark-plugins/remarkLinkCard.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ const process = async (md: string) => {
let mdast: mdast.Root
const html = (
await unified()
// @ts-expect-error broken types
.use(remarkParse)
.use(remarkLinkCard)
.use(() => (tree: mdast.Root) => {
Expand All @@ -25,6 +26,7 @@ const process = async (md: string) => {
hast = tree
return hast
})
// @ts-expect-error broken types
.use(rehypeStringify)
.process(md)
).toString()
Expand Down
4 changes: 2 additions & 2 deletions src/pages/posts/[...slug].mdx.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { APIContext } from "astro"
import { getCollection, getEntryBySlug } from "astro:content"
import { getCollection, getEntry } from "astro:content"

export const getStaticPaths = async () => {
const posts = await getCollection("posts")
Expand All @@ -10,7 +10,7 @@ export const getStaticPaths = async () => {
}

export const GET = async ({ params }: APIContext) => {
const post = await getEntryBySlug("posts", params.slug as string)
const post = await getEntry("posts", params.slug as string)
const body = post?.body?.trimStart()
return new Response(body, {
headers: {
Expand Down
4 changes: 2 additions & 2 deletions src/pages/posts/[...slug].png.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { getOgImage } from "@/components/Elements/OpenGraphImage"
import { getTags } from "@/lib/tags"
import type { APIContext } from "astro"
import { getCollection, getEntryBySlug } from "astro:content"
import { getCollection, getEntry } from "astro:content"

export const getStaticPaths = async () => {
const posts = await getCollection("posts")
Expand All @@ -14,7 +14,7 @@ export const getStaticPaths = async () => {
const tags = await getTags()

export const GET = async ({ params }: APIContext) => {
const post = await getEntryBySlug("posts", params.slug as string)
const post = await getEntry("posts", params.slug as string)
const body = await getOgImage({
title: post?.data.title ?? "",
category: post?.data.categories.length ? post?.data.categories[0].id : "",
Expand Down

0 comments on commit b5fe8d9

Please sign in to comment.