diff --git a/CHANGES.md b/CHANGES.md index 5a388b56c..bac96ae58 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,5 +1,13 @@ # Changes +## Version 1.2.4 + +Released 2023-11-05 + +- [(#288) Unlock the version of Deno on CI for cloudflare workers and bun.](https://github.com/dajiaji/hpke-js/pull/288) +- [(#288) Bump @noble/ciphers to 0.4.0.](https://github.com/dajiaji/hpke-js/pull/288) +- [(#285) Add test for bidirectional encryption.](https://github.com/dajiaji/hpke-js/pull/285) + ## Version 1.2.3 Released 2023-09-09 diff --git a/README.md b/README.md index e3683cfa6..be0004fc1 100644 --- a/README.md +++ b/README.md @@ -219,9 +219,9 @@ Using deno.land: ```js // use a specific version -import * as hpke from "https://deno.land/x/hpke@1.2.3/mod.ts"; -// import * as hpke from "https://deno.land/x/hpke@1.2.3/core/mod.ts"; -// import * as hpke from "https://deno.land/x/hpke@1.2.3/x/dhkem-x25519/mod.ts"; +import * as hpke from "https://deno.land/x/hpke@1.2.4/mod.ts"; +// import * as hpke from "https://deno.land/x/hpke@1.2.4/core/mod.ts"; +// import * as hpke from "https://deno.land/x/hpke@1.2.4/x/dhkem-x25519/mod.ts"; // use the latest stable version import * as hpke from "https://deno.land/x/hpke/mod.ts"; @@ -239,8 +239,8 @@ Using esm.sh: ```html @@ -257,8 +257,8 @@ Using unpkg: ```html ``` @@ -338,11 +338,11 @@ try { Deno: ```js -import { AeadId, CipherSuite, KdfId, KemId } from "https://deno.land/x/hpke@1.2.3/mod.ts"; +import { AeadId, CipherSuite, KdfId, KemId } from "https://deno.land/x/hpke@1.2.4/mod.ts"; // import { // Aes128Gcm, CipherSuite, HkdfSha256, -// } from "https://deno.land/x/hpke@1.2.3/core/mod.ts"; -// import { DhkemX25519HkdfSha256 } from "https://deno.land/x/hpke@1.2.3/x/dhkem-x25519/mod.ts"; +// } from "https://deno.land/x/hpke@1.2.4/core/mod.ts"; +// import { DhkemX25519HkdfSha256 } from "https://deno.land/x/hpke@1.2.4/x/dhkem-x25519/mod.ts"; async function doHpke() { // setup @@ -425,10 +425,10 @@ Browsers: @@ -76,7 +76,7 @@ Using unpkg: ```html ``` @@ -149,7 +149,7 @@ try { ```js import { Aes128Gcm, CipherSuite, DhkemP256HkdfSha256, HkdfSha256, -} from "https://deno.land/x/hpke@1.2.3/core/mod.ts"; +} from "https://deno.land/x/hpke@1.2.4/core/mod.ts"; async function doHpke() { // setup @@ -194,10 +194,10 @@ try { @@ -81,8 +81,8 @@ Using unpkg: ```html ``` @@ -149,8 +149,8 @@ try { ```js import { CipherSuite, DhkemP256HkdfSha256, HkdfSha256, -} from "https://deno.land/x/hpke@1.2.3/core/mod.ts"; -import { Chacha20Poly1305 } from "https://deno.land/x/hpke@1.2.3/x/chacha20poly1305/mod.ts"; +} from "https://deno.land/x/hpke@1.2.4/core/mod.ts"; +import { Chacha20Poly1305 } from "https://deno.land/x/hpke@1.2.4/x/chacha20poly1305/mod.ts"; async function doHpke() { // setup @@ -195,11 +195,11 @@ try { @@ -81,8 +81,8 @@ Using unpkg: ```html ``` @@ -147,8 +147,8 @@ try { ### Deno ```js -import { Aes256Gcm, CipherSuite, HkdfSha512 } from "https://deno.land/x/hpke@1.2.3/core/mod.ts"; -import { DhkemSecp256k1HkdfSha256 } from "https://deno.land/x/hpke@1.2.3/x/dhkem-secp256k1/mod.ts"; +import { Aes256Gcm, CipherSuite, HkdfSha512 } from "https://deno.land/x/hpke@1.2.4/core/mod.ts"; +import { DhkemSecp256k1HkdfSha256 } from "https://deno.land/x/hpke@1.2.4/x/dhkem-secp256k1/mod.ts"; async function doHpke() { // setup @@ -193,8 +193,8 @@ try { @@ -81,8 +81,8 @@ Using unpkg: ```html ``` @@ -147,8 +147,8 @@ try { ### Deno ```js -import { Aes128Gcm, CipherSuite, HkdfSha256 } from "https://deno.land/x/hpke@1.2.3/core/mod.ts"; -import { DhkemX25519HkdfSha256 } from "https://deno.land/x/hpke@1.2.3/x/dhkem-x25519/mod.ts"; +import { Aes128Gcm, CipherSuite, HkdfSha256 } from "https://deno.land/x/hpke@1.2.4/core/mod.ts"; +import { DhkemX25519HkdfSha256 } from "https://deno.land/x/hpke@1.2.4/x/dhkem-x25519/mod.ts"; async function doHpke() { // setup @@ -193,8 +193,8 @@ try { @@ -81,8 +81,8 @@ Using unpkg: ```html ``` @@ -147,8 +147,8 @@ try { ### Deno ```js -import { KdfId, AeadId, CipherSuite } from "https://deno.land/x/hpke@1.2.3/core/mod.ts"; -import { DhkemX448HkdfSha512 } from "https://deno.land/x/hpke@1.2.3/x/dhkem-x448/mod.ts"; +import { KdfId, AeadId, CipherSuite } from "https://deno.land/x/hpke@1.2.4/core/mod.ts"; +import { DhkemX448HkdfSha512 } from "https://deno.land/x/hpke@1.2.4/x/dhkem-x448/mod.ts"; async function doHpke() { // setup @@ -193,8 +193,8 @@ try { @@ -82,8 +82,8 @@ Using unpkg: ```html ``` @@ -148,8 +148,8 @@ try { ### Deno ```js -import { Aes128Gcm, CipherSuite, HkdfSha256 } from "https://deno.land/x/hpke@1.2.3/core/mod.ts"; -import { HybridkemX25519Kyber768 } from "https://deno.land/x/hpke@1.2.3/x/hybridkem-x25519-kyber768/mod.ts"; +import { Aes128Gcm, CipherSuite, HkdfSha256 } from "https://deno.land/x/hpke@1.2.4/core/mod.ts"; +import { HybridkemX25519Kyber768 } from "https://deno.land/x/hpke@1.2.4/x/hybridkem-x25519-kyber768/mod.ts"; async function doHpke() { // setup @@ -194,8 +194,8 @@ try {