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 incorrect state extraction from query string #197

Merged
merged 4 commits into from
Sep 3, 2019
Merged

Conversation

luisrudge
Copy link
Contributor

@luisrudge luisrudge commented Sep 2, 2019

Description

CLIs that are aggressively trying to minify our already minified code (like vue-cli and ng-cli) are causing issues with one of our dependencies (qss).

What happens is that the second minification pass modifies the content or our dependency making it run a different function.
image

Because of this bug, when our code tries to get the query string from the URL, it doesn't find the state param and fails.

This PR removes qss as dependency and just encodes/decodes query strings manually.

qss is still used as a dev dependency for integration tests.

References

Fix #186

Testing

No test change because we were already testing the result of the parsed/encoded results.

  • This change adds test coverage for new/changed/fixed functionality

@luisrudge luisrudge added the small label Sep 2, 2019
@luisrudge luisrudge requested a review from a team September 2, 2019 19:56
package.json Show resolved Hide resolved
src/utils.ts Outdated Show resolved Hide resolved
damieng
damieng previously approved these changes Sep 2, 2019
@luisrudge luisrudge merged commit f61fb31 into master Sep 3, 2019
@damieng damieng deleted the fix/state-issue branch September 3, 2019 01:28
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.

Always "Invalid state" in v1.2
3 participants