@@ -5,17 +5,10 @@ import { nanoid } from 'nanoid';
5
5
import { SauceLabsLauncher } from './SauceLabsLauncher.js' ;
6
6
import { SauceLabsLauncherManager } from './SauceLabsLauncherManager.js' ;
7
7
8
- type LegacySauceConnectOptions = {
9
- /**
10
- * @deprecated Use `tunnelName` instead.
11
- */
12
- tunnelIdentifier ?: string ;
13
- } ;
14
-
15
8
export function createSauceLabsLauncher (
16
9
saucelabsOptions : SauceLabsOptions ,
17
10
saucelabsCapabilities ?: WebdriverIO . Capabilities [ 'sauce:options' ] ,
18
- sauceConnectOptions ?: SauceConnectOptions & LegacySauceConnectOptions ,
11
+ sauceConnectOptions ?: SauceConnectOptions ,
19
12
) {
20
13
if ( saucelabsOptions == null ) {
21
14
throw new Error ( 'Options are required to set user and key.' ) ;
@@ -34,14 +27,7 @@ export function createSauceLabsLauncher(
34
27
finalSauceLabsOptions . region = 'us' ;
35
28
}
36
29
37
- const finalConnectOptions : SauceConnectOptions & LegacySauceConnectOptions = {
38
- ...sauceConnectOptions ,
39
- } ;
40
- if ( finalConnectOptions ?. tunnelIdentifier ) {
41
- console . warn ( 'The `tunnelIdentifier` option is deprecated. Use `tunnelName` instead.' ) ;
42
- finalConnectOptions . tunnelName = finalConnectOptions . tunnelIdentifier ;
43
- delete finalConnectOptions . tunnelIdentifier ;
44
- }
30
+ const finalConnectOptions : SauceConnectOptions = { ...sauceConnectOptions } ;
45
31
if ( typeof finalConnectOptions . tunnelName !== 'string' ) {
46
32
finalConnectOptions . tunnelName = `web-test-runner-${ nanoid ( ) } ` ;
47
33
}
0 commit comments