ipfs / js-ipns

Utilities for creating, parsing, and validating IPNS records
Other
80 stars 24 forks source link

fix!: treat validity as opaque #307

Closed achingbrain closed 5 months ago

achingbrain commented 5 months ago

Instead of parsing the validity field of an IPNS record as a timestamp during unmarshalling, treat it as an opaque string value.

This ensures we can round-trip records supplied by other systems which may have a different interpretation of rfc3339 dates, for example.

It also means we can handle different types of validity types, not just EOL.

BREAKING CHANGE: the validity field is now a string