Skip to content

Commit df76359

Browse files
renovate[bot]mrstorkpieh
authored
chore(deps): update dependency @netlify/functions to ^3.0.4 (#2791)
* chore(deps): update dependency @netlify/functions to ^3.0.4 * chore: remove FutureContext now that waitUntil type is defined --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Mateusz Bocian <mrstork@users.noreply.github.com> Co-authored-by: Michal Piechowiak <misiek.piechowiak@gmail.com>
1 parent a2881bf commit df76359

File tree

3 files changed

+11
-56
lines changed

3 files changed

+11
-56
lines changed

package-lock.json

+9-49
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
@@ -54,7 +54,7 @@
5454
"@netlify/edge-bundler": "^12.3.3",
5555
"@netlify/edge-functions": "^2.11.1",
5656
"@netlify/eslint-config-node": "^7.0.1",
57-
"@netlify/functions": "^3.0.0",
57+
"@netlify/functions": "^3.0.4",
5858
"@netlify/serverless-functions-api": "^1.36.0",
5959
"@netlify/zip-it-and-ship-it": "^10.0.4",
6060
"@opentelemetry/api": "^1.8.0",

src/run/handlers/request-context.cts

+1-6
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,6 @@ import type { NetlifyCachedRouteValue } from '../../shared/cache-types.cjs'
77

88
type SystemLogger = typeof systemLogger
99

10-
// TODO: remove once public types are updated
11-
export interface FutureContext extends Context {
12-
waitUntil?: (promise: Promise<unknown>) => void
13-
}
14-
1510
export type RequestContext = {
1611
/**
1712
* Determine if this request is for CDN SWR background revalidation
@@ -56,7 +51,7 @@ function getFallbackRequestID() {
5651
return `#${requestNumber}`
5752
}
5853

59-
export function createRequestContext(request?: Request, context?: FutureContext): RequestContext {
54+
export function createRequestContext(request?: Request, context?: Context): RequestContext {
6055
const backgroundWorkPromises: Promise<unknown>[] = []
6156

6257
const isDebugRequest =

0 commit comments

Comments
 (0)