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

Separate query params from route params #37

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ig3
Copy link

@ig3 ig3 commented Feb 3, 2020

As you know and documented, there was a potential collision between route and query parameters because they are both returned in the first argument to the route handler. For my own purposes I wanted to avoid this, so I separated the query parameters into a new second argument to the route handler, which now has four arguments. It reduces minified size to 689. But it is a breaking change.

As it is a breaking change, I anticipate that you may not want to merge this, which is fine. But I really appreciate your module so wanted to return this to you. In any case, thank you very much for rlite. I only just discovered it today, but it is (with this change) just what I need and more suitable than a dozen or so others I investigated: a little experiment that has gone very well indeed!!

This is a breaking change. Four arguments are returned to the route
handler instead of three. All query parameters are passed in the new
second argument, instead of being merged with the route parameters in
the first argument. The other two arguments are unchanged.

Tests and documentation are updated and version is set to 3.0.0, as this
changes the API.

Minified size is reduced to 689.
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