Skip to content

fix: assert syntax replaced by with for deno@v2 and node@22 compatibility #2886

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: v4
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/runtime/src/templates/edge/middleware-runtime.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import type { Context } from 'https://edge.netlify.com'
// Available at build time
import matchers from './matchers.json' assert { type: 'json' }
import matchers from './matchers.json' with { type: 'json' }
import edgeFunction from './bundle.js'
import { buildNextRequest, buildResponse } from '../edge-shared/utils.ts'
import { getMiddlewareRouteMatcher, MiddlewareRouteMatch, searchParamsToUrlQuery } from '../edge-shared/next-utils.ts'
import nextConfig from '../edge-shared/nextConfig.json' assert { type: 'json' }
import nextConfig from '../edge-shared/nextConfig.json' with { type: 'json' }

const matchesMiddleware: MiddlewareRouteMatch = getMiddlewareRouteMatcher(matchers || [])

Expand Down
2 changes: 1 addition & 1 deletion packages/runtime/src/templates/edge/rsc-data.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import prerenderManifest from '../edge-shared/prerender-manifest.json' assert { type: 'json' }
import prerenderManifest from '../edge-shared/prerender-manifest.json' with { type: 'json' }
import { getRscDataRouter, PrerenderManifest } from '../edge-shared/rsc-data.ts'

const handler = getRscDataRouter(prerenderManifest as PrerenderManifest)
Expand Down
Loading