Skip to content

Releases: delucis/astro-og-canvas

astro-og-canvas@0.10.1

01 Feb 11:19
9ec89cf

Choose a tag to compare

Patch Changes

astro-og-canvas@0.9.0

03 Jan 16:05
6f50853

Choose a tag to compare

Minor Changes

  • #117 b94a123 Thanks @delucis! - Adds type safety to OGImageRoute. The page parameter in getSlug() and getImageOptions() is now correctly inferred from the value passed to pages instead of being typed as any.

    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 accessing page in getSlug() or getImageOptions() in a non-type-safe way and will need to either update that code or add some additional types.

  • #117 b94a123 Thanks @delucis! - Exports OGImageOptions type

astro-og-canvas@0.10.0

03 Jan 16:27
e316dc1

Choose a tag to compare

Minor Changes

  • #119 151edd2 Thanks @delucis! - Makes OGImageRoute() asynchronous.

    ⚠️ BREAKING CHANGE: You must now await the result of OGImageRoute():

    import { OGImageRoute } from 'astro-og-canvas';
    
    - export const { getStaticPaths, GET } = OGImageRoute({
    + export const { getStaticPaths, GET } = await OGImageRoute({

Patch Changes

  • #119 151edd2 Thanks @delucis! - Fixes using the built-in getSlug() for OG images with format: "JPEG" or format: "WEBP"

astro-og-canvas@0.8.0

01 Jan 16:00
4f0abfb

Choose a tag to compare

Minor Changes

  • #114 a9f9fd2 Thanks @delucis! - Drops official support for Astro 3 and 4. Use Astro 5 instead.

Patch Changes

astro-og-canvas@0.7.2

12 Oct 21:44
29e1f92

Choose a tag to compare

Patch Changes

  • #100 a5f25e2 Thanks @delucis! - This package is now published using OIDC trusted publishing and provenance guarantees

  • #99 6fc6258 Thanks @delucis! - Updates entities and canvaskit-wasm internal dependencies

astro-og-canvas@0.7.1

06 Oct 14:24
24dad4e

Choose a tag to compare

Patch Changes

  • e8bb055: Improves handling of cases where OG images are requested to be generated in parallel

astro-og-canvas@0.7.0

17 Feb 11:45
55cb813

Choose a tag to compare

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

17 Feb 11:10
2a952d4

Choose a tag to compare

Minor Changes

  • 330c56c: Bundles canvaskit-wasm to avoid users with strict package managers like PNPM needing to install it directly

astro-og-canvas@0.5.6

06 Jan 19:45
8b84bbc

Choose a tag to compare

Patch Changes

  • bb13312: Fixes a README code example

astro-og-canvas@0.5.5

04 Dec 17:41
cd89961

Choose a tag to compare

Patch Changes

  • ceeecc1: Expands peer dependencies to support Astro v5