Skip to content

fix(deps): update dependency @astrojs/rss to v3 - autoclosed

Housekeeper (bot) requested to merge renovate/astrojs-rss-3.x into master

This MR contains the following updates:

Package Type Update Change
@astrojs/rss (source) dependencies major ^1.0.2 -> ^3.0.0

Release Notes

withastro/astro (@​astrojs/rss)

v3.0.0

Compare Source

Major Changes
  • #​8188 d0679a666 Thanks @​ematipico! - Remove support for Node 16. The lowest supported version by Astro and all integrations is now v18.14.1. As a reminder, Node 16 will be deprecated on the 11th September 2023.

  • #​8179 6011d52d3 Thanks @​matthewp! - Astro 3.0 Release Candidate

  • #​8198 cb95aa5f8 Thanks @​bluwy! - Update the rss() default export to return a Response instead of a simple object, which is deprecated in Astro 3.0. If you were directly returning the rss() result from an endpoint before, this breaking change should not affect you.

    You can also import getRssString() to get the RSS string directly and use it to return your own Response:

    // src/pages/rss.xml.js
    import { getRssString } from '@​astrojs/rss';
    
    export async function get(context) {
      const rssString = await getRssString({
        title: 'Buzz’s Blog',
        ...
      });
    
      return new Response(rssString, {
        headers: {
          'Content-Type': 'application/xml',
        },
      });
    }
Patch Changes

v2.4.4

Compare Source

Patch Changes

v2.4.3

Compare Source

Patch Changes

v2.4.2

Compare Source

Patch Changes

v2.4.1

Patch Changes

v2.4.0

Minor Changes

v2.3.2

Compare Source

Patch Changes

v2.3.1

Compare Source

Patch Changes

v2.3.0

Compare Source

Minor Changes
  • #​6453 2e362042c Thanks @​ematipico! - Added trailingSlash 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

Compare Source

Minor Changes

v2.1.1

Compare Source

Patch Changes

v2.1.0

Compare Source

Minor Changes
  • #​5851 81dce94f2 Thanks @​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:

      // 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:

      import { defineCollection } from 'astro:content';
      import { rssSchema } from '@​astrojs/rss';
      
      const blog = defineCollection({
        schema: rssSchema,
      });
      
      export const collections = { blog };

v2.0.0

Compare Source

Major Changes

v1.2.1

Compare Source

Patch Changes

v1.2.0

Compare Source

Minor Changes

v1.1.0

Compare Source

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 new content key on the RSSFeedItem model.
Patch Changes

v1.0.3

Compare Source

Patch Changes

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever MR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this MR and you won't be reminded about this update again.


  • 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.

Merge request reports