FlowFuse/flowfuse

BOM: incorrect package version date shown on dependencies

knolleary opened this issue · 0 comments

Current Behavior

The Dependencies view lists the lastest version of a module according to npm, along with when it was publised.

The current code is picking up the wrong date from the npmjs date.

For example, for @flowfuse/nr-assistant it shows:
image

0.1.3 is the correct latest release version, but it was published 2 months ago, not 2 days ago. However, the latest nightly release was published 2 days ago.

It should use dist-tags.latest to identify the lastest release. And then use the value of that property to key into the versions object to get the meta data about that particular version.

Expected Behavior

Show the correct time for the release. Also, we don't need to be so specific when its a longer time period:

image

Finally, I think this should be right-aligned as the variable width of the time period makes it hard to scan down the list

image

Steps To Reproduce

No response

Environment

  • FlowFuse version:
  • Node.js version:
  • npm version:
  • Platform/OS:
  • Browser:

Have you provided an initial effort estimate for this issue?

I have provided an initial effort estimate