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

Refactor in oder to remove circular dependencies #703

Merged
merged 1 commit into from
Mar 22, 2024

Conversation

jcbrand
Copy link
Contributor

@jcbrand jcbrand commented Mar 22, 2024

  • Moved the serialize function into the Builder
  • Moved log functions into ./log.js
  • Declare Strophe in ./index.js and don't import it from anywhere else.

@jcbrand jcbrand force-pushed the jcbrand/remove-circular-deps branch 2 times, most recently from 8bc25d5 to bdd6b58 Compare March 22, 2024 14:56
- Moved the `serialize` function into the `Builder`
- Moved log functions into `./log.js`
- Declare `Strophe` in `./index.js` and don't import it from anywhere else.

Used `dpdm` to identify circular dependencies:

```
npx dpdm src/index.js --warning=off
```
@jcbrand jcbrand force-pushed the jcbrand/remove-circular-deps branch from bdd6b58 to 0b25039 Compare March 22, 2024 14:58
@jcbrand jcbrand merged commit 62cd939 into master Mar 22, 2024
1 check passed
@jcbrand jcbrand deleted the jcbrand/remove-circular-deps branch March 22, 2024 19:13
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

Successfully merging this pull request may close these issues.

1 participant