Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/ci_bun.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
- name: Prepare test for ./x/core
working-directory: ./x/core
run: |
deno run -A dnt.ts 0.0.0
deno run -A dnt.ts
deno task minify > ../dhkem-x25519/test/runtimes/hpke-core.js
deno task minify > ../dhkem-x448/test/runtimes/hpke-core.js
deno task minify > ../hybridkem-x25519-kyber768/test/runtimes/hpke-core.js
Expand All @@ -51,7 +51,7 @@ jobs:
- name: Prepare test for ./x/chacha20poly1305
working-directory: ./x/chacha20poly1305
run: |
deno run -A dnt.ts 0.0.0
deno run -A dnt.ts
- name: Run npm pack for ./x/chacha20poly1305
working-directory: ./npm-packages/x/chacha20poly1305
run: npm pack
Expand Down Expand Up @@ -109,7 +109,7 @@ jobs:
- name: Prepare test for ./x/hpke-js
working-directory: ./x/hpke-js
run: |
deno run -A dnt.ts 0.0.0
deno run -A dnt.ts
deno task minify > test/runtimes/hpke.js
- name: Run npm pack for ./x/hpke-js
working-directory: ./npm-packages/x/hpke-js
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ci_cloudflare.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- name: Prepare test for ./x/core
working-directory: ./x/core
run: |
deno run -A dnt.ts 0.0.0
deno run -A dnt.ts
deno task minify > ../chacha20poly1305/test/runtimes/hpke-core.js
deno task minify > ../dhkem-x25519/test/runtimes/hpke-core.js
deno task minify > ../dhkem-x448/test/runtimes/hpke-core.js
Expand Down Expand Up @@ -103,7 +103,7 @@ jobs:
deno test dhkem-secp256k1.spec.ts --allow-net --config ../../../deno.json
- name: Prepare test for hpke-js
working-directory: ./x/hpke-js
run: deno run -A dnt.ts 0.0.0
run: deno run -A dnt.ts
- name: Run npm pack for ./x/hpke-js
working-directory: ./npm-packages/x/hpke-js
run: npm pack
Expand Down
2 changes: 1 addition & 1 deletion x/chacha20poly1305/deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"tasks": {
"test": "deno fmt && deno lint && deno test test -A --fail-fast --doc --coverage=coverage --parallel --allow-read",
"cov": "deno coverage ./coverage --lcov --exclude='test'",
"dnt": "deno run -A dnt.ts $(git describe --tags $(git rev-list --tags --max-count=1))",
"dnt": "deno run -A dnt.ts",
"minify": "esbuild ../../npm-packages/x/chacha20poly1305/esm/chacha20poly1305/mod.js --bundle --format=esm --minify"
}
}
6 changes: 4 additions & 2 deletions x/chacha20poly1305/dnt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import { build, emptyDir } from "@deno/dnt";

await emptyDir("../../npm-packages/x/chacha20poly1305");

const denoPkg = JSON.parse(await Deno.readTextFile("./deno.json"));

await build({
entryPoints: ["./mod.ts"],
outDir: "../../npm-packages/x/chacha20poly1305",
Expand All @@ -17,8 +19,8 @@ await build({
deno: "dev",
},
package: {
name: "@hpke/chacha20poly1305",
version: Deno.args[0],
name: denoPkg.name,
version: denoPkg.version,
description:
"A Hybrid Public Key Encryption (HPKE) module extension for ChaCha20/Poly1305",
repository: {
Expand Down
Binary file modified x/chacha20poly1305/test/runtimes/bun/bun.lockb
Binary file not shown.
4 changes: 2 additions & 2 deletions x/chacha20poly1305/test/runtimes/bun/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"typescript": "^5.0.0"
},
"dependencies": {
"@hpke/chacha20poly1305": "file:../../../../../npm-packages/x/chacha20poly1305/hpke-chacha20poly1305-0.0.0.tgz",
"@hpke/core": "file:../../../../../npm-packages/x/core/hpke-core-0.0.0.tgz"
"@hpke/chacha20poly1305": "file:../../../../../npm-packages/x/chacha20poly1305/hpke-chacha20poly1305-1.2.9.tgz",
"@hpke/core": "file:../../../../../npm-packages/x/core/hpke-core-1.2.9.tgz"
}
}
2 changes: 1 addition & 1 deletion x/core/deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"tasks": {
"test": "deno fmt && deno lint && deno test test -A --fail-fast --doc --coverage=coverage --parallel --allow-read",
"cov": "deno coverage ./coverage --lcov --exclude='test'",
"dnt": "deno run -A dnt.ts $(git describe --tags $(git rev-list --tags --max-count=1))",
"dnt": "deno run -A dnt.ts",
"minify": "esbuild ../../npm-packages/x/core/esm/mod.js --bundle --format=esm --minify"
}
}
6 changes: 4 additions & 2 deletions x/core/dnt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import { build, emptyDir } from "@deno/dnt";

await emptyDir("../../npm-packages/x/core");

const denoPkg = JSON.parse(await Deno.readTextFile("./deno.json"));

await build({
entryPoints: ["./mod.ts"],
outDir: "../../npm-packages/x/core",
Expand All @@ -17,8 +19,8 @@ await build({
deno: "dev",
},
package: {
name: "@hpke/core",
version: Deno.args[0],
name: denoPkg.name,
version: denoPkg.version,
description:
"A Hybrid Public Key Encryption (HPKE) core module for various JavaScript runtimes",
repository: {
Expand Down
Binary file modified x/core/test/runtimes/bun/bun.lockb
Binary file not shown.
2 changes: 1 addition & 1 deletion x/core/test/runtimes/bun/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
"typescript": "^5.0.0"
},
"dependencies": {
"@hpke/core": "file:../../../../../npm-packages/x/core/hpke-core-0.0.0.tgz"
"@hpke/core": "file:../../../../../npm-packages/x/core/hpke-core-1.2.9.tgz"
}
}
2 changes: 1 addition & 1 deletion x/core/test/runtimes/cloudflare/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@
"deploy": "wrangler publish"
},
"dependencies": {
"@hpke/core": "file:../../../../../npm-packages/x/core/hpke-core-0.0.0.tgz"
"@hpke/core": "file:../../../../../npm-packages/x/core/hpke-core-1.2.9.tgz"
}
}
2 changes: 1 addition & 1 deletion x/dhkem-secp256k1/deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"tasks": {
"test": "deno fmt && deno lint && deno test test -A --fail-fast --doc --coverage=coverage --parallel --allow-read",
"cov": "deno coverage ./coverage --lcov --exclude='test'",
"dnt": "deno run -A dnt.ts $(git describe --tags $(git rev-list --tags --max-count=1))",
"dnt": "deno run -A dnt.ts",
"minify": "esbuild ../../npm-packages/x/dhkem-secp256k1/esm/dhkem-secp256k1/mod.js --bundle --format=esm --minify"
}
}
6 changes: 4 additions & 2 deletions x/dhkem-secp256k1/dnt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import { build, emptyDir } from "@deno/dnt";

await emptyDir("../../npm-packages/x/dhkem-secp256k1");

const denoPkg = JSON.parse(await Deno.readTextFile("./deno.json"));

await build({
entryPoints: ["./mod.ts"],
outDir: "../../npm-packages/x/dhkem-secp256k1",
Expand All @@ -17,8 +19,8 @@ await build({
deno: "dev",
},
package: {
name: "@hpke/dhkem-secp256k1",
version: Deno.args[0],
name: denoPkg.name,
version: denoPkg.version,
description:
"A Hybrid Public Key Encryption (HPKE) module extension for secp256k1 curve (EXPERIMENTAL)",
repository: {
Expand Down
2 changes: 1 addition & 1 deletion x/dhkem-x25519/deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"tasks": {
"test": "deno fmt && deno lint && deno test test -A --fail-fast --doc --coverage=coverage --parallel --allow-read",
"cov": "deno coverage ./coverage --lcov --exclude='test'",
"dnt": "deno run -A dnt.ts $(git describe --tags $(git rev-list --tags --max-count=1))",
"dnt": "deno run -A dnt.ts",
"minify": "esbuild ../../npm-packages/x/dhkem-x25519/esm/dhkem-x25519/mod.js --bundle --format=esm --minify"
}
}
6 changes: 4 additions & 2 deletions x/dhkem-x25519/dnt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import { build, emptyDir } from "@deno/dnt";

await emptyDir("../../npm-packages/x/dhkem-x25519");

const denoPkg = JSON.parse(await Deno.readTextFile("./deno.json"));

await build({
entryPoints: ["./mod.ts"],
outDir: "../../npm-packages/x/dhkem-x25519",
Expand All @@ -17,8 +19,8 @@ await build({
deno: "dev",
},
package: {
name: "@hpke/dhkem-x25519",
version: Deno.args[0],
name: denoPkg.name,
version: denoPkg.version,
description:
"A Hybrid Public Key Encryption (HPKE) module extension for X25519",
repository: {
Expand Down
2 changes: 1 addition & 1 deletion x/dhkem-x448/deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"tasks": {
"test": "deno fmt && deno lint && deno test test -A --fail-fast --doc --coverage=coverage --parallel --allow-read",
"cov": "deno coverage ./coverage --lcov --exclude='test'",
"dnt": "deno run -A dnt.ts $(git describe --tags $(git rev-list --tags --max-count=1))",
"dnt": "deno run -A dnt.ts",
"minify": "esbuild ../../npm-packages/x/dhkem-x448/esm/dhkem-x448/mod.js --bundle --format=esm --minify"
}
}
6 changes: 4 additions & 2 deletions x/dhkem-x448/dnt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import { build, emptyDir } from "@deno/dnt";

await emptyDir("../../npm-packages/x/dhkem-x448");

const denoPkg = JSON.parse(await Deno.readTextFile("./deno.json"));

await build({
entryPoints: ["./mod.ts"],
outDir: "../../npm-packages/x/dhkem-x448",
Expand All @@ -17,8 +19,8 @@ await build({
deno: "dev",
},
package: {
name: "@hpke/dhkem-x448",
version: Deno.args[0],
name: denoPkg.name,
version: denoPkg.version,
description:
"A Hybrid Public Key Encryption (HPKE) module extension for X448",
repository: {
Expand Down
2 changes: 1 addition & 1 deletion x/hpke-js/deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"tasks": {
"test": "deno fmt && deno lint && deno test test -A --fail-fast --doc --coverage=coverage --parallel --allow-read",
"cov": "deno coverage ./coverage --lcov --exclude='test'",
"dnt": "deno run -A dnt.ts $(git describe --tags $(git rev-list --tags --max-count=1))",
"dnt": "deno run -A dnt.ts",
"minify": "esbuild ../../npm-packages/x/hpke-js/esm/hpke-js/mod.js --bundle --format=esm --minify"
}
}
4 changes: 3 additions & 1 deletion x/hpke-js/dnt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import { build, emptyDir } from "@deno/dnt";

await emptyDir("../../npm-packages/x/hpke-js");

const denoPkg = JSON.parse(await Deno.readTextFile("./deno.json"));

await build({
entryPoints: ["./mod.ts"],
outDir: "../../npm-packages/x/hpke-js",
Expand All @@ -18,7 +20,7 @@ await build({
},
package: {
name: "hpke-js",
version: Deno.args[0],
version: denoPkg.version,
description:
"A Hybrid Public Key Encryption (HPKE) module for various JavaScript runtimes",
repository: {
Expand Down
Binary file modified x/hpke-js/test/runtimes/bun/bun.lockb
Binary file not shown.
4 changes: 2 additions & 2 deletions x/hpke-js/test/runtimes/bun/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"typescript": "^5.0.0"
},
"dependencies": {
"@hpke/hpke-js": "file:../../../../../npm-packages/x/hpke-js/hpke-js-0.0.0.tgz",
"@hpke/core": "file:../../../../../npm-packages/x/core/hpke-core-0.0.0.tgz"
"@hpke/hpke-js": "file:../../../../../npm-packages/x/hpke-js/hpke-js-1.2.9.tgz",
"@hpke/core": "file:../../../../../npm-packages/x/core/hpke-core-1.2.9.tgz"
}
}
2 changes: 1 addition & 1 deletion x/hpke-js/test/runtimes/cloudflare/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@
"deploy": "wrangler publish"
},
"dependencies": {
"@hpke/hpke-js": "file:../../../../../npm-packages/x/hpke-js/hpke-js-0.0.0.tgz"
"@hpke/hpke-js": "file:../../../../../npm-packages/x/hpke-js/hpke-js-1.2.9.tgz"
}
}
2 changes: 1 addition & 1 deletion x/hybridkem-x25519-kyber768/deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"tasks": {
"test": "deno fmt && deno lint && deno test test -A --fail-fast --doc --coverage=coverage --parallel --allow-read",
"cov": "deno coverage ./coverage --lcov --exclude='test'",
"dnt": "deno run -A dnt.ts $(git describe --tags $(git rev-list --tags --max-count=1))",
"dnt": "deno run -A dnt.ts",
"minify": "esbuild ../../npm-packages/x/hybridkem-x25519-kyber768/esm/hybridkem-x25519-kyber768/mod.js --bundle --format=esm --minify"
}
}
6 changes: 4 additions & 2 deletions x/hybridkem-x25519-kyber768/dnt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import { build, emptyDir } from "@deno/dnt";

await emptyDir("../../npm-packages/x/hybridkem-x25519-kyber768");

const denoPkg = JSON.parse(await Deno.readTextFile("./deno.json"));

await build({
entryPoints: ["./mod.ts"],
outDir: "../../npm-packages/x/hybridkem-x25519-kyber768",
Expand All @@ -17,8 +19,8 @@ await build({
deno: "dev",
},
package: {
name: "@hpke/hybridkem-x25519-kyber768",
version: Deno.args[0],
name: denoPkg.name,
version: denoPkg.version,
description:
"A Hybrid Public Key Encryption (HPKE) module extension for a hybrid post-quantum KEM, X25519Kyber768Draft00",
repository: {
Expand Down
Loading