Skip to content

Commit

Permalink
Merge pull request #238 from dajiaji/bump-to-1_0_3
Browse files Browse the repository at this point in the history
Bump version up to 1.0.3.
  • Loading branch information
dajiaji authored Aug 7, 2023
2 parents c7151f8 + b55f079 commit 5e8a162
Show file tree
Hide file tree
Showing 9 changed files with 73 additions and 64 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 1.0.3

Released 2023-08-07

- [(#237) Separate consts to minimize the size of submodules.](https://github.com/dajiaji/hpke-js/pull/237)
- [(#236) Update dnt config.](https://github.com/dajiaji/hpke-js/pull/236)
- [(#235) Fix unnecessary disclosure for AesGcm classes.](https://github.com/dajiaji/hpke-js/pull/235)
- [(#232) Remove tsdoc remarks.](https://github.com/dajiaji/hpke-js/pull/232)

## Version 1.0.2

Released 2023-08-06
Expand Down
26 changes: 13 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,8 @@ Using esm.sh:
```html
<!-- use a specific version -->
<script type="module">
import * as hpke from "https://esm.sh/@hpke/[email protected].2";
// import * as hpke from "https://esm.sh/[email protected].2";
import * as hpke from "https://esm.sh/@hpke/[email protected].3";
// import * as hpke from "https://esm.sh/[email protected].3";
// ...
</script>

Expand All @@ -201,8 +201,8 @@ Using unpkg:
```html
<!-- use a specific version -->
<script type="module">
import * as hpke from "https://unpkg.com/@hpke/[email protected].2/esm/mod.js";
// import * as hpke from "https://unpkg.com/[email protected].2/esm/mod.js";
import * as hpke from "https://unpkg.com/@hpke/[email protected].3/esm/mod.js";
// import * as hpke from "https://unpkg.com/[email protected].3/esm/mod.js";
// ...
</script>
```
Expand Down Expand Up @@ -239,9 +239,9 @@ Using deno.land:

```js
// use a specific version
import * as hpke from "https://deno.land/x/[email protected].2/core/mod.ts";
// import * as hpke from "https://deno.land/x/[email protected].2/x/dhkem-x25519/mod.ts";
// import * as hpke from "https://deno.land/x/[email protected].2/mod.ts";
import * as hpke from "https://deno.land/x/[email protected].3/core/mod.ts";
// import * as hpke from "https://deno.land/x/[email protected].3/x/dhkem-x25519/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/core/mod.ts";
Expand Down Expand Up @@ -285,8 +285,8 @@ Browsers:
<head></head>
<body>
<script type="module">
import { KemId, KdfId, AeadId, CipherSuite } from "https://esm.sh/@hpke/[email protected].2";
// import { KemId, KdfId, AeadId, CipherSuite } from "https://esm.sh/[email protected].2";
import { KemId, KdfId, AeadId, CipherSuite } from "https://esm.sh/@hpke/[email protected].3";
// import { KemId, KdfId, AeadId, CipherSuite } from "https://esm.sh/[email protected].3";
globalThis.doHpke = async () => {
Expand Down Expand Up @@ -400,15 +400,15 @@ doHpke();
Deno:

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

async function doHpke() {
// setup
const suite = new CipherSuite({
kem: new DhkemX25519HkdfSha256(),
// If you use "https://deno.land/x/[email protected].2/mod.ts", you can specify it with id as follows:
// If you use "https://deno.land/x/[email protected].3/mod.ts", you can specify it with id as follows:
// kem: KemId.DhkemX25519HkdfSha256,
kdf: KdfId.HkdfSha256,
aead: AeadId.Aes128Gcm,
Expand Down
16 changes: 8 additions & 8 deletions core/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ Using esm.sh:
```html
<!-- use a specific version -->
<script type="module">
import * as hpke from "https://esm.sh/@hpke/[email protected].2";
// import { KemId, KdfId, AeadId, CipherSuite } from "https://esm.sh/@hpke/[email protected].2";
import * as hpke from "https://esm.sh/@hpke/[email protected].3";
// import { KemId, KdfId, AeadId, CipherSuite } from "https://esm.sh/@hpke/[email protected].3";
</script>

<!-- use the latest stable version -->
Expand All @@ -49,8 +49,8 @@ Using unpkg:
```html
<!-- use a specific version -->
<script type="module">
import * as hpke from "https://unpkg.com/@hpke/[email protected].2/esm/mod.js";
import { KemId, KdfId, AeadId, CipherSuite} from "https://unpkg.com/@hpke/[email protected].2/esm/mod.js";
import * as hpke from "https://unpkg.com/@hpke/[email protected].3/esm/mod.js";
import { KemId, KdfId, AeadId, CipherSuite} from "https://unpkg.com/@hpke/[email protected].3/esm/mod.js";
// ...
</script>
```
Expand All @@ -75,7 +75,7 @@ Using deno.land:

```js
// use a specific version
import * as hpke from "https://deno.land/x/[email protected].2/core/mod.ts";
import * as hpke from "https://deno.land/x/[email protected].3/core/mod.ts";

// use the latest stable version
import * as hpke from "https://deno.land/x/hpke/core/mod.ts";
Expand All @@ -102,8 +102,8 @@ This section shows some typical usage examples.
<head></head>
<body>
<script type="module">
// import * as hpke from "https://esm.sh/[email protected].2";
import { KemId, KdfId, AeadId, CipherSuite } from "https://esm.sh/@hpke/[email protected].2";
// import * as hpke from "https://esm.sh/[email protected].3";
import { KemId, KdfId, AeadId, CipherSuite } from "https://esm.sh/@hpke/[email protected].3";
globalThis.doHpke = async () => {
Expand Down Expand Up @@ -189,7 +189,7 @@ doHpke();
### Deno

```js
import { KdfId, AeadId, CipherSuite } from "https://deno.land/x/[email protected].2/core/mod.ts";
import { KdfId, AeadId, CipherSuite } from "https://deno.land/x/[email protected].3/core/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 @@ -7,6 +7,6 @@
"author": "Ajitomi Daisuke <[email protected]> (https://github.com/dajiaji)",
"license": "MIT",
"dependencies": {
"@hpke/core": "^1.0.2"
"@hpke/core": "^1.0.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/core": "^1.0.2",
"@hpke/core": "^1.0.3",
"ts-node": "^10.7.0"
}
}
22 changes: 11 additions & 11 deletions x/chacha20poly1305/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ Using esm.sh:
```html
<!-- use a specific version -->
<script type="module">
import * as hpke from "https://esm.sh/@hpke/[email protected].2";
import * as chacha20 from "https://esm.sh/@hpke/[email protected].2";
import * as hpke from "https://esm.sh/@hpke/[email protected].3";
import * as chacha20 from "https://esm.sh/@hpke/[email protected].3";
// ...
</script>

Expand All @@ -49,8 +49,8 @@ Using unpkg:
```html
<!-- use a specific version -->
<script type="module">
import * as hpke from "https://unpkg.com/@hpke/[email protected].2/esm/mod.js";
import * as chacha20 from "https://unpkg.com/@hpke/[email protected].2/esm/mod.js";
import * as hpke from "https://unpkg.com/@hpke/[email protected].3/esm/mod.js";
import * as chacha20 from "https://unpkg.com/@hpke/[email protected].3/esm/mod.js";
// ...
</script>
```
Expand All @@ -75,8 +75,8 @@ Using deno.land:

```js
// use a specific version
import * as hpke from "https://deno.land/x/[email protected].2/core/mod.ts";
import * as chacha20 from "https://deno.land/x/[email protected].2/x/chacha20poly1305/mod.ts";
import * as hpke from "https://deno.land/x/[email protected].3/core/mod.ts";
import * as chacha20 from "https://deno.land/x/[email protected].3/x/chacha20poly1305/mod.ts";

// use the latest stable version
import * as hpke from "https://deno.land/x/hpke/core/mod.ts";
Expand Down Expand Up @@ -104,9 +104,9 @@ This section shows some typical usage examples.
<head></head>
<body>
<script type="module">
// import * as hpke from "https://esm.sh/[email protected].2";
import { KemId, KdfId, CipherSuite } from "https://esm.sh/@hpke/[email protected].2";
import { Chacha20Poly1305 } from "https://esm.sh/@hpke/[email protected].2";
// import * as hpke from "https://esm.sh/[email protected].3";
import { KemId, KdfId, CipherSuite } from "https://esm.sh/@hpke/[email protected].3";
import { Chacha20Poly1305 } from "https://esm.sh/@hpke/[email protected].3";
globalThis.doHpke = async () => {
Expand Down Expand Up @@ -193,8 +193,8 @@ doHpke();
### Deno

```js
import { KemId, KdfId, CipherSuite } from "https://deno.land/x/[email protected].2/core/mod.ts";
import { Chacha20Poly1305 } from "https://deno.land/x/[email protected].2/x/chacha20poly1305/mod.ts";
import { KemId, KdfId, CipherSuite } from "https://deno.land/x/[email protected].3/core/mod.ts";
import { Chacha20Poly1305 } from "https://deno.land/x/[email protected].3/x/chacha20poly1305/mod.ts";

async function doHpke() {
// setup
Expand Down
20 changes: 10 additions & 10 deletions x/dhkem-secp256k1/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ Using esm.sh:
```html
<!-- use a specific version -->
<script type="module">
import * as hpke from "https://esm.sh/@hpke/[email protected].2";
import * as secp256k1 from "https://esm.sh/@hpke/[email protected].2";
import * as hpke from "https://esm.sh/@hpke/[email protected].3";
import * as secp256k1 from "https://esm.sh/@hpke/[email protected].3";
// ...
</script>

Expand All @@ -52,8 +52,8 @@ Using unpkg:
```html
<!-- use a specific version -->
<script type="module">
import * as hpke from "https://unpkg.com/@hpke/[email protected].2/esm/mod.js";
import * as secp256k1 from "https://unpkg.com/@hpke/[email protected].2/esm/mod.js";
import * as hpke from "https://unpkg.com/@hpke/[email protected].3/esm/mod.js";
import * as secp256k1 from "https://unpkg.com/@hpke/[email protected].3/esm/mod.js";
// ...
</script>
```
Expand All @@ -78,8 +78,8 @@ Using deno.land:

```js
// use a specific version
import * as hpke from "https://deno.land/x/[email protected].2/core/mod.ts";
import * as secp256k1 from "https://deno.land/x/[email protected].2/x/dhkem-secp256k1/mod.ts";
import * as hpke from "https://deno.land/x/[email protected].3/core/mod.ts";
import * as secp256k1 from "https://deno.land/x/[email protected].3/x/dhkem-secp256k1/mod.ts";

// use the latest stable version
import * as hpke from "https://deno.land/x/hpke/core/mod.ts";
Expand Down Expand Up @@ -107,8 +107,8 @@ This section shows some typical usage examples.
<head></head>
<body>
<script type="module">
import { KdfId, AeadId, CipherSuite } from "https://esm.sh/@hpke/[email protected].2";
import { DhkemSecp256k1HkdfSha256 } from "https://esm.sh/@hpke/[email protected].2";
import { KdfId, AeadId, CipherSuite } from "https://esm.sh/@hpke/[email protected].3";
import { DhkemSecp256k1HkdfSha256 } from "https://esm.sh/@hpke/[email protected].3";
globalThis.doHpke = async () => {
Expand Down Expand Up @@ -195,8 +195,8 @@ doHpke();
### Deno

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

async function doHpke() {
// setup
Expand Down
20 changes: 10 additions & 10 deletions x/dhkem-x25519/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ Using esm.sh:
```html
<!-- use a specific version -->
<script type="module">
import * as hpke from "https://esm.sh/@hpke/[email protected].2";
import * as x25519 from "https://esm.sh/@hpke/[email protected].2";
import * as hpke from "https://esm.sh/@hpke/[email protected].3";
import * as x25519 from "https://esm.sh/@hpke/[email protected].3";
// ...
</script>

Expand All @@ -49,8 +49,8 @@ Using unpkg:
```html
<!-- use a specific version -->
<script type="module">
import * as hpke from "https://unpkg.com/@hpke/[email protected].2/esm/mod.js";
import * as x25519 from "https://unpkg.com/@hpke/[email protected].2/esm/mod.js";
import * as hpke from "https://unpkg.com/@hpke/[email protected].3/esm/mod.js";
import * as x25519 from "https://unpkg.com/@hpke/[email protected].3/esm/mod.js";
// ...
</script>
```
Expand All @@ -75,8 +75,8 @@ Using deno.land:

```js
// use a specific version
import * as hpke from "https://deno.land/x/[email protected].2/core/mod.ts";
import * as x25519 from "https://deno.land/x/[email protected].2/x/dhkem-x25519/mod.ts";
import * as hpke from "https://deno.land/x/[email protected].3/core/mod.ts";
import * as x25519 from "https://deno.land/x/[email protected].3/x/dhkem-x25519/mod.ts";

// use the latest stable version
import * as hpke from "https://deno.land/x/hpke/core/mod.ts";
Expand Down Expand Up @@ -104,8 +104,8 @@ This section shows some typical usage examples.
<head></head>
<body>
<script type="module">
import { KdfId, AeadId, CipherSuite } from "https://esm.sh/@hpke/[email protected].2";
import { DhkemX25519HkdfSha256 } from "https://esm.sh/@hpke/[email protected].2";
import { KdfId, AeadId, CipherSuite } from "https://esm.sh/@hpke/[email protected].3";
import { DhkemX25519HkdfSha256 } from "https://esm.sh/@hpke/[email protected].3";
globalThis.doHpke = async () => {
Expand Down Expand Up @@ -192,8 +192,8 @@ doHpke();
### Deno

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

async function doHpke() {
// setup
Expand Down
20 changes: 10 additions & 10 deletions x/dhkem-x448/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ Using esm.sh:
```html
<!-- use a specific version -->
<script type="module">
import * as hpke from "https://esm.sh/@hpke/[email protected].2";
import * as x448 from "https://esm.sh/@hpke/[email protected].2";
import * as hpke from "https://esm.sh/@hpke/[email protected].3";
import * as x448 from "https://esm.sh/@hpke/[email protected].3";
// ...
</script>

Expand All @@ -49,8 +49,8 @@ Using unpkg:
```html
<!-- use a specific version -->
<script type="module">
import * as hpke from "https://unpkg.com/@hpke/[email protected].2/esm/mod.js";
import * as x448 from "https://unpkg.com/@hpke/[email protected].2/esm/mod.js";
import * as hpke from "https://unpkg.com/@hpke/[email protected].3/esm/mod.js";
import * as x448 from "https://unpkg.com/@hpke/[email protected].3/esm/mod.js";
// ...
</script>
```
Expand All @@ -75,8 +75,8 @@ Using deno.land:

```js
// use a specific version
import * as hpke from "https://deno.land/x/[email protected].2/core/mod.ts";
import * as x448 from "https://deno.land/x/[email protected].2/x/dhkem-x448/mod.ts";
import * as hpke from "https://deno.land/x/[email protected].3/core/mod.ts";
import * as x448 from "https://deno.land/x/[email protected].3/x/dhkem-x448/mod.ts";

// use the latest stable version
import * as hpke from "https://deno.land/x/hpke/core/mod.ts";
Expand Down Expand Up @@ -104,8 +104,8 @@ This section shows some typical usage examples.
<head></head>
<body>
<script type="module">
import { KdfId, AeadId, CipherSuite } from "https://esm.sh/@hpke/[email protected].2";
import { DhkemX448HkdfSha512 } from "https://esm.sh/@hpke/[email protected].2";
import { KdfId, AeadId, CipherSuite } from "https://esm.sh/@hpke/[email protected].3";
import { DhkemX448HkdfSha512 } from "https://esm.sh/@hpke/[email protected].3";
globalThis.doHpke = async () => {
Expand Down Expand Up @@ -192,8 +192,8 @@ doHpke();
### Deno

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

async function doHpke() {
// setup
Expand Down

0 comments on commit 5e8a162

Please sign in to comment.