Skip to content

Commit 22a8a1e

Browse files
committed
chore(dev): add notes to take care of later
update compatibility to node 20 with webcrypto after package updates and fixes are done
1 parent 9b86a03 commit 22a8a1e

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

lib/crypto/crypto-engine.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
/*
2+
@note as of node 19, webcrypto is now global.
3+
update script to work with node 19, until then, build with node 18
4+
- https://nodejs.org/id/blog/announcements/v19-release-announce#stable-webcrypto
5+
6+
- The WebCrypto API is now stable (with the exception of the following algorithms:
7+
Ed25519, Ed448, X25519, and X448)
8+
9+
- Use globalThis.crypto or require('node:crypto').webcrypto to access this module.
10+
*/
11+
112
import { KdbxError } from '../errors/kdbx-error';
213
import { ErrorCodes } from '../defs/consts';
314
import { arrayToBuffer, hexToBytes } from '../utils/byte-utils';

test/utils/var-dictionary.spec.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
/*
2+
@note Disable typescript checking for this file since we are explicity trying to check for
3+
invalid types. this became a requirement in typescript v5x
4+
5+
@ref 'throws error for bad value type on set'
6+
*/
7+
8+
// @ts-nocheck
9+
110
import expect from 'expect.js';
211
import { BinaryStream, ByteUtils, Consts, Int64, VarDictionary } from '../../lib';
312
import { ValueType } from '../../lib/utils/var-dictionary';

0 commit comments

Comments
 (0)