Skip to content

chore(deps): bump astro-font from 1.1.0 to 1.2.0 - #35

Closed
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/astro-font-1.2.0
Closed

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/astro-font-1.2.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Aug 13, 2026 •

Copy link
Copy Markdown

Bumps astro-font from 1.1.0 to 1.2.0.

Release notes

Sourced from astro-font's releases.

[email protected]

With astro-font@^1.2.0, the library now:

  • adds an (optional) assetsPrefix so preloaded and self-hosted fonts can be served from a CDN. Set it globally on the component, or per-font in the config:
  <AstroFont
+  assetsPrefix="https://cdn.example.com"
    config={[
      {
        name: 'Custom Font',
        src: [/* ... */],
        preload: true,
        display: 'swap',
+       assetsPrefix: 'https://cdn.example.com', // per-font override
      },
    ]}
  />
  • exposes font-data utilities for use with Satori (OG images) and API endpoints — resolve a font config and read the raw bytes or URLs without rendering the component:
import { getFontData, getFontURL, getFonts } from 'astro-font/utils'
// ArrayBuffer of the matching font file (e.g. to feed Satori)
const data = await getFontData('Inter', config, { weight: 400, style: 'normal' })

New exports include getFontData, getFonts, getFontURL, getFontURLs, resolveFonts, clearResolvedFontsCache, and generatePublicUrl.

  • caches font resolution across renders, so a single config shared by many pages fetches the upstream Google Fonts CSS once per build instead of once per page. The <AstroFont /> component now resolves through resolveFonts() internally.

  • degrades gracefully when Google Fonts is unreachable: instead of failing the build (or dev render), it warns and falls back to the configured fallback font.

  • resolves the build output directory with fileURLToPath, fixing font bundling with the integration on Windows.

Commits
  • 3fa8565 release: [email protected]
  • ab2a4ac Merge pull request #41 from rishi-raj-jain/cursor/assets-prefix-6580
  • 46f4751 docs: add assetsPrefix demo page and README examples
  • 5acbd29 feat: add assetsPrefix support for CDN deployments
  • 2c73bc5 Merge pull request #37 from itosa-kazu/codex/fix-utils-export-path
  • 3aaf776 Merge pull request #38 from elevenland48-crypto/codex/fix-utils-export-path
  • d78013c Update README.md
  • c8840de Merge pull request #40 from rishi-raj-jain/cursor/get-font-data-6580
  • 82da6e5 fix: address CodeRabbit review feedback on font utilities
  • 4a6a7d5 feat: add getFontData utilities for Satori and endpoint use
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [astro-font](https://github.com/rishi-raj-jain/astro-font) from 1.1.0 to 1.2.0.
- [Release notes](https://github.com/rishi-raj-jain/astro-font/releases)
- [Commits](rishi-raj-jain/astro-font@1.1.0...1.2.0)

---
updated-dependencies:
- dependency-name: astro-font
  dependency-version: 1.2.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Aug 13, 2026
@vercel

vercel Bot commented Aug 13, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
ephbaumdotdev Ready Ready Preview Aug 13, 2026 7:19am

@dependabot @github

dependabot Bot commented on behalf of github Aug 13, 2026

Copy link
Copy Markdown
Author

Looks like astro-font is up-to-date now, so this is no longer needed.

@dependabot dependabot Bot closed this Aug 13, 2026
@dependabot
dependabot Bot deleted the dependabot/npm_and_yarn/astro-font-1.2.0 branch August 13, 2026 21:54

This branch was successfully deployed

1 active deployment
Preview — 24621e34 Deployed Aug 13, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants