GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — errors: decapitalize PBKDF2 error by tniessen · Pull Request #22687 · nodejs/node

Conversation

@tniessen

@tniessen tniessen commented Sep 4, 2018

Copy link
Copy Markdown
Member

The error code was added in #20816 and I assume it couldn't be fixed in that PR because changing the error message would have made the change semver-major.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@tniessen
errors: decapitalize PBKDF2 error
85936dd
Refs: nodejs#20816
@tniessen tniessen added crypto Issues and PRs related to the crypto subsystem. semver-major PRs that contain breaking changes and should be released in the next major version. errors Issues and PRs related to JavaScript errors originating in Node.js core. labels Sep 4, 2018
@nodejs-github-bot

nodejs-github-bot commented Sep 4, 2018

Copy link
Copy Markdown
Collaborator

@tniessen build started: https://ci.nodejs.org/blue/organizations/jenkins/node-test-pull-request-lite-pipeline/detail/node-test-pull-request-lite-pipeline/790/pipeline

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@nodejs-github-bot nodejs-github-bot added the errors Issues and PRs related to JavaScript errors originating in Node.js core. label Sep 4, 2018
jasnell
jasnell approved these changes Sep 4, 2018
View reviewed changes
Trott
Trott approved these changes Sep 4, 2018
View reviewed changes
cjihrig
cjihrig approved these changes Sep 4, 2018
View reviewed changes
lpinca
lpinca approved these changes Sep 4, 2018
View reviewed changes
BridgeAR
BridgeAR approved these changes Sep 4, 2018
View reviewed changes
@BridgeAR BridgeAR removed the semver-major PRs that contain breaking changes and should be released in the next major version. label Sep 4, 2018
@BridgeAR

BridgeAR commented Sep 4, 2018

Copy link
Copy Markdown
Member

This should not be semver-major. The whole point of having the error codes as they are is to change the message when ever we feel like it without the need to declare it semver-major.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

BridgeAR
BridgeAR approved these changes Sep 4, 2018
View reviewed changes
@tniessen

tniessen commented Sep 4, 2018

Copy link
Copy Markdown
Member Author

@BridgeAR That was the intention, yes, but the ERR_CRYPTO_PBKDF2_ERROR error code was introduced in Node.js 10.5.0, so if someone upgrades from Node.js 10.x.0 for x < 5 to whichever semver-minor release this change is included in, the error message and the code property will change, which we would consider a breaking change as far as I know.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@BridgeAR

BridgeAR commented Sep 4, 2018 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

The code property has already changed by using the new error types in general. As soon as that is in place, changing the message again should AFAIK be semver-minorpatch.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@tniessen tniessen added the semver-minor PRs that contain new features and should be released in the next minor version. label Sep 4, 2018
@tniessen

tniessen commented Sep 4, 2018

Copy link
Copy Markdown
Member Author

@BrigeAR Acknowledged, adding semver-minor in that case.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@BridgeAR

BridgeAR commented Sep 4, 2018

Copy link
Copy Markdown
Member

Sorry, I meant semver-patch.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@BridgeAR BridgeAR added author ready PRs with CI started, the required approvals, and no outstanding review comments. and removed semver-minor PRs that contain new features and should be released in the next minor version. labels Sep 4, 2018
@Trott

Trott commented Sep 5, 2018

Copy link
Copy Markdown
Member

At some point, @nodejs/tsc decided that message changes were still semver-major even though codes had been introduced because (it was believed) there is so much message-sniffing code out there. I'm personally OK with that rule being rescinded, but @-mentioning TSC here in case there's anyone who feels differently.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

addaleax
addaleax approved these changes Sep 5, 2018
View reviewed changes
trivikr
trivikr approved these changes Sep 5, 2018
View reviewed changes
@danbev

danbev commented Sep 7, 2018

Copy link
Copy Markdown
Contributor

Landed in a1a0c59.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@danbev danbev closed this Sep 7, 2018
danbev pushed a commit that referenced this pull request Sep 7, 2018
@tniessen @danbev
errors: decapitalize PBKDF2 error
a1a0c59
PR-URL: #22687
Refs: #20816
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Trivikram Kamat <[email protected]>
targos pushed a commit that referenced this pull request Sep 7, 2018
@tniessen @targos
errors: decapitalize PBKDF2 error
2cb01f0
PR-URL: #22687
Refs: #20816
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Trivikram Kamat <[email protected]>
@tniessen tniessen removed the author ready PRs with CI started, the required approvals, and no outstanding review comments. label Sep 12, 2018
@targos targos mentioned this pull request Sep 18, 2018
Release proposal: v10.11.0 #22932
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@jasnell jasnell jasnell approved these changes
@Trott Trott Trott approved these changes
@addaleax addaleax addaleax approved these changes
@lpinca lpinca lpinca approved these changes
@cjihrig cjihrig cjihrig approved these changes
@BridgeAR BridgeAR BridgeAR approved these changes
@trivikr trivikr trivikr approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

crypto Issues and PRs related to the crypto subsystem. errors Issues and PRs related to JavaScript errors originating in Node.js core.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

10 participants

@tniessen @nodejs-github-bot @BridgeAR @Trott @danbev @jasnell @addaleax @lpinca @cjihrig @trivikr
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.