Skip to content

Commit d0a7f47

Browse files
authored
Merge branch 'main' into fix/noop-empty-revalidate-tags
2 parents 28339a3 + f00b542 commit d0a7f47

6 files changed

+31
-12
lines changed

.release-please-manifest.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "5.9.0"
2+
".": "5.9.1"
33
}

CHANGELOG.md

+7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Changelog
22

3+
## [5.9.1](https://github.com/opennextjs/opennextjs-netlify/compare/v5.9.0...v5.9.1) (2024-12-18)
4+
5+
6+
### Bug Fixes
7+
8+
* use version of htmlrewriter which does not make use of asyncify, which looks to have a potential memory leak under high load ([#2721](https://github.com/opennextjs/opennextjs-netlify/issues/2721)) ([4d7ad97](https://github.com/opennextjs/opennextjs-netlify/commit/4d7ad97c3f16b01000989bde06352f86b5d526ba))
9+
310
## [5.9.0](https://github.com/opennextjs/opennextjs-netlify/compare/v5.8.1...v5.9.0) (2024-12-09)
411

512

package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@netlify/plugin-nextjs",
3-
"version": "5.9.0",
3+
"version": "5.9.1",
44
"description": "Run Next.js seamlessly on Netlify",
55
"main": "./dist/index.js",
66
"type": "module",

tests/e2e/export.test.ts

+4-2
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,10 @@ test.describe('next/image is using Netlify Image CDN', () => {
6464

6565
expect(nextImageResponse.status()).toBe(200)
6666
// ensure next/image is using Image CDN
67-
// source image is jpg, but when requesting it through Image CDN avif will be returned
68-
expect(await nextImageResponse.headerValue('content-type')).toEqual('image/avif')
67+
// source image is jpg, but when requesting it through Image CDN avif or webp will be returned
68+
expect(['image/avif', 'image/webp']).toContain(
69+
await nextImageResponse.headerValue('content-type'),
70+
)
6971

7072
await expectImageWasLoaded(page.locator('img'))
7173
})

tests/e2e/simple-app.test.ts

+16-6
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,10 @@ test.describe('next/image is using Netlify Image CDN', () => {
119119

120120
expect(nextImageResponse.status()).toBe(200)
121121
// ensure next/image is using Image CDN
122-
// source image is jpg, but when requesting it through Image CDN avif will be returned
123-
expect(await nextImageResponse.headerValue('content-type')).toEqual('image/avif')
122+
// source image is jpg, but when requesting it through Image CDN avif or webp will be returned
123+
expect(['image/avif', 'image/webp']).toContain(
124+
await nextImageResponse.headerValue('content-type'),
125+
)
124126

125127
await expectImageWasLoaded(page.locator('img'))
126128
})
@@ -142,7 +144,9 @@ test.describe('next/image is using Netlify Image CDN', () => {
142144
)
143145

144146
expect(nextImageResponse.status()).toBe(200)
145-
expect(await nextImageResponse.headerValue('content-type')).toEqual('image/avif')
147+
expect(['image/avif', 'image/webp']).toContain(
148+
await nextImageResponse.headerValue('content-type'),
149+
)
146150

147151
await expectImageWasLoaded(page.locator('img'))
148152
})
@@ -164,7 +168,9 @@ test.describe('next/image is using Netlify Image CDN', () => {
164168
)
165169

166170
expect(nextImageResponse.status()).toBe(200)
167-
expect(await nextImageResponse.headerValue('content-type')).toEqual('image/avif')
171+
expect(['image/avif', 'image/webp']).toContain(
172+
await nextImageResponse.headerValue('content-type'),
173+
)
168174

169175
await expectImageWasLoaded(page.locator('img'))
170176
})
@@ -183,7 +189,9 @@ test.describe('next/image is using Netlify Image CDN', () => {
183189
)
184190

185191
expect(nextImageResponse?.status()).toBe(200)
186-
expect(await nextImageResponse.headerValue('content-type')).toEqual('image/avif')
192+
expect(['image/avif', 'image/webp']).toContain(
193+
await nextImageResponse.headerValue('content-type'),
194+
)
187195

188196
await expectImageWasLoaded(page.locator('img'))
189197
})
@@ -203,7 +211,9 @@ test.describe('next/image is using Netlify Image CDN', () => {
203211
)
204212

205213
expect(nextImageResponse.status()).toEqual(200)
206-
expect(await nextImageResponse.headerValue('content-type')).toEqual('image/avif')
214+
expect(['image/avif', 'image/webp']).toContain(
215+
await nextImageResponse.headerValue('content-type'),
216+
)
207217

208218
await expectImageWasLoaded(page.locator('img'))
209219
})

0 commit comments

Comments
 (0)