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

Remove deprecated async allow/deny #464

Merged
merged 5 commits into from
Feb 14, 2025

Conversation

StorytellerCZ
Copy link
Member

Meteor 3.1.1 introduce deprecation warnings. collection2 triggered a lot of them. This is due allow/deny async versions being deprecated now. Not sure if this is the best fix, but I think it is a good start and at least it clears the console of those warnings.

Meteor 3.1.1 introduce deprecation warnings. collection2 triggered a lot of them. This is due allow/deny async versions being deprecated now. Not sure if this is the best fix, but I think it is a good start and at least it clears the console of those warnings.
@StorytellerCZ
Copy link
Member Author

Right now I can't determine if the tests are wrong or I am missing something in my picture. Any idea @jankapunkt ?

@jankapunkt
Copy link
Member

haha sorry @StorytellerCZ I also opened a PR for this #465 LOL didn't see this one.

So I did some investigation and it seems this is a bit breaking. We currently have a tight split between sync and async rules, each for the respective counterpart of MongoDB collections.

Now we need to have only sync-style names for the allow/deny rules (where one rule represents server AND client and sync AND async somehow).

This also assumes there are no Fibers anymore so our backwards compatibility is now definitely broken. We should get in contact with Nacho to get a clear picture of their intention and the background to make an informed decision on how we move on with this

@StorytellerCZ
Copy link
Member Author

We can also probably do a major version without fibers to lighten things up for those who can go there.

@StorytellerCZ
Copy link
Member Author

Maybe related: meteor/meteor#13499

@StorytellerCZ StorytellerCZ linked an issue Feb 13, 2025 that may be closed by this pull request
@StorytellerCZ
Copy link
Member Author

@harryadel @jankapunkt figured out the tests. Had to make a Meteor version test to see if to include them or not to remain backward compatible. Not the most elegant solution, but it works.

@jankapunkt
Copy link
Member

sometimes banana-problems require monkey-patching 😆

@StorytellerCZ
Copy link
Member Author

Merging, will release as 4.1.0.

@StorytellerCZ StorytellerCZ merged commit 9fb49e3 into master Feb 14, 2025
6 checks passed
@StorytellerCZ StorytellerCZ deleted the feature/fix-deprecation-warnings branch February 14, 2025 11:34
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.

Triggers deprecation warnings in Meteor 3.1.1 allow-deny package
2 participants