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

feat: Re-emit messages from legacy namespace on new namespace #9

Merged
merged 1 commit into from Mar 23, 2024

Conversation

phated
Copy link
Member

@phated phated commented Mar 23, 2024

In v2 of sparkles, we switched to using a symbol to attach our event emitter to the global. This leads to blackholing of messages if we don't listen to the old emitter. In this PR, I'm consuming a new legacy module from our sparkles package to listen for messages on the old namespace. If a message is received, a deprecated event is emitted that a consumer can listen to and show a message. Then, the message is re-emitted on the new logger namespace.

This will help us with gulpjs/gulp-cli#249

@phated phated requested a review from sttk March 23, 2024 22:32
@phated phated merged commit 88350e4 into master Mar 23, 2024
15 checks passed
@phated phated deleted the phated/deprecated-legacy-namespace branch March 23, 2024 22:36
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.

None yet

1 participant