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: allow passing custom ttl when publishing ipns #723

Merged
merged 3 commits into from
Jan 24, 2025

Conversation

2color
Copy link
Member

@2color 2color commented Jan 22, 2025

What's in this PR

  • chore: export IPNS Record type
  • feat: allow setting ttl in miliseconds
  • test: add test for custom ttl

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

@2color 2color requested a review from a team as a code owner January 22, 2025 12:12
@SgtPooki SgtPooki self-requested a review January 23, 2025 14:52
Copy link
Member

@SgtPooki SgtPooki left a comment

Choose a reason for hiding this comment

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

I'm good with this, just one thought

@@ -429,6 +434,8 @@ export interface IPNS {

export type { IPNSRouting } from './routing/index.js'

export type { IPNSRecord } from 'ipns'
Copy link
Member

Choose a reason for hiding this comment

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

I wonder if we want to export this or have folks import it from 'ipns' directly. If it's just a type, it shouldn't cause bundle-bloat issues.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah to be honest, this one was really needed and the only thing I ended up needing to import from ipns so I decided it's used enough to be reexported.

@2color 2color merged commit 12df657 into main Jan 24, 2025
21 checks passed
@2color 2color deleted the export-ipns-record-type branch January 24, 2025 09:03
@achingbrain achingbrain mentioned this pull request Jan 24, 2025
@2color 2color mentioned this pull request Jan 24, 2025
8 tasks
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.

2 participants