Skip to content

v12.0.0

Compare
Choose a tag to compare
@ofhouse ofhouse released this 28 Nov 16:56
· 106 commits to main since this release

This release introduces a new package called Pixel that abstracts the image optimization stuff and makes it usable with platforms other than AWS Lambda.
We plan to offer multiple flavors of it, like express middleware or docker images.

⚠️ Breaking Changes ⚠️

We have removed the output variable cloudfront_origin_image_optimizer that was deprecated since the v11.0.0 release.
To upgrade, please use the output variable cloudfront_origin from now on.

E.g. when using the "With existing CloudFront distribution example" you should make the following changes:

module "next_image_optimizer" {
  source = "milliHQ/next-js-image-optimization/aws"
  ...
}

resource "aws_cloudfront_distribution" "distribution" {
  ...

  dynamic "origin" {
-   for_each = [module.next_image_optimizer.cloudfront_origin_image_optimizer]
+   for_each = [module.next_image_optimizer.cloudfront_origin]
   ...
  }
}

Changelog

  • Uses Image Optimizer module of Next.js 12.0.0 (#80)
  • Add support for AVIF (#73, #92)
  • Fixes "Error while trying to add new domain" bug (#68, #69)
  • Remove random strings from resource names (#72, #77)
  • Bump sharp from 0.29.1 to 0.29.3 (#79, #85)
  • Remove deprecated output cloudfront_origin_image_optimizer (#78, #82)
  • Remove referer header from cache key when S3 is used (#87, #91)