Skip to content

Commit

Permalink
Merge pull request #283 from dajiaji/bump-to-1_2_3
Browse files Browse the repository at this point in the history
Bump version up to 1.2.3.
  • Loading branch information
dajiaji authored Sep 9, 2023
2 parents ec0ab58 + f0901ec commit f3ed95c
Show file tree
Hide file tree
Showing 11 changed files with 87 additions and 76 deletions.
11 changes: 11 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# Changes

## Version 1.2.3

Released 2023-09-09

- [(#282) Update devDependencies.](https://github.com/dajiaji/hpke-js/pull/282)
- [(#281) Bump @noble/ciphers to 0.3.0.](https://github.com/dajiaji/hpke-js/pull/281)
- [(#280) Bump @noble/curves to 1.2.0.](https://github.com/dajiaji/hpke-js/pull/280)
- [(#279) Bump @noble/hashes to 1.3.2.](https://github.com/dajiaji/hpke-js/pull/279)
- [(#279) Sync kyber implementation to crystals-kyber-js.](https://github.com/dajiaji/hpke-js/pull/279)
- [(#275) Add BaseError/KyberError.](https://github.com/dajiaji/hpke-js/pull/275)

## Version 1.2.2

Released 2023-08-20
Expand Down
26 changes: 13 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ The hpke-js includes the following packages.
- **Node.js**: 16.x, 17.x, 18.x, 19.x, 20.x
- **Deno**: 1.x (1.25-)
- **Cloudflare Workers**
- **bun**: 0.x (0.4.0-)
- **bun**: 0.x (0.6.0-), 1.x

## Warnings and Restrictions

Expand Down Expand Up @@ -219,9 +219,9 @@ Using deno.land:

```js
// use a specific version
import * as hpke from "https://deno.land/x/hpke@1.2.2/mod.ts";
// import * as hpke from "https://deno.land/x/hpke@1.2.2/core/mod.ts";
// import * as hpke from "https://deno.land/x/hpke@1.2.2/x/dhkem-x25519/mod.ts";
import * as hpke from "https://deno.land/x/hpke@1.2.3/mod.ts";
// import * as hpke from "https://deno.land/x/hpke@1.2.3/core/mod.ts";
// import * as hpke from "https://deno.land/x/hpke@1.2.3/x/dhkem-x25519/mod.ts";

// use the latest stable version
import * as hpke from "https://deno.land/x/hpke/mod.ts";
Expand All @@ -239,8 +239,8 @@ Using esm.sh:
```html
<!-- use a specific version -->
<script type="module">
import * as hpke from "https://esm.sh/hpke-js@1.2.2";
// import * as hpke from "https://esm.sh/@hpke/core@1.2.2";
import * as hpke from "https://esm.sh/hpke-js@1.2.3";
// import * as hpke from "https://esm.sh/@hpke/core@1.2.3";
// ...
</script>

Expand All @@ -257,8 +257,8 @@ Using unpkg:
```html
<!-- use a specific version -->
<script type="module">
import * as hpke from "https://unpkg.com/hpke-js@1.2.2/esm/mod.js";
// import * as hpke from "https://unpkg.com/@hpke/core@1.2.2/esm/mod.js";
import * as hpke from "https://unpkg.com/hpke-js@1.2.3/esm/mod.js";
// import * as hpke from "https://unpkg.com/@hpke/core@1.2.3/esm/mod.js";
// ...
</script>
```
Expand Down Expand Up @@ -338,11 +338,11 @@ try {
Deno:

```js
import { AeadId, CipherSuite, KdfId, KemId } from "https://deno.land/x/hpke@1.2.2/mod.ts";
import { AeadId, CipherSuite, KdfId, KemId } from "https://deno.land/x/hpke@1.2.3/mod.ts";
// import {
// Aes128Gcm, CipherSuite, HkdfSha256,
// } from "https://deno.land/x/hpke@1.2.2/core/mod.ts";
// import { DhkemX25519HkdfSha256 } from "https://deno.land/x/hpke@1.2.2/x/dhkem-x25519/mod.ts";
// } from "https://deno.land/x/hpke@1.2.3/core/mod.ts";
// import { DhkemX25519HkdfSha256 } from "https://deno.land/x/hpke@1.2.3/x/dhkem-x25519/mod.ts";

async function doHpke() {
// setup
Expand Down Expand Up @@ -425,10 +425,10 @@ Browsers:
<head></head>
<body>
<script type="module">
import { AeadId, CipherSuite, KdfId, KemId } from "https://esm.sh/hpke-js@1.2.2";
import { AeadId, CipherSuite, KdfId, KemId } from "https://esm.sh/hpke-js@1.2.3";
// import {
// Aes128Gcm, CipherSuite, DhkemP256HkdfSha256, HkdfSha256,
// } from "@hpke/core@1.2.2";
// } from "@hpke/core@1.2.3";
globalThis.doHpke = async () => {
try {
Expand Down
12 changes: 6 additions & 6 deletions core/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ Using deno.land:

```js
// use a specific version
import * as hpke from "https://deno.land/x/hpke@1.2.2/core/mod.ts";
import * as hpke from "https://deno.land/x/hpke@1.2.3/core/mod.ts";

// use the latest stable version
import * as hpke from "https://deno.land/x/hpke/core/mod.ts";
Expand All @@ -60,7 +60,7 @@ Using esm.sh:
```html
<!-- use a specific version -->
<script type="module">
import * as hpke from "https://esm.sh/@hpke/core@1.2.2";
import * as hpke from "https://esm.sh/@hpke/core@1.2.3";
// ...
</script>

Expand All @@ -76,7 +76,7 @@ Using unpkg:
```html
<!-- use a specific version -->
<script type="module">
import * as hpke from "https://unpkg.com/@hpke/core@1.2.2/esm/mod.js";
import * as hpke from "https://unpkg.com/@hpke/core@1.2.3/esm/mod.js";
// ...
</script>
```
Expand Down Expand Up @@ -149,7 +149,7 @@ try {
```js
import {
Aes128Gcm, CipherSuite, DhkemP256HkdfSha256, HkdfSha256,
} from "https://deno.land/x/hpke@1.2.2/core/mod.ts";
} from "https://deno.land/x/hpke@1.2.3/core/mod.ts";

async function doHpke() {
// setup
Expand Down Expand Up @@ -194,10 +194,10 @@ try {
<head></head>
<body>
<script type="module">
// import * as hpke from "https://esm.sh/hpke-js@1.2.2";
// import * as hpke from "https://esm.sh/hpke-js@1.2.3";
import {
Aes128Gcm, CipherSuite, DhkemP256HkdfSha256, HkdfSha256,
} from "https://esm.sh/@hpke/core@1.2.2";
} from "https://esm.sh/@hpke/core@1.2.3";
globalThis.doHpke = async () => {
Expand Down
6 changes: 3 additions & 3 deletions samples/deno/app.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
// import {
// Aes128Gcm, CipherSuite, DhkemP256HkdfSha256, HkdfSha256,
// } from "https://deno.land/x/hpke@1.2.2/core/mod.ts";
// import { DhkemX25519HkdfSha256 } from "https://deno.land/x/hpke@1.2.2/x/dhkem-x25519/mod.ts";
// } from "https://deno.land/x/hpke@1.2.3/core/mod.ts";
// import { DhkemX25519HkdfSha256 } from "https://deno.land/x/hpke@1.2.3/x/dhkem-x25519/mod.ts";
import {
AeadId,
CipherSuite,
KdfId,
KemId,
} from "https://deno.land/x/hpke@1.2.2/mod.ts";
} from "https://deno.land/x/hpke@1.2.3/mod.ts";

async function doHpke() {
const suite = new CipherSuite({
Expand Down
4 changes: 2 additions & 2 deletions samples/node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"author": "Ajitomi Daisuke <ajitomi@gmail.com> (https://github.com/dajiaji)",
"license": "MIT",
"dependencies": {
"@hpke/core": "^1.2.2",
"@hpke/dhkem-x25519": "^1.2.2"
"@hpke/core": "^1.2.3",
"@hpke/dhkem-x25519": "^1.2.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 <ajitomi@gmail.com> (https://github.com/dajiaji)",
"license": "MIT",
"dependencies": {
"@hpke/core": "^1.2.2",
"@hpke/core": "^1.2.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 @@ -45,8 +45,8 @@ Using deno.land:

```js
// use a specific version
import * as hpke from "https://deno.land/x/hpke@1.2.2/core/mod.ts";
import * as chacha20 from "https://deno.land/x/hpke@1.2.2/x/chacha20poly1305/mod.ts";
import * as hpke from "https://deno.land/x/hpke@1.2.3/core/mod.ts";
import * as chacha20 from "https://deno.land/x/hpke@1.2.3/x/chacha20poly1305/mod.ts";

// use the latest stable version
import * as hpke from "https://deno.land/x/hpke/core/mod.ts";
Expand All @@ -63,8 +63,8 @@ Using esm.sh:
```html
<!-- use a specific version -->
<script type="module">
import * as hpke from "https://esm.sh/@hpke/core@1.2.2";
import * as chacha20 from "https://esm.sh/@hpke/chacha20poly1305@1.2.2";
import * as hpke from "https://esm.sh/@hpke/core@1.2.3";
import * as chacha20 from "https://esm.sh/@hpke/chacha20poly1305@1.2.3";
// ...
</script>

Expand All @@ -81,8 +81,8 @@ Using unpkg:
```html
<!-- use a specific version -->
<script type="module">
import * as hpke from "https://unpkg.com/@hpke/core@1.2.2/esm/mod.js";
import * as chacha20 from "https://unpkg.com/@hpke/chacha20poly1305@1.2.2/esm/mod.js";
import * as hpke from "https://unpkg.com/@hpke/core@1.2.3/esm/mod.js";
import * as chacha20 from "https://unpkg.com/@hpke/chacha20poly1305@1.2.3/esm/mod.js";
// ...
</script>
```
Expand Down Expand Up @@ -149,8 +149,8 @@ try {
```js
import {
CipherSuite, DhkemP256HkdfSha256, HkdfSha256,
} from "https://deno.land/x/hpke@1.2.2/core/mod.ts";
import { Chacha20Poly1305 } from "https://deno.land/x/hpke@1.2.2/x/chacha20poly1305/mod.ts";
} from "https://deno.land/x/hpke@1.2.3/core/mod.ts";
import { Chacha20Poly1305 } from "https://deno.land/x/hpke@1.2.3/x/chacha20poly1305/mod.ts";

async function doHpke() {
// setup
Expand Down Expand Up @@ -195,11 +195,11 @@ try {
<head></head>
<body>
<script type="module">
// import * as hpke from "https://esm.sh/hpke-js@1.2.2";
// import * as hpke from "https://esm.sh/hpke-js@1.2.3";
import {
CipherSuite, DhkemP256HkdfSha256, HkdfSha256,
} from "https://esm.sh/@hpke/core@1.2.2";
import { Chacha20Poly1305 } from "https://esm.sh/@hpke/chacha20poly1305@1.2.2";
} from "https://esm.sh/@hpke/core@1.2.3";
import { Chacha20Poly1305 } from "https://esm.sh/@hpke/chacha20poly1305@1.2.3";
globalThis.doHpke = async () => {
try {
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 @@ -45,8 +45,8 @@ Using deno.land:

```js
// use a specific version
import * as hpke from "https://deno.land/x/hpke@1.2.2/core/mod.ts";
import * as secp256k1 from "https://deno.land/x/hpke@1.2.2/x/dhkem-secp256k1/mod.ts";
import * as hpke from "https://deno.land/x/hpke@1.2.3/core/mod.ts";
import * as secp256k1 from "https://deno.land/x/hpke@1.2.3/x/dhkem-secp256k1/mod.ts";

// use the latest stable version
import * as hpke from "https://deno.land/x/hpke/core/mod.ts";
Expand All @@ -63,8 +63,8 @@ Using esm.sh:
```html
<!-- use a specific version -->
<script type="module">
import * as hpke from "https://esm.sh/@hpke/core@1.2.2";
import * as secp256k1 from "https://esm.sh/@hpke/dhkem-secp256k1@1.2.2";
import * as hpke from "https://esm.sh/@hpke/core@1.2.3";
import * as secp256k1 from "https://esm.sh/@hpke/dhkem-secp256k1@1.2.3";
// ...
</script>

Expand All @@ -81,8 +81,8 @@ Using unpkg:
```html
<!-- use a specific version -->
<script type="module">
import * as hpke from "https://unpkg.com/@hpke/core@1.2.2/esm/mod.js";
import * as secp256k1 from "https://unpkg.com/@hpke/dhkem-secp256k1@1.2.2/esm/mod.js";
import * as hpke from "https://unpkg.com/@hpke/core@1.2.3/esm/mod.js";
import * as secp256k1 from "https://unpkg.com/@hpke/dhkem-secp256k1@1.2.3/esm/mod.js";
// ...
</script>
```
Expand Down Expand Up @@ -147,8 +147,8 @@ try {
### Deno

```js
import { Aes256Gcm, CipherSuite, HkdfSha512 } from "https://deno.land/x/hpke@1.2.2/core/mod.ts";
import { DhkemSecp256k1HkdfSha256 } from "https://deno.land/x/hpke@1.2.2/x/dhkem-secp256k1/mod.ts";
import { Aes256Gcm, CipherSuite, HkdfSha512 } from "https://deno.land/x/hpke@1.2.3/core/mod.ts";
import { DhkemSecp256k1HkdfSha256 } from "https://deno.land/x/hpke@1.2.3/x/dhkem-secp256k1/mod.ts";

async function doHpke() {
// setup
Expand Down Expand Up @@ -193,8 +193,8 @@ try {
<head></head>
<body>
<script type="module">
import { Aes128Gcm, CipherSuite, HkdfSha256 } from "https://esm.sh/@hpke/core@1.2.2";
import { DhkemSecp256k1HkdfSha256 } from "https://esm.sh/@hpke/dhkem-secp256k1@1.2.2";
import { Aes128Gcm, CipherSuite, HkdfSha256 } from "https://esm.sh/@hpke/core@1.2.3";
import { DhkemSecp256k1HkdfSha256 } from "https://esm.sh/@hpke/dhkem-secp256k1@1.2.3";
globalThis.doHpke = async () => {
try {
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 @@ -45,8 +45,8 @@ Using deno.land:

```js
// use a specific version
import * as hpke from "https://deno.land/x/hpke@1.2.2/core/mod.ts";
import * as x25519 from "https://deno.land/x/hpke@1.2.2/x/dhkem-x25519/mod.ts";
import * as hpke from "https://deno.land/x/hpke@1.2.3/core/mod.ts";
import * as x25519 from "https://deno.land/x/hpke@1.2.3/x/dhkem-x25519/mod.ts";

// use the latest stable version
import * as hpke from "https://deno.land/x/hpke/core/mod.ts";
Expand All @@ -63,8 +63,8 @@ Using esm.sh:
```html
<!-- use a specific version -->
<script type="module">
import * as hpke from "https://esm.sh/@hpke/core@1.2.2";
import * as x25519 from "https://esm.sh/@hpke/dhkem-x25519@1.2.2";
import * as hpke from "https://esm.sh/@hpke/core@1.2.3";
import * as x25519 from "https://esm.sh/@hpke/dhkem-x25519@1.2.3";
// ...
</script>

Expand All @@ -81,8 +81,8 @@ Using unpkg:
```html
<!-- use a specific version -->
<script type="module">
import * as hpke from "https://unpkg.com/@hpke/core@1.2.2/esm/mod.js";
import * as x25519 from "https://unpkg.com/@hpke/dhkem-x25519@1.2.2/esm/mod.js";
import * as hpke from "https://unpkg.com/@hpke/core@1.2.3/esm/mod.js";
import * as x25519 from "https://unpkg.com/@hpke/dhkem-x25519@1.2.3/esm/mod.js";
// ...
</script>
```
Expand Down Expand Up @@ -147,8 +147,8 @@ try {
### Deno

```js
import { Aes128Gcm, CipherSuite, HkdfSha256 } from "https://deno.land/x/hpke@1.2.2/core/mod.ts";
import { DhkemX25519HkdfSha256 } from "https://deno.land/x/hpke@1.2.2/x/dhkem-x25519/mod.ts";
import { Aes128Gcm, CipherSuite, HkdfSha256 } from "https://deno.land/x/hpke@1.2.3/core/mod.ts";
import { DhkemX25519HkdfSha256 } from "https://deno.land/x/hpke@1.2.3/x/dhkem-x25519/mod.ts";

async function doHpke() {
// setup
Expand Down Expand Up @@ -193,8 +193,8 @@ try {
<head></head>
<body>
<script type="module">
import { Aes128Gcm, CipherSuite, HkdfSha256 } from "https://esm.sh/@hpke/core@1.2.2";
import { DhkemX25519HkdfSha256 } from "https://esm.sh/@hpke/dhkem-x25519@1.2.2";
import { Aes128Gcm, CipherSuite, HkdfSha256 } from "https://esm.sh/@hpke/core@1.2.3";
import { DhkemX25519HkdfSha256 } from "https://esm.sh/@hpke/dhkem-x25519@1.2.3";
globalThis.doHpke = async () => {
try {
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 @@ -45,8 +45,8 @@ Using deno.land:

```js
// use a specific version
import * as hpke from "https://deno.land/x/hpke@1.2.2/core/mod.ts";
import * as x448 from "https://deno.land/x/hpke@1.2.2/x/dhkem-x448/mod.ts";
import * as hpke from "https://deno.land/x/hpke@1.2.3/core/mod.ts";
import * as x448 from "https://deno.land/x/hpke@1.2.3/x/dhkem-x448/mod.ts";

// use the latest stable version
import * as hpke from "https://deno.land/x/hpke/core/mod.ts";
Expand All @@ -63,8 +63,8 @@ Using esm.sh:
```html
<!-- use a specific version -->
<script type="module">
import * as hpke from "https://esm.sh/@hpke/core@1.2.2";
import * as x448 from "https://esm.sh/@hpke/dhkem-x448@1.2.2";
import * as hpke from "https://esm.sh/@hpke/core@1.2.3";
import * as x448 from "https://esm.sh/@hpke/dhkem-x448@1.2.3";
// ...
</script>

Expand All @@ -81,8 +81,8 @@ Using unpkg:
```html
<!-- use a specific version -->
<script type="module">
import * as hpke from "https://unpkg.com/@hpke/core@1.2.2/esm/mod.js";
import * as x448 from "https://unpkg.com/@hpke/dhkem-x448@1.2.2/esm/mod.js";
import * as hpke from "https://unpkg.com/@hpke/core@1.2.3/esm/mod.js";
import * as x448 from "https://unpkg.com/@hpke/dhkem-x448@1.2.3/esm/mod.js";
// ...
</script>
```
Expand Down Expand Up @@ -147,8 +147,8 @@ try {
### Deno

```js
import { KdfId, AeadId, CipherSuite } from "https://deno.land/x/hpke@1.2.2/core/mod.ts";
import { DhkemX448HkdfSha512 } from "https://deno.land/x/hpke@1.2.2/x/dhkem-x448/mod.ts";
import { KdfId, AeadId, CipherSuite } from "https://deno.land/x/hpke@1.2.3/core/mod.ts";
import { DhkemX448HkdfSha512 } from "https://deno.land/x/hpke@1.2.3/x/dhkem-x448/mod.ts";

async function doHpke() {
// setup
Expand Down Expand Up @@ -193,8 +193,8 @@ try {
<head></head>
<body>
<script type="module">
import { Aes256Gcm, CipherSuite, HkdfSha512 } from "https://esm.sh/@hpke/core@1.2.2";
import { DhkemX448HkdfSha512 } from "https://esm.sh/@hpke/dhkem-x448@1.2.2";
import { Aes256Gcm, CipherSuite, HkdfSha512 } from "https://esm.sh/@hpke/core@1.2.3";
import { DhkemX448HkdfSha512 } from "https://esm.sh/@hpke/dhkem-x448@1.2.3";
globalThis.doHpke = async () => {
try {
Expand Down
Loading

0 comments on commit f3ed95c

Please sign in to comment.