And it's super easy to add, um, just one line of code. The cool thing is also that by the new version, which is 0.28, I think, um, we added better localization. Um, it's super cool on how you can actually do this because as a localities, the translation component, and then you can say, Hey, I need this variable to inject. So count 99. And then suddenly in a different translations, you can have the 99 still be the variable, but translated differently. Um, it's pretty cool. I'm really happy with that.
It's taken a lot of inspiration from Laravel, but the thing is that if people come talk to me, typically about Astro, they asked me, Hey, what's next, where's Astro headed? What are they going to do? So we kind of got to talk about Astro 5.0. Um, Astro 5.0 actually is already out there in beta since, um, whatever, since I think 17th September, somewhere in my slides. Um, but I'm going to tell you a little bit on how and why it breaks and where it breaks, because that's important info for you if you want to use Astro. Uh, the dependencies change.
That's the first thing. If you do a major upgrade, you want to break dependencies because that's where you can actually do it. We're now requiring node 17.1, um, well, 18.17.1, which previously was 18.14 or something. So it shouldn't break too much, but mainly, um, Vite 6.0 beta is the main thing. And why it's still in beta is, well, Astro 5 beta, I mean, it's because Vite is still in beta. Once Vite releases a stable, Astro 5.0 will follow up as being stable as well. So you can already use it there. Uh, or you can already use Astro 5.0 beta today, but it might be a little bit, um, dependent on Vite.
Cool. Rendering modes. Um, as I was telling you, we have the static one, the hybrid one, and then the server one. Well, now we're actually removing full static because it's not needed anymore since hybrid is the default. Um, so you can just use everything static by default and just one page to be a server route. It's pretty cool. Um, so default and just how you change that is just one line of code that you, you switch. That's it. Content collection is what I was telling you about earlier. The markdown solution changed to be completely content layer API. But of course the migration path is easy because you just have to change one line to be a loader instead of default, the content glob, um, which is cool.
Comments