Skip to content
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: add record/answer fields to IPNS results #471

Merged
merged 1 commit into from
Mar 15, 2024

Conversation

achingbrain
Copy link
Member

@achingbrain achingbrain commented Mar 14, 2024

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

  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation if necessary (this includes comments as well)
  • I have added tests that prove my fix is effective or that my feature works

@achingbrain achingbrain requested a review from a team as a code owner March 14, 2024 16:29
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.
@achingbrain achingbrain changed the title feat: add expires and record/answer fields to IPNS results feat: add record/answer fields to IPNS results Mar 14, 2024
@achingbrain achingbrain force-pushed the feat/add-expires-and-record-field-to-ipns branch from ce6e22b to 2451c2f Compare March 14, 2024 16:36
Copy link
Member

@2color 2color left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the quick turnaround! Looks good.

This is a breaking change, right?

@achingbrain
Copy link
Member Author

achingbrain commented Mar 14, 2024

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.

@achingbrain achingbrain merged commit b6765fe into main Mar 15, 2024
18 checks passed
@achingbrain achingbrain deleted the feat/add-expires-and-record-field-to-ipns branch March 15, 2024 06:58
@achingbrain achingbrain mentioned this pull request Mar 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants