Update rss package to return a response #8198
Merged
+113
−30
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.
Changes
Breaking change for RC!
Thanks @fflaten for spotting this at withastro/docs#4296 (comment), the
rss
integration is currently returning a simple object for the endpoint which is deprecated.This PR changes it to a
Response
, and export a newgetRssString
utility to get the string directly if needed.Testing
Tested
blog
example app manually.Docs
Updated the README. It looks like we don't document what
rss()
returned before, so for most users, this change should be transparent. The main docs change is for the newgetRssString
utility./cc @withastro/maintainers-docs for feedback!