Skip to content

feat: refresh ipns record#891

Draft
tabcat wants to merge 51 commits intoipfs:mainfrom
tabcat:feat/refresh-record
Draft

feat: refresh ipns record#891
tabcat wants to merge 51 commits intoipfs:mainfrom
tabcat:feat/refresh-record

Conversation

@tabcat
Copy link
Contributor

@tabcat tabcat commented Oct 30, 2025

Title

feat: refresh ipns record

Description

Adds republish to IPNS and unpublish accepts ipns keys.

Changes resolve to not read localStore if nocache option is true.

Changes metadata to include a refresh field that is false by default. The #republish method reads this field to know which keys are being refreshed.

Closes #877

Notes & open questions

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

@tabcat tabcat marked this pull request as ready for review October 31, 2025 01:48
@tabcat tabcat requested a review from a team as a code owner October 31, 2025 01:48
@gammazero
Copy link

Triage: in review

@Verity-Freedom
Copy link

сс @lidel for awareness
cc @tabcat for awareness

@hsanjuan
Copy link

Triage:

@tabcat tabcat marked this pull request as draft January 31, 2026 11:57
@tabcat
Copy link
Contributor Author

tabcat commented Feb 1, 2026

Turning this back into a draft. There should be a way to create a new record without publishing or republishing to public routers as part of this PR.

@tabcat
Copy link
Contributor Author

tabcat commented Feb 3, 2026

I've replaced the refresh bool field (from this pr) of the metadata protobuf for localStore with an Upkeep enum with properties republish, refresh, and none currently. The publish and republish methods now have an upkeep option with type 'republish' | 'refresh' | 'none'. 'republish' is only availabe for publish as it requires the key to sign new ttl.

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.

feature request: @helia/ipns republish specific existing records

5 participants