Skip to content

(@wdio/utils): separate between common and node utils#11469

Merged
christian-bromann merged 10 commits intomainfrom
cb/module-improvements
Oct 19, 2023
Merged

(@wdio/utils): separate between common and node utils#11469
christian-bromann merged 10 commits intomainfrom
cb/module-improvements

Conversation

@christian-bromann
Copy link
Member

Proposed changes

Our browser runner currently has to resolve a lot of Node.js primitives through Vite which can fail at all times due to transient dependencies. This PR attempts to separate Node.js related imports and ones that can run on all platforms.

Types of changes

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update

Checklist

  • I have read the CONTRIBUTING doc
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)
  • I have added proper type definitions for new commands (if appropriate)

Further comments

Reviewers: @webdriverio/project-committers

@erwinheitzman
Copy link
Member

Is it not possible to keep the types instead of setting it to any?

@christian-bromann
Copy link
Member Author

Is it not possible to keep the types instead of setting it to any?

It is but it would require a more sophisticated build setup which doesn't justify the value of keeping the types, because we don't ship them to users. They were there to keep us in check but ultimately we don't change a lot in these CJS files which is why we can also live without them.

@christian-bromann christian-bromann marked this pull request as ready for review October 19, 2023 22:41
@christian-bromann christian-bromann added the PR: Internal 🏠 PRs that contain changes internals label Oct 19, 2023
@christian-bromann christian-bromann merged commit 658c217 into main Oct 19, 2023
@christian-bromann christian-bromann deleted the cb/module-improvements branch October 19, 2023 22:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

PR: Internal 🏠 PRs that contain changes internals

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants