diff --git a/.changes/v3.0.1.md b/.changes/v3.0.1.md new file mode 100644 index 00000000..0c7dbf86 --- /dev/null +++ b/.changes/v3.0.1.md @@ -0,0 +1,7 @@ +## [v3.0.1](https://github.com/ansidev/leetcode-blog/compare/v3.0.0...v3.0.1) (2025-05-01) + +### Bug Fixes + +- error while rendering page `/rss.xml` + +Full Changelog: [v3.0.0...v3.0.1](https://github.com/ansidev/leetcode-blog/compare/v3.0.0...v3.0.1) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8f520430..53308423 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,14 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org). +## [v3.0.1](https://github.com/ansidev/leetcode-blog/compare/v3.0.0...v3.0.1) (2025-05-01) + +### Bug Fixes + +- error while rendering page `/rss.xml` + +Full Changelog: [v3.0.0...v3.0.1](https://github.com/ansidev/leetcode-blog/compare/v3.0.0...v3.0.1) + ## [v3.0.0](https://github.com/ansidev/leetcode-blog/compare/v2.2.7...v3.0.0) (2025-05-01) ### Bug Fixes diff --git a/package.json b/package.json index 1eaacd91..7e6c0ed1 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "leetcode-blog", "description": "Solutions for LeetCode problems - Written by ansidev", "type": "module", - "version": "3.0.0", + "version": "3.0.1", "license": "MIT", "packageManager": "pnpm@10.10.0", "scripts": { diff --git a/src/pages/rss.xml.ts b/src/pages/rss.xml.ts index 2592b977..9b027e69 100644 --- a/src/pages/rss.xml.ts +++ b/src/pages/rss.xml.ts @@ -2,11 +2,11 @@ import rss from '@astrojs/rss' import type { APIContext } from 'astro' import { getCollection } from 'astro:content' -import siteConfig from '@/configs/site' +import siteConfig from '@/configs/site.ts' const { title, description } = siteConfig -export const get = async ({ site }: APIContext) => { +export const GET = async ({ site }: APIContext) => { if (site === undefined || site.toString().length === 0) { return { body: '' diff --git a/tsconfig.json b/tsconfig.json index e3ce76aa..e077ae30 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,8 +1,8 @@ { "extends": "astro/tsconfigs/strictest", "compilerOptions": { - "module": "Node16", - "moduleResolution": "Node16", + "module": "NodeNext", + "moduleResolution": "NodeNext", "strict": true, "verbatimModuleSyntax": true, "baseUrl": ".",