-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #168 from dajiaji/bump-to_0_18_4
Bump up version to 0.18.4.
- Loading branch information
Showing
4 changed files
with
20 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -125,7 +125,7 @@ Using esm.sh: | |
```html | ||
<!-- use a specific version --> | ||
<script type="module"> | ||
import * as hpke from "https://esm.sh/[email protected].3"; | ||
import * as hpke from "https://esm.sh/[email protected].4"; | ||
// ... | ||
</script> | ||
|
||
|
@@ -141,7 +141,7 @@ Using unpkg: | |
```html | ||
<!-- use a specific version --> | ||
<script type="module"> | ||
import * as hpke from "https://unpkg.com/[email protected].3/esm/mod.js"; | ||
import * as hpke from "https://unpkg.com/[email protected].4/esm/mod.js"; | ||
// ... | ||
</script> | ||
``` | ||
|
@@ -166,7 +166,7 @@ Using deno.land: | |
|
||
```js | ||
// use a specific version | ||
import * as hpke from "https://deno.land/x/[email protected].3/mod.ts"; | ||
import * as hpke from "https://deno.land/x/[email protected].4/mod.ts"; | ||
|
||
// use the latest stable version | ||
import * as hpke from "https://deno.land/x/hpke/mod.ts"; | ||
|
@@ -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].3/es2022/hpke-js.js | ||
curl -sS -o $YOUR_SRC_PATH/hpke.js https://esm.sh/v86/[email protected].4/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].3/es2022/hpke.min.js | ||
curl -sS -o $YOUR_SRC_PATH/hpke.min.js https://esm.sh/v86/[email protected].4/es2022/hpke.min.js | ||
``` | ||
|
||
Emits a single js file by using `deno bundle`: | ||
|
||
```sh | ||
deno bundle https://deno.land/x/[email protected].3/mod.ts > $YOUR_SRC_PATH/hpke.js | ||
deno bundle https://deno.land/x/[email protected].4/mod.ts > $YOUR_SRC_PATH/hpke.js | ||
``` | ||
|
||
## Usage | ||
|
@@ -201,8 +201,8 @@ Browsers: | |
<head></head> | ||
<body> | ||
<script type="module"> | ||
// import * as hpke from "https://esm.sh/[email protected].3"; | ||
import { Kem, Kdf, Aead, CipherSuite } from "https://esm.sh/[email protected].3"; | ||
// import * as hpke from "https://esm.sh/[email protected].4"; | ||
import { Kem, Kdf, Aead, CipherSuite } from "https://esm.sh/[email protected].4"; | ||
globalThis.doHpke = async () => { | ||
|
@@ -287,7 +287,7 @@ doHpke(); | |
Deno: | ||
|
||
```js | ||
import { Kem, Kdf, Aead, CipherSuite } from "https://deno.land/x/[email protected].3/mod.ts"; | ||
import { Kem, Kdf, Aead, CipherSuite } from "https://deno.land/x/[email protected].4/mod.ts"; | ||
|
||
async function doHpke() { | ||
// setup | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,6 @@ | |
"author": "Ajitomi Daisuke <[email protected]> (https://github.com/dajiaji)", | ||
"license": "MIT", | ||
"dependencies": { | ||
"hpke-js": "^0.18.3" | ||
"hpke-js": "^0.18.4" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
"author": "Ajitomi Daisuke <[email protected]> (https://github.com/dajiaji)", | ||
"license": "MIT", | ||
"dependencies": { | ||
"hpke-js": "^0.18.3", | ||
"hpke-js": "^0.18.4", | ||
"ts-node": "^10.7.0" | ||
} | ||
} |