Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feat]: Remove inflight dependency because it's no longer supported #20154

Closed
NullPiotrException opened this issue May 28, 2024 · 10 comments
Closed

Comments

@NullPiotrException
Copy link

Is your feature request related to a problem? Please describe.
Installing appium returns a warning:

npm warn deprecated [email protected]: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.

Describe the solution you'd like
Remove inflight dependency and use lru-cache instead.

Additional context
https://www.npmjs.com/package/inflight
Published 8 years ago

@KazuCocoa
Copy link
Member

it looks like mostly by rimraf (only dev deps) and glob. isaacs/node-glob#573
We've been using the latest version, so as the author, they might be sufficient as the lib usage.

It would be appreciated if you could share more concrete issues with logs about the issue or report it to the author.

@NullPiotrException
Copy link
Author

NullPiotrException commented May 28, 2024

To be honest, I didn't understand your reply at all. But feel free to ignore my questions since there seem to be no issue as you closed it.

it looks like mostly by rimraf

I don't understand the grammar. What looks like rimraf?

so as the author

As the author of what?

might be sufficient

What might be sufficient?

as the lib usage

What does that mean?

share more concrete issues with logs

I'd need instructions what should I execute to get wanted logs.

report it to the author

To the author of what? If inflight, then it is no longer supported so no fixed will be made.

@mykola-mokhnach
Copy link
Collaborator

mykola-mokhnach commented May 28, 2024

The inflight dependenncy is not directly used by any appium modules, but only as a transitive dependency, most likely bundled with rimraf and glob. This means we don't have much control over its usage and the issue must be reported to appropriate module authors instead.

@NullPiotrException
Copy link
Author

Got it. I thought it's the case but checked npmlog (from my other issue) by mistake and saw it's directly in appium dependencies.
Thank you and my apologies.

@eglitise
Copy link
Collaborator

I believe this issue is primarily caused by the mv dependency imported by the support package.

@NullPiotrException
Copy link
Author

I came to the conclusion that it's because of mocha and reported it here.

@eglitise
Copy link
Collaborator

I'm not fully sure that it's mocha, because Appium only imports it as a dev dependency, and packages that actually use it (driver-test-support and plugin-test-support) are not imported by the core appium package anyway.

@S-ee-n
Copy link

S-ee-n commented Oct 1, 2024

Please could you tell me how to remove inflight dependency and use lru-cache instead ? I did not understand how to do it from your messages. How could I use lru-cache instead ? If I use the latest version of Appium including this deprecaded inflight, is it a problem ? Thank you.

@NullPiotrException
Copy link
Author

@S-ee-n You can't (unless you modify Appium's code and build it yourself). It's mocha (which Appium uses) who would have to do it. It's a package that's used and you can't just switch it to another one without rewriting the code that uses it.
It's not a big problem since everything seems to be working but it's better to use a package that is maintained which inflight isn't.

@S-ee-n
Copy link

S-ee-n commented Oct 2, 2024

Thank you for your fast and accurate answer ! I’ll do what I can
Have a nice day 👍🏻 👍🏻

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants