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

pass filter arguments as array #22

Merged
merged 1 commit into from
May 27, 2024
Merged

pass filter arguments as array #22

merged 1 commit into from
May 27, 2024

Conversation

cappuc
Copy link
Contributor

@cappuc cappuc commented May 27, 2024

Destructuring filter arguments can cause naming collision with internal variable names (ex. right now you cannot have an argument named 'value').

This PR fixes the problem passing all argument as array to render context and filter registry and destructuring the array only when calling the filter method.

This is not considered a breaking change since the changed methods should be called only internally

@cappuc cappuc merged commit 885f0c7 into main May 27, 2024
16 checks passed
@cappuc cappuc deleted the fix-filter-args branch June 10, 2024 12:30
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