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 publish wrapper on meteor 3.0 #315

Conversation

nachocodoner
Copy link
Member

@nachocodoner nachocodoner commented Sep 3, 2024

This PR refers to the issue #314 and refered to the core at meteor/meteor#13258.

The fix involves using EnvironmentVariable.withValue before calling publish.call. This ensures the context is preserved and spread properly throughout the entire flow of an altered publication. This was a breaking change on Meteor 3 added on this change, meteor/meteor#13063.

All tests pass ok related with package itself. Not sure if meteor-collection-hooks is fully compatible for 3.0 already, but this change needs to be published when the new/next version is out.

image

@StorytellerCZ
Copy link
Member

I will release another rc once I update the tests to at least run properly.

@StorytellerCZ StorytellerCZ merged commit c9715e0 into Meteor-Community-Packages:migrate/3.0 Sep 3, 2024
1 of 3 checks 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