From ff68ba5e1ca00f06d1afd5fbf89acea3092bb660 Mon Sep 17 00:00:00 2001 From: Martin Trapp <94928215+martrapp@users.noreply.github.com> Date: Tue, 15 Oct 2024 16:27:05 +0200 Subject: [PATCH 1/4] Fixes an issue with cssesc in dev mode when setting vite.ssr.noExternal: true (#12232) * Fixes an issue with cssesc in dev mode when setting vite.noExternal: true * Update dirty-bags-double.md --- .changeset/dirty-bags-double.md | 5 +++++ packages/astro/src/core/create-vite.ts | 2 ++ 2 files changed, 7 insertions(+) create mode 100644 .changeset/dirty-bags-double.md diff --git a/.changeset/dirty-bags-double.md b/.changeset/dirty-bags-double.md new file mode 100644 index 0000000000..9c5f3e9930 --- /dev/null +++ b/.changeset/dirty-bags-double.md @@ -0,0 +1,5 @@ +--- +'astro': patch +--- + +Fixes an issue with cssesc in dev mode when setting `vite.ssr.noExternal: true` diff --git a/packages/astro/src/core/create-vite.ts b/packages/astro/src/core/create-vite.ts index f3174b5d32..87574eda2d 100644 --- a/packages/astro/src/core/create-vite.ts +++ b/packages/astro/src/core/create-vite.ts @@ -71,6 +71,8 @@ const ONLY_DEV_EXTERNAL = [ 'prismjs/components/index.js', // Imported by `astro/assets` -> `packages/astro/src/core/logger/core.ts` 'string-width', + // Imported by `astro:transitions` -> packages/astro/src/runtime/server/transition.ts + 'cssesc', ]; /** Return a base vite config as a common starting point for all Vite commands. */ From 925cff31bc040874e73decd6a6b3a5ba84c60258 Mon Sep 17 00:00:00 2001 From: Ben Holmes Date: Tue, 15 Oct 2024 11:13:09 -0400 Subject: [PATCH 2/4] Improved rss readme (#12157) * docs: improved rss readme * chore: changeset * fix: remove empty title Co-authored-by: Armand Philippot * edit: slash wording Co-authored-by: Sarah Rainsberger * edit: installation and use Co-authored-by: Sarah Rainsberger * edit: see the guide Co-authored-by: Sarah Rainsberger * edit: remove confusing guide link Co-authored-by: Sarah Rainsberger * edit: clarify what enclosure is used for Co-authored-by: Sarah Rainsberger * edit: remove description vs. content blurb * new: expand xmlns guide to explain usage --------- Co-authored-by: Armand Philippot Co-authored-by: Sarah Rainsberger --- .changeset/silly-tomatoes-kick.md | 5 + packages/astro-rss/README.md | 300 +++++++++++------------------- 2 files changed, 117 insertions(+), 188 deletions(-) create mode 100644 .changeset/silly-tomatoes-kick.md diff --git a/.changeset/silly-tomatoes-kick.md b/.changeset/silly-tomatoes-kick.md new file mode 100644 index 0000000000..f72a57d340 --- /dev/null +++ b/.changeset/silly-tomatoes-kick.md @@ -0,0 +1,5 @@ +--- +'@astrojs/rss': patch +--- + +Improves README configuration reference. diff --git a/packages/astro-rss/README.md b/packages/astro-rss/README.md index d24c5dabc0..7eedbb3a0a 100644 --- a/packages/astro-rss/README.md +++ b/packages/astro-rss/README.md @@ -2,80 +2,13 @@ This package brings fast RSS feed generation to blogs and other content sites built with [Astro](https://astro.build/). For more information about RSS feeds in general, see [aboutfeeds.com](https://aboutfeeds.com/). -## Installation +## Installation and use -Install the `@astrojs/rss` package into any Astro project using your preferred package manager: - -```bash -# npm -npm i @astrojs/rss -# yarn -yarn add @astrojs/rss -# pnpm -pnpm i @astrojs/rss -``` - -## Example usage - -The `@astrojs/rss` package provides helpers for generating RSS feeds within [Astro endpoints][astro-endpoints]. This unlocks both static builds _and_ on-demand generation when using an [SSR adapter](https://docs.astro.build/en/guides/server-side-rendering/). - -For instance, say you need to generate an RSS feed for all posts under `src/content/blog/` using content collections. - -Start by [adding a `site` to your project's `astro.config` for link generation](https://docs.astro.build/en/reference/configuration-reference/#site). Then, create an `rss.xml.js` file under your project's `src/pages/` directory, and [use `getCollection()`](https://docs.astro.build/en/guides/content-collections/#getcollection) to generate a feed from all documents in the `blog` collection: - -```js -// src/pages/rss.xml.js -import rss from '@astrojs/rss'; -import { getCollection } from 'astro:content'; - -export async function GET(context) { - const posts = await getCollection('blog'); - return rss({ - title: 'Buzz’s Blog', - description: 'A humble Astronaut’s guide to the stars', - // Pull in your project "site" from the endpoint context - // https://docs.astro.build/en/reference/api-reference/#contextsite - site: context.site, - items: posts.map((post) => ({ - // Assumes all RSS feed item properties are in post frontmatter - ...post.data, - // Generate a `url` from each post `slug` - // This assumes all blog posts are rendered as `/blog/[slug]` routes - // https://docs.astro.build/en/guides/content-collections/#generating-pages-from-content-collections - link: `/blog/${post.slug}/`, - })), - }); -} -``` - -Read **[Astro's RSS docs][astro-rss]** for more on using content collections, and instructions for globbing entries in `/src/pages/`. +See the [`@astrojs/rss` guide in the Astro docs][docs] for installation and usage examples. ## `rss()` configuration options -The `rss` default export offers a number of configuration options. Here's a quick reference: - -```js -export function GET(context) { - return rss({ - // `` field in output xml - title: 'Buzz’s Blog', - // `<description>` field in output xml - description: 'A humble Astronaut’s guide to the stars', - // provide a base URL for RSS <item> links - site: context.site, - // list of `<item>`s in output xml - items: [], - // (optional) absolute path to XSL stylesheet in your project - stylesheet: '/rss-styles.xsl', - // (optional) inject custom xml - customData: '<language>en-us</language>', - // (optional) add arbitrary metadata to opening <rss> tag - xmlns: { h: 'http://www.w3.org/TR/html4/' }, - // (optional) add trailing slashes to URLs (default: true) - trailingSlash: false, - }); -} -``` +The `rss()` utility function offers a number of configuration options to generate your feed. ### title @@ -109,81 +42,9 @@ export const GET = (context) => Type: `RSSFeedItem[] (required)` -A list of formatted RSS feed items. See [Astro's RSS items documentation](https://docs.astro.build/en/guides/rss/#generating-items) for usage examples to choose the best option for you. +A list of formatted RSS feed items. -When providing a formatted RSS item list, see the [`RSSFeedItem` type reference](#rssfeeditem). - -### stylesheet - -Type: `string (optional)` - -An absolute path to an XSL stylesheet in your project. If you don’t have an RSS stylesheet in mind, we recommend the [Pretty Feed v3 default stylesheet](https://github.com/genmon/aboutfeeds/blob/main/tools/pretty-feed-v3.xsl), which you can download from GitHub and save into your project's `public/` directory. - -### customData - -Type: `string (optional)` - -A string of valid XML to be injected between your feed's `<description>` and `<item>` tags. This is commonly used to set a language for your feed: - -```js -import rss from '@astrojs/rss'; - -export const GET = () => rss({ - ... - customData: '<language>en-us</language>', - }); -``` - -### xmlns - -Type: `Record<string, string> (optional)` - -An object mapping a set of `xmlns` suffixes to strings of metadata on the opening `<rss>` tag. - -For example, this object: - -```js -rss({ - ... - xmlns: { h: 'http://www.w3.org/TR/html4/' }, -}) -``` - -Will inject the following XML: - -```xml -<rss xmlns:h="http://www.w3.org/TR/html4/"... -``` - -### content - -The `content` key contains the full content of the post as HTML. This allows you to make your entire post content available to RSS feed readers. - -**Note:** Whenever you're using HTML content in XML, we suggest using a package like [`sanitize-html`](https://www.npmjs.com/package/sanitize-html) in order to make sure that your content is properly sanitized, escaped, and encoded. - -[See our RSS documentation](https://docs.astro.build/en/guides/rss/#including-full-post-content) for examples using content collections and glob imports. - -### `trailingSlash` - -Type: `boolean (optional)` -Default: `true` - -By default, the library will add trailing slashes to the emitted URLs. To prevent this behavior, add `trailingSlash: false` to the `rss` function. - -```js -import rss from '@astrojs/rss'; - -export const GET = () => - rss({ - trailingSlash: false, - }); -``` - -## `RSSFeedItem` - -An `RSSFeedItem` is a single item in the list of items in your feed. It represents a story, with `link`, `title`, and `pubDate` fields. There are further optional fields defined below. You can also check the definitions for the fields in the [RSS spec](https://validator.w3.org/feed/docs/rss2.html#ltpubdategtSubelementOfLtitemgt). - -An example feed item might look like: +An `RSSFeedItem` is a single item in the list of items in your feed. An example feed item might look like: ```js const item = { @@ -196,59 +57,59 @@ const item = { }; ``` -### `title` +#### `title` Type: `string (optional)` The title of the item in the feed. Optional only if a description is set. Otherwise, required. -### `link` +#### `link` Type: `string (optional)` The URL of the item on the web. -### `pubDate` +#### `pubDate` Type: `Date (optional)` Indicates when the item was published. -### `description` +#### `description` Type: `string (optional)` A synopsis of your item when you are publishing the full content of the item in the `content` field. The `description` may alternatively be the full content of the item in the feed if you are not using the `content` field (entity-coded HTML is permitted). Optional only if a title is set. Otherwise, required. -### `content` +#### `content` Type: `string (optional)` The full text content of the item suitable for presentation as HTML. If used, you should also provide a short article summary in the `description` field. -See the [recommendations from the RSS spec for how to use and differentiate between `description` and `content`](https://www.rssboard.org/rss-profile#namespace-elements-content-encoded). +To render Markdown content from a glob result or from a content collection, see the [content rendering guide](https://docs.astro.build/en/guides/rss/#including-full-post-content). -### `categories` +#### `categories` Type: `string[] (optional)` A list of any tags or categories to categorize your content. They will be output as multiple `<category>` elements. -### `author` +#### `author` Type: `string (optional)` The email address of the item author. This is useful for indicating the author of a post on multi-author blogs. -### `commentsUrl` +#### `commentsUrl` Type: `string (optional)` The URL of a web page that contains comments on the item. -### `source` +#### `source` -Type: `object (optional)` +Type: `{ title: string, url: string } (optional)` An object that defines the `title` and `url` of the original feed for items that have been republished from another source. Both are required properties of `source` for proper attribution. @@ -266,31 +127,15 @@ const item = { }; ``` -#### `source.title` +#### `enclosure` -Type: `string (required)` - -The name of the original feed in which the item was published. (Note that this is the feed's title, not the individual article title.) - -#### `source.url` - -Type: `string (required)` - -The URL of the original feed in which the item was published. - -### `enclosure` - -Type: `object (optional)` +Type: `{ url: string, type: string, length: number } (optional)` An object to specify properties for an included media source (e.g. a podcast) with three required values: `url`, `length`, and `type`. ```js const item = { - title: 'Alpha Centauri: so close you can touch it', - link: '/blog/alpha-centuari', - pubDate: new Date('2023-06-04'), - description: - 'Alpha Centauri is a triple star system, containing Proxima Centauri, the closest star to our sun at only 4.24 light-years away.', + /* ... */ enclosure: { url: '/media/alpha-centauri.aac', length: 124568, @@ -299,25 +144,76 @@ const item = { }; ``` -#### `enclosure.url` +- `enclosure.url` is the URL where the media can be found. If the media is hosted outside of your own domain you must provide a full URL. +- `enclosure.length` is the size of the file found at the `url` in bytes. +- `enclosure.type` is the [MIME type](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types) for the media item found at the `url`. -Type: `string (required)` +### stylesheet -The URL where the media can be found. If the media is hosted outside of your own domain you must provide a full URL. +Type: `string (optional)` -#### `enclosure.length` +An absolute path to an XSL stylesheet in your project. If you don’t have an RSS stylesheet in mind, we recommend the [Pretty Feed v3 default stylesheet](https://github.com/genmon/aboutfeeds/blob/main/tools/pretty-feed-v3.xsl), which you can download from GitHub and save into your project's `public/` directory. -Type: `number (required)` +### customData -The size of the file found at the `url` in bytes. +Type: `string (optional)` -#### `enclosure.type` +A string of valid XML to be injected between your feed's `<description>` and `<item>` tags. -Type: `string (required)` +This can be used to pass additional data outside of the standard RSS spec, and is commonly used to set a language for your feed: -The [MIME type](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types) for the media item found at the `url`. +```js +import rss from '@astrojs/rss'; -## `rssSchema` +export const GET = () => rss({ + ... + customData: '<language>en-us</language>', + }); +``` + +### xmlns + +Type: `Record<string, string> (optional)` + +An object mapping a set of `xmlns` suffixes to strings values on the opening `<rss>` tag. + +Suffixes expand the available XML tags in your RSS feed, so your content may be read by third-party sources like podcast services or blogging platforms. You'll likely combine `xmlns` with the [`customData`](#customData) attribute to insert custom tags for a given platform. + +This example applies the `itunes` suffix to an RSS feed of podcasts, and uses `customData` to define tags for the author and episode details: + +```js +rss({ + // ... + xmlns: { + itunes: 'http://www.itunes.com/dtds/podcast-1.0.dtd', + }, + customData: '<itunes:author>MF Doom</itunes:author>', + items: episodes.map((episode) => ({ + // ... + customData: `<itunes:episodeType>${episode.frontmatter.type}</itunes:episodeType>` + + `<itunes:duration>${episode.frontmatter.duration}</itunes:duration>` + + `<itunes:explicit>${episode.frontmatter.explicit || false}</itunes:explicit>`, + })), +}) +``` + +### `trailingSlash` + +Type: `boolean (optional)` +Default: `true` + +By default, trailing slashes will be added to the URLs of your feed entries. To prevent this behavior, add `trailingSlash: false` to the `rss` function. + +```js +import rss from '@astrojs/rss'; + +export const GET = () => + rss({ + trailingSlash: false, + }); +``` + +## The `rssSchema` validator When using content collections, you can configure your collection schema to enforce expected [`RSSFeedItem`](#items) properties. Import and apply `rssSchema` to ensure that each collection entry produces a valid RSS feed item: @@ -343,7 +239,7 @@ const blog = defineCollection({ }); ``` -## `pagesGlobToRssItems()` +## The `pagesGlobToRssItems()` function To create an RSS feed from documents in `src/pages/`, use the `pagesGlobToRssItems()` helper. This accepts an `import.meta.glob` result ([see Vite documentation](https://vite.dev/guide/features.html#glob-import)) and outputs an array of valid [`RSSFeedItem`s](#items). @@ -363,7 +259,7 @@ export async function GET(context) { } ``` -## `getRssString()` +## The `getRssString()` function As `rss()` returns a `Response`, you can also use `getRssString()` to get the RSS string directly and use it in your own response: @@ -385,7 +281,35 @@ export async function GET(context) { } ``` -For more on building with Astro, [visit the Astro docs][astro-rss]. +## Support -[astro-rss]: https://docs.astro.build/en/guides/rss/#using-astrojsrss-recommended +- Get help in the [Astro Discord][discord]. Post questions in our `#support` forum, or visit our dedicated `#dev` channel to discuss current development and more! + +- Check our [Astro Integration Documentation][astro-integration] for more on integrations. + +- Submit bug reports and feature requests as [GitHub issues][issues]. + +## Contributing + +This package is maintained by Astro's Core team. You're welcome to submit an issue or PR! These links will help you get started: + +- [Contributor Manual][contributing] +- [Code of Conduct][coc] +- [Community Guide][community] + +## License + +MIT + +Copyright (c) 2023–present [Astro][astro] + +[docs]: https://docs.astro.build/en/guides/rss/ [astro-endpoints]: https://docs.astro.build/en/core-concepts/astro-pages/#non-html-pages +[astro]: https://astro.build/ +[docs]: https://docs.astro.build/en/guides/integrations-guide/alpinejs/ +[contributing]: https://github.com/withastro/astro/blob/main/CONTRIBUTING.md +[coc]: https://github.com/withastro/.github/blob/main/CODE_OF_CONDUCT.md +[community]: https://github.com/withastro/.github/blob/main/COMMUNITY_GUIDE.md +[discord]: https://astro.build/chat/ +[issues]: https://github.com/withastro/astro/issues +[astro-integration]: https://docs.astro.build/en/guides/integrations-guide/ From 67bb22e5a1ff0fcbd66de5c4acd828d23477e3e2 Mon Sep 17 00:00:00 2001 From: Ben Holmes <bholmesdev@users.noreply.github.com> Date: Tue, 15 Oct 2024 15:14:01 +0000 Subject: [PATCH 3/4] [ci] format --- packages/astro-rss/README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/astro-rss/README.md b/packages/astro-rss/README.md index 7eedbb3a0a..ac9d81c478 100644 --- a/packages/astro-rss/README.md +++ b/packages/astro-rss/README.md @@ -190,11 +190,12 @@ rss({ customData: '<itunes:author>MF Doom</itunes:author>', items: episodes.map((episode) => ({ // ... - customData: `<itunes:episodeType>${episode.frontmatter.type}</itunes:episodeType>` + + customData: + `<itunes:episodeType>${episode.frontmatter.type}</itunes:episodeType>` + `<itunes:duration>${episode.frontmatter.duration}</itunes:duration>` + `<itunes:explicit>${episode.frontmatter.explicit || false}</itunes:explicit>`, })), -}) +}); ``` ### `trailingSlash` From 5a4edebfd28e5f93f4fb5b9e0ca499b30fdd9a76 Mon Sep 17 00:00:00 2001 From: "Houston (Bot)" <108291165+astrobot-houston@users.noreply.github.com> Date: Tue, 15 Oct 2024 10:10:48 -0700 Subject: [PATCH 4/4] [ci] release (#12234) Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> --- .changeset/dirty-bags-double.md | 5 --- .changeset/silly-tomatoes-kick.md | 5 --- examples/basics/package.json | 2 +- examples/blog/package.json | 4 +- examples/component/package.json | 2 +- examples/container-with-vitest/package.json | 2 +- examples/framework-alpine/package.json | 2 +- examples/framework-lit/package.json | 2 +- examples/framework-multiple/package.json | 2 +- examples/framework-preact/package.json | 2 +- examples/framework-react/package.json | 2 +- examples/framework-solid/package.json | 2 +- examples/framework-svelte/package.json | 2 +- examples/framework-vue/package.json | 2 +- examples/hackernews/package.json | 2 +- examples/integration/package.json | 2 +- examples/minimal/package.json | 2 +- examples/portfolio/package.json | 2 +- examples/ssr/package.json | 2 +- examples/starlog/package.json | 2 +- examples/toolbar-app/package.json | 2 +- examples/with-markdoc/package.json | 2 +- examples/with-mdx/package.json | 2 +- examples/with-nanostores/package.json | 2 +- examples/with-tailwindcss/package.json | 2 +- examples/with-vitest/package.json | 2 +- packages/astro-rss/CHANGELOG.md | 6 +++ packages/astro-rss/package.json | 2 +- packages/astro/CHANGELOG.md | 6 +++ packages/astro/package.json | 2 +- pnpm-lock.yaml | 50 ++++++++++----------- 31 files changed, 64 insertions(+), 62 deletions(-) delete mode 100644 .changeset/dirty-bags-double.md delete mode 100644 .changeset/silly-tomatoes-kick.md diff --git a/.changeset/dirty-bags-double.md b/.changeset/dirty-bags-double.md deleted file mode 100644 index 9c5f3e9930..0000000000 --- a/.changeset/dirty-bags-double.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Fixes an issue with cssesc in dev mode when setting `vite.ssr.noExternal: true` diff --git a/.changeset/silly-tomatoes-kick.md b/.changeset/silly-tomatoes-kick.md deleted file mode 100644 index f72a57d340..0000000000 --- a/.changeset/silly-tomatoes-kick.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@astrojs/rss': patch ---- - -Improves README configuration reference. diff --git a/examples/basics/package.json b/examples/basics/package.json index 36d903c832..27e4b451c5 100644 --- a/examples/basics/package.json +++ b/examples/basics/package.json @@ -11,6 +11,6 @@ "astro": "astro" }, "dependencies": { - "astro": "^4.16.4" + "astro": "^4.16.5" } } diff --git a/examples/blog/package.json b/examples/blog/package.json index 5091fd1a4b..1af4f65f4c 100644 --- a/examples/blog/package.json +++ b/examples/blog/package.json @@ -12,8 +12,8 @@ }, "dependencies": { "@astrojs/mdx": "^3.1.8", - "@astrojs/rss": "^4.0.8", + "@astrojs/rss": "^4.0.9", "@astrojs/sitemap": "^3.2.1", - "astro": "^4.16.4" + "astro": "^4.16.5" } } diff --git a/examples/component/package.json b/examples/component/package.json index 74b128f170..f46ebb32d1 100644 --- a/examples/component/package.json +++ b/examples/component/package.json @@ -15,7 +15,7 @@ ], "scripts": {}, "devDependencies": { - "astro": "^4.16.4" + "astro": "^4.16.5" }, "peerDependencies": { "astro": "^4.0.0" diff --git a/examples/container-with-vitest/package.json b/examples/container-with-vitest/package.json index 3b2a159c1d..576b7c85a4 100644 --- a/examples/container-with-vitest/package.json +++ b/examples/container-with-vitest/package.json @@ -12,7 +12,7 @@ "test": "vitest run" }, "dependencies": { - "astro": "^4.16.4", + "astro": "^4.16.5", "@astrojs/react": "^3.6.2", "react": "^18.3.1", "react-dom": "^18.3.1", diff --git a/examples/framework-alpine/package.json b/examples/framework-alpine/package.json index e97458e35f..3d280064a6 100644 --- a/examples/framework-alpine/package.json +++ b/examples/framework-alpine/package.json @@ -14,6 +14,6 @@ "@astrojs/alpinejs": "^0.4.0", "@types/alpinejs": "^3.13.10", "alpinejs": "^3.14.1", - "astro": "^4.16.4" + "astro": "^4.16.5" } } diff --git a/examples/framework-lit/package.json b/examples/framework-lit/package.json index 8ced895bf8..8262577f7f 100644 --- a/examples/framework-lit/package.json +++ b/examples/framework-lit/package.json @@ -13,7 +13,7 @@ "dependencies": { "@astrojs/lit": "^4.3.0", "@webcomponents/template-shadowroot": "^0.2.1", - "astro": "^4.16.4", + "astro": "^4.16.5", "lit": "^3.2.1" } } diff --git a/examples/framework-multiple/package.json b/examples/framework-multiple/package.json index 262e860e8e..9f9f47a998 100644 --- a/examples/framework-multiple/package.json +++ b/examples/framework-multiple/package.json @@ -18,7 +18,7 @@ "@astrojs/vue": "^4.5.2", "@types/react": "^18.3.11", "@types/react-dom": "^18.3.1", - "astro": "^4.16.4", + "astro": "^4.16.5", "preact": "^10.24.3", "react": "^18.3.1", "react-dom": "^18.3.1", diff --git a/examples/framework-preact/package.json b/examples/framework-preact/package.json index 8d98d72201..6f427e5be2 100644 --- a/examples/framework-preact/package.json +++ b/examples/framework-preact/package.json @@ -13,7 +13,7 @@ "dependencies": { "@astrojs/preact": "^3.5.3", "@preact/signals": "^1.3.0", - "astro": "^4.16.4", + "astro": "^4.16.5", "preact": "^10.24.3" } } diff --git a/examples/framework-react/package.json b/examples/framework-react/package.json index 320ece4da2..ce1d63c1a3 100644 --- a/examples/framework-react/package.json +++ b/examples/framework-react/package.json @@ -14,7 +14,7 @@ "@astrojs/react": "^3.6.2", "@types/react": "^18.3.11", "@types/react-dom": "^18.3.1", - "astro": "^4.16.4", + "astro": "^4.16.5", "react": "^18.3.1", "react-dom": "^18.3.1" } diff --git a/examples/framework-solid/package.json b/examples/framework-solid/package.json index f87542ada6..6256b97bde 100644 --- a/examples/framework-solid/package.json +++ b/examples/framework-solid/package.json @@ -12,7 +12,7 @@ }, "dependencies": { "@astrojs/solid-js": "^4.4.2", - "astro": "^4.16.4", + "astro": "^4.16.5", "solid-js": "^1.9.2" } } diff --git a/examples/framework-svelte/package.json b/examples/framework-svelte/package.json index 2a06bf3b84..b55624cd7e 100644 --- a/examples/framework-svelte/package.json +++ b/examples/framework-svelte/package.json @@ -12,7 +12,7 @@ }, "dependencies": { "@astrojs/svelte": "^5.7.2", - "astro": "^4.16.4", + "astro": "^4.16.5", "svelte": "^4.2.19" } } diff --git a/examples/framework-vue/package.json b/examples/framework-vue/package.json index 740d88eafa..b341eb34d9 100644 --- a/examples/framework-vue/package.json +++ b/examples/framework-vue/package.json @@ -12,7 +12,7 @@ }, "dependencies": { "@astrojs/vue": "^4.5.2", - "astro": "^4.16.4", + "astro": "^4.16.5", "vue": "^3.5.12" } } diff --git a/examples/hackernews/package.json b/examples/hackernews/package.json index db1dbc3714..18a9ab6a32 100644 --- a/examples/hackernews/package.json +++ b/examples/hackernews/package.json @@ -12,6 +12,6 @@ }, "dependencies": { "@astrojs/node": "^8.3.4", - "astro": "^4.16.4" + "astro": "^4.16.5" } } diff --git a/examples/integration/package.json b/examples/integration/package.json index 24c28de661..0438e26b81 100644 --- a/examples/integration/package.json +++ b/examples/integration/package.json @@ -15,7 +15,7 @@ ], "scripts": {}, "devDependencies": { - "astro": "^4.16.4" + "astro": "^4.16.5" }, "peerDependencies": { "astro": "^4.0.0" diff --git a/examples/minimal/package.json b/examples/minimal/package.json index 1eedba13a1..edaad3564d 100644 --- a/examples/minimal/package.json +++ b/examples/minimal/package.json @@ -11,6 +11,6 @@ "astro": "astro" }, "dependencies": { - "astro": "^4.16.4" + "astro": "^4.16.5" } } diff --git a/examples/portfolio/package.json b/examples/portfolio/package.json index f9da15dd52..23dff6f519 100644 --- a/examples/portfolio/package.json +++ b/examples/portfolio/package.json @@ -11,6 +11,6 @@ "astro": "astro" }, "dependencies": { - "astro": "^4.16.4" + "astro": "^4.16.5" } } diff --git a/examples/ssr/package.json b/examples/ssr/package.json index 7c93be8843..95ae9ee64b 100644 --- a/examples/ssr/package.json +++ b/examples/ssr/package.json @@ -14,7 +14,7 @@ "dependencies": { "@astrojs/node": "^8.3.4", "@astrojs/svelte": "^5.7.2", - "astro": "^4.16.4", + "astro": "^4.16.5", "svelte": "^4.2.19" } } diff --git a/examples/starlog/package.json b/examples/starlog/package.json index 30897ccd20..8b729b3eae 100644 --- a/examples/starlog/package.json +++ b/examples/starlog/package.json @@ -10,7 +10,7 @@ "astro": "astro" }, "dependencies": { - "astro": "^4.16.4", + "astro": "^4.16.5", "sass": "^1.79.5", "sharp": "^0.33.3" } diff --git a/examples/toolbar-app/package.json b/examples/toolbar-app/package.json index efa142dff7..e6c015250e 100644 --- a/examples/toolbar-app/package.json +++ b/examples/toolbar-app/package.json @@ -15,6 +15,6 @@ "./app": "./dist/app.js" }, "devDependencies": { - "astro": "^4.16.4" + "astro": "^4.16.5" } } diff --git a/examples/with-markdoc/package.json b/examples/with-markdoc/package.json index 1c2d2f1d8c..6a76dc5657 100644 --- a/examples/with-markdoc/package.json +++ b/examples/with-markdoc/package.json @@ -12,6 +12,6 @@ }, "dependencies": { "@astrojs/markdoc": "^0.11.5", - "astro": "^4.16.4" + "astro": "^4.16.5" } } diff --git a/examples/with-mdx/package.json b/examples/with-mdx/package.json index 9f8393164c..da711b495b 100644 --- a/examples/with-mdx/package.json +++ b/examples/with-mdx/package.json @@ -13,7 +13,7 @@ "dependencies": { "@astrojs/mdx": "^3.1.8", "@astrojs/preact": "^3.5.3", - "astro": "^4.16.4", + "astro": "^4.16.5", "preact": "^10.24.3" } } diff --git a/examples/with-nanostores/package.json b/examples/with-nanostores/package.json index d2a0cc13ad..21864a386f 100644 --- a/examples/with-nanostores/package.json +++ b/examples/with-nanostores/package.json @@ -13,7 +13,7 @@ "dependencies": { "@astrojs/preact": "^3.5.3", "@nanostores/preact": "^0.5.2", - "astro": "^4.16.4", + "astro": "^4.16.5", "nanostores": "^0.11.3", "preact": "^10.24.3" } diff --git a/examples/with-tailwindcss/package.json b/examples/with-tailwindcss/package.json index 0c646de94f..04ab56e7a1 100644 --- a/examples/with-tailwindcss/package.json +++ b/examples/with-tailwindcss/package.json @@ -14,7 +14,7 @@ "@astrojs/mdx": "^3.1.8", "@astrojs/tailwind": "^5.1.2", "@types/canvas-confetti": "^1.6.4", - "astro": "^4.16.4", + "astro": "^4.16.5", "autoprefixer": "^10.4.20", "canvas-confetti": "^1.9.3", "postcss": "^8.4.47", diff --git a/examples/with-vitest/package.json b/examples/with-vitest/package.json index f4d30067ef..38d5e4b73c 100644 --- a/examples/with-vitest/package.json +++ b/examples/with-vitest/package.json @@ -12,7 +12,7 @@ "test": "vitest" }, "dependencies": { - "astro": "^4.16.4", + "astro": "^4.16.5", "vitest": "^2.1.3" } } diff --git a/packages/astro-rss/CHANGELOG.md b/packages/astro-rss/CHANGELOG.md index be7c24e33f..6204e723c9 100644 --- a/packages/astro-rss/CHANGELOG.md +++ b/packages/astro-rss/CHANGELOG.md @@ -1,5 +1,11 @@ # @astrojs/rss +## 4.0.9 + +### Patch Changes + +- [#12157](https://github.com/withastro/astro/pull/12157) [`925cff3`](https://github.com/withastro/astro/commit/925cff31bc040874e73decd6a6b3a5ba84c60258) Thanks [@bholmesdev](https://github.com/bholmesdev)! - Improves README configuration reference. + ## 4.0.8 ### Patch Changes diff --git a/packages/astro-rss/package.json b/packages/astro-rss/package.json index 509f31ee38..8de405fd7c 100644 --- a/packages/astro-rss/package.json +++ b/packages/astro-rss/package.json @@ -1,7 +1,7 @@ { "name": "@astrojs/rss", "description": "Add RSS feeds to your Astro projects", - "version": "4.0.8", + "version": "4.0.9", "type": "module", "types": "./dist/index.d.ts", "author": "withastro", diff --git a/packages/astro/CHANGELOG.md b/packages/astro/CHANGELOG.md index 55f4b476b5..4246713f16 100644 --- a/packages/astro/CHANGELOG.md +++ b/packages/astro/CHANGELOG.md @@ -1,5 +1,11 @@ # astro +## 4.16.5 + +### Patch Changes + +- [#12232](https://github.com/withastro/astro/pull/12232) [`ff68ba5`](https://github.com/withastro/astro/commit/ff68ba5e1ca00f06d1afd5fbf89acea3092bb660) Thanks [@martrapp](https://github.com/martrapp)! - Fixes an issue with cssesc in dev mode when setting `vite.ssr.noExternal: true` + ## 4.16.4 ### Patch Changes diff --git a/packages/astro/package.json b/packages/astro/package.json index c8cfa90e97..7f6e52a304 100644 --- a/packages/astro/package.json +++ b/packages/astro/package.json @@ -1,6 +1,6 @@ { "name": "astro", - "version": "4.16.4", + "version": "4.16.5", "description": "Astro is a modern site builder with web best practices, performance, and DX front-of-mind.", "type": "module", "author": "withastro", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index d0060b05a9..c9fab03a83 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -118,7 +118,7 @@ importers: examples/basics: dependencies: astro: - specifier: ^4.16.4 + specifier: ^4.16.5 version: link:../../packages/astro examples/blog: @@ -127,19 +127,19 @@ importers: specifier: ^3.1.8 version: link:../../packages/integrations/mdx '@astrojs/rss': - specifier: ^4.0.8 + specifier: ^4.0.9 version: link:../../packages/astro-rss '@astrojs/sitemap': specifier: ^3.2.1 version: link:../../packages/integrations/sitemap astro: - specifier: ^4.16.4 + specifier: ^4.16.5 version: link:../../packages/astro examples/component: devDependencies: astro: - specifier: ^4.16.4 + specifier: ^4.16.5 version: link:../../packages/astro examples/container-with-vitest: @@ -148,7 +148,7 @@ importers: specifier: ^3.6.2 version: link:../../packages/integrations/react astro: - specifier: ^4.16.4 + specifier: ^4.16.5 version: link:../../packages/astro react: specifier: ^18.3.1 @@ -179,7 +179,7 @@ importers: specifier: ^3.14.1 version: 3.14.1 astro: - specifier: ^4.16.4 + specifier: ^4.16.5 version: link:../../packages/astro examples/framework-lit: @@ -191,7 +191,7 @@ importers: specifier: ^0.2.1 version: 0.2.1 astro: - specifier: ^4.16.4 + specifier: ^4.16.5 version: link:../../packages/astro lit: specifier: ^3.2.1 @@ -221,7 +221,7 @@ importers: specifier: ^18.3.1 version: 18.3.1 astro: - specifier: ^4.16.4 + specifier: ^4.16.5 version: link:../../packages/astro preact: specifier: ^10.24.3 @@ -251,7 +251,7 @@ importers: specifier: ^1.3.0 version: 1.3.0(preact@10.24.3) astro: - specifier: ^4.16.4 + specifier: ^4.16.5 version: link:../../packages/astro preact: specifier: ^10.24.3 @@ -269,7 +269,7 @@ importers: specifier: ^18.3.1 version: 18.3.1 astro: - specifier: ^4.16.4 + specifier: ^4.16.5 version: link:../../packages/astro react: specifier: ^18.3.1 @@ -284,7 +284,7 @@ importers: specifier: ^4.4.2 version: link:../../packages/integrations/solid astro: - specifier: ^4.16.4 + specifier: ^4.16.5 version: link:../../packages/astro solid-js: specifier: ^1.9.2 @@ -296,7 +296,7 @@ importers: specifier: ^5.7.2 version: link:../../packages/integrations/svelte astro: - specifier: ^4.16.4 + specifier: ^4.16.5 version: link:../../packages/astro svelte: specifier: ^4.2.19 @@ -308,7 +308,7 @@ importers: specifier: ^4.5.2 version: link:../../packages/integrations/vue astro: - specifier: ^4.16.4 + specifier: ^4.16.5 version: link:../../packages/astro vue: specifier: ^3.5.12 @@ -320,25 +320,25 @@ importers: specifier: ^8.3.4 version: 8.3.4(astro@packages+astro) astro: - specifier: ^4.16.4 + specifier: ^4.16.5 version: link:../../packages/astro examples/integration: devDependencies: astro: - specifier: ^4.16.4 + specifier: ^4.16.5 version: link:../../packages/astro examples/minimal: dependencies: astro: - specifier: ^4.16.4 + specifier: ^4.16.5 version: link:../../packages/astro examples/portfolio: dependencies: astro: - specifier: ^4.16.4 + specifier: ^4.16.5 version: link:../../packages/astro examples/ssr: @@ -350,7 +350,7 @@ importers: specifier: ^5.7.2 version: link:../../packages/integrations/svelte astro: - specifier: ^4.16.4 + specifier: ^4.16.5 version: link:../../packages/astro svelte: specifier: ^4.2.19 @@ -359,7 +359,7 @@ importers: examples/starlog: dependencies: astro: - specifier: ^4.16.4 + specifier: ^4.16.5 version: link:../../packages/astro sass: specifier: ^1.79.5 @@ -371,7 +371,7 @@ importers: examples/toolbar-app: devDependencies: astro: - specifier: ^4.16.4 + specifier: ^4.16.5 version: link:../../packages/astro examples/with-markdoc: @@ -380,7 +380,7 @@ importers: specifier: ^0.11.5 version: link:../../packages/integrations/markdoc astro: - specifier: ^4.16.4 + specifier: ^4.16.5 version: link:../../packages/astro examples/with-mdx: @@ -392,7 +392,7 @@ importers: specifier: ^3.5.3 version: link:../../packages/integrations/preact astro: - specifier: ^4.16.4 + specifier: ^4.16.5 version: link:../../packages/astro preact: specifier: ^10.24.3 @@ -407,7 +407,7 @@ importers: specifier: ^0.5.2 version: 0.5.2(nanostores@0.11.3)(preact@10.24.3) astro: - specifier: ^4.16.4 + specifier: ^4.16.5 version: link:../../packages/astro nanostores: specifier: ^0.11.3 @@ -428,7 +428,7 @@ importers: specifier: ^1.6.4 version: 1.6.4 astro: - specifier: ^4.16.4 + specifier: ^4.16.5 version: link:../../packages/astro autoprefixer: specifier: ^10.4.20 @@ -446,7 +446,7 @@ importers: examples/with-vitest: dependencies: astro: - specifier: ^4.16.4 + specifier: ^4.16.5 version: link:../../packages/astro vitest: specifier: ^2.1.3