Skip to content

Commit c335f58

Browse files
authored
Merge pull request #248 from dajiaji/bump-to-1_0_4
Bump version up to 1.0.4.
2 parents 70daf2e + 2d480ac commit c335f58

File tree

9 files changed

+74
-64
lines changed

9 files changed

+74
-64
lines changed

CHANGES.md

+10
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# Changes
22

3+
## Version 1.0.4
4+
5+
Released 2023-08-11
6+
7+
- [(#246) Remove api parameter from KdfInterface.init().](https://github.com/dajiaji/hpke-js/pull/246)
8+
- [(#245) Remove init() from AeadInterface.](https://github.com/dajiaji/hpke-js/pull/245)
9+
- [(#244) Remove init() from KemInterface.](https://github.com/dajiaji/hpke-js/pull/244)
10+
- [(#240) Refactor DhkemSecp256k1HkdfSha256.](https://github.com/dajiaji/hpke-js/pull/240)
11+
- [(#239) Bump noble/ciphers to 0.2.0.](https://github.com/dajiaji/hpke-js/pull/239)
12+
313
## Version 1.0.3
414

515
Released 2023-08-07

README.md

+13-13
Original file line numberDiff line numberDiff line change
@@ -183,8 +183,8 @@ Using esm.sh:
183183
```html
184184
<!-- use a specific version -->
185185
<script type="module">
186-
import * as hpke from "https://esm.sh/@hpke/[email protected].3";
187-
// import * as hpke from "https://esm.sh/[email protected].3";
186+
import * as hpke from "https://esm.sh/@hpke/[email protected].4";
187+
// import * as hpke from "https://esm.sh/[email protected].4";
188188
// ...
189189
</script>
190190

@@ -201,8 +201,8 @@ Using unpkg:
201201
```html
202202
<!-- use a specific version -->
203203
<script type="module">
204-
import * as hpke from "https://unpkg.com/@hpke/[email protected].3/esm/mod.js";
205-
// import * as hpke from "https://unpkg.com/[email protected].3/esm/mod.js";
204+
import * as hpke from "https://unpkg.com/@hpke/[email protected].4/esm/mod.js";
205+
// import * as hpke from "https://unpkg.com/[email protected].4/esm/mod.js";
206206
// ...
207207
</script>
208208
```
@@ -239,9 +239,9 @@ Using deno.land:
239239

240240
```js
241241
// use a specific version
242-
import * as hpke from "https://deno.land/x/[email protected].3/core/mod.ts";
243-
// import * as hpke from "https://deno.land/x/[email protected].3/x/dhkem-x25519/mod.ts";
244-
// import * as hpke from "https://deno.land/x/[email protected].3/mod.ts";
242+
import * as hpke from "https://deno.land/x/[email protected].4/core/mod.ts";
243+
// import * as hpke from "https://deno.land/x/[email protected].4/x/dhkem-x25519/mod.ts";
244+
// import * as hpke from "https://deno.land/x/[email protected].4/mod.ts";
245245

246246
// use the latest stable version
247247
import * as hpke from "https://deno.land/x/hpke/core/mod.ts";
@@ -285,8 +285,8 @@ Browsers:
285285
<head></head>
286286
<body>
287287
<script type="module">
288-
import { KemId, KdfId, AeadId, CipherSuite } from "https://esm.sh/@hpke/[email protected].3";
289-
// import { KemId, KdfId, AeadId, CipherSuite } from "https://esm.sh/[email protected].3";
288+
import { KemId, KdfId, AeadId, CipherSuite } from "https://esm.sh/@hpke/[email protected].4";
289+
// import { KemId, KdfId, AeadId, CipherSuite } from "https://esm.sh/[email protected].4";
290290
291291
globalThis.doHpke = async () => {
292292
@@ -400,15 +400,15 @@ doHpke();
400400
Deno:
401401

402402
```js
403-
import { KemId, KdfId, AeadId, CipherSuite } from "https://deno.land/x/[email protected].3/core/mod.ts";
404-
import { DhkemX25519HkdfSha256 } from "https://deno.land/x/[email protected].3/x/dhkem-x25519/mod.ts";
405-
// import { KemId, KdfId, AeadId, CipherSuite } from "https://deno.land/x/[email protected].3/mod.ts";
403+
import { KemId, KdfId, AeadId, CipherSuite } from "https://deno.land/x/[email protected].4/core/mod.ts";
404+
import { DhkemX25519HkdfSha256 } from "https://deno.land/x/[email protected].4/x/dhkem-x25519/mod.ts";
405+
// import { KemId, KdfId, AeadId, CipherSuite } from "https://deno.land/x/[email protected].4/mod.ts";
406406

407407
async function doHpke() {
408408
// setup
409409
const suite = new CipherSuite({
410410
kem: new DhkemX25519HkdfSha256(),
411-
// If you use "https://deno.land/x/[email protected].3/mod.ts", you can specify it with id as follows:
411+
// If you use "https://deno.land/x/[email protected].4/mod.ts", you can specify it with id as follows:
412412
// kem: KemId.DhkemX25519HkdfSha256,
413413
kdf: KdfId.HkdfSha256,
414414
aead: AeadId.Aes128Gcm,

core/README.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ Using esm.sh:
3333
```html
3434
<!-- use a specific version -->
3535
<script type="module">
36-
import * as hpke from "https://esm.sh/@hpke/[email protected].3";
37-
// import { KemId, KdfId, AeadId, CipherSuite } from "https://esm.sh/@hpke/[email protected].3";
36+
import * as hpke from "https://esm.sh/@hpke/[email protected].4";
37+
// import { KemId, KdfId, AeadId, CipherSuite } from "https://esm.sh/@hpke/[email protected].4";
3838
</script>
3939

4040
<!-- use the latest stable version -->
@@ -49,8 +49,8 @@ Using unpkg:
4949
```html
5050
<!-- use a specific version -->
5151
<script type="module">
52-
import * as hpke from "https://unpkg.com/@hpke/[email protected].3/esm/mod.js";
53-
import { KemId, KdfId, AeadId, CipherSuite} from "https://unpkg.com/@hpke/[email protected].3/esm/mod.js";
52+
import * as hpke from "https://unpkg.com/@hpke/[email protected].4/esm/mod.js";
53+
import { KemId, KdfId, AeadId, CipherSuite} from "https://unpkg.com/@hpke/[email protected].4/esm/mod.js";
5454
// ...
5555
</script>
5656
```
@@ -75,7 +75,7 @@ Using deno.land:
7575

7676
```js
7777
// use a specific version
78-
import * as hpke from "https://deno.land/x/[email protected].3/core/mod.ts";
78+
import * as hpke from "https://deno.land/x/[email protected].4/core/mod.ts";
7979

8080
// use the latest stable version
8181
import * as hpke from "https://deno.land/x/hpke/core/mod.ts";
@@ -102,8 +102,8 @@ This section shows some typical usage examples.
102102
<head></head>
103103
<body>
104104
<script type="module">
105-
// import * as hpke from "https://esm.sh/[email protected].3";
106-
import { KemId, KdfId, AeadId, CipherSuite } from "https://esm.sh/@hpke/[email protected].3";
105+
// import * as hpke from "https://esm.sh/[email protected].4";
106+
import { KemId, KdfId, AeadId, CipherSuite } from "https://esm.sh/@hpke/[email protected].4";
107107
108108
globalThis.doHpke = async () => {
109109
@@ -189,7 +189,7 @@ doHpke();
189189
### Deno
190190

191191
```js
192-
import { KdfId, AeadId, CipherSuite } from "https://deno.land/x/[email protected].3/core/mod.ts";
192+
import { KdfId, AeadId, CipherSuite } from "https://deno.land/x/[email protected].4/core/mod.ts";
193193

194194
async function doHpke() {
195195
// setup

samples/node/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@
77
"author": "Ajitomi Daisuke <[email protected]> (https://github.com/dajiaji)",
88
"license": "MIT",
99
"dependencies": {
10-
"@hpke/core": "^1.0.3"
10+
"@hpke/core": "^1.0.4"
1111
}
1212
}

samples/ts-node/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"author": "Ajitomi Daisuke <[email protected]> (https://github.com/dajiaji)",
77
"license": "MIT",
88
"dependencies": {
9-
"@hpke/core": "^1.0.3",
9+
"@hpke/core": "^1.0.4",
1010
"ts-node": "^10.7.0"
1111
}
1212
}

x/chacha20poly1305/README.md

+11-11
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ Using esm.sh:
3131
```html
3232
<!-- use a specific version -->
3333
<script type="module">
34-
import * as hpke from "https://esm.sh/@hpke/[email protected].3";
35-
import * as chacha20 from "https://esm.sh/@hpke/[email protected].3";
34+
import * as hpke from "https://esm.sh/@hpke/[email protected].4";
35+
import * as chacha20 from "https://esm.sh/@hpke/[email protected].4";
3636
// ...
3737
</script>
3838

@@ -49,8 +49,8 @@ Using unpkg:
4949
```html
5050
<!-- use a specific version -->
5151
<script type="module">
52-
import * as hpke from "https://unpkg.com/@hpke/[email protected].3/esm/mod.js";
53-
import * as chacha20 from "https://unpkg.com/@hpke/[email protected].3/esm/mod.js";
52+
import * as hpke from "https://unpkg.com/@hpke/[email protected].4/esm/mod.js";
53+
import * as chacha20 from "https://unpkg.com/@hpke/[email protected].4/esm/mod.js";
5454
// ...
5555
</script>
5656
```
@@ -75,8 +75,8 @@ Using deno.land:
7575

7676
```js
7777
// use a specific version
78-
import * as hpke from "https://deno.land/x/[email protected].3/core/mod.ts";
79-
import * as chacha20 from "https://deno.land/x/[email protected].3/x/chacha20poly1305/mod.ts";
78+
import * as hpke from "https://deno.land/x/[email protected].4/core/mod.ts";
79+
import * as chacha20 from "https://deno.land/x/[email protected].4/x/chacha20poly1305/mod.ts";
8080

8181
// use the latest stable version
8282
import * as hpke from "https://deno.land/x/hpke/core/mod.ts";
@@ -104,9 +104,9 @@ This section shows some typical usage examples.
104104
<head></head>
105105
<body>
106106
<script type="module">
107-
// import * as hpke from "https://esm.sh/[email protected].3";
108-
import { KemId, KdfId, CipherSuite } from "https://esm.sh/@hpke/[email protected].3";
109-
import { Chacha20Poly1305 } from "https://esm.sh/@hpke/[email protected].3";
107+
// import * as hpke from "https://esm.sh/[email protected].4";
108+
import { KemId, KdfId, CipherSuite } from "https://esm.sh/@hpke/[email protected].4";
109+
import { Chacha20Poly1305 } from "https://esm.sh/@hpke/[email protected].4";
110110
111111
globalThis.doHpke = async () => {
112112
@@ -193,8 +193,8 @@ doHpke();
193193
### Deno
194194

195195
```js
196-
import { KemId, KdfId, CipherSuite } from "https://deno.land/x/[email protected].3/core/mod.ts";
197-
import { Chacha20Poly1305 } from "https://deno.land/x/[email protected].3/x/chacha20poly1305/mod.ts";
196+
import { KemId, KdfId, CipherSuite } from "https://deno.land/x/[email protected].4/core/mod.ts";
197+
import { Chacha20Poly1305 } from "https://deno.land/x/[email protected].4/x/chacha20poly1305/mod.ts";
198198

199199
async function doHpke() {
200200
// setup

x/dhkem-secp256k1/README.md

+10-10
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ Using esm.sh:
3434
```html
3535
<!-- use a specific version -->
3636
<script type="module">
37-
import * as hpke from "https://esm.sh/@hpke/[email protected].3";
38-
import * as secp256k1 from "https://esm.sh/@hpke/[email protected].3";
37+
import * as hpke from "https://esm.sh/@hpke/[email protected].4";
38+
import * as secp256k1 from "https://esm.sh/@hpke/[email protected].4";
3939
// ...
4040
</script>
4141

@@ -52,8 +52,8 @@ Using unpkg:
5252
```html
5353
<!-- use a specific version -->
5454
<script type="module">
55-
import * as hpke from "https://unpkg.com/@hpke/[email protected].3/esm/mod.js";
56-
import * as secp256k1 from "https://unpkg.com/@hpke/[email protected].3/esm/mod.js";
55+
import * as hpke from "https://unpkg.com/@hpke/[email protected].4/esm/mod.js";
56+
import * as secp256k1 from "https://unpkg.com/@hpke/[email protected].4/esm/mod.js";
5757
// ...
5858
</script>
5959
```
@@ -78,8 +78,8 @@ Using deno.land:
7878

7979
```js
8080
// use a specific version
81-
import * as hpke from "https://deno.land/x/[email protected].3/core/mod.ts";
82-
import * as secp256k1 from "https://deno.land/x/[email protected].3/x/dhkem-secp256k1/mod.ts";
81+
import * as hpke from "https://deno.land/x/[email protected].4/core/mod.ts";
82+
import * as secp256k1 from "https://deno.land/x/[email protected].4/x/dhkem-secp256k1/mod.ts";
8383

8484
// use the latest stable version
8585
import * as hpke from "https://deno.land/x/hpke/core/mod.ts";
@@ -107,8 +107,8 @@ This section shows some typical usage examples.
107107
<head></head>
108108
<body>
109109
<script type="module">
110-
import { KdfId, AeadId, CipherSuite } from "https://esm.sh/@hpke/[email protected].3";
111-
import { DhkemSecp256k1HkdfSha256 } from "https://esm.sh/@hpke/[email protected].3";
110+
import { KdfId, AeadId, CipherSuite } from "https://esm.sh/@hpke/[email protected].4";
111+
import { DhkemSecp256k1HkdfSha256 } from "https://esm.sh/@hpke/[email protected].4";
112112
113113
globalThis.doHpke = async () => {
114114
@@ -195,8 +195,8 @@ doHpke();
195195
### Deno
196196

197197
```js
198-
import { KdfId, AeadId, CipherSuite } from "https://deno.land/x/[email protected].3/core/mod.ts";
199-
import { DhkemSecp256k1HkdfSha256 } from "https://deno.land/x/[email protected].3/x/dhkem-secp256k1/mod.ts";
198+
import { KdfId, AeadId, CipherSuite } from "https://deno.land/x/[email protected].4/core/mod.ts";
199+
import { DhkemSecp256k1HkdfSha256 } from "https://deno.land/x/[email protected].4/x/dhkem-secp256k1/mod.ts";
200200

201201
async function doHpke() {
202202
// setup

x/dhkem-x25519/README.md

+10-10
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ Using esm.sh:
3131
```html
3232
<!-- use a specific version -->
3333
<script type="module">
34-
import * as hpke from "https://esm.sh/@hpke/[email protected].3";
35-
import * as x25519 from "https://esm.sh/@hpke/[email protected].3";
34+
import * as hpke from "https://esm.sh/@hpke/[email protected].4";
35+
import * as x25519 from "https://esm.sh/@hpke/[email protected].4";
3636
// ...
3737
</script>
3838

@@ -49,8 +49,8 @@ Using unpkg:
4949
```html
5050
<!-- use a specific version -->
5151
<script type="module">
52-
import * as hpke from "https://unpkg.com/@hpke/[email protected].3/esm/mod.js";
53-
import * as x25519 from "https://unpkg.com/@hpke/[email protected].3/esm/mod.js";
52+
import * as hpke from "https://unpkg.com/@hpke/[email protected].4/esm/mod.js";
53+
import * as x25519 from "https://unpkg.com/@hpke/[email protected].4/esm/mod.js";
5454
// ...
5555
</script>
5656
```
@@ -75,8 +75,8 @@ Using deno.land:
7575

7676
```js
7777
// use a specific version
78-
import * as hpke from "https://deno.land/x/[email protected].3/core/mod.ts";
79-
import * as x25519 from "https://deno.land/x/[email protected].3/x/dhkem-x25519/mod.ts";
78+
import * as hpke from "https://deno.land/x/[email protected].4/core/mod.ts";
79+
import * as x25519 from "https://deno.land/x/[email protected].4/x/dhkem-x25519/mod.ts";
8080

8181
// use the latest stable version
8282
import * as hpke from "https://deno.land/x/hpke/core/mod.ts";
@@ -104,8 +104,8 @@ This section shows some typical usage examples.
104104
<head></head>
105105
<body>
106106
<script type="module">
107-
import { KdfId, AeadId, CipherSuite } from "https://esm.sh/@hpke/[email protected].3";
108-
import { DhkemX25519HkdfSha256 } from "https://esm.sh/@hpke/[email protected].3";
107+
import { KdfId, AeadId, CipherSuite } from "https://esm.sh/@hpke/[email protected].4";
108+
import { DhkemX25519HkdfSha256 } from "https://esm.sh/@hpke/[email protected].4";
109109
110110
globalThis.doHpke = async () => {
111111
@@ -192,8 +192,8 @@ doHpke();
192192
### Deno
193193

194194
```js
195-
import { KdfId, AeadId, CipherSuite } from "https://deno.land/x/[email protected].3/core/mod.ts";
196-
import { DhkemX25519HkdfSha256 } from "https://deno.land/x/[email protected].3/x/dhkem-x25519/mod.ts";
195+
import { KdfId, AeadId, CipherSuite } from "https://deno.land/x/[email protected].4/core/mod.ts";
196+
import { DhkemX25519HkdfSha256 } from "https://deno.land/x/[email protected].4/x/dhkem-x25519/mod.ts";
197197

198198
async function doHpke() {
199199
// setup

x/dhkem-x448/README.md

+10-10
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ Using esm.sh:
3131
```html
3232
<!-- use a specific version -->
3333
<script type="module">
34-
import * as hpke from "https://esm.sh/@hpke/[email protected].3";
35-
import * as x448 from "https://esm.sh/@hpke/[email protected].3";
34+
import * as hpke from "https://esm.sh/@hpke/[email protected].4";
35+
import * as x448 from "https://esm.sh/@hpke/[email protected].4";
3636
// ...
3737
</script>
3838

@@ -49,8 +49,8 @@ Using unpkg:
4949
```html
5050
<!-- use a specific version -->
5151
<script type="module">
52-
import * as hpke from "https://unpkg.com/@hpke/[email protected].3/esm/mod.js";
53-
import * as x448 from "https://unpkg.com/@hpke/[email protected].3/esm/mod.js";
52+
import * as hpke from "https://unpkg.com/@hpke/[email protected].4/esm/mod.js";
53+
import * as x448 from "https://unpkg.com/@hpke/[email protected].4/esm/mod.js";
5454
// ...
5555
</script>
5656
```
@@ -75,8 +75,8 @@ Using deno.land:
7575

7676
```js
7777
// use a specific version
78-
import * as hpke from "https://deno.land/x/[email protected].3/core/mod.ts";
79-
import * as x448 from "https://deno.land/x/[email protected].3/x/dhkem-x448/mod.ts";
78+
import * as hpke from "https://deno.land/x/[email protected].4/core/mod.ts";
79+
import * as x448 from "https://deno.land/x/[email protected].4/x/dhkem-x448/mod.ts";
8080

8181
// use the latest stable version
8282
import * as hpke from "https://deno.land/x/hpke/core/mod.ts";
@@ -104,8 +104,8 @@ This section shows some typical usage examples.
104104
<head></head>
105105
<body>
106106
<script type="module">
107-
import { KdfId, AeadId, CipherSuite } from "https://esm.sh/@hpke/[email protected].3";
108-
import { DhkemX448HkdfSha512 } from "https://esm.sh/@hpke/[email protected].3";
107+
import { KdfId, AeadId, CipherSuite } from "https://esm.sh/@hpke/[email protected].4";
108+
import { DhkemX448HkdfSha512 } from "https://esm.sh/@hpke/[email protected].4";
109109
110110
globalThis.doHpke = async () => {
111111
@@ -192,8 +192,8 @@ doHpke();
192192
### Deno
193193

194194
```js
195-
import { KdfId, AeadId, CipherSuite } from "https://deno.land/x/[email protected].3/core/mod.ts";
196-
import { DhkemX448HkdfSha512 } from "https://deno.land/x/[email protected].3/x/dhkem-x448/mod.ts";
195+
import { KdfId, AeadId, CipherSuite } from "https://deno.land/x/[email protected].4/core/mod.ts";
196+
import { DhkemX448HkdfSha512 } from "https://deno.land/x/[email protected].4/x/dhkem-x448/mod.ts";
197197

198198
async function doHpke() {
199199
// setup

0 commit comments

Comments
 (0)