You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+18Lines changed: 18 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,23 @@
1
1
# Changelog
2
2
3
+
## 10.0.5 (March 15, 2021)
4
+
5
+
**Note 1:** From now on we aligning the versioning schema with the releases of Next.js.
6
+
7
+
**Note 2:** When upgrading from a previous release, you may experience an error from Terraform:
8
+
9
+
```
10
+
Error: error updating CloudFront Distribution:
11
+
InvalidArgument: The parameter ForwardedValues cannot be used when a cache policy is associated to the cache behavior.
12
+
status code: 400
13
+
```
14
+
15
+
This is a known bug in the Terraform AWS provider and may requires a manual upgrade in the AWS Console ([terraform-provider-aws#17626](https://github.com/hashicorp/terraform-provider-aws/issues/17626)).
16
+
17
+
- Fixes wrong response for repeated requests from external source ([#12](https://github.com/dealmore/terraform-aws-next-js-image-optimization/issues/12), [#13](https://github.com/dealmore/terraform-aws-next-js-image-optimization/pull/13))
18
+
- Use Request and Cache Policies in CloudFront distribution ([#5](https://github.com/dealmore/terraform-aws-next-js-image-optimization/issues/5), [#9](https://github.com/dealmore/terraform-aws-next-js-image-optimization/pull/9))
19
+
- Upgrades Lambda runtime from `nodejs12.x` to `nodejs14.x`. ([#4](https://github.com/dealmore/terraform-aws-next-js-image-optimization/issues/4), [#8](https://github.com/dealmore/terraform-aws-next-js-image-optimization/pull/8))
20
+
3
21
## 2.0.1 (March 08, 2021)
4
22
5
23
- Bump internal module `terraform-aws-modules/apigateway-v2/aws` from `0.8.0` to `0.11.0` ([#16](https://github.com/dealmore/terraform-aws-next-js-image-optimization/pull/16), [#18](https://github.com/dealmore/terraform-aws-next-js-image-optimization/pull/18))
| next\_image\_device\_sizes | Allowed device sizes that should be used for image optimization. |`list(number)`|`null`| no |
124
131
| next\_image\_domains | Allowed origin domains that can be used for fetching images. |`list(string)`|`[]`| no |
125
132
| next\_image\_image\_sizes | Allowed image sizes that should be used for image optimization. |`list(number)`|`null`| no |
126
-
| next\_image\_version | Next.js version from where you want to use the image optimizer from. Supports semver ranges. |`string`|`"^10.0.5-beta"`| no |
133
+
| next\_image\_version | Next.js version from where you want to use the image optimizer from. Supports semver ranges. |`string`|`"10.0.5"`| no |
127
134
| source\_bucket\_id | When your static files are deployed to a Bucket (e.g. with Terraform Next.js) the optimizer can pull the source from the bucket rather than over the internet. |`string`|`null`| no |
128
135
| tags | Tag metadata to label AWS resources that support tags. |`map(string)`|`{}`| no |
129
136
@@ -143,23 +150,14 @@ module.exports = {
143
150
144
151
## Versioning
145
152
146
-
We rely on the original Next.js image optimizer, so every version of the internal Lambda component [`@dealmore/tf-next-image-optimization`](https://www.npmjs.com/package/@dealmore/tf-next-image-optimization) follows the versioning schema of the official [Next.js package](https://www.npmjs.com/package/next).
147
-
148
-
By default we use the current major version `^10.0.5` of Next.js as base, so each deployment of the Terraform module pulls the latest package from this range.
149
-
150
-
However if you have problems with a specific version Next.js you can override this setting with a fixed version number or semver range:
153
+
We rely internally on the original Next.js image optimizer.
154
+
So the versioning of the module is aligned with the version of the corresponding Next.js release.
For example the [`v10.0.5`](https://github.com/dealmore/terraform-aws-next-js-image-optimization/releases/tag/v10.0.5) version of this Terraform module uses the image optimizer from the [Next.js 10.0.5 release](https://github.com/vercel/next.js/releases/tag/v10.0.5).
Due to compatibility issues we are not able to provide a matching version for every Next.js release.
161
159
162
-
Please note that we only publish versions `>=10.0.5`, for a full list of available versions see this [npm page](https://www.npmjs.com/package/@dealmore/tf-next-image-optimization?activeTab=versions).
160
+
Please note that we only publish versions `>=10.0.5`, for a full list of available versions see the published versions in the [Terraform Registry](https://registry.terraform.io/modules/dealmore/next-js-image-optimization/aws).
0 commit comments