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

crypto: add CryptoKey Symbol.toStringTag #46042

Merged
merged 1 commit into from
Jan 18, 2023

Conversation

panva
Copy link
Member

@panva panva commented Jan 1, 2023

Adds Symbol.toStringTag getter to CryptoKey to match other implementations behaviour.

Fixes: #45987

@panva panva added crypto Issues and PRs related to the crypto subsystem. webcrypto labels Jan 1, 2023
@nodejs-github-bot
Copy link
Collaborator

Review requested:

  • @nodejs/crypto

@nodejs-github-bot nodejs-github-bot added the needs-ci PRs that need a full CI run. label Jan 1, 2023
@panva panva added the request-ci Add this label to start a Jenkins CI on a PR. label Jan 1, 2023
@github-actions github-actions bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Jan 1, 2023
@nodejs-github-bot

This comment was marked as outdated.

@nodejs-github-bot

This comment was marked as outdated.

@nodejs-github-bot

This comment was marked as outdated.

@aduh95 aduh95 added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Jan 1, 2023
@nodejs-github-bot
Copy link
Collaborator

@panva panva added the semver-minor PRs that contain new features and should be released in the next minor version. label Jan 1, 2023
@panva panva added the commit-queue Add this label to land a pull request using GitHub Actions. label Jan 1, 2023
@bnoordhuis
Copy link
Member

I'd hold off on merging until web-platform-tests/wpt#37716 is accepted (and maybe wait a few days in case it gets reverted again.)

@panva
Copy link
Member Author

panva commented Jan 2, 2023

I'd hold off on merging until web-platform-tests/wpt#37716 is accepted (and maybe wait a few days in case it gets reverted again.)

Why? This is a QoL change that's not contradicting any existing requirement and aligns with other implementer's behaviour.

Even if the WPT wouldn't get updated it won't be for its incorrectness but rather its lack of being a requirement.

@bnoordhuis
Copy link
Member

On the off chance that the WPT people raise valid concerns about the change. It's not a break-the-world kind of bug so I'd advise against rushing out a fix.

@panva
Copy link
Member Author

panva commented Jan 2, 2023

On the off chance that the WPT people raise valid concerns about the change. It's not a break-the-world kind of bug so I'd advise against rushing out a fix.

Fine. I disagree with holding off just for the record because any valid concern would go against years of existing browser implementors having this behaviour and unlikely to be met with browser vendors' support to change.

@panva panva removed the commit-queue Add this label to land a pull request using GitHub Actions. label Jan 2, 2023
Copy link
Member

@juanarbol juanarbol left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@aduh95 aduh95 added the blocked PRs that are blocked by other issues or PRs. label Jan 3, 2023
@panva
Copy link
Member Author

panva commented Jan 18, 2023

All browsers, Deno, Bun, even widely used polyfills like PeculiarVentures/webcrypto yield the same result.

IMO there's no point in waiting for WPTs to be updated. Even if they weren't updated because for some reason this does not fall under what WPTs should be checking, we'd still have no reason for misalignment.

@panva
Copy link
Member Author

panva commented Jan 18, 2023

WPT was merged protest-free.

@panva panva added commit-queue Add this label to land a pull request using GitHub Actions. and removed blocked PRs that are blocked by other issues or PRs. labels Jan 18, 2023
@nodejs-github-bot nodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Jan 18, 2023
@nodejs-github-bot nodejs-github-bot merged commit 13f518f into nodejs:main Jan 18, 2023
@nodejs-github-bot
Copy link
Collaborator

Landed in 13f518f

@panva panva deleted the add-cryptokey-toStringTag branch January 18, 2023 18:07
RafaelGSS pushed a commit that referenced this pull request Jan 20, 2023
closes #45987

PR-URL: #46042
Fixes: #45987
Reviewed-By: Antoine du Hamel <[email protected]>
Reviewed-By: Tobias Nießen <[email protected]>
Reviewed-By: Juan José Arboleda <[email protected]>
RafaelGSS added a commit that referenced this pull request Jan 20, 2023
Notable changes:

* crypto:
  * (SEMVER-MINOR) add CryptoKey Symbol.toStringTag (Filip Skokan) [#46042](#46042)
  * (SEMVER-MINOR) add KeyObject Symbol.toStringTag (Filip Skokan) [#46043](#46043)
* http:
  * (SEMVER-MINOR) join authorization headers (Marco Ippolito) [#45982](#45982)
* lib:
  * add webstreams to Duplex.from() (Debadree Chatterjee) [#46190](#46190)
* stream:
  * implement finished() for ReadableStream and WritableStream (Debadree Chatterjee) [#46205](#46205)

PR-URL: TBD
@RafaelGSS RafaelGSS mentioned this pull request Jan 20, 2023
RafaelGSS added a commit that referenced this pull request Jan 20, 2023
Notable changes:

* crypto:
  * (SEMVER-MINOR) add CryptoKey Symbol.toStringTag (Filip Skokan) [#46042](#46042)
  * (SEMVER-MINOR) add KeyObject Symbol.toStringTag (Filip Skokan) [#46043](#46043)
* http:
  * (SEMVER-MINOR) join authorization headers (Marco Ippolito) [#45982](#45982)
* lib:
  * add webstreams to Duplex.from() (Debadree Chatterjee) [#46190](#46190)
* stream:
  * implement finished() for ReadableStream and WritableStream (Debadree Chatterjee) [#46205](#46205)

PR-URL: #46286
panva added a commit to panva/node that referenced this pull request Jan 24, 2023
closes nodejs#45987

PR-URL: nodejs#46042
Fixes: nodejs#45987
Reviewed-By: Antoine du Hamel <[email protected]>
Reviewed-By: Tobias Nießen <[email protected]>
Reviewed-By: Juan José Arboleda <[email protected]>
panva added a commit to panva/node that referenced this pull request Jan 24, 2023
closes nodejs#45987

PR-URL: nodejs#46042
Fixes: nodejs#45987
Reviewed-By: Antoine du Hamel <[email protected]>
Reviewed-By: Tobias Nießen <[email protected]>
Reviewed-By: Juan José Arboleda <[email protected]>
Backport-PR-URL: nodejs#46340
@panva panva added the backport-open-v18.x Indicate that the PR has an open backport. label Jan 24, 2023
panva added a commit to panva/node that referenced this pull request Jan 24, 2023
closes nodejs#45987

PR-URL: nodejs#46042
Fixes: nodejs#45987
Reviewed-By: Antoine du Hamel <[email protected]>
Reviewed-By: Tobias Nießen <[email protected]>
Reviewed-By: Juan José Arboleda <[email protected]>
Backport-PR-URL: nodejs#46340
juanarbol pushed a commit that referenced this pull request Jan 26, 2023
closes #45987

PR-URL: #46042
Fixes: #45987
Reviewed-By: Antoine du Hamel <[email protected]>
Reviewed-By: Tobias Nießen <[email protected]>
Reviewed-By: Juan José Arboleda <[email protected]>
juanarbol pushed a commit to panva/node that referenced this pull request Jan 28, 2023
closes nodejs#45987

PR-URL: nodejs#46042
Backport-PR-URL: nodejs#46340
Fixes: nodejs#45987
Reviewed-By: Antoine du Hamel <[email protected]>
Reviewed-By: Tobias Nießen <[email protected]>
Reviewed-By: Juan José Arboleda <[email protected]>
@juanarbol juanarbol mentioned this pull request Jan 28, 2023
juanarbol pushed a commit that referenced this pull request Jan 31, 2023
closes #45987

PR-URL: #46042
Fixes: #45987
Reviewed-By: Antoine du Hamel <[email protected]>
Reviewed-By: Tobias Nießen <[email protected]>
Reviewed-By: Juan José Arboleda <[email protected]>
@panva panva removed dont-land-on-v16.x backport-open-v18.x Indicate that the PR has an open backport. labels Mar 31, 2023
panva added a commit to panva/node that referenced this pull request Mar 31, 2023
closes nodejs#45987

PR-URL: nodejs#46042
Fixes: nodejs#45987
Reviewed-By: Antoine du Hamel <[email protected]>
Reviewed-By: Tobias Nießen <[email protected]>
Reviewed-By: Juan José Arboleda <[email protected]>
Backport-PR-URL: nodejs#47336
panva added a commit to panva/node that referenced this pull request Mar 31, 2023
closes nodejs#45987

PR-URL: nodejs#46042
Fixes: nodejs#45987
Reviewed-By: Antoine du Hamel <[email protected]>
Reviewed-By: Tobias Nießen <[email protected]>
Reviewed-By: Juan José Arboleda <[email protected]>
Backport-PR-URL: nodejs#47336
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
author ready PRs that have at least one approval, no pending requests for changes, and a CI started. crypto Issues and PRs related to the crypto subsystem. needs-ci PRs that need a full CI run. semver-minor PRs that contain new features and should be released in the next minor version. webcrypto
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CryptoKey string tag imprecise for detection
6 participants