Change8

astro@5.17.1

Breaking Changes
📦 astroView on GitHub →
1 breaking🔧 1 symbols

Summary

This patch removes the memory-intensive `getFontBuffer()` helper from the experimental Fonts API. Users relying on this function must implement manual file reading or fetching logic.

⚠️ Breaking Changes

  • The experimental Fonts API no longer exports the `getFontBuffer()` helper function from `astro:assets`. To fix, manually read the file using `node:fs` on prerendered routes, or fetch files using URLs from `fontData` and `context.url` on server rendered routes.

Migration Steps

  1. If you were using `getFontBuffer()` from `astro:assets`, replace it by reading the file using `node:fs` (for prerendered routes) or fetching files using URLs from `fontData` and `context.url` (for server rendered routes).

Affected Symbols