appium 3.3.0 → 3.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (196) hide show
  1. package/build/lib/appium.d.ts +147 -205
  2. package/build/lib/appium.d.ts.map +1 -1
  3. package/build/lib/appium.js +169 -282
  4. package/build/lib/appium.js.map +1 -1
  5. package/build/lib/bidi-commands.d.ts.map +1 -1
  6. package/build/lib/bidi-commands.js +11 -11
  7. package/build/lib/bidi-commands.js.map +1 -1
  8. package/build/lib/bootstrap/appium-initializer.d.ts +21 -0
  9. package/build/lib/bootstrap/appium-initializer.d.ts.map +1 -0
  10. package/build/lib/bootstrap/appium-initializer.js +146 -0
  11. package/build/lib/bootstrap/appium-initializer.js.map +1 -0
  12. package/build/lib/bootstrap/appium-main-runner.d.ts +22 -0
  13. package/build/lib/bootstrap/appium-main-runner.d.ts.map +1 -0
  14. package/build/lib/bootstrap/appium-main-runner.js +109 -0
  15. package/build/lib/bootstrap/appium-main-runner.js.map +1 -0
  16. package/build/lib/bootstrap/config-file.d.ts +37 -0
  17. package/build/lib/bootstrap/config-file.d.ts.map +1 -0
  18. package/build/lib/{config-file.js → bootstrap/config-file.js} +9 -26
  19. package/build/lib/bootstrap/config-file.js.map +1 -0
  20. package/build/lib/bootstrap/grid-v3-register.d.ts +20 -0
  21. package/build/lib/bootstrap/grid-v3-register.d.ts.map +1 -0
  22. package/build/lib/{grid-register.js → bootstrap/grid-v3-register.js} +28 -13
  23. package/build/lib/bootstrap/grid-v3-register.js.map +1 -0
  24. package/build/lib/bootstrap/init-types.d.ts +16 -0
  25. package/build/lib/bootstrap/init-types.d.ts.map +1 -0
  26. package/build/lib/bootstrap/init-types.js +3 -0
  27. package/build/lib/bootstrap/init-types.js.map +1 -0
  28. package/build/lib/bootstrap/main-helpers.d.ts +55 -0
  29. package/build/lib/bootstrap/main-helpers.d.ts.map +1 -0
  30. package/build/lib/bootstrap/main-helpers.js +187 -0
  31. package/build/lib/bootstrap/main-helpers.js.map +1 -0
  32. package/build/lib/bootstrap/node-helpers.d.ts +32 -0
  33. package/build/lib/bootstrap/node-helpers.d.ts.map +1 -0
  34. package/build/lib/bootstrap/node-helpers.js +201 -0
  35. package/build/lib/bootstrap/node-helpers.js.map +1 -0
  36. package/build/lib/bootstrap/startup-config.d.ts +22 -0
  37. package/build/lib/bootstrap/startup-config.d.ts.map +1 -0
  38. package/build/lib/bootstrap/startup-config.js +111 -0
  39. package/build/lib/bootstrap/startup-config.js.map +1 -0
  40. package/build/lib/cli/args.d.ts.map +1 -1
  41. package/build/lib/cli/args.js +9 -9
  42. package/build/lib/cli/args.js.map +1 -1
  43. package/build/lib/cli/extension-command.d.ts +95 -95
  44. package/build/lib/cli/extension-command.d.ts.map +1 -1
  45. package/build/lib/cli/extension-command.js +18 -18
  46. package/build/lib/cli/extension-command.js.map +1 -1
  47. package/build/lib/cli/extension.d.ts +1 -1
  48. package/build/lib/cli/extension.d.ts.map +1 -1
  49. package/build/lib/cli/extension.js +5 -5
  50. package/build/lib/cli/extension.js.map +1 -1
  51. package/build/lib/cli/parser.d.ts +8 -8
  52. package/build/lib/cli/parser.d.ts.map +1 -1
  53. package/build/lib/cli/parser.js +49 -49
  54. package/build/lib/cli/parser.js.map +1 -1
  55. package/build/lib/cli/setup-command.js +6 -6
  56. package/build/lib/cli/setup-command.js.map +1 -1
  57. package/build/lib/cli/utils.d.ts +17 -17
  58. package/build/lib/cli/utils.d.ts.map +1 -1
  59. package/build/lib/cli/utils.js +29 -29
  60. package/build/lib/cli/utils.js.map +1 -1
  61. package/build/lib/doctor/doctor.d.ts +2 -2
  62. package/build/lib/doctor/doctor.d.ts.map +1 -1
  63. package/build/lib/doctor/doctor.js +6 -6
  64. package/build/lib/doctor/doctor.js.map +1 -1
  65. package/build/lib/extension/driver-config.d.ts +18 -77
  66. package/build/lib/extension/driver-config.d.ts.map +1 -1
  67. package/build/lib/extension/driver-config.js +37 -125
  68. package/build/lib/extension/driver-config.js.map +1 -1
  69. package/build/lib/extension/extension-config.d.ts +103 -210
  70. package/build/lib/extension/extension-config.d.ts.map +1 -1
  71. package/build/lib/extension/extension-config.js +180 -342
  72. package/build/lib/extension/extension-config.js.map +1 -1
  73. package/build/lib/extension/index.d.ts +12 -29
  74. package/build/lib/extension/index.d.ts.map +1 -1
  75. package/build/lib/extension/index.js +33 -75
  76. package/build/lib/extension/index.js.map +1 -1
  77. package/build/lib/extension/manifest-migrations.d.ts +3 -20
  78. package/build/lib/extension/manifest-migrations.d.ts.map +1 -1
  79. package/build/lib/extension/manifest-migrations.js +20 -101
  80. package/build/lib/extension/manifest-migrations.js.map +1 -1
  81. package/build/lib/extension/manifest.d.ts +61 -107
  82. package/build/lib/extension/manifest.d.ts.map +1 -1
  83. package/build/lib/extension/manifest.js +181 -356
  84. package/build/lib/extension/manifest.js.map +1 -1
  85. package/build/lib/extension/package-changed.d.ts +1 -3
  86. package/build/lib/extension/package-changed.d.ts.map +1 -1
  87. package/build/lib/extension/package-changed.js +8 -15
  88. package/build/lib/extension/package-changed.js.map +1 -1
  89. package/build/lib/extension/plugin-config.d.ts +10 -52
  90. package/build/lib/extension/plugin-config.d.ts.map +1 -1
  91. package/build/lib/extension/plugin-config.js +11 -63
  92. package/build/lib/extension/plugin-config.js.map +1 -1
  93. package/build/lib/helpers/build.d.ts +22 -0
  94. package/build/lib/helpers/build.d.ts.map +1 -0
  95. package/build/lib/helpers/build.js +109 -0
  96. package/build/lib/helpers/build.js.map +1 -0
  97. package/build/lib/helpers/capability.d.ts +38 -0
  98. package/build/lib/helpers/capability.d.ts.map +1 -0
  99. package/build/lib/helpers/capability.js +128 -0
  100. package/build/lib/helpers/capability.js.map +1 -0
  101. package/build/lib/helpers/network.d.ts +14 -0
  102. package/build/lib/helpers/network.d.ts.map +1 -0
  103. package/build/lib/helpers/network.js +35 -0
  104. package/build/lib/helpers/network.js.map +1 -0
  105. package/build/lib/insecure-features.js +6 -6
  106. package/build/lib/insecure-features.js.map +1 -1
  107. package/build/lib/inspector-commands.d.ts +6 -0
  108. package/build/lib/inspector-commands.d.ts.map +1 -1
  109. package/build/lib/inspector-commands.js +6 -0
  110. package/build/lib/inspector-commands.js.map +1 -1
  111. package/build/lib/logger.d.ts +2 -3
  112. package/build/lib/logger.d.ts.map +1 -1
  113. package/build/lib/logger.js +2 -3
  114. package/build/lib/logger.js.map +1 -1
  115. package/build/lib/main.d.ts +15 -58
  116. package/build/lib/main.d.ts.map +1 -1
  117. package/build/lib/main.js +25 -425
  118. package/build/lib/main.js.map +1 -1
  119. package/build/lib/schema/cli-args-guards.d.ts +34 -0
  120. package/build/lib/schema/cli-args-guards.d.ts.map +1 -0
  121. package/build/lib/schema/cli-args-guards.js +49 -0
  122. package/build/lib/schema/cli-args-guards.js.map +1 -0
  123. package/build/lib/schema/cli-args.js +2 -2
  124. package/build/lib/schema/cli-args.js.map +1 -1
  125. package/build/lib/schema/format-errors.d.ts +28 -0
  126. package/build/lib/schema/format-errors.d.ts.map +1 -0
  127. package/build/lib/schema/format-errors.js +29 -0
  128. package/build/lib/schema/format-errors.js.map +1 -0
  129. package/build/lib/schema/index.d.ts +2 -0
  130. package/build/lib/schema/index.d.ts.map +1 -1
  131. package/build/lib/schema/index.js +2 -0
  132. package/build/lib/schema/index.js.map +1 -1
  133. package/build/lib/schema/schema.d.ts +15 -15
  134. package/build/lib/schema/schema.d.ts.map +1 -1
  135. package/build/lib/schema/schema.js +37 -37
  136. package/build/lib/schema/schema.js.map +1 -1
  137. package/build/lib/utils.d.ts +0 -81
  138. package/build/lib/utils.d.ts.map +1 -1
  139. package/build/lib/utils.js +1 -248
  140. package/build/lib/utils.js.map +1 -1
  141. package/lib/{appium.js → appium.ts} +297 -341
  142. package/lib/bidi-commands.ts +10 -14
  143. package/lib/bootstrap/appium-initializer.ts +212 -0
  144. package/lib/bootstrap/appium-main-runner.ts +172 -0
  145. package/lib/{config-file.ts → bootstrap/config-file.ts} +29 -63
  146. package/lib/{grid-register.ts → bootstrap/grid-v3-register.ts} +35 -35
  147. package/lib/bootstrap/init-types.ts +31 -0
  148. package/lib/bootstrap/main-helpers.ts +223 -0
  149. package/lib/bootstrap/node-helpers.ts +180 -0
  150. package/lib/bootstrap/startup-config.ts +143 -0
  151. package/lib/cli/args.ts +10 -10
  152. package/lib/cli/extension-command.ts +132 -132
  153. package/lib/cli/extension.ts +7 -7
  154. package/lib/cli/parser.ts +50 -50
  155. package/lib/cli/setup-command.ts +2 -2
  156. package/lib/cli/utils.ts +33 -33
  157. package/lib/doctor/doctor.ts +8 -8
  158. package/lib/extension/driver-config.ts +165 -0
  159. package/lib/extension/{extension-config.js → extension-config.ts} +291 -405
  160. package/lib/extension/index.ts +143 -0
  161. package/lib/extension/manifest-migrations.ts +57 -0
  162. package/lib/extension/manifest.ts +369 -0
  163. package/lib/extension/{package-changed.js → package-changed.ts} +9 -18
  164. package/lib/extension/plugin-config.ts +62 -0
  165. package/lib/helpers/build.ts +111 -0
  166. package/lib/helpers/capability.ts +171 -0
  167. package/lib/helpers/network.ts +30 -0
  168. package/lib/insecure-features.ts +1 -1
  169. package/lib/inspector-commands.ts +6 -1
  170. package/lib/{logger.js → logger.ts} +1 -2
  171. package/lib/main.ts +60 -0
  172. package/lib/schema/cli-args-guards.ts +67 -0
  173. package/lib/schema/cli-args.ts +1 -1
  174. package/lib/schema/format-errors.ts +43 -0
  175. package/lib/schema/index.ts +2 -0
  176. package/lib/schema/schema.ts +51 -52
  177. package/lib/utils.ts +0 -331
  178. package/package.json +12 -13
  179. package/scripts/autoinstall-extensions.js +3 -0
  180. package/build/lib/config-file.d.ts +0 -57
  181. package/build/lib/config-file.d.ts.map +0 -1
  182. package/build/lib/config-file.js.map +0 -1
  183. package/build/lib/config.d.ts +0 -68
  184. package/build/lib/config.d.ts.map +0 -1
  185. package/build/lib/config.js +0 -358
  186. package/build/lib/config.js.map +0 -1
  187. package/build/lib/grid-register.d.ts +0 -35
  188. package/build/lib/grid-register.d.ts.map +0 -1
  189. package/build/lib/grid-register.js.map +0 -1
  190. package/lib/config.ts +0 -377
  191. package/lib/extension/driver-config.js +0 -245
  192. package/lib/extension/index.js +0 -169
  193. package/lib/extension/manifest-migrations.js +0 -136
  194. package/lib/extension/manifest.js +0 -550
  195. package/lib/extension/plugin-config.js +0 -112
  196. package/lib/main.js +0 -545
@@ -1,169 +0,0 @@
1
- import _ from 'lodash';
2
- import {USE_ALL_PLUGINS} from '../constants';
3
- import log from '../logger';
4
- import {DriverConfig} from './driver-config';
5
- import {Manifest} from './manifest';
6
- import {timing} from '@appium/support';
7
- import {PluginConfig} from './plugin-config';
8
- import B from 'bluebird';
9
-
10
- /**
11
- * Loads extensions and creates `ExtensionConfig` instances.
12
- *
13
- * - Reads the manifest file, creating if necessary
14
- * - Using the parsed extension data, creates/gets the `ExtensionConfig` subclass instances
15
- * - Returns these instances
16
- *
17
- * If `appiumHome` is needed, use `resolveAppiumHome` from the `env` module in `@appium/support`.
18
- * @param {string} appiumHome
19
- * @returns {Promise<ExtensionConfigs>}
20
- */
21
- export async function loadExtensions(appiumHome) {
22
- const manifest = Manifest.getInstance(appiumHome);
23
- await manifest.read();
24
- const driverConfig = DriverConfig.getInstance(manifest) ?? DriverConfig.create(manifest);
25
- const pluginConfig = PluginConfig.getInstance(manifest) ?? PluginConfig.create(manifest);
26
-
27
- await B.all([driverConfig.validate(), pluginConfig.validate()]);
28
- return {driverConfig, pluginConfig};
29
- }
30
-
31
- /**
32
- * @template {'driver'|'plugin'} TExtType
33
- * @param {TExtType} extType
34
- * @param {import('./extension-config').ExtensionConfig} config
35
- * @param {string[]} extNames
36
- * @param {number} asyncImportChunkSize
37
- * @returns {Promise<[TExtType extends 'driver' ? DriverClass : PluginClass, string][]>}
38
- */
39
- async function importExtensions(extType, config, extNames, asyncImportChunkSize) {
40
- /** @type {B[]} */
41
- const allPromises = [];
42
- /** @type {B[]} */
43
- const activePromisesChunk = [];
44
- for (const extName of extNames) {
45
- _.remove(activePromisesChunk, (p) => p.isFulfilled());
46
- if (activePromisesChunk.length >= asyncImportChunkSize) {
47
- await B.any(activePromisesChunk);
48
- }
49
- const promise = B.resolve((async () => {
50
- log.info(`Attempting to load ${extType} ${extName}...`);
51
- const timer = new timing.Timer().start();
52
- try {
53
- const extClass = await config.requireAsync(extName);
54
- log.debug(`${extClass.name} has been successfully loaded in ${timer.getDuration().asSeconds.toFixed(3)}s`);
55
- return extClass;
56
- } catch (err) {
57
- log.error(
58
- `Could not load ${extType} '${extName}', so it will not be available. Error ` +
59
- `in loading the ${extType} was: ${err.message}`
60
- );
61
- log.debug(err.stack);
62
- }
63
- })());
64
- activePromisesChunk.push(promise);
65
- allPromises.push(promise);
66
- }
67
- return /** @type {[TExtType extends 'driver' ? DriverClass : PluginClass, string][]} */ (
68
- _.zip(await B.all(allPromises), extNames).filter(([extClass,]) => Boolean(extClass))
69
- );
70
- }
71
-
72
- /**
73
- * Find any plugin name which has been installed, and which has been requested for activation by
74
- * using the --use-plugins flag, and turn each one into its class, so we can send them as objects
75
- * to the server init. We also want to send/assign them to the umbrella driver so it can use them
76
- * to wrap command execution
77
- *
78
- * @param {import('./plugin-config').PluginConfig} pluginConfig - a plugin extension config
79
- * @param {number} maxParallelImports the maximum amount of plugins to import in parallel
80
- * @param {string[]} usePlugins
81
- * @returns {Promise<PluginNameMap>} Mapping of PluginClass to name
82
- */
83
- export async function getActivePlugins(pluginConfig, maxParallelImports, usePlugins = []) {
84
- if (_.isEmpty(usePlugins)) {
85
- return new Map();
86
- }
87
-
88
- /** @type {string[]} */
89
- let filteredPluginNames = [];
90
- if (usePlugins.length === 1 && usePlugins[0] === USE_ALL_PLUGINS) {
91
- filteredPluginNames = _.keys(pluginConfig.installedExtensions);
92
- } else {
93
- // It is important to load plugins in the same order that was used while enumerating them
94
- for (const pluginName of usePlugins) {
95
- if (pluginName in pluginConfig.installedExtensions) {
96
- filteredPluginNames.push(pluginName);
97
- } else if (pluginName === USE_ALL_PLUGINS) {
98
- throw new Error(
99
- `The reserved plugin name '${pluginName}' cannot be combined with other names.`
100
- );
101
- } else {
102
- const suffix = _.isEmpty(pluginConfig.installedExtensions)
103
- ? `You don't have any plugins installed yet.`
104
- : `Only the following ${_.size(pluginConfig.installedExtensions) === 1 ? `plugin is` : `plugins are`} ` +
105
- `available: ${_.keys(pluginConfig.installedExtensions)}`;
106
- throw new Error(
107
- `Could not load the plugin '${pluginName}' because it is not installed. ${suffix}`
108
- );
109
- }
110
- }
111
- }
112
- return new Map(await importExtensions('plugin', pluginConfig, filteredPluginNames, maxParallelImports));
113
- }
114
-
115
- /**
116
- * Find any driver name which has been installed, and turn each one into its class, so we can send
117
- * them as objects to the server init in case they need to add methods/routes or update the server.
118
- * If the --drivers flag was given, this method only loads the given drivers.
119
- *
120
- * @param {import('./driver-config').DriverConfig} driverConfig - a driver extension config
121
- * @param {number} maxParallelImports the maximum amount of plugins to import in parallel
122
- * @param {string[]} [useDrivers] - optional list of drivers to load
123
- * @returns {Promise<DriverNameMap>}
124
- */
125
- export async function getActiveDrivers(driverConfig, maxParallelImports, useDrivers = []) {
126
- /** @type {string[]} */
127
- let filteredDriverNames = [];
128
- if (_.isEmpty(useDrivers)) {
129
- // load all drivers if none are requested
130
- filteredDriverNames = _.keys(driverConfig.installedExtensions);
131
- } else {
132
- // Load drivers in the same order that was used while enumerating them
133
- for (const driverName of useDrivers) {
134
- if (driverName in driverConfig.installedExtensions) {
135
- filteredDriverNames.push(driverName);
136
- } else {
137
- const suffix = _.isEmpty(driverConfig.installedExtensions)
138
- ? `You don't have any drivers installed yet.`
139
- : `Only the following ${_.size(driverConfig.installedExtensions) === 1 ? `driver is` : `drivers are`} ` +
140
- `available: ${_.keys(driverConfig.installedExtensions)}`;
141
- throw new Error(
142
- `Could not load the driver '${driverName}' because it is not installed. ${suffix}`
143
- );
144
- }
145
- }
146
- }
147
- return new Map(await importExtensions('driver', driverConfig, filteredDriverNames, maxParallelImports));
148
- }
149
-
150
- /**
151
- * A mapping of {@linkcode PluginClass} classes to their names.
152
- * @typedef {Map<PluginClass,string>} PluginNameMap
153
- */
154
-
155
- /**
156
- * A mapping of {@linkcode DriverClass} classes to their names.
157
- * @typedef {Map<DriverClass,string>} DriverNameMap
158
- */
159
-
160
- /**
161
- * @typedef {import('@appium/types').PluginClass} PluginClass
162
- * @typedef {import('@appium/types').DriverClass} DriverClass
163
- */
164
-
165
- /**
166
- * @typedef ExtensionConfigs
167
- * @property {import('./driver-config').DriverConfig} driverConfig
168
- * @property {import('./plugin-config').PluginConfig} pluginConfig
169
- */
@@ -1,136 +0,0 @@
1
- import {CURRENT_SCHEMA_REV, DRIVER_TYPE, PLUGIN_TYPE} from '../constants';
2
- import log from '../logger';
3
-
4
- /**
5
- * This contains logic to migrate old versions of `extensions.yaml` to new versions.
6
- *
7
- * @module
8
- */
9
-
10
- /**
11
- * Constant for v3 of the schema rev.
12
- */
13
- const SCHEMA_REV_3 = 3;
14
-
15
- /**
16
- * Constant for v4 of the schema rev.
17
- */
18
- const SCHEMA_REV_4 = 4;
19
-
20
- /**
21
- * Collection of functions to migrate from one version to another.
22
- *
23
- * These functions _should not actually perform the migration_; rather, they
24
- * should return `true` if the migration should be performed. The migration
25
- * itself will happen within {@linkcode Manifest.syncWithInstalledExtensions}; the extensions
26
- * will be checked and the manifest file updated per the state of the filesystem.
27
- *
28
- * @type { {[P in keyof ManifestDataVersions]?: Migration} }
29
- */
30
- const Migrations = {
31
- /**
32
- * If `installPath` is missing from the `ExtManifest` for any extension, return `true`.
33
- *
34
- * We cannot easily determine the path of any given extension here, but returning `true`
35
- * will cause the `Manifest` to sync with the filesystem, which will populate the missing field.
36
- *
37
- * @type {Migration}
38
- */
39
- [SCHEMA_REV_3]: (manifest) => {
40
- /** @type {Array<ExtManifest<PluginType>|ExtManifest<DriverType>>} */
41
- const allExtData = [
42
- ...Object.values(manifest.getExtensionData(DRIVER_TYPE)),
43
- ...Object.values(manifest.getExtensionData(PLUGIN_TYPE)),
44
- ];
45
- return allExtData.some((metadata) => !('installPath' in metadata));
46
- },
47
- /**
48
- * Updates installed extensions to use `InstallType` of `dev` if appropriate.
49
- *
50
- * Previously, these types of extensions (automatically discovered) would use the default `InstallType` of `npm`, so we need
51
- * to refresh any with this install type.
52
- *
53
- * This should only happen once; we do not want to re-check everything with `npm` install type
54
- * every time.
55
- * @type {Migration}
56
- */
57
- [SCHEMA_REV_4]: (manifest) => {
58
- if (manifest.schemaRev < SCHEMA_REV_4) {
59
- const allExtData = [
60
- ...Object.values(manifest.getExtensionData(DRIVER_TYPE)),
61
- ...Object.values(manifest.getExtensionData(PLUGIN_TYPE)),
62
- ];
63
- return allExtData.some((metadata) => metadata.installType === 'npm');
64
- }
65
- return false;
66
- },
67
- };
68
-
69
- /**
70
- * Set `schemaRev` to a specific version.
71
- *
72
- * This _does_ mutate `data` in-place, unlike functions in
73
- * {@linkcode Migrations}.
74
- *
75
- * Again, returning `true` means that the manifest should be--at
76
- * minimum--persisted to disk, since we changed it.
77
- * @param {Readonly<Manifest>} manifest
78
- * @param {keyof ManifestDataVersions} version
79
- * @returns {boolean} Whether the data was modified
80
- */
81
- function setSchemaRev(manifest, version) {
82
- if ((manifest.schemaRev ?? 0) < version) {
83
- manifest.setSchemaRev(version);
84
- return true;
85
- }
86
- return false;
87
- }
88
-
89
- /**
90
- * Applies a series of migration functions to a manifest to update its manifest schema version.
91
- *
92
- * `data` is modified in-place.
93
- *
94
- * @param {Readonly<Manifest>} manifest
95
- * @returns {Promise<boolean>} If `true` existing packages should be synced from disk and the manifest should be persisted.
96
- */
97
- export async function migrate(manifest) {
98
- let didChange = false;
99
- for await (const migration of Object.values(Migrations)) {
100
- didChange = (await migration(manifest)) || didChange;
101
- }
102
- didChange = setSchemaRev(manifest, CURRENT_SCHEMA_REV) || didChange;
103
- if (didChange) {
104
- // this is not _technically_ true, since we don't actually write the file here.
105
- log.debug(`Upgraded extension manifest to schema v${manifest.schemaRev}`);
106
- }
107
-
108
- return didChange;
109
- }
110
-
111
- /**
112
- * A migration function. It will return `true` if a change _should be made_.
113
- *
114
- * A migration function should not modify `schemaRev`, as this is done automatically.
115
- *
116
- * Note that at the time of writing, we're not able to determine the version of the _current_ manifest file if there is no `schemaRev` prop present (and we may not want to trust it anyway).
117
- * @callback Migration
118
- * @param {Readonly<Manifest>} manifest - The `Manifest` instance
119
- * @returns {boolean|Promise<boolean>} If `true`, then something changed
120
- */
121
-
122
- /**
123
- * @typedef {import('appium/types').ManifestData} ManifestData
124
- * @typedef {import('@appium/types').DriverType} DriverType
125
- * @typedef {import('@appium/types').PluginType} PluginType
126
- * @typedef {import('appium/types').AnyManifestDataVersion} AnyManifestDataVersion
127
- * @typedef {import('appium/types').ManifestDataVersions} ManifestDataVersions
128
- * @typedef {import('@appium/types').ExtensionType} ExtensionType
129
- * @typedef {import('appium/types').ManifestV2.ManifestData} ManifestDataV2
130
- * @typedef {import('./manifest').Manifest} Manifest
131
- */
132
-
133
- /**
134
- * @template {ExtensionType} ExtType
135
- * @typedef {import('appium/types').ExtManifest<ExtType>} ExtManifest
136
- */