Skip to content

Commit 7ebf238

Browse files
fix(deps): update dependency @netlify/edge-bundler to v8 (#5333)
* fix(deps): update dependency @netlify/edge-bundler to v8 * chore: fix tests Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Eduardo Bouças <[email protected]>
1 parent 12664f3 commit 7ebf238

File tree

4 files changed

+14
-14
lines changed

4 files changed

+14
-14
lines changed

npm-shrinkwrap.json

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@
232232
"dependencies": {
233233
"@netlify/build": "^29.2.1",
234234
"@netlify/config": "^20.2.0",
235-
"@netlify/edge-bundler": "^7.1.0",
235+
"@netlify/edge-bundler": "^8.0.0",
236236
"@netlify/framework-info": "^9.5.3",
237237
"@netlify/local-functions-proxy": "^1.1.1",
238238
"@netlify/zip-it-and-ship-it": "^8.2.0",

tests/integration/100.command.dev.test.cjs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -688,7 +688,7 @@ test('should respect in-source configuration from edge functions', async (t) =>
688688
},
689689
})
690690
.withEdgeFunction({
691-
config: () => ({ path: '/hello-1' }),
691+
config: { path: '/hello-1' },
692692
handler: () => new Response('Hello world'),
693693
name: 'hello',
694694
})
@@ -707,7 +707,7 @@ test('should respect in-source configuration from edge functions', async (t) =>
707707

708708
await builder
709709
.withEdgeFunction({
710-
config: () => ({ path: '/hello-2' }),
710+
config: { path: '/hello-2' },
711711
handler: () => new Response('Hello world'),
712712
name: 'hello',
713713
})
@@ -739,7 +739,7 @@ test('should respect in-source configuration from internal edge functions', asyn
739739
},
740740
})
741741
.withEdgeFunction({
742-
config: () => ({ path: '/internal-1' }),
742+
config: { path: '/internal-1' },
743743
handler: () => new Response('Hello from an internal function'),
744744
internal: true,
745745
name: 'internal',
@@ -759,7 +759,7 @@ test('should respect in-source configuration from internal edge functions', asyn
759759

760760
await builder
761761
.withEdgeFunction({
762-
config: () => ({ path: '/internal-2' }),
762+
config: { path: '/internal-2' },
763763
handler: () => new Response('Hello from an internal function'),
764764
internal: true,
765765
name: 'internal',
@@ -796,7 +796,7 @@ test('Serves edge functions with import maps coming from the `functions.deno_imp
796796
},
797797
})
798798
.withEdgeFunction({
799-
config: () => ({ path: '/greet' }),
799+
config: { path: '/greet' },
800800
handler: `import { greet } from "greeter"; export default async () => new Response(greet("Netlify"))`,
801801
name: 'greet',
802802
})

tests/integration/utils/site-builder.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ const createSiteBuilder = ({ siteName }) => {
8080
let content = typeof handler === 'string' ? handler : `export default ${handler.toString()}`
8181

8282
if (config) {
83-
content += `;export const config = ${config.toString()}`
83+
content += `;export const config = ${JSON.stringify(config)}`
8484
}
8585

8686
await ensureDir(path.dirname(dest))

0 commit comments

Comments
 (0)