Skip to content

Commit

Permalink
Merge pull request #174 from dajiaji/bump-to_0_18_5
Browse files Browse the repository at this point in the history
Bump up version to 0.18.5.
  • Loading branch information
dajiaji authored Jun 13, 2023
2 parents 2f38a1c + 39fec16 commit 623b0c0
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 12 deletions.
10 changes: 10 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# Changes

## Version 0.18.5

Released 2023-06-13

- [(#172) Add deno.lock.](https://github.com/dajiaji/hpke-js/pull/172)
- [(#170) Drop support for nest.land.](https://github.com/dajiaji/hpke-js/pull/170)
- Update dev dependencies:
- [(#171) Bump deno/std to 0.191.0.](https://github.com/dajiaji/hpke-js/pull/171)
- [(#171) Bump deno/dnt to 0.37.0.](https://github.com/dajiaji/hpke-js/pull/171)

## Version 0.18.4

Released 2023-06-13
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].4";
import * as hpke from "https://esm.sh/[email protected].5";
// ...
</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].4/esm/mod.js";
import * as hpke from "https://unpkg.com/[email protected].5/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].4/mod.ts";
import * as hpke from "https://deno.land/x/[email protected].5/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].4/es2022/hpke-js.js
curl -sS -o $YOUR_SRC_PATH/hpke.js https://esm.sh/v86/[email protected].5/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].4/es2022/hpke.min.js
curl -sS -o $YOUR_SRC_PATH/hpke.min.js https://esm.sh/v86/[email protected].5/es2022/hpke.min.js
```

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

```sh
deno bundle https://deno.land/x/[email protected].4/mod.ts > $YOUR_SRC_PATH/hpke.js
deno bundle https://deno.land/x/[email protected].5/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].4";
import { Kem, Kdf, Aead, CipherSuite } from "https://esm.sh/[email protected].4";
// import * as hpke from "https://esm.sh/[email protected].5";
import { Kem, Kdf, Aead, CipherSuite } from "https://esm.sh/[email protected].5";
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].4/mod.ts";
import { Kem, Kdf, Aead, CipherSuite } from "https://deno.land/x/[email protected].5/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.4"
"hpke-js": "^0.18.5"
}
}
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": "1.0.0",
"version": "2.0.0",
"description": "",
"main": "app.ts",
"author": "Ajitomi Daisuke <[email protected]> (https://github.com/dajiaji)",
"license": "MIT",
"dependencies": {
"hpke-js": "^0.18.4",
"hpke-js": "^0.18.5",
"ts-node": "^10.7.0"
}
}

0 comments on commit 623b0c0

Please sign in to comment.