[ci] release (beta) (#5906)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
parent
1d37ab4f9f
commit
9ddb7a2f2e
5 changed files with 46 additions and 3 deletions
|
@ -75,6 +75,7 @@
|
||||||
"dull-rabbits-relax",
|
"dull-rabbits-relax",
|
||||||
"eleven-bulldogs-provide",
|
"eleven-bulldogs-provide",
|
||||||
"few-rice-report",
|
"few-rice-report",
|
||||||
|
"fluffy-cups-travel",
|
||||||
"fluffy-mirrors-swim",
|
"fluffy-mirrors-swim",
|
||||||
"fluffy-onions-wink",
|
"fluffy-onions-wink",
|
||||||
"giant-chefs-rule",
|
"giant-chefs-rule",
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"astro": "^2.0.0-beta.3",
|
"astro": "^2.0.0-beta.3",
|
||||||
"@astrojs/mdx": "^0.15.0-beta.0",
|
"@astrojs/mdx": "^0.15.0-beta.0",
|
||||||
"@astrojs/rss": "^2.0.0",
|
"@astrojs/rss": "^2.1.0-beta.0",
|
||||||
"@astrojs/sitemap": "^1.0.0"
|
"@astrojs/sitemap": "^1.0.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,47 @@
|
||||||
# @astrojs/rss
|
# @astrojs/rss
|
||||||
|
|
||||||
|
## 2.1.0-beta.0
|
||||||
|
|
||||||
|
### Minor Changes
|
||||||
|
|
||||||
|
- [#5851](https://github.com/withastro/astro/pull/5851) [`81dce94f2`](https://github.com/withastro/astro/commit/81dce94f2a6db598bd9e47fc2a4b9d713e58f286) Thanks [@bholmesdev](https://github.com/bholmesdev)! - Update RSS config for readability and consistency with Astro 2.0.
|
||||||
|
|
||||||
|
#### Migration - `import.meta.glob()` handling
|
||||||
|
|
||||||
|
We have deprecated `items: import.meta.glob(...)` handling in favor of a separate `pagesGlobToRssItems()` helper. This simplifies our `items` configuration option to accept a single type, without losing existing functionality.
|
||||||
|
|
||||||
|
If you rely on our `import.meta.glob()` handling, we suggest adding the `pagesGlobToRssItems()` wrapper to your RSS config:
|
||||||
|
|
||||||
|
```diff
|
||||||
|
// src/pages/rss.xml.js
|
||||||
|
import rss, {
|
||||||
|
+ pagesGlobToRssItems
|
||||||
|
} from '@astrojs/rss';
|
||||||
|
|
||||||
|
export function get(context) {
|
||||||
|
return rss({
|
||||||
|
+ items: pagesGlobToRssItems(
|
||||||
|
import.meta.glob('./blog/*.{md,mdx}'),
|
||||||
|
+ ),
|
||||||
|
});
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
#### New `rssSchema` for content collections
|
||||||
|
|
||||||
|
`@astrojs/rss` now exposes an `rssSchema` for use with content collections. This ensures all RSS feed properties are present in your frontmatter:
|
||||||
|
|
||||||
|
```ts
|
||||||
|
import { defineCollection } from 'astro:content';
|
||||||
|
import { rssSchema } from '@astrojs/rss';
|
||||||
|
|
||||||
|
const blog = defineCollection({
|
||||||
|
schema: rssSchema,
|
||||||
|
});
|
||||||
|
|
||||||
|
export const collections = { blog };
|
||||||
|
```
|
||||||
|
|
||||||
## 2.0.0
|
## 2.0.0
|
||||||
|
|
||||||
### Major Changes
|
### Major Changes
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "@astrojs/rss",
|
"name": "@astrojs/rss",
|
||||||
"description": "Add RSS feeds to your Astro projects",
|
"description": "Add RSS feeds to your Astro projects",
|
||||||
"version": "2.0.0",
|
"version": "2.1.0-beta.0",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"types": "./dist/index.d.ts",
|
"types": "./dist/index.d.ts",
|
||||||
"author": "withastro",
|
"author": "withastro",
|
||||||
|
|
2
pnpm-lock.yaml
generated
2
pnpm-lock.yaml
generated
|
@ -70,7 +70,7 @@ importers:
|
||||||
examples/blog:
|
examples/blog:
|
||||||
specifiers:
|
specifiers:
|
||||||
'@astrojs/mdx': ^0.15.0-beta.0
|
'@astrojs/mdx': ^0.15.0-beta.0
|
||||||
'@astrojs/rss': ^2.0.0
|
'@astrojs/rss': ^2.1.0-beta.0
|
||||||
'@astrojs/sitemap': ^1.0.0
|
'@astrojs/sitemap': ^1.0.0
|
||||||
astro: ^2.0.0-beta.3
|
astro: ^2.0.0-beta.3
|
||||||
dependencies:
|
dependencies:
|
||||||
|
|
Loading…
Add table
Reference in a new issue