Skip to content

Commit 10f0a3e

Browse files
merge commit
2 parents ebb9497 + 8585d91 commit 10f0a3e

File tree

15 files changed

+87
-38
lines changed

15 files changed

+87
-38
lines changed

.github/workflows/lint.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Lint
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
9+
jobs:
10+
lint:
11+
name: Lint
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v2
16+
17+
- name: Cache
18+
uses: actions/cache@v2
19+
with:
20+
path: |
21+
.yarn
22+
**/node_modules
23+
key: ${{ runner.os }}-${{ hashFiles('yarn.lock') }}
24+
25+
- name: Install Dependencies
26+
run: yarn --frozen-lockfile --cache-folder .yarn
27+
28+
- name: Lint Prettier
29+
run: yarn lint:prettier

.prettierignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Vercel
2+
.vercel
3+
4+
# Terraform
5+
.terraform
6+
*.tfstate
7+
*.tfstate.*
8+
9+
# Build output
10+
dist

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changelog
22

3+
## 10.0.8 (April 26, 2021)
4+
5+
- Makes the module compatible with Terraform `0.15` ([#26](https://github.com/dealmore/terraform-aws-next-js-image-optimization/issues/26), [#29](https://github.com/dealmore/terraform-aws-next-js-image-optimization/pull/29))
6+
- Uses Image Optimizer module of [Next.js 10.0.8](https://github.com/vercel/next.js/releases/tag/v10.0.8) ([#19](https://github.com/dealmore/terraform-aws-next-js-image-optimization/pull/19))
7+
38
## 10.0.7 (April 01, 2021)
49

510
- Uses Image Optimizer module of [Next.js 10.0.7](https://github.com/vercel/next.js/releases/tag/v10.0.7) ([#10](https://github.com/dealmore/terraform-aws-next-js-image-optimization/pull/10))

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ module.exports = {
130130
| next\_image\_device\_sizes | Allowed device sizes that should be used for image optimization. | `list(number)` | `null` | no |
131131
| next\_image\_domains | Allowed origin domains that can be used for fetching images. | `list(string)` | `[]` | no |
132132
| next\_image\_image\_sizes | Allowed image sizes that should be used for image optimization. | `list(number)` | `null` | no |
133-
| next\_image\_version | Next.js version from where you want to use the image optimizer from. Supports semver ranges. | `string` | `"10.0.7"` | no |
133+
| next\_image\_version | Next.js version from where you want to use the image optimizer from. Supports semver ranges. | `string` | `"10.0.8"` | no |
134134
| 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 |
135135
| tags | Tag metadata to label AWS resources that support tags. | `map(string)` | `{}` | no |
136136

examples/with-next-js/components/view-source.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { svg, arm } from './view-source.module.css'
1+
import { svg, arm } from './view-source.module.css';
22

33
const ViewSource = ({ pathname }) => (
44
<svg
@@ -21,6 +21,6 @@ const ViewSource = ({ pathname }) => (
2121
<path d="M115 115s4 2 5 0l14-14c3-2 6-3 8-3-8-11-15-24 2-41 5-5 10-7 16-7 1-2 3-7 12-11 0 0 5 3 7 16 4 2 8 5 12 9s7 8 9 12c14 3 17 7 17 7-4 8-9 11-11 11 0 6-2 11-7 16-16 16-30 10-41 2 0 3-1 7-5 11l-12 11c-1 1 1 5 1 5z" />
2222
</a>
2323
</svg>
24-
)
24+
);
2525

26-
export default ViewSource
26+
export default ViewSource;
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import '../app.css'
1+
import '../app.css';
22

33
export default function MyApp({ Component, pageProps }) {
4-
return <Component {...pageProps} />
4+
return <Component {...pageProps} />;
55
}

examples/with-next-js/pages/background.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import Image from 'next/image'
2-
import ViewSource from '../components/view-source'
3-
import { bgWrap, bgText } from '../styles.module.css'
1+
import Image from 'next/image';
2+
import ViewSource from '../components/view-source';
3+
import { bgWrap, bgText } from '../styles.module.css';
44

55
const Background = () => (
66
<div>
@@ -20,6 +20,6 @@ const Background = () => (
2020
as a Background
2121
</p>
2222
</div>
23-
)
23+
);
2424

25-
export default Background
25+
export default Background;

examples/with-next-js/pages/index.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import styles from '../styles.module.css'
2-
import Image from 'next/image'
3-
import Link from 'next/link'
4-
import ViewSource from '../components/view-source'
1+
import styles from '../styles.module.css';
2+
import Image from 'next/image';
3+
import Link from 'next/link';
4+
import ViewSource from '../components/view-source';
55

6-
const Code = (p) => <code className={styles.inlineCode} {...p} />
6+
const Code = (p) => <code className={styles.inlineCode} {...p} />;
77

88
const Index = () => (
99
<div className={styles.container}>
@@ -102,6 +102,6 @@ const Index = () => (
102102
</p>
103103
</div>
104104
</div>
105-
)
105+
);
106106

107-
export default Index
107+
export default Index;

examples/with-next-js/pages/layout-fill.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import Image from 'next/image'
2-
import ViewSource from '../components/view-source'
1+
import Image from 'next/image';
2+
import ViewSource from '../components/view-source';
33

44
const Fill = () => (
55
<div>
@@ -31,6 +31,6 @@ const Fill = () => (
3131
/>
3232
</div>
3333
</div>
34-
)
34+
);
3535

36-
export default Fill
36+
export default Fill;

examples/with-next-js/pages/layout-fixed.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import Image from 'next/image'
2-
import ViewSource from '../components/view-source'
1+
import Image from 'next/image';
2+
import ViewSource from '../components/view-source';
33

44
const Fixed = () => (
55
<div>
@@ -13,6 +13,6 @@ const Fixed = () => (
1313
height={475}
1414
/>
1515
</div>
16-
)
16+
);
1717

18-
export default Fixed
18+
export default Fixed;

0 commit comments

Comments
 (0)