From 7bb4463593a32e252347f8a1fb9c4d338890899f Mon Sep 17 00:00:00 2001 From: Ajitomi Daisuke Date: Sat, 18 Jun 2022 07:35:00 +0900 Subject: [PATCH 1/4] Add package-lock.json for playwright. --- test/playwright/package-lock.json | 70 +++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 test/playwright/package-lock.json diff --git a/test/playwright/package-lock.json b/test/playwright/package-lock.json new file mode 100644 index 000000000..7918fef8f --- /dev/null +++ b/test/playwright/package-lock.json @@ -0,0 +1,70 @@ +{ + "name": "playwright", + "lockfileVersion": 2, + "requires": true, + "packages": { + "": { + "devDependencies": { + "@playwright/test": "^1.22.2" + } + }, + "node_modules/@playwright/test": { + "version": "1.22.2", + "resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.22.2.tgz", + "integrity": "sha512-cCl96BEBGPtptFz7C2FOSN3PrTnJ3rPpENe+gYCMx4GNNDlN4tmo2D89y13feGKTMMAIVrXfSQ/UmaQKLy1XLA==", + "dev": true, + "dependencies": { + "@types/node": "*", + "playwright-core": "1.22.2" + }, + "bin": { + "playwright": "cli.js" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/@types/node": { + "version": "17.0.42", + "resolved": "https://registry.npmjs.org/@types/node/-/node-17.0.42.tgz", + "integrity": "sha512-Q5BPGyGKcvQgAMbsr7qEGN/kIPN6zZecYYABeTDBizOsau+2NMdSVTar9UQw21A2+JyA2KRNDYaYrPB0Rpk2oQ==", + "dev": true + }, + "node_modules/playwright-core": { + "version": "1.22.2", + "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.22.2.tgz", + "integrity": "sha512-w/hc/Ld0RM4pmsNeE6aL/fPNWw8BWit2tg+TfqJ3+p59c6s3B6C8mXvXrIPmfQEobkcFDc+4KirNzOQ+uBSP1Q==", + "dev": true, + "bin": { + "playwright": "cli.js" + }, + "engines": { + "node": ">=14" + } + } + }, + "dependencies": { + "@playwright/test": { + "version": "1.22.2", + "resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.22.2.tgz", + "integrity": "sha512-cCl96BEBGPtptFz7C2FOSN3PrTnJ3rPpENe+gYCMx4GNNDlN4tmo2D89y13feGKTMMAIVrXfSQ/UmaQKLy1XLA==", + "dev": true, + "requires": { + "@types/node": "*", + "playwright-core": "1.22.2" + } + }, + "@types/node": { + "version": "17.0.42", + "resolved": "https://registry.npmjs.org/@types/node/-/node-17.0.42.tgz", + "integrity": "sha512-Q5BPGyGKcvQgAMbsr7qEGN/kIPN6zZecYYABeTDBizOsau+2NMdSVTar9UQw21A2+JyA2KRNDYaYrPB0Rpk2oQ==", + "dev": true + }, + "playwright-core": { + "version": "1.22.2", + "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.22.2.tgz", + "integrity": "sha512-w/hc/Ld0RM4pmsNeE6aL/fPNWw8BWit2tg+TfqJ3+p59c6s3B6C8mXvXrIPmfQEobkcFDc+4KirNzOQ+uBSP1Q==", + "dev": true + } + } +} From be02a46c96200d1a418911f17a11234dedef08d4 Mon Sep 17 00:00:00 2001 From: Ajitomi Daisuke Date: Sat, 18 Jun 2022 08:59:50 +0900 Subject: [PATCH 2/4] Add dnt task to deno tasks. --- .github/workflows/ci_browser.yml | 2 +- .github/workflows/ci_node.yml | 2 +- .github/workflows/publish.yml | 2 +- deno.json | 3 ++- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci_browser.yml b/.github/workflows/ci_browser.yml index ffb31a732..95e100ef0 100644 --- a/.github/workflows/ci_browser.yml +++ b/.github/workflows/ci_browser.yml @@ -17,7 +17,7 @@ jobs: - uses: denoland/setup-deno@004814556e37c54a2f6e31384c9e18e983317366 with: deno-version: v1.x - - run: deno run -A dnt.ts 0.11.4 + - run: deno task dnt - run: mkdir test/browser/src - run: cp npm/esm/*.js test/browser/src/ - run: cp -rf npm/esm/src test/browser/src/ diff --git a/.github/workflows/ci_node.yml b/.github/workflows/ci_node.yml index 3c60fb44a..9e6c13155 100644 --- a/.github/workflows/ci_node.yml +++ b/.github/workflows/ci_node.yml @@ -25,4 +25,4 @@ jobs: with: deno-version: v1.x - name: Run dnt - run: deno run -A dnt.ts 0.11.4 + run: deno task dnt diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index b419bfea1..eb1e6161b 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -16,7 +16,7 @@ jobs: - uses: denoland/setup-deno@v1 with: deno-version: v1.x - - run: deno run -A dnt.ts 0.11.4 + - run: deno task dnt - working-directory: ./npm run: npm publish env: diff --git a/deno.json b/deno.json index 48fb95a9c..c3cbf5646 100644 --- a/deno.json +++ b/deno.json @@ -12,6 +12,7 @@ } }, "tasks": { - "test": "deno test test -A --fail-fast --doc --coverage=coverage --jobs --allow-read" + "test": "deno test test -A --fail-fast --doc --coverage=coverage --jobs --allow-read", + "dnt": "deno run -A dnt.ts 0.11.5" } } From b75ac69e6a1210da21d29a5fe856c42548d3cd61 Mon Sep 17 00:00:00 2001 From: Ajitomi Daisuke Date: Sat, 18 Jun 2022 09:01:02 +0900 Subject: [PATCH 3/4] Remove debug log. --- src/kemPrimitives/ec.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/kemPrimitives/ec.ts b/src/kemPrimitives/ec.ts index e25df9763..33744ddd4 100644 --- a/src/kemPrimitives/ec.ts +++ b/src/kemPrimitives/ec.ts @@ -215,7 +215,6 @@ export class Ec implements KemPrimitives { consts.KEM_USAGES, ); } catch (_e: unknown) { - console.log(_e); throw new Error("Invalid key for the ciphersuite"); } } From 919b039f01bba8b58336eed142ed8efd8e9a30bd Mon Sep 17 00:00:00 2001 From: Ajitomi Daisuke Date: Sat, 18 Jun 2022 09:01:54 +0900 Subject: [PATCH 4/4] Bump up version to v0.11.5. --- CHANGES.md | 6 ++++++ README.md | 12 ++++++------ samples/node/package.json | 2 +- samples/ts-node/package.json | 2 +- 4 files changed, 14 insertions(+), 8 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index f065f8f51..d0ffee90f 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -2,6 +2,12 @@ ## Unreleased +## Version 0.11.5 + +Released 2022-06-18 + +- [(#76) Add DHKEM(P-256, HKDF-SHA256) to Deno supported KEMs.](https://github.com/dajiaji/hpke-js/pull/78) + ## Version 0.11.4 Released 2022-06-11 diff --git a/README.md b/README.md index 06c467b01..ceda339df 100644 --- a/README.md +++ b/README.md @@ -107,7 +107,7 @@ Using esm.sh: ```html @@ -123,7 +123,7 @@ Using unpkg: ```html ``` @@ -148,7 +148,7 @@ Using deno.land: ```js // use a specific version -import * as hpke from "https://deno.land/x/hpke@v0.11.4/mod.ts"; +import * as hpke from "https://deno.land/x/hpke@v0.11.5/mod.ts"; // use the latest stable version import * as hpke from "https://deno.land/x/hpke/mod.ts"; @@ -167,8 +167,8 @@ Browsers: