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

dns: remove exports.ADNAME #3076

Closed
wants to merge 1 commit into from

Conversation

silverwind
Copy link
Contributor

This is the semver-major part of #3051 which removes the nonexistant errorcode EADNAME.

@silverwind silverwind added dns Issues and PRs related to the dns subsystem. semver-major PRs that contain breaking changes and should be released in the next major version. labels Sep 26, 2015
@silverwind silverwind changed the title dns: remove exports.EADNAME dns: remove exports.ADNAME Sep 26, 2015
@silverwind
Copy link
Contributor Author

Fixed the commit title.

@ChALkeR
Copy link
Member

ChALkeR commented Sep 26, 2015

From #3051 (comment), everything that actually uses or defines the misspelled variant ADNAME/EADNAME:

biojs-vis-blast-0.1.5.tgz/node/lib/dns.js:323:exports.ADNAME = 'EADNAME';
cares-1.0.1.tgz/lib/cares.js:381:exports.ADNAME = 'EADNAME';
commonjs-everywhere-0.9.7.tgz/node/lib/dns.js:203:exports.ADNAME = 'EADNAME';
flush-all-0.1.1.tgz/node-v0.13/lib/dns.js:323:exports.ADNAME = 'EADNAME';
jsg-0.0.3.tgz/testdata/node_core_modules/dns.js:258:exports.ADNAME = 'EADNAME';
nice-http-0.1.0-alfa.tgz/src/dns.js:256:exports.ADNAME = 'EADNAME';
node-core-lib-0.11.11.tgz/dns.js:258:exports.ADNAME = 'EADNAME';
node-natives-0.10.25.tgz/dns.js:203:exports.ADNAME = 'EADNAME';
pezhu-0.0.0.tgz/Downloads/node-v0.9.11/lib/dns.js:202:exports.ADNAME = 'EADNAME';
pn-0.0.1.tgz/dns.js:7:  ADNAME: { enumerable: true, value: dns.ADNAME },
portable-js-0.0.3.tgz/misc/io/dns.js:338:exports.ADNAME = 'EADNAME';
portable-js-0.0.3.tgz/misc/node/dns.js:325:exports.ADNAME = 'EADNAME';

Only the pn module actually uses it (I just filed an issue there), all the others copy-paste exports.ADNAME = 'EADNAME'.

LGTM for a major. There should be more explanation in the commit message details, though.

silverwind added a commit that referenced this pull request Sep 27, 2015
Adds the documented but missing DNS error exports.BADNAME. This export
has been there before but got lost in a 2012 commit that added more
error codes. #3076 will remove the
wrong error code exports.ADNAME.

PR-URL: #3051
Fixes: #3050
Reviewed-By: Сковорода Никита Андреевич <[email protected]>
Reviewed-By: Michaël Zasso <[email protected]>
Reviewed-By: Evan Lucas <[email protected]>
@silverwind silverwind closed this Sep 27, 2015
This error code export was mistakingly introduced in a 2012 commit which
added more error codes. The correct export.BADNAME was added in
nodejs#3051.

Semver: Major
PR-URL: nodejs#3051
Fixes: nodejs#3050
@silverwind silverwind reopened this Sep 27, 2015
@silverwind
Copy link
Contributor Author

Updated commit details and rebased.

@thefourtheye
Copy link
Contributor

LGTM

@silverwind
Copy link
Contributor Author

Thanks, landed in 680dda8.

@silverwind silverwind closed this Sep 27, 2015
@rvagg
Copy link
Member

rvagg commented Sep 29, 2015

sorry to have missed this, I would have voted for adding a deprecation warning on a getter for this instead of jumping straight to removal

@rvagg
Copy link
Member

rvagg commented Sep 29, 2015

actually, I'm pretty sure this was done over a weekend and merged way too fast, particularly for a semver-major, can we be a bit more patient on these kinds of things, pretty please?

@ChALkeR
Copy link
Member

ChALkeR commented Sep 29, 2015

@rvagg It's a semver-major just to be on the safe side. It was never useful or documented -- it's a simple mistype. See #3051 (it also had the start of this discussion). I can hardly imagine how removing it could break (or even change) anything in real code.

If you still feel that there has to be a warning, it's not too late to introduce it. What do you think?

Just explaining things here, I got the point about semver-major PRs.

@rvagg
Copy link
Member

rvagg commented Sep 29, 2015

OK .. so I'm a little slow on this one, just to confirm, this is simply an exported string and was not used or referenced by anything else right?

@silverwind
Copy link
Contributor Author

@rvagg exactly. These error exports look to be there for comparision purpose so one can do if (err.code === dns.BADNAME). The first version of #3051 did both add the correct version and remove the incorrect one commit, but we then decided it's best to split the PR into two parts, one being major. It's highly unlikely anything is going to break in this change, imho.

@rvagg
Copy link
Member

rvagg commented Sep 29, 2015

ok, thanks, I retract my comments then!

silverwind added a commit that referenced this pull request Sep 30, 2015
Adds the documented but missing DNS error exports.BADNAME. This export
has been there before but got lost in a 2012 commit that added more
error codes. #3076 will remove the
wrong error code exports.ADNAME.

PR-URL: #3051
Fixes: #3050
Reviewed-By: Сковорода Никита Андреевич <[email protected]>
Reviewed-By: Michaël Zasso <[email protected]>
Reviewed-By: Evan Lucas <[email protected]>
@rvagg rvagg mentioned this pull request Sep 30, 2015
silverwind referenced this pull request Sep 30, 2015
This error code export was mistakingly introduced in a 2012 commit which
added more error codes. The correct export.BADNAME was added in
#3051.

Semver: Major
PR-URL: #3051
Fixes: #3050
Reviewed-By: Сковорода Никита Андреевич <[email protected]>
Reviewed-By: Sakthipriyan Vairamani <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dns Issues and PRs related to the dns subsystem. semver-major PRs that contain breaking changes and should be released in the next major version.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants