larabr
7881b850ec
6.0.0-alpha.0
2023-10-25 12:55:43 +02:00
larabr
30635c72e8
Lint: error on unnecessary switch-case braces
...
Also fix some indent issues with armoring code detected after required ESLint update.
s
2023-10-25 12:53:15 +02:00
larabr
9a547b4553
Update rollup to v3
2023-10-25 12:53:14 +02:00
larabr
5456211266
Simplify userID parsing based on conventions, drop third-party parsing lib
...
Follow conventions as per https://datatracker.ietf.org/doc/draft-dkg-openpgp-userid-conventions
2023-10-25 12:53:14 +02:00
larabr
a56a4a16e8
Use internal tweetnacl SHA-512 implementation
...
Instead of relying on externally provided one (no async loading supported)
2023-10-25 12:53:14 +02:00
larabr
a9fae5ff12
Replace indutny-elliptic lib with noble-curves
...
Unlike elliptic, noble-curves targets algorithmic constant time, and
it relies on the native BigInts when available, resulting in a smaller bundle
and improved performance.
Also, expand testing of fallback elliptic implementation.
2023-10-25 12:53:14 +02:00
larabr
1ebf7034f5
crypto-refresh
: add support for Ed448
2023-10-25 12:53:13 +02:00
larabr
538b5b6304
Set Node 16 as minimum supported version in package.json
2023-10-25 12:53:11 +02:00
larabr
e07a0c432a
Replace hash.js with noble-hashes
2023-10-25 12:53:11 +02:00
larabr
b3ef95e60e
Tests: update sinon
2023-10-25 12:53:11 +02:00
larabr
21a6d83ec8
Update asmcrypto.js, use for AES only (move to noble-hashes for sha1, sha256)
2023-10-25 12:53:10 +02:00
larabr
0b2767fe4c
Replace pako with fflate as compression lib
...
fflate already supports ESM and is actively maintained
2023-10-25 12:53:10 +02:00
larabr
d49d92e5cb
Update to Mocha v10 in tests, declare lib as module
and add exports
to package.json
...
Mocha v10 requires the lib to be esm compliant.
ESM mandates the use of file extensions in imports, so to minimize the
changes (for now), we rely on the flag `experimental-specifier-resolution=node`
and on `ts-node` (needed only for Node 20).
Breaking changes:
downstream bundlers might be affected by the package.json changes depending on
how they load the library.
NB: legacy package.json entrypoints are still available.
2023-10-25 12:53:10 +02:00
larabr
ebf22f2ee7
crypto-refresh
: add support for Argon2 S2K (#1597 )
...
In terms of API, this feature is backwards compatible, no breaking changes.
However, since a Wasm module is loaded for the Argon2 computation, browser apps
might need to make changes to their CSP policy in order to use the feature.
Newly introduced config fields:
- `config.s2kType` (defaulting to `enums.s2k.iterated`): s2k to use on
password-based encryption as well as private key encryption;
- `config.s2kArgon2Params` (defaulting to "uniformly safe settings" from Argon
RFC): parameters to use on encryption when `config.s2kType` is set to
`enums.s2k.argon2`;
2023-10-25 12:53:10 +02:00
Daniel Huigens
cec4e029f0
Update web-stream-tools
2023-10-25 12:53:10 +02:00
larabr
7003d19c71
5.11.0
2023-10-25 12:04:48 +02:00
larabr
96d6e76c05
Fix stream closure when using Node's stream.pipeline ( #1691 )
2023-10-11 17:30:36 +02:00
larabr
d6145ac73e
5.10.2
2023-09-18 14:47:25 +02:00
larabr
5d02e3a03e
5.10.1
2023-08-29 16:52:34 +02:00
larabr
4df86e53a7
5.10.0
2023-08-29 14:59:17 +02:00
larabr
5ae2846d97
CI: test on iOS Safari 14 instead of 15 to have access to SubtleCrypto
...
SubtleCrypto not available in the latter due to stricter secure context checks
2023-07-25 10:18:05 +02:00
larabr
400b163f84
5.9.0
2023-05-15 16:47:20 +02:00
Daniel Huigens
726ee55de4
5.8.0
2023-04-18 19:21:24 +02:00
Daniel Huigens
c60f2e3490
5.7.0
2023-02-21 19:14:36 +01:00
larabr
705f238e1e
Update ESlint
2023-02-21 18:27:56 +01:00
larabr
1b17132631
Update deps
2023-02-21 18:25:28 +01:00
larabr
080b49a4ce
Merge pull request #1549 from larabr/test-update-karma-browsers
2023-02-21 16:16:55 +01:00
larabr
dcd28fadc6
CI: test latest Safari
2023-02-20 16:08:19 +01:00
larabr
18333999a2
CI: test latest browsers without Browserstack, cache build step across jobs
2023-02-20 16:08:10 +01:00
larabr
b083e1d067
Update Karma
2023-02-20 15:34:39 +01:00
Daniel Huigens
0307111993
5.6.0
2023-02-16 14:32:01 +01:00
Daniel Huigens
d0be98feb9
5.5.0
2022-08-31 13:56:51 +02:00
larabr
ca60884c05
5.4.0
2022-08-08 13:49:52 +02:00
Daniel Huigens
bd1a7db46f
Use npm ci
instead of npm install
in release script
...
In order not to update the package-lock.json file during releases.
2022-06-29 21:15:18 +02:00
Daniel Huigens
5c02953b1c
5.3.1
2022-06-29 21:02:15 +02:00
Daniel Huigens
e69d8b24fc
Fix armor error handling ( #1541 )
...
Fix unhandled promise rejections when parsing armor with malformed footers.
2022-06-29 20:09:30 +02:00
Daniel Huigens
449ec3a367
Fix CNAME and make docs script portable
2022-06-09 12:54:22 +02:00
larabr
b677ab5949
5.3.0
2022-06-08 16:10:17 +02:00
Daniel Huigens
d677c30359
5.2.1
2022-03-15 14:59:45 +01:00
larabr
d89cc48bf3
TypeScript: rely on new web-stream-tools
types, fix SignOptions
( #1502 )
...
The updated stream types improve type inference and checks, in particular when
using ReadableStreams.
Also:
- add `EncryptSessionKeyOptions` to make it easier to declare wrapper functions
of `encryptSessionKey`;
- tighter output type inference in `Message.getText()` and `.getLiteralData()`.
2022-03-09 17:00:12 +01:00
Daniel Huigens
a1ef5f509f
5.2.0
2022-03-02 21:35:43 +01:00
larabr
7aaa34ddfc
CI: update mocha
( #1503 )
...
Update to mocha@8 instead of 9 because the latter dropped support for `--require
esm`, hence using it would require more extensive changes.
2022-03-01 16:34:52 +01:00
Daniel Huigens
717f6bffe4
Update web-stream-tools
2022-02-01 16:24:52 +01:00
Daniel Huigens
917b5e51c2
Persist docs/CNAME after release
2022-01-25 18:53:32 +01:00
Daniel Huigens
bd13edfc88
5.1.0
2022-01-24 18:38:46 +01:00
Daniel Huigens
05e435aae7
5.0.1
2021-11-17 21:46:14 +01:00
Daniel Huigens
1d2093ab0a
Update web stream tools and improve performance ( #1439 )
...
Optimize reading literal data packet from ArrayStreams, and update
web-stream-tools (with various performance improvements).
2021-11-17 21:34:04 +01:00
larabr
b7527f7966
CI: Add memory usage regression monitoring for pull requests ( #1415 )
2021-10-15 16:16:34 +02:00
larabr
421733e21b
CI: Add performance regression monitoring for pull requests ( #1411 )
2021-10-14 18:59:14 +02:00
Daniel Huigens
acafb28661
5.0.0
2021-09-02 17:09:02 +02:00