Skip to content

Commit

Permalink
Merge pull request #156 from dajiaji/bump-to_0_18_3
Browse files Browse the repository at this point in the history
Bump version up to 0.18.3.
  • Loading branch information
dajiaji authored Apr 8, 2023
2 parents eafed31 + bd8c40a commit e500401
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 12 deletions.
11 changes: 10 additions & 1 deletion CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
# Changes

## Unreleased
## Version 0.18.3

Released 2023-04-08

- [(#155) Fix TypeScript compile error.](https://github.com/dajiaji/hpke-js/pull/155)
- [(#148) Add SECURITY.md.](https://github.com/dajiaji/hpke-js/pull/148)
- Update dev dependencies:
- [(#154) Bump @playwright/test to 1.32.2.](https://github.com/dajiaji/hpke-js/pull/154)
- [(#148) Bump wrangler to 2.10.0.](https://github.com/dajiaji/hpke-js/pull/148)
- [(#146) Bump http-cache-semantics to 4.1.1.](https://github.com/dajiaji/hpke-js/pull/146)

## Version 0.18.2

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/[email protected].2";
import * as hpke from "https://esm.sh/[email protected].3";
// ...
</script>

Expand All @@ -141,7 +141,7 @@ Using unpkg:
```html
<!-- use a specific version -->
<script type="module">
import * as hpke from "https://unpkg.com/[email protected].2/esm/mod.js";
import * as hpke from "https://unpkg.com/[email protected].3/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/[email protected].2/mod.ts";
import * as hpke from "https://deno.land/x/[email protected].3/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/[email protected].2/es2022/hpke-js.js
curl -sS -o $YOUR_SRC_PATH/hpke.js https://esm.sh/v86/[email protected].3/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/[email protected].2/es2022/hpke.min.js
curl -sS -o $YOUR_SRC_PATH/hpke.min.js https://esm.sh/v86/[email protected].3/es2022/hpke.min.js
```

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

```sh
deno bundle https://deno.land/x/[email protected].2/mod.ts > $YOUR_SRC_PATH/hpke.js
deno bundle https://deno.land/x/[email protected].3/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/[email protected].2";
import { Kem, Kdf, Aead, CipherSuite } from "https://esm.sh/[email protected].2";
// import * as hpke from "https://esm.sh/[email protected].3";
import { Kem, Kdf, Aead, CipherSuite } from "https://esm.sh/[email protected].3";
globalThis.doHpke = async () => {
Expand Down Expand Up @@ -287,7 +287,7 @@ doHpke();
Deno:

```js
import { Kem, Kdf, Aead, CipherSuite } from "https://deno.land/x/[email protected].2/mod.ts";
import { Kem, Kdf, Aead, CipherSuite } from "https://deno.land/x/[email protected].3/mod.ts";

async function doHpke() {
// setup
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.18.0"
"hpke-js": "^0.18.3"
}
}
2 changes: 1 addition & 1 deletion samples/ts-node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"author": "Ajitomi Daisuke <[email protected]> (https://github.com/dajiaji)",
"license": "MIT",
"dependencies": {
"hpke-js": "^0.18.0",
"hpke-js": "^0.18.3",
"ts-node": "^10.7.0"
}
}

0 comments on commit e500401

Please sign in to comment.