Skip to content

fix: cycle dependencies #563

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

Merged
merged 2 commits into from
Aug 23, 2024
Merged

fix: cycle dependencies #563

merged 2 commits into from
Aug 23, 2024

Conversation

kirillzyusko
Copy link
Owner

@kirillzyusko kirillzyusko commented Aug 22, 2024

📜 Description

Fixed cycle dependencies in the code.

💡 Motivation and Context

Cycle dependencies may lead to unpredictable results especially if you have many of them.

To fix them I used eslint rule - it's quite effective and we don't need to change CI pipelines etc. Plus we can monitor such cycles contioniously!

Closes #562

📢 Changelog

JS

  • reorganized imports to avoid cycle deps;
  • added new eslint rule usage.

🤔 How Has This Been Tested?

Tested on e2e tests on CI 🙂

📝 Checklist

  • CI successfully passed
  • I added new mocks and corresponding unit-tests if library API was changed

@kirillzyusko kirillzyusko added the refactor You changed the code but it didn't affect functionality label Aug 22, 2024
@kirillzyusko kirillzyusko self-assigned this Aug 22, 2024
Copy link
Contributor

github-actions bot commented Aug 22, 2024

📊 Package size report

Current size Target Size Difference
150179 bytes 150085 bytes 94 bytes 📈

@kirillzyusko kirillzyusko marked this pull request as ready for review August 23, 2024 09:18
@kirillzyusko kirillzyusko merged commit 1ed4cd3 into main Aug 23, 2024
13 checks passed
@kirillzyusko kirillzyusko deleted the fix/cycle-deps branch August 23, 2024 09:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactor You changed the code but it didn't affect functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Require cycle
1 participant