Merged
Conversation
✅ Deploy Preview for astro-loaders ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
a150d0d to
aea3861
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
@ascorbic/feed-loader@2.0.0
Major Changes
#85
8c0c2a0Thanks @ascorbic! - BREAKING CHANGE: Updated underlying feed parser libraryThis release updates the underlying feed parsing library from the previous parser to
@rowanmanning/feed-parser, which provides more robust and standardized feed parsing. There is a legacy mode for the previous data shape. This change includes several breaking changes to the data structure:Schema Changes
Category Structure
label,term, andurlfields instead ofnameanddomain{ name: string, domain: string | null }{ label: string, term: string, url: string | null }Media/Enclosure Structure
{ url: string, type: string | null, length: number | null }{ url: string, image: string | null, title: string | null, length: number | null, type: string | null, mimeType: string | null }Field Name Changes
linkfield renamed tourlguidfield renamed toidsummaryfield now maps todescription(consistent with RSS)enclosure/link[@rel=enclosure]elements now map tomediaarrayError Message Changes
Benefits
Legacy Mode Support
To ease migration, this release includes a temporary legacy mode that maintains backward compatibility:
Migration Guide
Option 1: Use Legacy Mode (Temporary)
Enable legacy mode to maintain the old data structure while you plan your migration:
Option 2: Update to New Format (Recommended)
Update your code to handle the new structured data format:
Field Name Changes
Author Structure Change
Category Structure Change
Media/Enclosure Structure Change
Image Structure Change
Meta Structure Changes
Most users who only access
title,description,url, and basic fields will not need changes.Minor Changes
#88
1049d3eThanks @ascorbic! - Adds experimental live feed loaderAdds a new
liveFeedLoaderfor Astro's experimental live content collections feature. This allows RSS/Atom feeds to be fetched at request time rather than build time, enabling real-time content updates without rebuilds.Features:
liveFeedLoader()FeedLoadErrorandFeedValidationErrorRequirements:
astro.config.mjsUsage:
The existing
feedLoaderremains unchanged and fully compatible.