Experimental
Extract the version of a profile metadata object:
const metadata = await ProfileMetadataSchema.parse(valid);
const version = extractVersion(metadata); // '2.0.0'
Extract the version of a mirror metadata object:
const metadata = await MirrorMetadataSchema.parse(valid);
const version = extractVersion(metadata); // '1.0.0'
Extract the version of a publication metadata object:
const metadata = await PublicationMetadataSchema.parse(valid);
const version = extractVersion(metadata); // '3.0.0'
Helper to extracts the version from the schema id of a metadata object.
Most users will not need to use this function directly.