Daniel Huigens
6f570a02ae
Switch from seek-bzip to unbzip2-stream
...
To allow streaming decompression of bzip2 data.
2025-11-14 15:00:36 +01:00
dependabot[bot]
9764b268b3
Bump the dev-dependencies group with 10 updates ( #1927 )
...
* Bump the dev-dependencies group with 10 updates
Bumps the dev-dependencies group with 10 updates:
| Package | From | To |
| --- | --- | --- |
| [@eslint/js](https://github.com/eslint/eslint/tree/HEAD/packages/js ) | `9.37.0` | `9.38.0` |
| [@openpgp/web-stream-tools](https://github.com/openpgpjs/web-stream-tools ) | `0.2.0` | `0.2.1` |
| [@rollup/plugin-commonjs](https://github.com/rollup/plugins/tree/HEAD/packages/commonjs ) | `28.0.7` | `28.0.9` |
| [@rollup/plugin-replace](https://github.com/rollup/plugins/tree/HEAD/packages/replace ) | `6.0.2` | `6.0.3` |
| [@rollup/plugin-typescript](https://github.com/rollup/plugins/tree/HEAD/packages/typescript ) | `12.1.4` | `12.3.0` |
| [@stylistic/eslint-plugin](https://github.com/eslint-stylistic/eslint-stylistic/tree/HEAD/packages/eslint-plugin ) | `5.4.0` | `5.5.0` |
| [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node ) | `24.7.2` | `24.9.2` |
| [eslint](https://github.com/eslint/eslint ) | `9.37.0` | `9.38.0` |
| [rollup](https://github.com/rollup/rollup ) | `4.52.4` | `4.52.5` |
| [typescript-eslint](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/typescript-eslint ) | `8.46.1` | `8.46.2` |
Updates `@eslint/js` from 9.37.0 to 9.38.0
- [Release notes](https://github.com/eslint/eslint/releases )
- [Commits](https://github.com/eslint/eslint/commits/v9.38.0/packages/js )
Updates `@openpgp/web-stream-tools` from 0.2.0 to 0.2.1
- [Commits](https://github.com/openpgpjs/web-stream-tools/compare/v0.2.0...v0.2.1 )
Updates `@rollup/plugin-commonjs` from 28.0.7 to 28.0.9
- [Changelog](https://github.com/rollup/plugins/blob/master/packages/commonjs/CHANGELOG.md )
- [Commits](https://github.com/rollup/plugins/commits/commonjs-v28.0.9/packages/commonjs )
Updates `@rollup/plugin-replace` from 6.0.2 to 6.0.3
- [Changelog](https://github.com/rollup/plugins/blob/master/packages/replace/CHANGELOG.md )
- [Commits](https://github.com/rollup/plugins/commits/babel-v6.0.3/packages/replace )
Updates `@rollup/plugin-typescript` from 12.1.4 to 12.3.0
- [Changelog](https://github.com/rollup/plugins/blob/master/packages/typescript/CHANGELOG.md )
- [Commits](https://github.com/rollup/plugins/commits/typescript-v12.3.0/packages/typescript )
Updates `@stylistic/eslint-plugin` from 5.4.0 to 5.5.0
- [Release notes](https://github.com/eslint-stylistic/eslint-stylistic/releases )
- [Changelog](https://github.com/eslint-stylistic/eslint-stylistic/blob/main/CHANGELOG.md )
- [Commits](https://github.com/eslint-stylistic/eslint-stylistic/commits/v5.5.0/packages/eslint-plugin )
Updates `@types/node` from 24.7.2 to 24.9.2
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node )
Updates `eslint` from 9.37.0 to 9.38.0
- [Release notes](https://github.com/eslint/eslint/releases )
- [Commits](https://github.com/eslint/eslint/compare/v9.37.0...v9.38.0 )
Updates `rollup` from 4.52.4 to 4.52.5
- [Release notes](https://github.com/rollup/rollup/releases )
- [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rollup/rollup/compare/v4.52.4...v4.52.5 )
Updates `typescript-eslint` from 8.46.1 to 8.46.2
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases )
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/typescript-eslint/CHANGELOG.md )
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.46.2/packages/typescript-eslint )
---
updated-dependencies:
- dependency-name: "@eslint/js"
dependency-version: 9.38.0
dependency-type: direct:development
update-type: version-update:semver-minor
dependency-group: dev-dependencies
- dependency-name: "@openpgp/web-stream-tools"
dependency-version: 0.2.1
dependency-type: direct:development
update-type: version-update:semver-patch
dependency-group: dev-dependencies
- dependency-name: "@rollup/plugin-commonjs"
dependency-version: 28.0.9
dependency-type: direct:development
update-type: version-update:semver-patch
dependency-group: dev-dependencies
- dependency-name: "@rollup/plugin-replace"
dependency-version: 6.0.3
dependency-type: direct:development
update-type: version-update:semver-patch
dependency-group: dev-dependencies
- dependency-name: "@rollup/plugin-typescript"
dependency-version: 12.3.0
dependency-type: direct:development
update-type: version-update:semver-minor
dependency-group: dev-dependencies
- dependency-name: "@stylistic/eslint-plugin"
dependency-version: 5.5.0
dependency-type: direct:development
update-type: version-update:semver-minor
dependency-group: dev-dependencies
- dependency-name: "@types/node"
dependency-version: 24.9.2
dependency-type: direct:development
update-type: version-update:semver-minor
dependency-group: dev-dependencies
- dependency-name: eslint
dependency-version: 9.38.0
dependency-type: direct:development
update-type: version-update:semver-minor
dependency-group: dev-dependencies
- dependency-name: rollup
dependency-version: 4.52.5
dependency-type: direct:development
update-type: version-update:semver-patch
dependency-group: dev-dependencies
- dependency-name: typescript-eslint
dependency-version: 8.46.2
dependency-type: direct:development
update-type: version-update:semver-patch
dependency-group: dev-dependencies
...
Signed-off-by: dependabot[bot] <support@github.com>
* Tests: Rollup: drop unused rollup-typescript exception
It messed with the resolution of tweet-nacl for some reason,
where node:crypto references weren't properly dropped.
* Tests: Rollup: drop leftover requireReturnsDefault option in commonjs plugin
* Fix TS errors in eslint config file
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: larabr <7375870+larabr@users.noreply.github.com>
2025-11-06 11:43:49 +01:00
larabr
d4bb70815b
Linter: update to eslint v9
...
This eslint version brings breaking changes related to the eslint config.
eslint-airbnb-config has yet to release a compatible version with the
new format, and it generally looks unmaintained, hence we drop the dependency
in favor of the built-in recommended configs.
2025-10-17 16:41:01 +02:00
larabr
232da14940
Tests: revert update to chai v5
...
Chai v5 broke support for Safari below v16.4;
we delay the update for now, waiting for their fix.
2025-06-13 16:46:40 +02:00
larabr
cabc91c42c
Bump dev dependencies to latest versions
...
Only one breaking change with `@rollup/plugin-typescript`,
that enforced a check on the `outDir` location.
2025-06-13 16:38:12 +02:00
larabr
45d825c64a
CI: fix "unknown cli/env config" warnings from npm v11 ( #1851 )
...
npm v12 will drop support for unknown config options.
2025-05-19 17:54:42 +02:00
larabr
821f260ba9
Lightweight build: lazy load bzip decompression lib
2024-10-28 13:38:59 +01:00
larabr
8d11c5fd0f
Drop support for Node 16 and 17
2024-06-26 12:01:10 +02:00
larabr
cf0285add5
Drop BigInteger class, use standalone helpers
2024-05-16 13:59:11 +02:00
larabr
ec52bdea83
Point to official noble-hashes and noble-curve libs
2024-05-16 13:59:11 +02:00
larabr
d1a24d1758
Drop support for platforms without native BigInt (e.g. Safari <14)
...
Remove BN.js fallback, and only keep native BigInteger interface
(for algorithmic constant-time functions).
Also, add support for TS modules, to move some over from the forked
noble repos.
2024-05-16 13:59:11 +02:00
larabr
151f15e282
Node: drop asn1.js dependency ( #1722 )
...
asn1.js is a fairly large lib and was simply needed to handle DER encodings in
some NodeCrypto operations.
This change replaces the dependency by moving to:
- JWT encoding for RSA (support added in Node v15)
- a much lighter dependency (eckey-utils) for ECDSA, where JWT cannot be used
for now, as Node has yet to add decoding support for Brainpool curves.
The change also allows us to drop BN.js as a direct dependency, optimising the
BigInteger-related chunking in the lightweight build.
2024-02-27 14:56:07 +01:00
larabr
9a547b4553
Update rollup to v3
2023-10-25 12:53:14 +02:00
larabr
86f5a8b71b
Rollup: use preserveEntrySignatures = 'exports-only' setting in lightweight build
...
This is the default setting and it ensures that the main chunk does not include
additional exports, which is is important when importing the module as `import *`
as shown in the readme.
In practice, this change does not affect the chunking with the current code.
2023-10-25 12:53:14 +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
larabr
ab22fe86da
Lint: enforce single quotes and do not error on class methods without this ( #1341 )
2021-06-24 22:58:15 +02:00
Daniel Huigens
b6edfe646b
Lint all tests ( #1235 )
2021-02-12 23:00:22 +01:00
Daniel Huigens
01be7b7ec1
CI: Switch to karma for browser tests ( #1233 )
...
This should fix the false positives (failures to detect errors).
2021-02-12 13:29:04 +01:00
Daniel Huigens
c2146ce165
Fix CI for older environments
2021-02-09 19:25:20 +01:00
Daniel Huigens
2382482090
[v5] Unexport openpgp.util, openpgp.crypto, and low-level types ( #1175 )
2021-02-09 19:25:20 +01:00
Daniel Huigens
fb3d23427d
Allow dead code elimination
2021-02-09 19:25:20 +01:00
Daniel Huigens
c20b75252b
Add --build-only parameter to filter build outputs
...
Also, don't generate test bundle by default, but provide
`npm run build-test` instead.
2021-02-09 19:25:20 +01:00
Daniel Huigens
6a3d04ade6
Only produce source maps for minified dist builds
2021-02-09 19:25:20 +01:00
Daniel Huigens
f3b16386dc
Use dynamic import in lightweight build
...
Instead of dynamically loading a <script> tag.
This also removes the non-module lightweight build.
2021-02-09 19:25:20 +01:00
Daniel Huigens
4f77990859
Polyfill globalThis
2021-02-09 19:25:20 +01:00
Daniel Huigens
175eac5670
Remove compat polyfills
2021-02-09 19:25:20 +01:00
Daniel Huigens
0e33e641af
Switch build system to rollup
...
Also, default to minimized builds.
2021-02-09 19:25:20 +01:00