fix(deps): update dependency @astrojs/rss to v2 - autoclosed
This MR contains the following updates:
Package | Type | Update | Change |
---|---|---|---|
@astrojs/rss (source) | dependencies | major | ^1.0.2 -> ^2.0.0 |
Release Notes
withastro/astro (@astrojs/rss)
v2.4.4
Patch Changes
-
#7964
51028f85c
Thanks @DerTimonius! - Add URL to RSSOptions.site type
v2.4.3
Patch Changes
-
#7153
e17ed0727
Thanks @AkashRajpurohit! - exposes RSSFeedItem type
v2.4.2
Patch Changes
-
#7066
a37e67b52
Thanks @TheOtterlord! - Fix pubDate schema tranformation -
#7104
826e02890
Thanks @bluwy! - Specify"files"
field to only publish necessary files
v2.4.1
Patch Changes
-
#6970
b5482cee2
Thanks @bholmesdev! - Fix: remove accidental stripping of trailing/1/
on canonical URLs
v2.4.0
Minor Changes
-
#6707
4ea716e56
Thanks @philnash! - Added extra elements to the RSS items, including categories and enclosure
v2.3.2
Patch Changes
-
#6614
b1b9b1390
Thanks @aivarsliepa! - FixesRSSOptions
type error when usingstrictest
Typescript tsconfig
v2.3.1
Patch Changes
-
#6538
400ef26c9
Thanks @bholmesdev! - Preserve self-closing tags incustomData
option
v2.3.0
Minor Changes
-
#6453
2e362042c
Thanks @ematipico! - AddedtrailingSlash
option to control whether or not the emitted URLs should have trailing slashes.import rss from '@​astrojs/rss'; export const get = () => rss({ trailingSlash: false, });
By passing
false
, the emitted links won't have trailing slashes.
v2.2.0
Minor Changes
-
#6213
afbbc4d5b
Thanks @Princesseuh! - Updated compilation settings to disable downlevelling for Node 14
v2.1.1
Patch Changes
v2.1.0
Minor Changes
-
#5851
81dce94f2
Thanks @bholmesdev! - Update RSS config for readability and consistency with Astro 2.0.-
Migration -
import.meta.glob()
handlingWe have deprecated
items: import.meta.glob(...)
handling in favor of a separatepagesGlobToRssItems()
helper. This simplifies ouritems
configuration option to accept a single type, without losing existing functionality.If you rely on our
import.meta.glob()
handling, we suggest adding thepagesGlobToRssItems()
wrapper to your RSS config:// 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 anrssSchema
for use with content collections. This ensures all RSS feed properties are present in your frontmatter:import { defineCollection } from 'astro:content'; import { rssSchema } from '@​astrojs/rss'; const blog = defineCollection({ schema: rssSchema, }); export const collections = { blog };
-
v2.0.0
Major Changes
v1.2.1
Patch Changes
v1.2.0
Minor Changes
-
c76e1c810
Thanks @mattstein! - Fixes a bug that prevented an item’scustomData
from being included.
v1.1.0
Minor Changes
-
#5366
081e0a9d2
Thanks @smithbm2316! - Added the ability for users to include the full content of their posts/items in each RSS feed entry via the newcontent
key on theRSSFeedItem
model.
Patch Changes
v1.0.3
Patch Changes
-
#5164
4a8a346ca
Thanks @MoustaphaDev! - Add support for markdown files with the following extensions:.markdown
.mdown
.mkdn
.mkd
.mdwn
Configuration
-
If you want to rebase/retry this MR, check this box
This MR has been generated by Renovate Bot. The local configuration can be found in the local Renovate Bot repository.