proton-pmcrypto/lib
larabr 22993e8ec7
TS: support v5.9.2 (Uint8Array<ArrayBuffer>-related breaking changes) (#223)
Also, enforce declaring Uint8Array<ArrayBuffer> via ESLint.
This is to limit the need to downcast Uint8Array in output
when using them with e.g. WebCrypto and Blobs,
following an incompatible interface change between ArrayBuffer
and SharedArrayBuffer (enforced in TS v5.9).

More context:
a `Uint8Array` type definition without generic-type indicator defaults to
`Uint8Array<ArrayBufferLike>`.
The core of the issue is that in ES2024, SharedArrayBuffer and ArrayBuffer
are no longer compatible, hence an ArrayBufferLike (which is also supertype of
SharedArrayBuffer) cannot be passed if an ArrayBuffer is expected.
This breaks Uint8Array usages which expect an ArrayBuffer (which is the case for
e.g. the WebCrypto API).
2025-08-13 17:14:37 +02:00
..
crypto TS: support v5.9.2 (Uint8Array<ArrayBuffer>-related breaking changes) (#223) 2025-08-13 17:14:37 +02:00
key TS: support v5.9.2 (Uint8Array<ArrayBuffer>-related breaking changes) (#223) 2025-08-13 17:14:37 +02:00
message TS: support v5.9.2 (Uint8Array<ArrayBuffer>-related breaking changes) (#223) 2025-08-13 17:14:37 +02:00
bigInteger.ts TS: support v5.9.2 (Uint8Array<ArrayBuffer>-related breaking changes) (#223) 2025-08-13 17:14:37 +02:00
constants.ts decrypt/verifyMessage: by default, verify messages slightly in the future compared to server time (#200) 2024-05-28 12:28:27 +02:00
index.ts Add support for exporting TS modules, use airbnb/base ESlint rules for TS too 2022-06-17 19:16:33 +02:00
openpgp.ts Enable OpenPGP.js grammar check by default (config.enforceGrammar) 2025-06-23 17:05:16 +02:00
pmcrypto.d.ts TS: support v5.9.2 (Uint8Array<ArrayBuffer>-related breaking changes) (#223) 2025-08-13 17:14:37 +02:00
pmcrypto.js getSHA256Fingerprints: performance improvement for v6 keys (reuse key fingerprint) (#207) 2025-01-27 14:01:33 +01:00
serverTime.ts Rewrite constants and serverTime modules in TS 2022-06-17 19:16:33 +02:00
utils.ts TS: support v5.9.2 (Uint8Array<ArrayBuffer>-related breaking changes) (#223) 2025-08-13 17:14:37 +02:00