2023-01-29

週刊 Astro 11

Astro 2.0

Astro 2.0 がリリースされました!以下のブログにて概略が紹介されています:

Astro 2.0 | Astro
Astro 2.0 | Astro
Astro 2.0 is here! Astro 2.0 is the first major web framework to deliver complete type-safety for Markdown and MDX. Other release highlights include: Hybrid Rendering • Redesigned Error Overlays • Improved Dev Server and HMR • Vite 4.0 • A New Public Roadmap
astro.build

見出しのみ抜粋すると以下のようになります:

なお、このサイトも Astro 2.0 にアップグレード済みとなります (Content Collections は対応させましたが、今のところ Hybrid Rendering にはせず全ページ Static Generation しています)。

Introducing Content Collections

Ben Holmes による Content Collections についての解説記事が公開されました:

Introducing Content Collections: Type-Safe Markdown in Astro 2.0 | Astro
Introducing Content Collections: Type-Safe Markdown in Astro 2.0 | Astro
New in Astro 2.0: Content Collections deliver a better developer experience for working with local content like Markdown and MDX. Powered by TypeScript, your local content is now automatically typed and validated for you against a schema so that you never miss or misspell another frontmatter property name again.
astro.build

Content Collections により、Zod を用いて Markdown の frontmatter を型安全に扱うことができるようになりました。また、改良された Error Overlay により、エラーの原因を素早く特定することができるようになりました。

Unlock New Possibilities with Hybrid Rendering

Nate Moore による Hybrid Rendering (以前は Prerender API と呼ばれていました) についての解説記事が公開されました:

Unlock New Possibilities with Hybrid Rendering | Astro
Unlock New Possibilities with Hybrid Rendering | Astro
New in Astro 2.0: Hybrid rendering unlocks the best of both worlds—choose between the performance of static pages or the full flexibility of server rendering for each page of your website.
astro.build

以前は Static Generation か Server-side Rendering の二者択一でしかサイトのレンダリング方式を選択することができませんでしたが、Hybrid Rendering により、両方のレンダリング方式をハイブリッドに組み合わせて使用することができるようになりました。

上の記事では、Hybrid Rendering のユースケースが具体的に説明されています:

また、上の記事では Astro のビルドプロセスが図とともに説明されており、内部のアーキテクチャを知るためにも興味深い内容となっています。

Astro Community Awards 2022

Astro Contributor Awards 2022 の受賞者が発表されました:

Astro Community Awards 2022 | Astro
Astro Community Awards 2022 | Astro
The Astro Community Awards for 2022 have been announced! These awards recognize the Astro community members who went above and beyond the past year. Read more to find out who was recognized!
astro.build

驚いたことに私 (shf0811) も選出されていました。ドキュメントへの貢献が認めてもらえたようで、とても嬉しいです (そして名前を挙げてくださった方、ありがとうございました!)。

HoustonAI

HoustonAI という、Astro に関する質問を対話的に回答してくれる実験的なサービスが公開されました:

HoustonAI • Astro Assistant
HoustonAI • Astro Assistant
houston.astro.build

次のような UI となります:

AstroAI Demo

ソースコードは以下で公開されています:

GitHub - withastro/houston.astro.build: Experimental AI assistant trained on the Astro docs
GitHub - withastro/houston.astro.build: Experimental AI assistant trained on the Astro docs
Experimental AI assistant trained on the Astro docs - GitHub - withastro/houston.astro.build: Experimental AI assistant trained on the Astro docs
github.com

Public Roadmap

新しいパブリックロードマップが公開されました:

Public Roadmap · GitHub
Public Roadmap · GitHub
GitHub is where people build software. More than 100 million people use GitHub to discover, fork, and contribute to over 330 million projects.
github.com
Astro Public Roadmap

これまでの withastro/rfcs は、以後 withastro/roadmap として管理されていくようです。

What’s new in Astro 2

Fred K. Schott による Astro 2.0 についての解説が Changelog.com において公開されました:

What's new in Astro 2 with Fred K. Schott (JS Party #260) |> Changelog
What's new in Astro 2 with Fred K. Schott (JS Party #260) |> Changelog
Fred K. Schott joins the party again to discuss all the new and fun changes in Astro 2. Nick and KBall dig in on what’s new, what’s exciting, and what to expect from the framework built around content.
changelog.com

Astro 2.0 Launch Event ft. Cassidy Williams!

Cassidy WilliamsFred K. SchottNate MooreBen HolmesMatthew Phillips などによる、Astro 2.0 の発表イベントが Twitter Spaces にて公開されました:

https://twitter.com/i/spaces/1BRJjZRVWzvJw

What’s new in Astro 2.0? - Open Source Friday

Nate Moore による Astro 2.0 についての解説が公開されました。対談相手は GitHub の Developer Advocate である Rizèl Scarlett です:

Twitch
Twitch
www.twitch.tv

We integrated with WHO?? (hottest framework of 2023)

フルスタックのサーバレスアプリケーションを AWS へとデプロイするためのツール SST が Astro に対応しました:

SST に関する Astro のドキュメントも追加されています:

Deploy your Astro Site to AWS with SST 🚀 Astro Documentation
Deploy your Astro Site to AWS with SST 🚀 Astro Documentation
How to deploy your Astro site to AWS with SST
docs.astro.build

その他