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

fix: remove circular deps #15

Merged
merged 1 commit into from
Jan 22, 2024
Merged

fix: remove circular deps #15

merged 1 commit into from
Jan 22, 2024

Conversation

yjl9903
Copy link
Contributor

@yjl9903 yjl9903 commented Jan 22, 2024

Before, src/shared.ts dynamic imports src/shims/node.ts, while src/shims/node.ts imports src/shared.ts. So there is circular deps here.

In the node v18, it may cause node process exits unexpectedly. So I lift up the shared decode function.

@hydrati
Copy link
Owner

hydrati commented Jan 22, 2024

LGTM, thanks.

@hydrati
Copy link
Owner

hydrati commented Jan 22, 2024

LGTM, thanks.

It'll be added in the new version on this Sat @yjl9903

@hydrati hydrati merged commit 17b28f4 into hydrati:main Jan 22, 2024
1 check passed
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.

2 participants