Emanuele Stoppa
062623438b
chore: use biome to sort imports - only test files ( #10180 )
...
* chore: use biome to sort imports
* do the sorting
* Update package.json
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
---------
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
2024-02-21 14:08:19 +00:00
ktym4a
5ff288f61b
chore: Change strictEqual
to equal
( #10140 )
2024-02-16 11:41:16 +00:00
voxel!()
4260ecf1ff
chore(@astrojs/rss
): Migrate tests to node:test
( #9939 )
...
* Progressively add new tests (remove old later)
* Finalize tests
* Remove unused comments
* Assert that errors are not present and add jsdocs to util function
* Fix
* Remove mocha deps
2024-02-04 19:58:44 +00:00
Rob Mensching
d77a0320b7
fix(rss): update test name to better match behavior ( #9646 )
2024-01-08 22:39:41 +01:00
Florian Lefebvre
24663c9695
fix(rss): make title optional if description is provided ( #9610 )
...
* fix(rss): make title optional if description is provided
* feat(rss): simplify schema
* fix(rss): update tests to match new behavior
* Update packages/astro-rss/test/pagesGlobToRssItems.test.js
Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
* Update packages/astro-rss/test/pagesGlobToRssItems.test.js
Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
* feat: make link and pubDate optional
* feat: improve item normalization
* Update shy-spoons-sort.md
* Fix test fail
* Update .changeset/shy-spoons-sort.md
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
---------
Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
Co-authored-by: bluwy <bjornlu.dev@gmail.com>
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2024-01-06 07:47:29 +00:00
Ben Holmes
81dce94f2a
[RSS] Get ready for content collections ( #5851 )
...
* 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>
2023-01-19 11:24:55 -05:00