-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[feat] json feed loader #160
Conversation
5c5c60e
to
b750c6e
Compare
Looks very good. If you don’t mind fixing code styling suggestion first, we can merge after that. |
If you have a Twitter name, can you join us Discord and write me there? https://discord.gg/ZUV7JmN9 I want to write about JSON feed support. |
A few ideas which came after the merge, which may be interesting for you 7f33ce0
|
Amazing works, thanks! |
yep, @pezeze3 in twitter thank you for feedback and ideas after, I'll check ! |
Feature #8
createTextResponse[download.ts]
json parse handlerpreview.test
Motivation
Loader
methods. Reusing something from the rss/atom loaders probably won't work because the jsonfeed has its own structure and content typecreateTextResponse
and add a method to handle JSON text. The implementation within theparse
method will be more complicated because it will add a new text media type. Currently,parse
returns a document structure, which is why we will need many checks and typings to prevent incorrect type returns.Questions
Checklist
pnpm test
.scripts/
, add a comment with a description.README.md
.README.md
.core/
. What code will also be useful on other platforms?pnpm size
and check the difference in the JS bundle size. Is it relevant to the changes? Change the limit inweb/.size-limit.json
if necessary.index.html
.core/
: