Skip to content

Commit 263464f

Browse files
golorodendependabot[bot]claude
authored
chore: bump @types/node from 24.10.1 to 25.0.10 (#316)
* chore: bump @types/node from 24.10.1 to 25.0.10 Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 24.10.1 to 25.0.10. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node) --- updated-dependencies: - dependency-name: "@types/node" dependency-version: 25.0.10 dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * fix: use KeyObject instead of PEM string in test The @types/node v25 update enforces stricter typing for crypto functions. verifySignature expects a crypto.KeyObject, not a PEM-encoded string. Remove the publicKeyEncoding option to get a KeyObject directly from generateKeyPairSync. --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Claude <noreply@anthropic.com>
1 parent c02d594 commit 263464f

3 files changed

Lines changed: 6 additions & 8 deletions

File tree

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
},
1919
"devDependencies": {
2020
"@biomejs/biome": "2.3.12",
21-
"@types/node": "24.10.1",
21+
"@types/node": "25.0.10",
2222
"get-port": "7.1.0",
2323
"tsup": "8.5.1",
2424
"tsx": "4.21.0",

src/Event.test.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,7 @@ suite('Event', { timeout: 30_000 }, () => {
8989
const writtenEvent = writtenEvents[0];
9090
assert.equal(writtenEvent.signature, null);
9191

92-
const { publicKey: verificationKey } = crypto.generateKeyPairSync('ed25519', {
93-
publicKeyEncoding: { format: 'pem', type: 'spki' },
94-
});
92+
const { publicKey: verificationKey } = crypto.generateKeyPairSync('ed25519');
9593

9694
assert.throws((): void => {
9795
writtenEvent.verifySignature(verificationKey);

0 commit comments

Comments
 (0)