Skip to content
verdict:

Astro 5.16.14

digest

note: no summary for this digest release

Digest releases are listed without a summary. The original release notes for this version are below.

release-notesgithub.com/withastro/astro · 64 lines
  1. ### Patch Changes
  2. - [#15213](https://github.com/withastro/astro/pull/15213) [`c775fce`](https://github.com/withastro/astro/commit/c775fce98f50001bc59025dceaf8ea5287675f17) Thanks [@florian-lefebvre](https://github.com/florian-lefebvre)! - **BREAKING CHANGE to the experimental Fonts API only**
  3. Updates how the local provider must be used when using the experimental Fonts API
  4. Previously, there were 2 kinds of font providers: remote and local.
  5. Font providers are now unified. If you are using the local provider, the process for configuring local fonts must be updated:
  6. ```diff
  7. -import { defineConfig } from "astro/config";
  8. +import { defineConfig, fontProviders } from "astro/config";
  9. export default defineConfig({
  10. experimental: {
  11. fonts: [{
  12. name: "Custom",
  13. cssVariable: "--font-custom",
  14. - provider: "local",
  15. + provider: fontProviders.local(),
  16. + options: {
  17. variants: [
  18. {
  19. weight: 400,
  20. style: "normal",
  21. src: ["./src/assets/fonts/custom-400.woff2"]
  22. },
  23. {
  24. weight: 700,
  25. style: "normal",
  26. src: ["./src/assets/fonts/custom-700.woff2"]
  27. }
  28. // ...
  29. ]
  30. + }
  31. }]
  32. }
  33. });
  34. ```
  35. Once configured, there is no change to using local fonts in your project. However, you should inspect your deployed site to confirm that your new font configuration is being applied.
  36. See [the experimental Fonts API docs](https://docs.astro.build/en/reference/experimental-flags/fonts/) for more information.
  37. - [#15213](https://github.com/withastro/astro/pull/15213) [`c775fce`](https://github.com/withastro/astro/commit/c775fce98f50001bc59025dceaf8ea5287675f17) Thanks [@florian-lefebvre](https://github.com/florian-lefebvre)! - Exposes `root` on `FontProvider` `init()` context
  38. When building a custom `FontProvider` for the experimental Fonts API, the `init()` method receives a `context`. This context now exposes a `root` URL, useful for resolving local files:
  39. ```diff
  40. import type { FontProvider } from "astro";
  41. export function registryFontProvider(): FontProvider {
  42. return {
  43. // ...
  44. - init: async ({ storage }) => {
  45. + init: async ({ storage, root }) => {
  46. // ...
  47. },
  48. };
  49. }
  50. ```
  51. - [#15185](https://github.com/withastro/astro/pull/15185) [`edabeaa`](https://github.com/withastro/astro/commit/edabeaa3cd3355fa33e4eb547656033fe7b66845) Thanks [@EricGrill](https://github.com/EricGrill)! - Add `.vercel` to `.gitignore` when adding the Vercel adapter via `astro add vercel`

view on githubimported 2026-09-28 via npm