Astro: @astrojs/[email protected] Release

Release date:
August 25, 2023
Previous version:
@astrojs/[email protected] (released August 22, 2023)
Magnitude:
0 Diff Delta
Contributors:
0 total committers
Data confidence:
Commits:

Top Contributors in @astrojs/[email protected]

Could not determine top contributors for this release.

Directory Browser for @astrojs/[email protected]

We haven't yet finished calculating and confirming the files and directories changed in this release. Please check back soon.

Release Notes Published

Major Changes

  • #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',
        },
      });
    }