diff --git a/.changeset/polite-wombats-play.md b/.changeset/polite-wombats-play.md new file mode 100644 index 000000000..fac2ca632 --- /dev/null +++ b/.changeset/polite-wombats-play.md @@ -0,0 +1,5 @@ +--- +'@astrojs/image': patch +--- + +Updated error message for missing `widths` prop to provide an example diff --git a/.changeset/strange-olives-rest.md b/.changeset/strange-olives-rest.md new file mode 100644 index 000000000..d183c93cf --- /dev/null +++ b/.changeset/strange-olives-rest.md @@ -0,0 +1,5 @@ +--- +"@astrojs/image": patch +--- + +Allow passing `undefined` to TransformOptions, this is a types fix for users with `exactOptionalTypes` enabled in their tsconfig diff --git a/packages/integrations/image/src/lib/get-picture.ts b/packages/integrations/image/src/lib/get-picture.ts index 37fea6de4..2ecfc0d5b 100644 --- a/packages/integrations/image/src/lib/get-picture.ts +++ b/packages/integrations/image/src/lib/get-picture.ts @@ -51,7 +51,7 @@ export async function getPicture(params: GetPictureParams): Promise {