summaryrefslogtreecommitdiff
path: root/packages/astro-rss/src (follow)
AgeCommit message (Collapse)AuthorFilesLines
2023-11-28Remove deprecated features from Astro 3.0 (#9168)Gravatar Bjorn Lu 2-16/+1
2023-09-13config: migrate us to moduleResolution: 'node16' (#8519)Gravatar Erika 1-1/+1
2023-08-23Update rss package to return a response (#8198)Gravatar Bjorn Lu 1-5/+11
2023-08-22Deprecate drafts feature (#8099)Gravatar Bjorn Lu 1-2/+8
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-08-07Add URL to RSSOptions.site type (#7964)Gravatar Timon Jurschitsch 1-1/+1
2023-05-22feat: :art: export rss feeditem type (#7153)Gravatar Akash Rajpurohit 1-1/+1
2023-05-15[ci] formatGravatar bluwy 1-1/+4
2023-05-15RSS: Fix string validation of pubDate (#7066)Gravatar Reuben Tier 1-1/+1
2023-05-02Fix: remove odd `/1/` check on RSS canonicals (#6970)Gravatar Ben Holmes 1-1/+0
* fix: remove odd `/1/` check on RSS canonicals * chore: changeset
2023-04-26Adds extra elements to RSS items. (#6707)Gravatar Phil Nash 2-1/+47
2023-03-30[RSS] Fix: update `RSSFeedItem` type to comply with `strictest` tsconfig (#6614)Gravatar Aivars Liepa 1-1/+1
* fix RSSFeedItem type for `strictest` tsconfig * add .changeset --------- Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
2023-03-13[RSS] Fix: Preserve self-closing tags in `customData` (#6538)Gravatar Ben Holmes 1-1/+7
* fix: preserve self-closing tags in customData * test: self-closing tags preserved * chore: changeset
2023-03-10fix: Enforce the usage of type imports when possible (#6502)Gravatar Erika 1-2/+2
2023-03-09feat(rss): add option to remove the trailing slash (#6453)Gravatar Emanuele Stoppa 2-4/+19
* feat(rss): add option to remove the trailing slash * Apply suggestions from code review Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> * suggestions --------- Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-02-16[ci] formatGravatar natemoo-re 1-7/+7
2023-02-16fix: add property name to rss errors (#6259)Gravatar Julien Barbay 1-5/+7
* fix: add property name to rss errors * Create good-snails-attend.md --------- Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-01-24[ci] formatGravatar natemoo-re 1-1/+1
2023-01-24Ignore lint warning (#5949)Gravatar Reuben Tier 1-0/+1
2023-01-19[ci] formatGravatar bholmesdev 1-5/+2
2023-01-19[RSS] Get ready for content collections (#5851)Gravatar Ben Holmes 3-89/+125
* chore: strictNullChecks for zod * feat: expose `rssSchema` helper * refactor: align types with schema types * feat: break glob handler to globToRssItems util * refactor: RSS options validation to Zod * refactor: avoid intermediate type * fix: allow numbers and dates in pubDate * test: update glob and error tests * feat: add rss to with-content starter * fix: move globToRssItems back to internal behavior * chore: JSON.stringify * Revert "fix: move globToRssItems back to internal behavior" This reverts commit 85305075e6444907455541b24bccbccd5016951a. * test: missing url * docs: `import.meta.env.SITE` -> `context.site` * docs: update README to content collections example * fix: url -> link * docs: add `rssSchema` to README * chore: consistent formatting * docs: add `pagesGlobToRssItems()` reference * chore: globToRssItems -> pagesGlobToRssItems * chore: changeset * fix: bad docs line highlighting * fix: add collections export to example * nit: remove "our" * fix: are -> all * fix: more README edits * deps: kleur * chore: add back import.meta.glob handling as deprecated * docs: bump down to `minor`, update headline to be less content collections-y * typo: suggest adding * chore: support URL object on `site` * docs: add await to pagesGlob ex * docs: tighten `rssSchema` explainer * docs: tighten pagesGlobToRssItems section * docs: add content to README * docs: replace examples with docs link * docs: re-we Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2022-12-27fix: filter out draft item from glob result (#5612)Gravatar Leontopodium pusillum 1-0/+8
* fix: filter out draft item from glob result * test: rss should ignore draft * build: add changeset * build: major version * feat: add `drafts` option * Add README docs Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
2022-12-14[ci] formatGravatar matthewp 1-1/+4
2022-12-14fix missing type-attribute for xsl stylesheets (#5600)Gravatar Frode Flaten 1-1/+2
2022-12-13Fix missing RSS item `customData` (#5591)Gravatar Matt Stein 1-2/+3
* Add failing test. * Fix it. * Add changeset.
2022-12-08astro-rss: Generate feed with proper XML escaping (#5550)Gravatar Anders Kaseorg 1-33/+34
* test(astro-rss): Compare XML using chai-xml Signed-off-by: Anders Kaseorg <andersk@mit.edu> * fix(astro-rss): Generate feed with proper XML escaping Signed-off-by: Anders Kaseorg <andersk@mit.edu> Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2022-12-06feat(astro-rss): generate post content in feed (#5366)Gravatar Ben Smith 1-0/+15
2022-10-26feat: add support for other markdown file extensions (#5164)Gravatar Happydev 1-2/+2
* fix: add `.markdown ` file extension support adds `.markdown` file extension support for markdown files * test: add test case * chore: adds changeset * test: move test and fixture to relevant locations * test: update test * feat: add multiple markdown file extension support * feat: add module declaration for different markdown file extensions * refactor: markdown module declarations for ease of TS refactoring * fix: add .js extension to module imports * test: update test * chore: update changeset * chore: update changeset * test: add new test cases * test: update tests * fix: correct typo
2022-09-28Remove shamefully-hoist (#4842)Gravatar Bjorn Lu 1-3/+7
2022-09-12[RSS] Fix failure when globbing index route (#4701)Gravatar Ben Holmes 1-1/+1
* fix: [rss] throw on undefined urls only * test: "" url, passing glob outside pages/ * chore: changeset
2022-07-18[ci] formatGravatar FredKSchott 1-1/+1
2022-07-18Throw the error when `site` option is missing (#3956)Gravatar Vlad Esafev 1-0/+7
* Throw the error when site option is missing * Update index.ts * Update index.ts * Update rss.test.js * Update index.ts Co-authored-by: Fred K. Schott <fkschott@gmail.com>
2022-07-13[ci] formatGravatar matthewp 1-3/+5
2022-07-13Provide a better error message for when RSS is missing `link` field (#3913)Gravatar Matthew Phillips 1-0/+12
* Provide a better error message for when RSS is missing `link` field * Adds a changeset
2022-05-05Fix: make RSS canonicalUrl required (#3301)Gravatar Ben Holmes 1-14/+8
* chore: make canonicalUrl required * docs: explain env variable on required canonicalUrl * refactor: rename "canonicalUrl" to "site" * chore: changeset
2022-05-03Feat: `@astrojs/rss` package! (#3271)Gravatar Ben Holmes 2-0/+173
* feat: introduce @astrojs/rss package! * feat: add config "site" to env variable * docs: add @astrojs/rss readme * chore: changeset * fix: testing script * deps: add mocha, chai, chai-promises * tests: add rss test! * feat: add canonicalUrl arg * chore: remove console.log * fix: remove null check on env (breaks build) * docs: stray ` * chore: update error message to doc link * chore: remove getStylesheet * docs: update stylesheet reference