Releases: delucis/astro-og-canvas
Releases · delucis/astro-og-canvas
astro-og-canvas@0.10.1
astro-og-canvas@0.9.0
Minor Changes
-
#117
b94a123Thanks @delucis! - Adds type safety toOGImageRoute. Thepageparameter ingetSlug()andgetImageOptions()is now correctly inferred from the value passed topagesinstead of being typed asany.OGImageRoute({ pages: { example: { title: 'Example Page', description: 'Description of this page shown in smaller text', }, }, getImageOptions: (path, page) => { page; // ^? { title: string; description: string } }, });
⚠️ Potentially breaking change: If you are type checking your code base, you may see type errors if you are accessingpageingetSlug()orgetImageOptions()in a non-type-safe way and will need to either update that code or add some additional types.
astro-og-canvas@0.10.0
Minor Changes
-
#119
151edd2Thanks @delucis! - MakesOGImageRoute()asynchronous.⚠️ BREAKING CHANGE: You must nowawaitthe result ofOGImageRoute():import { OGImageRoute } from 'astro-og-canvas'; - export const { getStaticPaths, GET } = OGImageRoute({ + export const { getStaticPaths, GET } = await OGImageRoute({
Patch Changes
astro-og-canvas@0.8.0
astro-og-canvas@0.7.2
astro-og-canvas@0.7.1
Patch Changes
- e8bb055: Improves handling of cases where OG images are requested to be generated in parallel
astro-og-canvas@0.7.0
Minor Changes
- 5dcccb4: Reverts v0.6.0 changes. NPM was failing to pack bundled dependencies as expected, so this release reverts things to the v0.5.x state until we have time to figure this out.
astro-og-canvas@0.6.0
Minor Changes
- 330c56c: Bundles
canvaskit-wasmto avoid users with strict package managers like PNPM needing to install it directly
astro-og-canvas@0.5.6
Patch Changes
- bb13312: Fixes a README code example
astro-og-canvas@0.5.5
Patch Changes
- ceeecc1: Expands peer dependencies to support Astro v5