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

Use Base64.urlsafe_decode64 for forward compatibility #1748

Merged

Conversation

gfx
Copy link
Contributor

@gfx gfx commented Aug 8, 2018

In order to ensure forward compatibility, or to safely migrate urslafe_encode64, graphql-ruby should be able to decode URL-safe base64 cursors and relay ids by default.

This is, of course, backward compatible.

cf. #1698 (comment)

@rmosolgo rmosolgo added this to the 1.8.7 milestone Aug 9, 2018
@rmosolgo
Copy link
Owner

rmosolgo commented Aug 9, 2018

Awesome, that will make compatibility easy in the future!

@rmosolgo rmosolgo merged commit 0f0eef8 into rmosolgo:master Aug 9, 2018
@gfx gfx deleted the urlsafe_decode64_for_forward_compatibility branch August 10, 2018 06:56
@gfx
Copy link
Contributor Author

gfx commented Aug 10, 2018

Thanks!

gfx added a commit to gfx/graphql-ruby that referenced this pull request Aug 10, 2018
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