diff --git a/deno.lock b/deno.lock index 306fb4f9c..cd0f29291 100644 --- a/deno.lock +++ b/deno.lock @@ -34,6 +34,7 @@ "npm:@hpke/dhkem-x25519@^1.3.0": "1.3.1", "npm:@hpke/dhkem-x448@^1.3.0": "1.3.1", "npm:@noble/ciphers@0.5.3": "0.5.3", + "npm:@noble/ciphers@1": "1.0.0", "npm:@noble/ciphers@~0.5.3": "0.5.3", "npm:@noble/curves@1.4.2": "1.4.2", "npm:@noble/curves@^1.4.2": "1.4.2", @@ -175,7 +176,7 @@ "integrity": "sha512-kX8D5y04o+SxGJSJMA4r3+YtxOSHir7QxRFuANCVB4hr7Dm7oVwce9iVUQJtOPRSc4mddFlRFq4SQyy2mI4KQA==", "dependencies": [ "@hpke/core", - "@noble/ciphers" + "@noble/ciphers@0.5.3" ] }, "@hpke/core@1.3.1": { @@ -200,6 +201,9 @@ "@noble/ciphers@0.5.3": { "integrity": "sha512-B0+6IIHiqEs3BPMT0hcRmHvEj2QHOLu+uwt+tqDDeVd0oyVzh7BPrDcPjRnV1PV/5LaknXJJQvOuRGR0zQJz+w==" }, + "@noble/ciphers@1.0.0": { + "integrity": "sha512-wH5EHOmLi0rEazphPbecAzmjd12I6/Yv/SiHdkA9LSycsQk7RuuTp7am5/o62qYr0RScE7Pc9icXGBbsr6cesA==" + }, "@noble/curves@1.4.2": { "integrity": "sha512-TavHr8qycMChk8UwMld0ZDRvatedkzWfH8IiaeGCfymOP5i0hSCozz9vHOL0nkwk7HRMlFnAiKpS2jrUmSybcw==", "dependencies": [ @@ -317,7 +321,7 @@ "members": { "packages/chacha20poly1305": { "dependencies": [ - "npm:@noble/ciphers@~0.5.3" + "npm:@noble/ciphers@1" ] }, "packages/chacha20poly1305/samples/deno": { diff --git a/import_map.json b/import_map.json index 5687c7954..0ca1e9b61 100644 --- a/import_map.json +++ b/import_map.json @@ -1,7 +1,7 @@ { "imports": { "@dajiaji/mlkem": "npm:mlkem@^2.2.0", - "@noble/ciphers/chacha": "npm:@noble/ciphers@^0.5.3/chacha", + "@noble/ciphers/chacha": "npm:@noble/ciphers@^1.0.0/chacha", "@noble/curves/ed25519": "npm:@noble/curves@^1.6.0/ed25519", "@noble/curves/ed448": "npm:@noble/curves@^1.6.0/ed448", "@noble/curves/secp256k1": "npm:@noble/curves@^1.6.0/secp256k1", diff --git a/npm/import_map.json b/npm/import_map.json index 93549d37b..dc6a2511b 100644 --- a/npm/import_map.json +++ b/npm/import_map.json @@ -7,7 +7,7 @@ "@hpke/core": "npm:@hpke/core@^1.4.3", "@hpke/dhkem-x25519": "npm:@hpke/dhkem-x25519@^1.4.3", "@hpke/dhkem-x448": "npm:@hpke/dhkem-x448@^1.4.3", - "@noble/ciphers/chacha": "npm:@noble/ciphers@^0.5.3/chacha", + "@noble/ciphers/chacha": "npm:@noble/ciphers@^1.0.0/chacha", "@noble/curves/ed25519": "npm:@noble/curves@^1.6.0/ed25519", "@noble/curves/ed448": "npm:@noble/curves@^1.6.0/ed448", "@noble/curves/secp256k1": "npm:@noble/curves@^1.6.0/secp256k1", diff --git a/npm/package-lock.json b/npm/package-lock.json index 71889dc73..2d040fb18 100644 --- a/npm/package-lock.json +++ b/npm/package-lock.json @@ -763,10 +763,13 @@ } }, "node_modules/@noble/ciphers": { - "version": "0.5.3", - "resolved": "https://registry.npmjs.org/@noble/ciphers/-/ciphers-0.5.3.tgz", - "integrity": "sha512-B0+6IIHiqEs3BPMT0hcRmHvEj2QHOLu+uwt+tqDDeVd0oyVzh7BPrDcPjRnV1PV/5LaknXJJQvOuRGR0zQJz+w==", + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/@noble/ciphers/-/ciphers-1.0.0.tgz", + "integrity": "sha512-wH5EHOmLi0rEazphPbecAzmjd12I6/Yv/SiHdkA9LSycsQk7RuuTp7am5/o62qYr0RScE7Pc9icXGBbsr6cesA==", "license": "MIT", + "engines": { + "node": "^14.21.3 || >=16" + }, "funding": { "url": "https://paulmillr.com/funding/" } @@ -3548,7 +3551,7 @@ "license": "MIT", "dependencies": { "@hpke/common": "^1.4.3", - "@noble/ciphers": "^0.5.3" + "@noble/ciphers": "^1.0.0" }, "devDependencies": { "@deno/shim-deno": "~0.18.0", diff --git a/packages/chacha20poly1305/deno.json b/packages/chacha20poly1305/deno.json index f3a7d4cd8..33e1b419c 100644 --- a/packages/chacha20poly1305/deno.json +++ b/packages/chacha20poly1305/deno.json @@ -3,7 +3,7 @@ "version": "1.5.0", "exports": "./mod.ts", "imports": { - "@noble/ciphers": "npm:@noble/ciphers@^0.5.3" + "@noble/ciphers": "npm:@noble/ciphers@^1.0.0" }, "publish": { "exclude": [