Skip to content

Conversation

@evanlucas
Copy link
Contributor

Moves isIP and related functions to dns.

This change does affect how the dns module is loaded in net. It is no longer loaded lazily.

This PR also updates the docs for the change.

EDIT: Updated to simply remove the comment.

@caitp
Copy link
Contributor

caitp commented Jan 11, 2015

was this discussed somewhere? the api is not really specific to name resolution, and it seems like a pretty serious compat-break

@evanlucas
Copy link
Contributor Author

It simply had a TODO comment that it needed to be moved to dns. I do understand the concern though.

@caitp
Copy link
Contributor

caitp commented Jan 11, 2015

it's not crystal clear to me what @ry's thought process was when saying it belonged in dns, but if it is changed here, there should still be an alias for it in net imo

@evanlucas
Copy link
Contributor Author

That's a good idea

@caitp
Copy link
Contributor

caitp commented Jan 11, 2015

before going too crazy, just remember that if people started using both, there'd be two sets of duplicate apis to worry about, not sure anyone wants that =) anyway, happy hacking~

@bnoordhuis
Copy link
Member

@evanlucas IMO, there's much less churn if you simply remove the comment. Like @caitp said, isIP() is not really DNS-specific. The comment is arguably wrong.

@evanlucas
Copy link
Contributor Author

That works for me. Thanks!

It is not really DNS-specific so keeping it in net makes more sense.
@evanlucas evanlucas changed the title Move net.isIP into dns Remove TODO for moving net.isIP into dns Jan 11, 2015
@evanlucas
Copy link
Contributor Author

Ok, I went ahead and changed it to only remove the comment.

bnoordhuis pushed a commit that referenced this pull request Jan 11, 2015
It is not really DNS-specific so keeping it in net makes more sense.

PR-URL: #286
Reviewed-By: Ben Noordhuis <[email protected]>
@bnoordhuis
Copy link
Member

Thanks Evan, landed in d51efd0!

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.

3 participants