Skip to content

Commit

Permalink
Merge pull request #260 from dajiaji/bump-to-1_1_1
Browse files Browse the repository at this point in the history
Bump version up to 1.1.1.
  • Loading branch information
dajiaji authored Aug 15, 2023
2 parents 8db3319 + bc0ddf3 commit b856aaa
Show file tree
Hide file tree
Showing 9 changed files with 71 additions and 64 deletions.
7 changes: 7 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Changes

## Version 1.1.1

Released 2023-08-15

- [(#259) Remove imports with asterisk.](https://github.com/dajiaji/hpke-js/pull/259)
- [(#258) Add sideEffects:false to dnt.ts.](https://github.com/dajiaji/hpke-js/pull/258)

## Version 1.1.0

Released 2023-08-15
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].0";
// import * as hpke from "https://esm.sh/[email protected].0";
import * as hpke from "https://esm.sh/@hpke/[email protected].1";
// import * as hpke from "https://esm.sh/[email protected].1";
// ...
</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].0/esm/mod.js";
// import * as hpke from "https://unpkg.com/[email protected].0/esm/mod.js";
import * as hpke from "https://unpkg.com/@hpke/[email protected].1/esm/mod.js";
// import * as hpke from "https://unpkg.com/[email protected].1/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].0/core/mod.ts";
// import * as hpke from "https://deno.land/x/[email protected].0/x/dhkem-x25519/mod.ts";
// import * as hpke from "https://deno.land/x/[email protected].0/mod.ts";
import * as hpke from "https://deno.land/x/[email protected].1/core/mod.ts";
// import * as hpke from "https://deno.land/x/[email protected].1/x/dhkem-x25519/mod.ts";
// import * as hpke from "https://deno.land/x/[email protected].1/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].0";
// import { KemId, KdfId, AeadId, CipherSuite } from "https://esm.sh/[email protected].0";
import { KemId, KdfId, AeadId, CipherSuite } from "https://esm.sh/@hpke/[email protected].1";
// import { KemId, KdfId, AeadId, CipherSuite } from "https://esm.sh/[email protected].1";
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].0/core/mod.ts";
import { DhkemX25519HkdfSha256 } from "https://deno.land/x/[email protected].0/x/dhkem-x25519/mod.ts";
// import { KemId, KdfId, AeadId, CipherSuite } from "https://deno.land/x/[email protected].0/mod.ts";
import { KemId, KdfId, AeadId, CipherSuite } from "https://deno.land/x/[email protected].1/core/mod.ts";
import { DhkemX25519HkdfSha256 } from "https://deno.land/x/[email protected].1/x/dhkem-x25519/mod.ts";
// import { KemId, KdfId, AeadId, CipherSuite } from "https://deno.land/x/[email protected].1/mod.ts";

async function doHpke() {
// setup
const suite = new CipherSuite({
kem: new DhkemX25519HkdfSha256(),
// If you use "https://deno.land/x/[email protected].0/mod.ts", you can specify it with id as follows:
// If you use "https://deno.land/x/[email protected].1/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].0";
// import { KemId, KdfId, AeadId, CipherSuite } from "https://esm.sh/@hpke/[email protected].0";
import * as hpke from "https://esm.sh/@hpke/[email protected].1";
// import { KemId, KdfId, AeadId, CipherSuite } from "https://esm.sh/@hpke/[email protected].1";
</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].0/esm/mod.js";
import { KemId, KdfId, AeadId, CipherSuite} from "https://unpkg.com/@hpke/[email protected].0/esm/mod.js";
import * as hpke from "https://unpkg.com/@hpke/[email protected].1/esm/mod.js";
import { KemId, KdfId, AeadId, CipherSuite} from "https://unpkg.com/@hpke/[email protected].1/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].0/core/mod.ts";
import * as hpke from "https://deno.land/x/[email protected].1/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].0";
import { KemId, KdfId, AeadId, CipherSuite } from "https://esm.sh/@hpke/[email protected].0";
// import * as hpke from "https://esm.sh/[email protected].1";
import { KemId, KdfId, AeadId, CipherSuite } from "https://esm.sh/@hpke/[email protected].1";
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].0/core/mod.ts";
import { KdfId, AeadId, CipherSuite } from "https://deno.land/x/[email protected].1/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.1.0"
"@hpke/core": "^1.1.1"
}
}
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.1.0",
"@hpke/core": "^1.1.1",
"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].0";
import * as chacha20 from "https://esm.sh/@hpke/[email protected].0";
import * as hpke from "https://esm.sh/@hpke/[email protected].1";
import * as chacha20 from "https://esm.sh/@hpke/[email protected].1";
// ...
</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].0/esm/mod.js";
import * as chacha20 from "https://unpkg.com/@hpke/[email protected].0/esm/mod.js";
import * as hpke from "https://unpkg.com/@hpke/[email protected].1/esm/mod.js";
import * as chacha20 from "https://unpkg.com/@hpke/[email protected].1/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].0/core/mod.ts";
import * as chacha20 from "https://deno.land/x/[email protected].0/x/chacha20poly1305/mod.ts";
import * as hpke from "https://deno.land/x/[email protected].1/core/mod.ts";
import * as chacha20 from "https://deno.land/x/[email protected].1/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].0";
import { KemId, KdfId, CipherSuite } from "https://esm.sh/@hpke/[email protected].0";
import { Chacha20Poly1305 } from "https://esm.sh/@hpke/[email protected].0";
// import * as hpke from "https://esm.sh/[email protected].1";
import { KemId, KdfId, CipherSuite } from "https://esm.sh/@hpke/[email protected].1";
import { Chacha20Poly1305 } from "https://esm.sh/@hpke/[email protected].1";
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].0/core/mod.ts";
import { Chacha20Poly1305 } from "https://deno.land/x/[email protected].0/x/chacha20poly1305/mod.ts";
import { KemId, KdfId, CipherSuite } from "https://deno.land/x/[email protected].1/core/mod.ts";
import { Chacha20Poly1305 } from "https://deno.land/x/[email protected].1/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].0";
import * as secp256k1 from "https://esm.sh/@hpke/[email protected].0";
import * as hpke from "https://esm.sh/@hpke/[email protected].1";
import * as secp256k1 from "https://esm.sh/@hpke/[email protected].1";
// ...
</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].0/esm/mod.js";
import * as secp256k1 from "https://unpkg.com/@hpke/[email protected].0/esm/mod.js";
import * as hpke from "https://unpkg.com/@hpke/[email protected].1/esm/mod.js";
import * as secp256k1 from "https://unpkg.com/@hpke/[email protected].1/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].0/core/mod.ts";
import * as secp256k1 from "https://deno.land/x/[email protected].0/x/dhkem-secp256k1/mod.ts";
import * as hpke from "https://deno.land/x/[email protected].1/core/mod.ts";
import * as secp256k1 from "https://deno.land/x/[email protected].1/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].0";
import { DhkemSecp256k1HkdfSha256 } from "https://esm.sh/@hpke/[email protected].0";
import { KdfId, AeadId, CipherSuite } from "https://esm.sh/@hpke/[email protected].1";
import { DhkemSecp256k1HkdfSha256 } from "https://esm.sh/@hpke/[email protected].1";
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].0/core/mod.ts";
import { DhkemSecp256k1HkdfSha256 } from "https://deno.land/x/[email protected].0/x/dhkem-secp256k1/mod.ts";
import { KdfId, AeadId, CipherSuite } from "https://deno.land/x/[email protected].1/core/mod.ts";
import { DhkemSecp256k1HkdfSha256 } from "https://deno.land/x/[email protected].1/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].0";
import * as x25519 from "https://esm.sh/@hpke/[email protected].0";
import * as hpke from "https://esm.sh/@hpke/[email protected].1";
import * as x25519 from "https://esm.sh/@hpke/[email protected].1";
// ...
</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].0/esm/mod.js";
import * as x25519 from "https://unpkg.com/@hpke/[email protected].0/esm/mod.js";
import * as hpke from "https://unpkg.com/@hpke/[email protected].1/esm/mod.js";
import * as x25519 from "https://unpkg.com/@hpke/[email protected].1/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].0/core/mod.ts";
import * as x25519 from "https://deno.land/x/[email protected].0/x/dhkem-x25519/mod.ts";
import * as hpke from "https://deno.land/x/[email protected].1/core/mod.ts";
import * as x25519 from "https://deno.land/x/[email protected].1/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].0";
import { DhkemX25519HkdfSha256 } from "https://esm.sh/@hpke/[email protected].0";
import { KdfId, AeadId, CipherSuite } from "https://esm.sh/@hpke/[email protected].1";
import { DhkemX25519HkdfSha256 } from "https://esm.sh/@hpke/[email protected].1";
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].0/core/mod.ts";
import { DhkemX25519HkdfSha256 } from "https://deno.land/x/[email protected].0/x/dhkem-x25519/mod.ts";
import { KdfId, AeadId, CipherSuite } from "https://deno.land/x/[email protected].1/core/mod.ts";
import { DhkemX25519HkdfSha256 } from "https://deno.land/x/[email protected].1/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].0";
import * as x448 from "https://esm.sh/@hpke/[email protected].0";
import * as hpke from "https://esm.sh/@hpke/[email protected].1";
import * as x448 from "https://esm.sh/@hpke/[email protected].1";
// ...
</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].0/esm/mod.js";
import * as x448 from "https://unpkg.com/@hpke/[email protected].0/esm/mod.js";
import * as hpke from "https://unpkg.com/@hpke/[email protected].1/esm/mod.js";
import * as x448 from "https://unpkg.com/@hpke/[email protected].1/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].0/core/mod.ts";
import * as x448 from "https://deno.land/x/[email protected].0/x/dhkem-x448/mod.ts";
import * as hpke from "https://deno.land/x/[email protected].1/core/mod.ts";
import * as x448 from "https://deno.land/x/[email protected].1/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].0";
import { DhkemX448HkdfSha512 } from "https://esm.sh/@hpke/[email protected].0";
import { KdfId, AeadId, CipherSuite } from "https://esm.sh/@hpke/[email protected].1";
import { DhkemX448HkdfSha512 } from "https://esm.sh/@hpke/[email protected].1";
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].0/core/mod.ts";
import { DhkemX448HkdfSha512 } from "https://deno.land/x/[email protected].0/x/dhkem-x448/mod.ts";
import { KdfId, AeadId, CipherSuite } from "https://deno.land/x/[email protected].1/core/mod.ts";
import { DhkemX448HkdfSha512 } from "https://deno.land/x/[email protected].1/x/dhkem-x448/mod.ts";

async function doHpke() {
// setup
Expand Down

0 comments on commit b856aaa

Please sign in to comment.