ipfs / helia

An implementation of IPFS in JavaScript
https://helia.io
Other
812 stars 81 forks source link

feat: add `record`/`answer` fields to IPNS results #471

Closed achingbrain closed 3 months ago

achingbrain commented 3 months ago

Adds fields to IPNS results:

record: present in the return from ipns.resolve - contains the resolved IPNS record.

answer: present in the return from ipns.resolveDNSLink - contains the resolved DNS Answer.

Change checklist

achingbrain commented 3 months ago

It's non-breaking because we're just adding some more fields to the return types, rather than removing fields or changing the type from, like string to object or whatever.

I mentioned a breaking change on the maintainers call because I mis-remembered us returning strings, turns out we return objects so we're all good.