No worries. It's been a long day. It's been a long day for sure. I was trying to keep the hype. I was fact checking. This is my job as moderator, to fact check. Well, anyway, let's get back on track.
So we've got another question from Alvaro, which is, how do you keep track of NPM dependencies for each version and keep everything compatible when these dependencies change their API? For example, VT5 or VT5 2 and 3 have breaking changes in your temp that needs to be different? So the thing is, I need clarifying information with that. So as a library author or as an application developer? That's the first clarifying question.
So as a library author, you should be writing tests before you ship. Because you have a fixed version that you need to be compatible with. As an application developer, assuring the quality of your app is very different, and you have things like monitoring and canary deploys to make sure you're good. But as a library author, you need to be writing tests where you scaffold a Vuetify 2 and a Vuetify 3 app and see if your stuff still works. See if your component library still works. If you're building on top of Vuetify, for instance. That's awesome. Really, really good advice.
And as well, someone else has asked, have you thought about using Vue Demi for different library versions? Yeah, absolutely. Vue Demi is great if you're building anything that does not have SFCs and needs a compile step in between. We tried using Vue Demi in the migration I led. And Vue Demi just does not support SFCs. And every single box that I showed on that screen exported some kind of SFC. If you're writing library code, please, just try not to make it headless. Like make it headless. Don't use raw render functions, because those break a ton. And then, yeah, just raw composition API, if you can get away with it, and refs. So somebody mentioned template refs earlier. Template refs would be the way to go if you're trying to do any sort of styling. Use Vue use. Like literally go to the Vue use source code and see how they do it. That is the best way. Like their infinite scrolling component, the headless infinite scrolling component of Vue use, those kinds of patterns. That's what you want to look at. And go on GitHub. Look at the source code. Awesome, and if people want to find more about you, ask more questions, or maybe see more juggling, where can they find you? They can find me upstairs for the next, I don't know, 40 minutes. Maybe at the after party and on Twitter. Awesome. Let's give it up for Jessica.
Comments