fast icon indicating copy to clipboard operation
fast copied to clipboard

feat: inject version into fast-element source

Open EisenbergEffect opened this issue 1 year ago • 1 comments

🙋 Feature Request

The FASTGlobal has a versions array. Instances of fast-element should push their version number into the array if it is not already present. This will enable easy detection of multiple versions as well as which versions are loaded.

🤔 Expected Behavior

FAST.versions should return an array of loaded fast-element versions.

😯 Current Behavior

The array is empty.

💁 Possible Solution

This will need to be accomplished through a combination of a small amount of code added to fast-element along with beachball integration. Here is the relevant beachball issue:

  • https://github.com/microsoft/beachball/issues/645

🔦 Context

It would be nice to know what version or versions are loaded at runtime.

💻 Examples

console.log(FAST.versions); // ['2.0.0']

EisenbergEffect avatar Dec 06 '22 18:12 EisenbergEffect