Skip to content

Commit d36d9bf

Browse files
authored
Merge branch 'main' into minivan/free-github-squares
2 parents 97dcdc7 + 6a2c39c commit d36d9bf

31 files changed

+278
-55
lines changed

.github/workflows/pre-release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ jobs:
2323
- name: Install Deno
2424
uses: denoland/setup-deno@v1
2525
with:
26-
# Should match the `DENO_VERSION_RANGE` from https://github.com/netlify/edge-bundler/blob/e55f825bd985d3c92e21d1b765d71e70d5628fba/node/bridge.ts#L17
27-
deno-version: v1.37.0
26+
# Should match the `DENO_VERSION_RANGE` from https://github.com/netlify/build/blob/main/packages/edge-bundler/node/bridge.ts#L20
27+
deno-version: v1.44.4
2828
- name: Extract tag and version
2929
id: extract
3030
run: |-

.github/workflows/release-please.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ jobs:
3131
- name: Install Deno
3232
uses: denoland/setup-deno@v1
3333
with:
34-
# Should match the `DENO_VERSION_RANGE` from https://github.com/netlify/edge-bundler/blob/e55f825bd985d3c92e21d1b765d71e70d5628fba/node/bridge.ts#L17
35-
deno-version: v1.37.0
34+
# Should match the `DENO_VERSION_RANGE` from https://github.com/netlify/build/blob/main/packages/edge-bundler/node/bridge.ts#L20
35+
deno-version: v1.44.4
3636
- name: Build
3737
run: npm run build
3838
if: ${{ steps.release.outputs.release_created }}

.github/workflows/run-tests.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ jobs:
6565
- name: Install Deno
6666
uses: denoland/setup-deno@v1
6767
with:
68-
# Should match the `DENO_VERSION_RANGE` from https://github.com/netlify/edge-bundler/blob/main/node/bridge.ts#L17
69-
deno-version: v1.37.0
68+
# Should match the `DENO_VERSION_RANGE` from https://github.com/netlify/build/blob/main/packages/edge-bundler/node/bridge.ts#L20
69+
deno-version: v1.44.4
7070
- name: 'Install dependencies'
7171
run: npm ci
7272
- name: 'Prepare Netlify CLI'
@@ -134,7 +134,7 @@ jobs:
134134
uses: denoland/setup-deno@v1
135135
with:
136136
# Should match the `DENO_VERSION_RANGE` from https://github.com/netlify/edge-bundler/blob/e55f825bd985d3c92e21d1b765d71e70d5628fba/node/bridge.ts#L17
137-
deno-version: v1.37.0
137+
deno-version: v1.44.4
138138
- name: 'Install dependencies'
139139
run: npm ci
140140
- name: 'Build'
@@ -198,8 +198,8 @@ jobs:
198198
- name: Install Deno
199199
uses: denoland/setup-deno@v1
200200
with:
201-
# Should match the `DENO_VERSION_RANGE` from https://github.com/netlify/edge-bundler/blob/main/node/bridge.ts#L17
202-
deno-version: v1.37.0
201+
# Should match the `DENO_VERSION_RANGE` from https://github.com/netlify/build/blob/main/packages/edge-bundler/node/bridge.ts#L20
202+
deno-version: v1.44.4
203203
- name: 'Install dependencies'
204204
run: npm ci
205205
- name: 'Build'

.github/workflows/size-check.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ jobs:
2323
- name: Install Deno
2424
uses: denoland/setup-deno@v1
2525
with:
26-
# Should match the `DENO_VERSION_RANGE` from https://github.com/netlify/edge-bundler/blob/main/node/bridge.ts#L17
27-
deno-version: v1.37.0
26+
# Should match the `DENO_VERSION_RANGE` from https://github.com/netlify/build/blob/main/packages/edge-bundler/node/bridge.ts#L20
27+
deno-version: v1.44.4
2828
- run: npm ci
2929

3030
- name: Package size report

.github/workflows/test-e2e.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,8 @@ jobs:
161161
- name: Install Deno
162162
uses: denoland/setup-deno@v1
163163
with:
164-
# Should match the `DENO_VERSION_RANGE` from https://github.com/netlify/edge-bundler/blob/main/node/bridge.ts#L17
165-
deno-version: v1.37.0
164+
# Should match the `DENO_VERSION_RANGE` from https://github.com/netlify/build/blob/main/packages/edge-bundler/node/bridge.ts#L20
165+
deno-version: v1.44.4
166166

167167
- name: install runtime
168168
run: npm install --ignore-scripts

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "5.8.1"
2+
".": "5.9.1"
33
}

CHANGELOG.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,24 @@
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+
10+
## [5.9.0](https://github.com/opennextjs/opennextjs-netlify/compare/v5.8.1...v5.9.0) (2024-12-09)
11+
12+
13+
### Features
14+
15+
* support after() ([#2717](https://github.com/opennextjs/opennextjs-netlify/issues/2717)) ([51e5373](https://github.com/opennextjs/opennextjs-netlify/commit/51e5373e4914e9b76edf439e8de01c561742bdaa))
16+
17+
18+
### Bug Fixes
19+
20+
* add data request query param to the cache key ([#2701](https://github.com/opennextjs/opennextjs-netlify/issues/2701)) ([00e3a4b](https://github.com/opennextjs/opennextjs-netlify/commit/00e3a4be19bf8428ea6ce1ed2ae74a8ac8375532))
21+
322
## [5.8.1](https://github.com/netlify/next-runtime/compare/v5.8.0...v5.8.1) (2024-10-21)
423

524

deno.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,6 @@
66
},
77
"imports": {
88
"@netlify/edge-functions": "https://edge.netlify.com/v1/index.ts"
9-
}
9+
},
10+
"importMap": "./edge-runtime/vendor/import_map.json"
1011
}

edge-runtime/lib/middleware.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { Context } from '@netlify/edge-functions'
22

3-
import { ElementHandlers } from '../vendor/deno.land/x/[email protected]/index.ts'
3+
import type { ElementHandlers } from '../vendor/deno.land/x/[email protected]/src/index.ts'
44

55
type NextDataTransform = <T>(data: T) => T
66

edge-runtime/lib/response.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
import type { Context } from '@netlify/edge-functions'
2-
import { HTMLRewriter } from '../vendor/deno.land/x/[email protected]/index.ts'
2+
import {
3+
HTMLRewriter,
4+
type TextChunk,
5+
} from '../vendor/deno.land/x/[email protected]/src/index.ts'
36

47
import { updateModifiedHeaders } from './headers.ts'
58
import type { StructuredLogger } from './logging.ts'
@@ -79,7 +82,7 @@ export const buildResponse = async ({
7982

8083
if (response.dataTransforms.length > 0) {
8184
rewriter.on('script[id="__NEXT_DATA__"]', {
82-
text(textChunk) {
85+
text(textChunk: TextChunk) {
8386
// Grab all the chunks in the Next data script tag
8487
buffer += textChunk.text
8588
if (textChunk.lastInTextNode) {

0 commit comments

Comments
 (0)