Skip to content

chore: drop bluebird and lodash#57

Merged
eglitise merged 3 commits intoappium:masterfrom
eglitise:drop-deps
Jan 22, 2026
Merged

chore: drop bluebird and lodash#57
eglitise merged 3 commits intoappium:masterfrom
eglitise:drop-deps

Conversation

@eglitise
Copy link
Copy Markdown
Contributor

This replaces all remaining uses of bluebird and lodash with native (and more performant) alternatives.

While lodash (unlike bluebird) is still maintained, the key factor for dropping it here is that asyncbox is a small utility module, and I believe such modules should be kept as slim as possible, with few to no external dependencies. None of the used lodash functions were also particularly complex, and could easily be replaced without sacrificing readability.

lib/asyncbox.ts Outdated
});
const debug = opts.logger ? opts.logger.debug.bind(opts.logger) : _.noop;
const opts: WaitForConditionOptions & {waitMs: number; intervalMs: number} = Object.assign(
{waitMs: 5000, intervalMs: 500},
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is not exactly the same replacement as before. defaults API also properly handles undefined values, so a better alternative would be

{
  waitMs: options.waitMs ?? 5000,
  intervalMs: options.intervalMs ?? 500,
}

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added guard for non-numerical values

"build/lib/**/*"
],
"dependencies": {
"bluebird": "^3.5.1",
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉

@eglitise eglitise merged commit c25537b into appium:master Jan 22, 2026
6 checks passed
@eglitise eglitise deleted the drop-deps branch January 22, 2026 18:32
github-actions bot pushed a commit that referenced this pull request Jan 22, 2026
## [6.0.1](v6.0.0...v6.0.1) (2026-01-22)

### Miscellaneous Chores

* drop bluebird and lodash ([#57](#57)) ([c25537b](c25537b))
@github-actions
Copy link
Copy Markdown

🎉 This PR is included in version 6.0.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants