stampit-org / stampit

OOP is better with stamps: Composable object factories.
https://stampit.js.org
MIT License
3.02k stars 102 forks source link

✨ Add .version to stampit object #332

Closed dwiyatci closed 6 years ago

dwiyatci commented 6 years ago

My story: I just got back again to my old project that uses stampit after leaving it for 3+ years. I was confused for quite some time because I forgot which stampit version I used (was it 2.x or was it 3.x?). The frontend libraries of this project weren't managed by bower/npm, so... 😅

I guess it would be useful if version information could be added to the API like angular.version, React.version, lodash.VERSION, etc.?

koresar commented 6 years ago

Good idea! Would you PR that thing for the rest of us? 🥇

koresar commented 6 years ago

Btw, I can tell you which version you are using by looking at the code. Feel free to gist and paste the link here.

dwiyatci commented 6 years ago

I identified it already before I submitted this issue (it was 2.x 😁). Just want to make sure it won't happen again in the future. PR been created.

koresar commented 6 years ago

Done in #334