Skip to content

feat: add generic links to feed options and items - #165

Merged
otnc merged 2 commits into
mainfrom
feat/generic-links
Oct 14, 2026
Merged

otnc merged 2 commits into
mainfrom
feat/generic-links

Conversation

@otnc

@otnc otnc commented Oct 14, 2026

Copy link
Copy Markdown
Owner

Summary

  • Fix bug(s)
  • New feature(s)
  • Others

Add links: FeedLink[] to FeedOptions and FeedItem ({ rel, href, type?, hreflang?, title?, length? }). Each entry is emitted as an Atom 1.0 <link> or an RSS 2.0 <atom:link>, with href absolutized. validateInput requires rel and href and rejects relations that already have their own field (self, hub, enclosure, replies and the paging rels), so a link is never emitted twice. Older RSS/Atom versions and JSON Feed ignore it. README (en/ja) is updated through base/README.base.md.

Why?

Atom's link vocabulary (related, via, license, alternate-language versions with hreflang) could only be reached through customXml before.

Related issue(s)

closes

Check

  • Check if duplicate PR(s) already exist.
  • Read CONTRIBUTING.md (rules)
  • Run pnpm check (lint & format)
  • Run pnpm test (functions test)
  • Run pnpm build (dist/)
  • (optional) Run pnpm test:coverage and check nothing new went uncovered

links emits extra Atom <link> / RSS 2.0 <atom:link> elements (rel, href, type, hreflang, title, length), absolutized. Relations that already have a field (self, hub, enclosure, replies, paging rels) are rejected by validateInput. Other RSS/Atom versions and JSON Feed ignore it.
@github-actions github-actions Bot added enhancement New feature or request to main for Pull Request to main conflict for Pull Request labels Oct 14, 2026
@github-actions github-actions Bot removed the conflict for Pull Request label Oct 14, 2026
@otnc
otnc merged commit e6d4e14 into main Oct 14, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request to main for Pull Request to main

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant