decentralized-identity / veramo

A JavaScript Framework for Verifiable Data
https://veramo.io
Apache License 2.0
431 stars 131 forks source link

fix(data-store-json): order credentials with weird issuanceDate #1273

Closed mirceanis closed 11 months ago

mirceanis commented 11 months ago

What is being changed

Some credentials from the wild are missing an issuanceDate, or have the date in a non-parseable format. This fix defaults their date to unixtime(0) when compared to other credentials for database sorting.

Quality

Check all that apply:

Details

I added #1274 to demonstrate how a test for this might look like, but it would introduce a breaking change (if people use their own migrations)