@protontech/openpgp 6.0.0-beta.1 → 6.0.0-beta.3.patch.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/openpgp.d.ts CHANGED
@@ -342,6 +342,7 @@ interface Config {
342
342
  constantTimePKCS1Decryption: boolean;
343
343
  constantTimePKCS1DecryptionSupportedSymmetricAlgorithms: Set<enums.symmetric>;
344
344
  v6Keys: boolean;
345
+ enableParsingV5Entities: boolean;
345
346
  preferredAEADAlgorithm: enums.aead;
346
347
  aeadChunkSizeByte: number;
347
348
  s2kType: enums.s2k.iterated | enums.s2k.argon2;
@@ -499,7 +500,8 @@ export class SignaturePacket extends BasePacket {
499
500
  public hashAlgorithm: enums.hash | null;
500
501
  public publicKeyAlgorithm: enums.publicKey | null;
501
502
  public signatureData: null | Uint8Array;
502
- public unhashedSubpackets: null | Uint8Array;
503
+ public unhashedSubpackets: RawSubpacket[];
504
+ public unknownSubpackets: RawSubpacket[];
503
505
  public signedHashValue: null | Uint8Array;
504
506
  public created: Date | null;
505
507
  public signatureExpirationTime: null | number;
@@ -543,6 +545,12 @@ export class SignaturePacket extends BasePacket {
543
545
  public getExpirationTime(): Date | typeof Infinity;
544
546
  }
545
547
 
548
+ export interface RawSubpacket {
549
+ type: number;
550
+ critical: boolean;
551
+ body: Uint8Array;
552
+ }
553
+
546
554
  export interface RawNotation {
547
555
  name: string;
548
556
  value: Uint8Array;
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@protontech/openpgp",
3
3
  "description": "OpenPGP.js is a Javascript implementation of the OpenPGP protocol. This is defined in RFC 4880.",
4
- "version": "6.0.0-beta.1",
4
+ "version": "6.0.0-beta.3.patch.0",
5
5
  "license": "LGPL-3.0+",
6
6
  "homepage": "https://openpgpjs.org/",
7
7
  "engines": {
8
- "node": ">= 16.5.0"
8
+ "node": ">= 18.0.0"
9
9
  },
10
10
  "keywords": [
11
11
  "crypto",
@@ -62,22 +62,23 @@
62
62
  "postversion": "git push && git push --tags && npm publish"
63
63
  },
64
64
  "devDependencies": {
65
- "@noble/curves": "^1.4.0",
66
- "@noble/hashes": "^1.4.0",
67
- "@openpgp/asmcrypto.js": "^3.1.0",
65
+ "@noble/ciphers": "^0.6.0",
66
+ "@noble/curves": "^1.6.0",
67
+ "@noble/ed25519": "^1.7.3",
68
+ "@noble/hashes": "^1.5.0",
68
69
  "@openpgp/jsdoc": "^3.6.11",
69
70
  "@openpgp/seek-bzip": "^1.0.5-git",
70
71
  "@openpgp/tweetnacl": "^1.0.4-1",
71
- "@openpgp/web-stream-tools": "~0.1.1",
72
+ "@openpgp/web-stream-tools": "~0.1.3",
72
73
  "@rollup/plugin-alias": "^5.1.0",
73
- "@rollup/plugin-commonjs": "^25.0.7",
74
+ "@rollup/plugin-commonjs": "^25.0.8",
74
75
  "@rollup/plugin-node-resolve": "^15.2.3",
75
- "@rollup/plugin-replace": "^5.0.5",
76
+ "@rollup/plugin-replace": "^5.0.7",
76
77
  "@rollup/plugin-terser": "^0.4.4",
77
78
  "@rollup/plugin-typescript": "^11.1.6",
78
79
  "@rollup/plugin-wasm": "^6.2.2",
79
- "@types/chai": "^4.3.16",
80
- "@typescript-eslint/parser": "^7.9.0",
80
+ "@types/chai": "^4.3.19",
81
+ "@typescript-eslint/parser": "^7.18.0",
81
82
  "argon2id": "^1.0.1",
82
83
  "benchmark": "^2.1.4",
83
84
  "bn.js": "^5.2.1",
@@ -89,28 +90,28 @@
89
90
  "eslint-config-airbnb": "^19.0.4",
90
91
  "eslint-config-airbnb-base": "^15.0.0",
91
92
  "eslint-config-airbnb-typescript": "^18.0.0",
92
- "eslint-import-resolver-typescript": "^3.6.1",
93
+ "eslint-import-resolver-typescript": "^3.6.3",
93
94
  "eslint-plugin-chai-friendly": "^0.7.4",
94
- "eslint-plugin-import": "^2.29.1",
95
+ "eslint-plugin-import": "^2.30.0",
95
96
  "eslint-plugin-unicorn": "^48.0.1",
96
97
  "fflate": "^0.7.4",
97
98
  "http-server": "^14.1.1",
98
- "karma": "^6.4.3",
99
+ "karma": "^6.4.4",
99
100
  "karma-browserstack-launcher": "^1.6.0",
100
101
  "karma-chrome-launcher": "^3.2.0",
101
102
  "karma-firefox-launcher": "^2.1.3",
102
103
  "karma-mocha": "^2.0.1",
103
104
  "karma-mocha-reporter": "^2.2.5",
104
- "karma-webkit-launcher": "^2.4.0",
105
- "mocha": "^10.4.0",
106
- "playwright": "^1.44.0",
107
- "rollup": "^4.17.2",
105
+ "karma-webkit-launcher": "^2.6.0",
106
+ "mocha": "^10.7.3",
107
+ "playwright": "^1.46.1",
108
+ "rollup": "^4.21.2",
108
109
  "sinon": "^17.0.1",
109
110
  "ts-node": "^10.9.2",
110
- "tslib": "^2.6.2",
111
- "tsx": "^4.10.4",
112
- "typescript": "^5.4.5",
113
- "web-streams-polyfill": "^3.3.3"
111
+ "tslib": "^2.7.0",
112
+ "tsx": "^4.19.0",
113
+ "typescript": "^5.5.4",
114
+ "web-streams-polyfill": "^4.0.0"
114
115
  },
115
116
  "repository": {
116
117
  "type": "git",