File tree Expand file tree Collapse file tree 2 files changed +12
-5
lines changed Expand file tree Collapse file tree 2 files changed +12
-5
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " @browserbasehq/stagehand-lib " : patch
3
+ ---
4
+
5
+ dont log deprecation warning when onlyVisible is undefined
Original file line number Diff line number Diff line change @@ -751,7 +751,7 @@ ${scriptContent} \
751
751
modelClientOptions,
752
752
domSettleTimeoutMs,
753
753
returnAction = true ,
754
- onlyVisible = false ,
754
+ onlyVisible,
755
755
drawOverlay,
756
756
} = options ;
757
757
@@ -783,10 +783,12 @@ ${scriptContent} \
783
783
value : llmClient . modelName ,
784
784
type : "string" ,
785
785
} ,
786
- onlyVisible : {
787
- value : onlyVisible ? "true" : "false" ,
788
- type : "boolean" ,
789
- } ,
786
+ ...( onlyVisible !== undefined && {
787
+ onlyVisible : {
788
+ value : onlyVisible ? "true" : "false" ,
789
+ type : "boolean" ,
790
+ } ,
791
+ } ) ,
790
792
} ,
791
793
} ) ;
792
794
You can’t perform that action at this time.
0 commit comments