Skip to content

Commit

Permalink
Merge pull request #209 from dajiaji/bump-to_0_22_2
Browse files Browse the repository at this point in the history
Bump version up to 0.22.2.
  • Loading branch information
dajiaji authored Jul 28, 2023
2 parents a4fc424 + 269756a commit b6082d8
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 22 deletions.
6 changes: 6 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changes

## Version 0.22.2

Released 2023-07-28

- [(#208) Fix encSize and publicKeySize of DhkemSecp256k1HkdfSha256.](https://github.com/dajiaji/hpke-js/pull/208)

## Version 0.22.1

Released 2023-07-28
Expand Down
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ Using esm.sh:
```html
<!-- use a specific version -->
<script type="module">
import * as hpke from "https://esm.sh/hpke-js@0.22.1";
import * as hpke from "https://esm.sh/hpke-js@0.22.2";
// ...
</script>

Expand All @@ -141,7 +141,7 @@ Using unpkg:
```html
<!-- use a specific version -->
<script type="module">
import * as hpke from "https://unpkg.com/hpke-js@0.22.1/esm/mod.js";
import * as hpke from "https://unpkg.com/hpke-js@0.22.2/esm/mod.js";
// ...
</script>
```
Expand All @@ -166,7 +166,7 @@ Using deno.land:

```js
// use a specific version
import * as hpke from "https://deno.land/x/hpke@0.22.1/mod.ts";
import * as hpke from "https://deno.land/x/hpke@0.22.2/mod.ts";

// use the latest stable version
import * as hpke from "https://deno.land/x/hpke/mod.ts";
Expand All @@ -177,15 +177,15 @@ import * as hpke from "https://deno.land/x/hpke/mod.ts";
Downloads a single js file from esm.sh:

```sh
curl -sS -o $YOUR_SRC_PATH/hpke.js https://esm.sh/v86/hpke-js@0.22.1/es2022/hpke-js.js
curl -sS -o $YOUR_SRC_PATH/hpke.js https://esm.sh/v86/hpke-js@0.22.2/es2022/hpke-js.js
# if you want to use a minified version:
curl -sS -o $YOUR_SRC_PATH/hpke.min.js https://esm.sh/v86/hpke-js@0.22.1/es2022/hpke.min.js
curl -sS -o $YOUR_SRC_PATH/hpke.min.js https://esm.sh/v86/hpke-js@0.22.2/es2022/hpke.min.js
```

Emits a single js file by using `deno bundle`:

```sh
deno bundle https://deno.land/x/hpke@0.22.1/mod.ts > $YOUR_SRC_PATH/hpke.js
deno bundle https://deno.land/x/hpke@0.22.2/mod.ts > $YOUR_SRC_PATH/hpke.js
```

## Usage
Expand All @@ -201,8 +201,8 @@ Browsers:
<head></head>
<body>
<script type="module">
// import * as hpke from "https://esm.sh/hpke-js@0.22.1";
import { KemId, KdfId, AeadId, CipherSuite } from "https://esm.sh/hpke-js@0.22.1";
// import * as hpke from "https://esm.sh/hpke-js@0.22.2";
import { KemId, KdfId, AeadId, CipherSuite } from "https://esm.sh/hpke-js@0.22.2";
globalThis.doHpke = async () => {
Expand Down Expand Up @@ -318,7 +318,7 @@ doHpke();
Deno:

```js
import { KemId, KdfId, AeadId, CipherSuite } from "https://deno.land/x/hpke@0.22.1/mod.ts";
import { KemId, KdfId, AeadId, CipherSuite } from "https://deno.land/x/hpke@0.22.2/mod.ts";

async function doHpke() {
// setup
Expand Down
26 changes: 13 additions & 13 deletions x/dhkem-secp256k1/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ Using esm.sh:
```html
<!-- use a specific version -->
<script type="module">
import * as hpke from "https://esm.sh/hpke-js@0.22.1";
import * as secp256k1 from "https://esm.sh/@hpke/dhkem-secp256k1@0.22.1";
import * as hpke from "https://esm.sh/hpke-js@0.22.2";
import * as secp256k1 from "https://esm.sh/@hpke/dhkem-secp256k1@0.22.2";
// ...
</script>

Expand All @@ -60,8 +60,8 @@ Using unpkg:
```html
<!-- use a specific version -->
<script type="module">
import * as hpke from "https://unpkg.com/hpke-js@0.22.1/esm/mod.js";
import * as secp256k1 from "https://unpkg.com/@hpke/dhkem-secp256k1@0.22.1/esm/mod.js";
import * as hpke from "https://unpkg.com/hpke-js@0.22.2/esm/mod.js";
import * as secp256k1 from "https://unpkg.com/@hpke/dhkem-secp256k1@0.22.2/esm/mod.js";
// ...
</script>
```
Expand All @@ -86,8 +86,8 @@ Using deno.land:

```js
// use a specific version
import * as hpke from "https://deno.land/x/hpke@0.22.1/mod.ts";
import * as secp256k1 from "https://deno.land/x/hpke@0.22.1/x/dhkem-secp256k1/mod.ts";
import * as hpke from "https://deno.land/x/hpke@0.22.2/mod.ts";
import * as secp256k1 from "https://deno.land/x/hpke@0.22.2/x/dhkem-secp256k1/mod.ts";

// use the latest stable version
import * as hpke from "https://deno.land/x/hpke/mod.ts";
Expand All @@ -99,8 +99,8 @@ import * as secp256k1 from "https://deno.land/x/hpke/x/dhkem-secp256k1/mod.ts";
Downloads a single js file from esm.sh:

```sh
curl -sS -o $YOUR_SRC_PATH/hpke.min.js https://esm.sh/v86/hpke-js@0.22.1/es2022/hpke.min.js
curl -sS -o $YOUR_SRC_PATH/hpke-dhkem-secp256k1.min.js https://esm.sh/v86/@hpke/dhkem-secp256k1@0.22.1/es2022/hpke-dhkem-secp256k1.min.js
curl -sS -o $YOUR_SRC_PATH/hpke.min.js https://esm.sh/v86/hpke-js@0.22.2/es2022/hpke.min.js
curl -sS -o $YOUR_SRC_PATH/hpke-dhkem-secp256k1.min.js https://esm.sh/v86/@hpke/dhkem-secp256k1@0.22.2/es2022/hpke-dhkem-secp256k1.min.js
```

## Usage
Expand All @@ -116,9 +116,9 @@ Browsers:
<head></head>
<body>
<script type="module">
// import * as hpke from "https://esm.sh/hpke-js@0.22.1";
import { KemId, KdfId, AeadId, CipherSuite } from "https://esm.sh/hpke-js@0.22.1";
import { DhkemSecp256k1HkdfSha256 } from "https://esm.sh/@hpke/dhkem-secp256k1@0.22.1";
// import * as hpke from "https://esm.sh/hpke-js@0.22.2";
import { KemId, KdfId, AeadId, CipherSuite } from "https://esm.sh/hpke-js@0.22.2";
import { DhkemSecp256k1HkdfSha256 } from "https://esm.sh/@hpke/dhkem-secp256k1@0.22.2";
globalThis.doHpke = async () => {
Expand Down Expand Up @@ -204,8 +204,8 @@ doHpke();
Deno:

```js
import { KemId, KdfId, AeadId, CipherSuite } from "https://deno.land/x/hpke@0.22.1/mod.ts";
import { DhkemSecp256k1HkdfSha256 } from "https://deno.land/x/hpke@0.22.1/x/dhkem-secp256k1/mod.ts";
import { KemId, KdfId, AeadId, CipherSuite } from "https://deno.land/x/hpke@0.22.2/mod.ts";
import { DhkemSecp256k1HkdfSha256 } from "https://deno.land/x/hpke@0.22.2/x/dhkem-secp256k1/mod.ts";

async function doHpke() {
// setup
Expand Down

0 comments on commit b6082d8

Please sign in to comment.