-
Notifications
You must be signed in to change notification settings - Fork 43
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 dns lookup #153
Remove dns lookup #153
Conversation
@skeggse - just wanted to touch base on the punycode length calculation. |
Oops, sorry. I'm busy over the next week and don't have time to help with this. I'm not sure where to go with |
Yeah, I'm throwing in the towel on calculating a punycoded string length without implementing the full punycode algorithm. With the bias adaptation and state machine advancement, I don't think you can shortcut to the process... Here's the 34 page RFC describing the algo and implementation if anyone else wants to take a crack at it. |
Okay, in the interest of potentially getting this merged in while removing a dependency, I copied over the punycode encoding algorithm from https://github.com/bestiejs/punycode.js. I believe this is done, but please let me know if I've missed any test cases. I updated existing Unicode tests surrounding domain length and domain label length to respect the punycode algorithm length result per RFC 5890 section 2.3.2.1, and added a new case or two to check the failing punycoded length. |
@skeggse @hueniverse sorry, but I'm gonna bump this. Currently the main blocker to publishing international characters and removing DNS checks is the outstanding question around the
What are your thoughts? Is there a 3rd option I neglected? |
I would go with 1. |
Yeah, 1 is definitely my preference, too. I don't know that we want to be in the business of |
If @Marsup agrees with my plan here: hapijs/joi#1199, you can do whatever you want here (e.g. new deps) because I will block isemail from hapi core. Since hapi core doesn't use the |
Thank you for weighing in and offering a solution, @hueniverse ! Since the Joi PR was merged in to make this an optional dependency, I went ahead and updated this PR to utilize the @skeggse - as far as I can tell this is now done and just awaiting your approval/feedback. :) |
@skeggse any thoughts on how we should proceed here? |
Yeesh I knew I was behind on things but February? |
The change in ismemail from `v2.x.x` to `v3.x.x` was a siginificant change in that it deprecated the requirement for the `dns` module: skeggse/isemail#153 Therefore `joi` requires a minor version increment.
Per #152 : this PR is to remove the DNS lookup functionality and pull the
punycode
dependency back out.[EDITED] This is as done as can be without further input from @hueniverse on the
punycode
dependency question.