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 — crypto: fix error in deprecation message by Trott · Pull Request #6344 · nodejs/node

Conversation

@Trott

@Trott Trott commented Apr 22, 2016

Copy link
Copy Markdown
Member
Checklist
  • tests and code linting passes
  • a test and/or benchmark is included
  • the commit message follows commit guidelines
Affected core subsystem(s)

crypto test

Description of change

The deprecation message for crypto.Credentials says to use
tls.createSecureContext but the correct property to use is
tls.SecureContext().

Fix the deprecation message and add a test that checks the mappings of
deprecated properties and their warning messages.

@nodejs/crypto

Sorry, something went wrong.

Uh oh!

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

All reactions
@Trott Trott added crypto Issues and PRs related to the crypto subsystem. test Issues and PRs related to Node.js core tests and test infrastructure. labels Apr 22, 2016
@Trott
Trott force-pushed the deprecrypto branch from 656a4e4 to 7bfaa1c Compare April 22, 2016 05:39
@jasnell

jasnell commented Apr 22, 2016

Copy link
Copy Markdown
Member

LGTM

All reactions

Sorry, something went wrong.

Uh oh!

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

@estliberitas
estliberitas force-pushed the master branch 2 times, most recently from 7da4fd4 to c7066fb Compare April 26, 2016 05:23
@Trott
crypto: fix error in deprecation message
6e019f5
The deprecation message for `crypto.Credentials` says to use
`tls.createSecureContext` but the correct property to use is
`tls.SecureContext()`.

Fix the deprecation message and add a test that checks the mappings of
deprecated properties and their warning messages.
@Trott
Trott force-pushed the deprecrypto branch from 7bfaa1c to 6e019f5 Compare April 27, 2016 00:11
@Trott

Trott commented Apr 27, 2016

Copy link
Copy Markdown
Member Author

CI: https://ci.nodejs.org/job/node-test-pull-request/2403/

All reactions

Sorry, something went wrong.

Uh oh!

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

@Trott

Trott commented Apr 28, 2016

Copy link
Copy Markdown
Member Author

CI failures are one buildbot failure and the current problematic tick processor issue on OS X. Unrelated, of course.

All reactions

Sorry, something went wrong.

Uh oh!

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

Trott added a commit to Trott/io.js that referenced this pull request Apr 28, 2016
@Trott
crypto: fix error in deprecation message
296bfd2
The deprecation message for `crypto.Credentials` says to use
`tls.createSecureContext` but the correct property to use is
`tls.SecureContext()`.

Fix the deprecation message and add a test that checks the mappings of
deprecated properties and their warning messages.

PR-URL: nodejs#6344
Reviewed-By: James M Snell <[email protected]>
@Trott

Trott commented Apr 28, 2016

Copy link
Copy Markdown
Member Author

Landed in 296bfd2

All reactions

Sorry, something went wrong.

Uh oh!

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

@Trott Trott closed this Apr 28, 2016
Fishrock123 pushed a commit that referenced this pull request May 4, 2016
@Trott @Fishrock123
crypto: fix error in deprecation message
fdde369
The deprecation message for `crypto.Credentials` says to use
`tls.createSecureContext` but the correct property to use is
`tls.SecureContext()`.

Fix the deprecation message and add a test that checks the mappings of
deprecated properties and their warning messages.

PR-URL: #6344
Reviewed-By: James M Snell <[email protected]>
This was referenced May 4, 2016
Propose v6.1.0 wrong base please ignore #6556
Closed
Propose v6.1.0 (Openssl update) #6557
Merged
@MylesBorins

MylesBorins commented Jun 1, 2016

Copy link
Copy Markdown
Contributor

@Trott lts?

All reactions

Sorry, something went wrong.

Uh oh!

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

@MylesBorins MylesBorins added the lts-watch-v4.x label Jun 1, 2016
@Trott

Trott commented Jun 1, 2016

Copy link
Copy Markdown
Member Author

@thealphanerd Yes.

All reactions

Sorry, something went wrong.

Uh oh!

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

@MylesBorins

MylesBorins commented Jun 1, 2016 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor

@Trott test failure on v4.x-staging, can you manually backport?

edit: please include all original meta data

All reactions

Sorry, something went wrong.

Uh oh!

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

@Trott

Trott commented Jun 2, 2016

Copy link
Copy Markdown
Member Author

@thealphanerd Is the test failing because warning events don't exist in v4 or something like that? (Link to failing test?)

All reactions

Sorry, something went wrong.

Uh oh!

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

@MylesBorins

MylesBorins commented Jun 2, 2016

Copy link
Copy Markdown
Contributor
Path: parallel/test-crypto-deprecated
Mismatched <anonymous> function calls. Expected 2, actual 0.
    at Object.<anonymous> (/Users/thealphanerd/code/node/v4.x/test/parallel/test-crypto-deprecated.js:12:30)
    at Module._compile (module.js:409:26)
    at Object.Module._extensions..js (module.js:416:10)
    at Module.load (module.js:343:32)
    at Function.Module._load (module.js:300:12)
    at Function.Module.runMain (module.js:441:10)
    at startup (node.js:139:18)
    at node.js:968:3
(node) crypto.Credentials is deprecated. Use tls.SecureContext instead.
(node) crypto.createCredentials is deprecated. Use tls.createSecureContext instead.
All reactions

Sorry, something went wrong.

Uh oh!

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

@Trott

Trott commented Jun 2, 2016

Copy link
Copy Markdown
Member Author

This depends on process.emitWarning() which will not land in LTS.

So the test needs to be re-written for LTS.

Or we could choose not to land.

Or you could just land the deprecation message text change and not land the test.

All reactions

Sorry, something went wrong.

Uh oh!

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

@MylesBorins MylesBorins added dont-land-on-v4.x and removed lts-watch-v4.x labels Jul 11, 2016
@MylesBorins

MylesBorins commented Jul 11, 2016

Copy link
Copy Markdown
Contributor

@Trott I'm leaving this as don't land for now. Please feel free to open a new PR

All reactions

Sorry, something went wrong.

Uh oh!

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

@Trott
Trott deleted the deprecrypto branch January 13, 2022 22:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

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. test Issues and PRs related to Node.js core tests and test infrastructure.

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.

3 participants

@Trott @jasnell @MylesBorins
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.