File tree Expand file tree Collapse file tree 3 files changed +14
-2
lines changed Expand file tree Collapse file tree 3 files changed +14
-2
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " inngest " : patch
3
+ ---
4
+
5
+ Fix serve ID not considered for in-band syncs
Original file line number Diff line number Diff line change @@ -366,6 +366,12 @@ export class InngestCommHandler<
366
366
367
367
this . frameworkName = options . frameworkName ;
368
368
this . client = options . client as Inngest . Any ;
369
+
370
+ if ( options . id ) {
371
+ console . warn (
372
+ `${ logPrefix } The \`id\` serve option is deprecated and will be removed in v4`
373
+ ) ;
374
+ }
369
375
this . id = options . id || this . client . id ;
370
376
371
377
this . handler = options . handler as Handler ;
@@ -1627,7 +1633,7 @@ export class InngestCommHandler<
1627
1633
} ) ;
1628
1634
1629
1635
const body : InBandRegisterRequest = {
1630
- app_id : this . client . id ,
1636
+ app_id : this . id ,
1631
1637
appVersion : this . client . appVersion ,
1632
1638
capabilities : registerBody . capabilities ,
1633
1639
env,
@@ -1700,7 +1706,7 @@ export class InngestCommHandler<
1700
1706
...introspection ,
1701
1707
authentication_succeeded : true ,
1702
1708
api_origin : this . apiBaseUrl ,
1703
- app_id : this . client . id ,
1709
+ app_id : this . id ,
1704
1710
capabilities : {
1705
1711
trust_probe : "v1" ,
1706
1712
connect : "v1" ,
Original file line number Diff line number Diff line change @@ -850,6 +850,7 @@ export interface RegisterOptions {
850
850
/**
851
851
* The ID of this app. This is used to group functions together in the Inngest
852
852
* UI. The ID of the passed client is used by default.
853
+ * @deprecated Will be removed in v4.
853
854
*/
854
855
id ?: string ;
855
856
}
You can’t perform that action at this time.
0 commit comments