Commit Graph

9819 Commits

Author SHA1 Message Date
renovate[bot] f6ac91787d chore(types): update webdriverio monorepo to v7.20.7 2022-07-18 12:07:13 +00:00
Mykola Mokhnach 47867d248d chore(doctor): Remove the obsolete android binary check (#17219) 2022-07-17 11:34:54 +02:00
renovate[bot] 7e461650c9 chore(doctor): update dependency appium-adb to v9.10.0 2022-07-16 17:30:45 +00:00
renovate[bot] 949076c768 chore(images-plugin): update dependency lru-cache to v7.13.1 2022-07-16 15:13:32 +00:00
renovate[bot] b422d4bed5 chore(): update dependency ws to v8.8.1 2022-07-16 12:29:59 +00:00
renovate[bot] 3b0dcd4e23 chore(): update dependency @types/node to v16.11.45 2022-07-16 10:40:42 +00:00
renovate[bot] 1fe5ec7f69 chore(execute-driver-plugin): update dependency webdriverio to v7.20.6 2022-07-15 21:05:07 +00:00
renovate[bot] 3608f0633d chore(workflows): update actions/setup-node digest to 2fddd88 2022-07-15 19:00:45 +00:00
Jonathan Lipps b55405cac0 docs(appium): delete old 1.x docs in favour of a ref to the 1.x branch (#17204) 2022-07-14 14:22:16 -07:00
renovate[bot] f503227fbc chore(): update dependency @types/node to v16.11.44 2022-07-14 13:20:55 +00:00
renovate[bot] f82ba22f31 chore(gulp-plugins): update dependency plugin-error to v2 2022-07-13 13:49:07 -07:00
Christopher Hiller 85c6526909 fix(support): if appium is installed extraneously, do not consider it a dependency
This can happen if someone does something like `npm install --no-save appium`, _or_ if npm changes its shrinkwrap behavior for reasons that cause `appium` to be installed in `$APPIUM_HOME/node_modules` _(cough)_
2022-07-13 13:48:21 -07:00
Christopher Hiller 2a6a056187 fix(appium,support): fix installation problems
Ref: #17073

this change uses --legacy-peer-deps for newer versions of npm to
avoid installation of appium when installing extensions in ~/.appium.  this does not work if the extension contains a shrinkwrap with appium in it, though.
in that case, an extra copy of appium will always be installed.

it creates a symlink, e.g., ~/.appium/node_modules/appium to the currently-running appium, wherever that is.  could not abuse NODE_PATH to do this.

this is rather naive and does not check that the symlink is actually the same as the running appium if it already exists. that might cause some weird problems with multiple installs of appium on the same machine, but if it does, we can fix them as they arise.
2022-07-13 13:48:21 -07:00
renovate[bot] c8b9dfcd91 chore(workflows): pin actions/setup-node action to 5b949b5 2022-07-13 13:48:01 -07:00
Christopher Hiller dab37d7286 chore(ci): add mjpeg-consumer to dev deps
I am unsure why this was not in dev deps already. It is not a native module or anything, so...
2022-07-13 13:47:44 -07:00
Christopher Hiller 109278bb0d chore(ci): attempt to cache deps
This change adds [bahmutov/npm-install](https://github.com/bahmutov/npm-install) to help cache dependencies, and enables caching against global modules via [setup-node](https://github.com/actions/setup-node).
2022-07-13 13:47:44 -07:00
Mykola Mokhnach 3d402716fa docs(appium): Update README with the relevant Appium2 info (#17172) 2022-07-13 19:16:48 +02:00
renovate[bot] a5700904bc chore(support): update dependency plist to v3.0.6 2022-07-13 14:02:42 +00:00
renovate[bot] efcbfe81d6 chore(images-plugin): update dependency lru-cache to v7.13.0 2022-07-13 11:16:08 +00:00
renovate[bot] d0ca5d5e7d chore(workflows): update actions/setup-node digest to 5b949b5 2022-07-12 13:29:07 +00:00
renovate[bot] 45563d0ef9 chore(appium): update dependency lilconfig to v2.0.6 2022-07-11 10:40:11 +00:00
Christopher Hiller f384d5360d chore(): update package-lock.json 2022-07-08 13:09:28 -07:00
Christopher Hiller d3f90d5ed6 fix(appium): remove references to js in typescript code
I think, perhaps, having `.ts` files hanging around so that we can make declarations out of them is bad news.  I got this idea from wdio.  Anyway, the TS alias `appium` (often used as `appium/types`) points to the `types` dir -- not the `build/types` dir. It can't point to that, because recursion. That means an import from `../lib/constants` imports from the _ESM_ `../lib/constants`, which apparently is not understandable by the compiler since there is no `.d.ts` flie living there (even if `constants.js` is typed via docstrings, which it is).  I don't know.  It was easier just to do this for now.  At some point later I'll look at using plain `.d.ts` files for this sort of thing, since it seems like it should work.
2022-07-08 13:09:28 -07:00
Christopher Hiller 7c70989f22 chore(base-driver,images-plugin): remove deprecated @types/lru-cache 2022-07-08 13:09:28 -07:00
Christopher Hiller 6fde92052b fix(schema): add missing @types/json-schema dep 2022-07-08 13:09:28 -07:00
Christopher Hiller f9129dfee3 fix(): moved type packages to deps of specific packages
When any package here is consumed as a library, the production deps installed alongside it _must_ also include depenencies related to type information. If these packages _aren't_ included, consumers will not have the requisite declarations installed and will get incomplete type information--at best--or worse; compilation errors.

Putting the onus on the consumer to install these requisite types is both user-hostile _and_ can result in the incorrect versions of type declarations being installed.

To that end, I've moved the various type declaration deps to production deps of the packages in which they are used.  Sometimes this is multiple packages (in the case of, say, `@types/teen_process`).  This results in many types being removed from the monorepo root.  Those that remain are for _dev dependencies only_.  If a packages uses, say, `ws`, but only in its tests, then the types can remain in the monorepo root along with the rest of the common dev deps.

I also saw an unused `supports-color` in `appium` and removed it.
2022-07-08 13:09:28 -07:00
Christopher Hiller 921fb1c382 fix(schema): add json-schema as a production dep 2022-07-08 13:09:28 -07:00
Christopher Hiller a0a6166738 fix(appium,types): include @appium/types in appium
This makes a small handful of fixes related to type consumption:

- `@appium/types` is now a direct dep of `appium`.  Without this, types leveraging `@appium/types`--e.g., `BaseDriver`, which is based on a `Driver` interface defined in `@appium/types`--fail to be understood fully by a consumer (such as an extension).  Extension authors would need to install `@appium/types` as their own dev dependency.  This change makes addition of `@appium/types` unneeded when consuming types exposed by `appium`, `appium/driver`, `appium/support`, etc.
- At this time, consumers will still need to add `@appium/types` if they wish to directly reference types defined in here (such as `W3CCapabilities`).
- In manual testing of the exported types, I found two issues in `appium/lib/schema/arg-spec.js` and `appium/lib/schema/schema.js` which were relative type imports and only worked in the context of the monorepo.  I fixed these.
- `@appium/types` previously re-exported types defined within `axios` (`HTTPMethod`); I just copied and pasted what we needed to avoid the production dependency on `axios`.
- `@types/express`, `@types/npmlog`, `type-fest` and `@wdio/types` were added as production deps to `@appium/types`, as these are needed.  However, these are packages _only_ containing types, unlike `axios`. There's a lesson to be learned here, but I don't know what it is.
2022-07-08 13:09:28 -07:00
Jonathan Lipps c43acc23ee chore(renovate): add renovate.json to 2.0 branch so it exists during migration to master 2022-07-08 10:33:30 -07:00
Mykola Mokhnach dbc4544b72 fix: Logs format (#17156) 2022-07-08 18:56:17 +02:00
renovate[bot] 9e6a7af95b chore(): update dependency @types/teen_process to v1.16.1 2022-07-08 14:05:08 +00:00
Mykola Mokhnach 0db78ae885 ci: Add a script that verifies Appium deployment on different OSs (#17146) 2022-07-08 08:38:14 +02:00
renovate[bot] ca7f2291c8 chore(support): update dependency moment to v2.29.4 2022-07-07 10:43:21 +00:00
ian zhang a20d5523f5 docs(appium): stub out chinese docs system (#17076)
* #16817 2.0 Chinese mkdocs-zh.yml
Rebase the code for mkdocs-zh

* #16817 2.0 Chinese mkdocs-zh.yml
Change the folder from cn to zh as mkdocs required

* #16817 2.0 Chinese mkdocs-zh.yml
Change the relative link from en to zh

* #16817 2.0 Chinese mkdocs-zh.yml
Translate some titles to trigger the build
2022-07-06 12:46:53 -07:00
renovate[bot] 523ebd55be chore(execute-driver-plugin): update dependency vm2 to v3.9.10 2022-07-06 12:12:31 +00:00
renovate[bot] cb36cdd957 chore(doctor): update dependency appium-adb to v9.9.0 2022-07-05 11:32:31 +00:00
renovate[bot] 10a1a3e736 chore(): update dependency type-fest to v2.16.0 2022-07-04 17:53:10 +00:00
renovate[bot] 1e41de4b32 chore(doctor): update dependency appium-adb to v9.8.0 2022-07-04 15:19:55 +00:00
renovate[bot] 9a2e1e4d1e chore(): update dependency @types/node to v16.11.43 2022-07-04 12:06:24 +00:00
renovate[bot] f8224f2780 chore(appium): update dependency winston to v3.8.1 2022-07-01 14:32:25 +00:00
renovate[bot] f293784b20 chore(images-plugin): update dependency lru-cache to v7.12.0 2022-06-30 15:19:11 +00:00
renovate[bot] 29867b6cac chore(): update dependency @types/node to v16.11.42 2022-06-30 11:30:35 +00:00
renovate[bot] 464b112f4e chore(): update dependency @types/fancy-log to v2 2022-06-29 15:04:46 -07:00
renovate[bot] 79d6a1d9a0 chore(): update dependency @types/sinon to v10.0.12 2022-06-29 11:49:06 +00:00
renovate[bot] c4a1a46df3 chore(): update babel monorepo to v7.18.6 2022-06-28 12:58:59 +00:00
renovate[bot] 863e0dbd4d chore(gulp-plugins): update dependency babel-plugin-source-map-support to v2.2.0 2022-06-27 15:52:09 +00:00
renovate[bot] 2bf673b2a8 chore(appium): update dependency winston to v3.8.0 2022-06-26 15:13:08 +00:00
renovate[bot] 6c6c860f82 chore(): update dependency type-fest to v2.14.0 2022-06-26 12:56:35 +00:00
renovate[bot] e3fb79864d chore(images-plugin): update dependency lru-cache to v7.10.2 2022-06-25 18:14:31 +00:00
renovate[bot] 7ee5074230 chore(): update dependency prettier to v2.7.1 2022-06-25 15:09:19 +00:00