25 Commits

Author SHA1 Message Date
Mohamed Mostafa c9fca97cae fix(execute-driver-plugin): fail fast if the script process dies (#22607) 2026-08-08 13:50:14 +02:00
Mykola Mokhnach d9e8b3ba73 feat(execute-driver-plugin)!: Migrate to ESM (#22576)
BREAKING CHANGE: @appium/execute-driver-plugin is now an ESM-only package. It can no longer be loaded via CommonJS require(); consumers must use import or dynamic import(). Deep imports into the package's internals are no longer possible — only the public entry point is exposed via exports. 
BREAKING CHANGE: The forked child process (execute-child.js) now runs as ESM as well, since it inherits "type": "module" from the package's package.json.
2026-08-01 21:31:46 +02:00
Mykola Mokhnach 08d50889c2 chore: Migrate from prettier to oxfmt (#22450) 2026-07-01 08:54:13 +02:00
Mykola Mokhnach 1a46d7d61e chore: Apply format (#22350) 2026-06-05 08:08:54 +02:00
Mykola Mokhnach 66b38e31ab chore(execute-driver-plugin): Ditch lodash (#22316) 2026-05-28 09:40:30 +02:00
Edgars Eglītis ce09eb2e7d chore: fix new linting errors in ESLint 10 (#22230)
* fix no-useless-assignment errors

* fix preserve-caught-error errors

* address comments

* address comments
2026-05-04 20:44:23 +03:00
Mykola Mokhnach 9670d93a12 fix(execute-driver-plugin): Protect VM-accessible instances from prototype pollution (#22195) 2026-04-21 23:23:28 +02:00
Edgars Eglītis 8895ac79d7 feat(execute-driver-plugin)!: replace bluebird usage inside scripts with native promises (#21990)
BREAKING CHANGE: The `Promise` object in the script context now matches the global `Promise` object instead of `bluebird`. Methods specific to `bluebird` are no longer supported.
2026-02-20 22:11:01 +02:00
Mykola Mokhnach ab8ee41e79 feat(execute-driver-plugin): Migrate to typescript (#21887) 2026-01-25 22:52:21 +01:00
Kazuaki Matsuo 5e28714442 fix: apply npm run lint:fix (#21867) 2026-01-18 09:04:01 -08:00
Mykola Mokhnach 9402291f1c feat(base-driver): Make extension name prefix mandatory (#21110) 2025-03-16 16:19:14 +01:00
Mykola Mokhnach 65658ccbdd fix: Reduce linter warnings (#20860) 2024-12-28 09:30:05 +01:00
Edgars Eglītis 5553016582 fix(execute-driver-plugin): replace vm2 with Node's built-in vm (#20594)
* fix: replace unsafe package vm2 with Node's vm

* chore: use node: prefix
2024-09-20 08:43:26 +03:00
Mykola Mokhnach 8565209fda chore(execute-driver-plugin): Update wdio resolution (#20346) 2024-07-08 13:29:18 +02:00
renovate[bot] 65b3787912 fix(tsconfig): update dependency @tsconfig/node14 to v14 (#19082)
* fix(tsconfig): update dependency @tsconfig/node14 to v14

* chore(execute-driver-plugin): use old node module resolution for wdio import

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jonathan Lipps <jlipps@gmail.com>
2023-08-31 12:17:08 -07:00
renovate[bot] b608db91a8 fix(execute-driver-plugin): update dependency webdriverio to v8 (#18095)
* fix(execute-driver-plugin): update dependency webdriverio to v8

* fix(execute-driver-plugin): upgrade wdio usage to v8

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jonathan Lipps <jlipps@gmail.com>
2023-08-22 11:26:47 -07:00
Christopher Hiller 4974403661 fix: backwards-compatible fixes for TS v5.x
These will be issues when we upgrade
2023-03-27 17:07:51 -07:00
Christopher Hiller 4734673ac9 chore(execute-driver-plugin,support,types): use named tuples
The "old" way of defining tuples is `[T, U]`, but I think TS 4.7 introduced "named" tuples, which at least provides a little bit of context to consumers, e.g., `[foo: T, bar: U]`.  Since a tuple is just a fixed-length array, the names aren't actually used in code, but are surfaced in type information and error messages regardless.

Also:

- Fixed bad param name in definition of `SessionHandler`
- Used a semantically-correct type for `StopScreenRecordOptions.formFields`
2023-01-23 16:39:06 -08:00
Christopher Hiller 697b4427e4 fix(execute-driver-plugin): fix bad types in execute-child module 2023-01-10 09:53:18 -08:00
Christopher Hiller 7add23e418 fix(execute-driver-plugin): use correct return type annotation 2023-01-10 09:53:18 -08:00
pacozaa 8f7171c42a refactor: add type for driver-command,plugin-command,doctor,docutils,execute-child (#17962) 2023-01-07 17:11:04 +01:00
Christopher Hiller f715bb4fd8 chore(base-driver,base-plugin,execute-driver-plugin,fake-driver,fake-plugin,images-plugin): update some types for typedoc 2022-11-22 14:32:10 -08:00
Christopher Hiller aabe804d7e feat(execute-driver-plugin): use peer deps
BREAKING CHANGE:

`@appium/execute-driver-plugin` now expects to be installed alongside `appium`.

# Conflicts:
#	packages/execute-driver-plugin/lib/execute-child.js
#	packages/execute-driver-plugin/lib/plugin.js
#	packages/execute-driver-plugin/test/e2e/plugin.e2e.spec.js

# Conflicts:
#	packages/execute-driver-plugin/test/e2e/plugin.e2e.spec.js
2022-05-26 12:07:17 -07:00
Christopher Hiller 133db5355f chore: reformat everything
this reformats all `.js`, `.ts`, and `.d.ts` files.
2022-05-09 19:09:50 -07:00
Christopher Hiller 83d87213c3 chore(execute-driver-plugin): import execute-driver-plugin
yeah this is my bad.  if we really need the history I can redo this.

no significant changes; just the usual stuff about builds and types.

bonus: I figured out how to get webdriverio types working
2022-04-14 14:30:00 -07:00