Skip to content

Commit

Permalink
Bump version up to 0.22.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
dajiaji committed Jul 27, 2023
1 parent a6169a8 commit 98328a0
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 14 deletions.
9 changes: 9 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Changes

## Version 0.22.0

Released 2023-07-27

- [(#199) Add common server for testing.](https://github.com/dajiaji/hpke-js/pull/199)
- [(#196) BREAKING: Separate dhkemSecp256k1HkdfSha256 from core module.](https://github.com/dajiaji/hpke-js/pull/196)
- Update dev dependencies:
- [(#201) Bump undici to 5.22.1.](https://github.com/dajiaji/hpke-js/pull/201)

## Version 0.21.0

Released 2023-07-25
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.21.0";
import * as hpke from "https://esm.sh/hpke-js@0.22.0";
// ...
</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.21.0/esm/mod.js";
import * as hpke from "https://unpkg.com/hpke-js@0.22.0/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.21.0/mod.ts";
import * as hpke from "https://deno.land/x/hpke@0.22.0/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.21.0/es2022/hpke-js.js
curl -sS -o $YOUR_SRC_PATH/hpke.js https://esm.sh/v86/hpke-js@0.22.0/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.21.0/es2022/hpke.min.js
curl -sS -o $YOUR_SRC_PATH/hpke.min.js https://esm.sh/v86/hpke-js@0.22.0/es2022/hpke.min.js
```

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

```sh
deno bundle https://deno.land/x/hpke@0.21.0/mod.ts > $YOUR_SRC_PATH/hpke.js
deno bundle https://deno.land/x/hpke@0.22.0/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.21.0";
import { KemId, KdfId, AeadId, CipherSuite } from "https://esm.sh/hpke-js@0.21.0";
// import * as hpke from "https://esm.sh/hpke-js@0.22.0";
import { KemId, KdfId, AeadId, CipherSuite } from "https://esm.sh/hpke-js@0.22.0";
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.21.0/mod.ts";
import { KemId, KdfId, AeadId, CipherSuite } from "https://deno.land/x/hpke@0.22.0/mod.ts";

async function doHpke() {
// setup
Expand Down
4 changes: 2 additions & 2 deletions SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

| Version | Supported |
| ------- | ------------------ |
| 0.21.x | :white_check_mark: |
| < 0.21 | :x: |
| 0.22.x | :white_check_mark: |
| < 0.22 | :x: |

## Reporting a Vulnerability

Expand Down
2 changes: 1 addition & 1 deletion samples/node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
"author": "Ajitomi Daisuke <[email protected]> (https://github.com/dajiaji)",
"license": "MIT",
"dependencies": {
"hpke-js": "^0.21.0"
"hpke-js": "^0.22.0"
}
}
4 changes: 2 additions & 2 deletions samples/ts-node/package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"name": "ts-node-hpke-sample",
"version": "2.0.0",
"version": "1.0.0",
"description": "",
"main": "app.ts",
"author": "Ajitomi Daisuke <[email protected]> (https://github.com/dajiaji)",
"license": "MIT",
"dependencies": {
"hpke-js": "^0.21.0",
"hpke-js": "^0.22.0",
"ts-node": "^10.7.0"
}
}

0 comments on commit 98328a0

Please sign in to comment.