Skip to content

Conversation

@panva
Copy link
Member

@panvapanva commented Jan 1, 2023

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

Fixes: #45987

@panvapanva 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-botnodejs-github-bot added the needs-ci PRs that need a full CI run. label Jan 1, 2023
@panvapanva added the request-ci Add this label to start a Jenkins CI on a PR. label Jan 1, 2023
@github-actionsgithub-actionsbot 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.

@panvapanvaforce-pushed the add-cryptokey-toStringTag branch from 7ea1625 to e604769CompareJanuary 1, 2023 14:26
@nodejs-github-bot

This comment was marked as outdated.

@aduh95aduh95 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

@panvapanva added the semver-minor PRs that contain new features and should be released in the next minor version. label Jan 1, 2023
@panvapanva 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
MemberAuthor

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
MemberAuthor

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.

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

@juanarboljuanarbol left a comment

Choose a reason for hiding this comment

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

LGTM

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

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
MemberAuthor

WPT was merged protest-free.

@panvapanva 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-botnodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Jan 18, 2023
@nodejs-github-botnodejs-github-bot merged commit 13f518f into nodejs:mainJan 18, 2023
@nodejs-github-bot
Copy link
Collaborator

Landed in 13f518f

@panvapanva 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: #46042Fixes: #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
@RafaelGSSRafaelGSS 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
closesnodejs#45987 PR-URL: nodejs#46042Fixes: 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
closesnodejs#45987 PR-URL: nodejs#46042Fixes: 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 added a commit to panva/node that referenced this pull request Jan 24, 2023
closesnodejs#45987 PR-URL: nodejs#46042Fixes: 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: #46042Fixes: #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
closesnodejs#45987 PR-URL: nodejs#46042 Backport-PR-URL: nodejs#46340Fixes: nodejs#45987 Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Juan José Arboleda <[email protected]>
@juanarboljuanarbol mentioned this pull request Jan 28, 2023
juanarbol pushed a commit that referenced this pull request Jan 31, 2023
closes#45987 PR-URL: #46042Fixes: #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 Mar 31, 2023
closesnodejs#45987 PR-URL: nodejs#46042Fixes: 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
closesnodejs#45987 PR-URL: nodejs#46042Fixes: 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 freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author readyPRs that have at least one approval, no pending requests for changes, and a CI started.cryptoIssues and PRs related to the crypto subsystem.needs-ciPRs that need a full CI run.semver-minorPRs 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

@panva@nodejs-github-bot@bnoordhuis@tniessen@aduh95@juanarbol