File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -590,7 +590,7 @@ globalThis.bootstrapSBEdge = (opts, ctx) => {
590
590
setLanguage ( "en" ) ;
591
591
592
592
core . addMainModuleHandler ( ( main ) => {
593
- if ( migrated ) {
593
+ if ( migrated && ! ctx ?. suppressEszipMigrationWarning ) {
594
594
globalThis . console . warn (
595
595
"It appears this function was deployed using an older version of Supabase CLI.\n" ,
596
596
"For best performance and compatibility we recommend re-deploying the function using the latest version of the CLI." ,
Original file line number Diff line number Diff line change @@ -43,6 +43,14 @@ interface PermissionsOptions {
43
43
allow_import ?: string [ ] | null ;
44
44
}
45
45
46
+ interface UserWorkerCreateContext {
47
+ sourceMap ?: boolean | null ;
48
+ importMapPath ?: string | null ;
49
+ shouldBootstrapMockFnThrowError ?: boolean | null ;
50
+ suppressEszipMigrationWarning ?: boolean | null ;
51
+ useReadSyncFileAPI ?: boolean | null ;
52
+ }
53
+
46
54
interface UserWorkerCreateOptions {
47
55
servicePath ?: string | null ;
48
56
envVars ?: string [ ] [ ] | [ string , string ] [ ] | null ;
@@ -67,7 +75,7 @@ interface UserWorkerCreateOptions {
67
75
s3FsConfig ?: S3FsConfig | null ;
68
76
tmpFsConfig ?: TmpFsConfig | null ;
69
77
70
- context ?: { [ key : string ] : unknown } | null ;
78
+ context ?: UserWorkerCreateContext | null ;
71
79
}
72
80
73
81
interface HeapStatistics {
@@ -178,5 +186,6 @@ declare namespace Supabase {
178
186
declare namespace Deno {
179
187
export namespace errors {
180
188
class WorkerRequestCancelled extends Error { }
189
+ class WorkerAlreadyRetired extends Error { }
181
190
}
182
191
}
You can’t perform that action at this time.
0 commit comments