Closed julkue closed 3 years ago
This would be nice and useful! Do you think we should only allow string information? The current builtOn
renders a <time>
element which should be better semantically. If we allowed strings, I could see feature requests to allow links etc too.
Of course numbers could be valid to, even dates when displayed using toLocaleDateString
. But in the end, everything has to be converted to a string anyway, so I don't think it's a problem to expect a string.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
What problem would this feature solve?
Showing the semantic version out of package.json beside of the information when it was last built.
What the feature should look like?
Allow passing an object with freely defined key value pairs that will be shown together with
builtOn
. I would also think of replacing this withbuiltOn
entirely (or only show it when the custom option is empty) since this would allow passing a custombuiltOn
with custom date formatter, e.g. "01.01.2020" instead of "01/01/2020".Example:
For now I'm going to show the version in the project title: