Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: upgrade to Deno 1.43 #184

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
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
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
registry-url: 'https://registry.npmjs.org'
- uses: denoland/setup-deno@v1
with:
deno-version: 1.40.2
deno-version: 1.43.3
- run: deno lint
if: matrix.os == 'ubuntu-latest'
- run: deno fmt --check
Expand Down
100 changes: 50 additions & 50 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions packages/sham-weakref/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
},
"homepage": "https://github.com/denoland/node_deno_shims#readme",
"devDependencies": {
"typescript": "^5.2.2",
"ts-node": "^10.9.1"
"typescript": "^5.4.5",
"ts-node": "^10.9.2"
}
}
4 changes: 2 additions & 2 deletions packages/shim-crypto/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
},
"homepage": "https://github.com/denoland/node_deno_shims#readme",
"devDependencies": {
"typescript": "^5.2.2",
"ts-node": "^10.9.1"
"typescript": "^5.4.5",
"ts-node": "^10.9.2"
}
}
12 changes: 7 additions & 5 deletions packages/shim-crypto/src/crypto.types.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ export interface SubtleCrypto {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/exportKey) */
exportKey(format: "jwk", key: CryptoKey): Promise<JsonWebKey>;
exportKey(format: Exclude<KeyFormat, "jwk">, key: CryptoKey): Promise<ArrayBuffer>;
exportKey(format: KeyFormat, key: CryptoKey): Promise<ArrayBuffer | JsonWebKey>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/generateKey) */
generateKey(algorithm: "Ed25519", extractable: boolean, keyUsages: ReadonlyArray<"sign" | "verify">): Promise<CryptoKeyPair>;
generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKeyPair>;
generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKeyPair | CryptoKey>;
Expand Down Expand Up @@ -172,6 +174,11 @@ export interface RsaOtherPrimesInfo {

export type KeyFormat = "jwk" | "pkcs8" | "raw" | "spki";

export interface CryptoKeyPair {
privateKey: CryptoKey;
publicKey: CryptoKey;
}

export interface RsaHashedKeyGenParams extends RsaKeyGenParams {
hash: HashAlgorithmIdentifier;
}
Expand All @@ -189,11 +196,6 @@ export interface EcKeyGenParams extends Algorithm {

export type NamedCurve = string;

export interface CryptoKeyPair {
privateKey: CryptoKey;
publicKey: CryptoKey;
}

export interface AesKeyGenParams extends Algorithm {
length: number;
}
Expand Down
2 changes: 1 addition & 1 deletion packages/shim-deno-test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@
},
"homepage": "https://github.com/denoland/node_deno_shims#readme",
"devDependencies": {
"typescript": "^5.2.2"
"typescript": "^5.4.5"
}
}
22 changes: 11 additions & 11 deletions packages/shim-deno-test/src/deno.types.gen.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { URL } from "url";
* `fn` can be async if required.
*
* ```ts
* import { assertEquals } from "https://deno.land/std/testing/asserts.ts";
* import { assertEquals } from "jsr:@std/assert";
*
* Deno.test({
* name: "example test",
Expand Down Expand Up @@ -49,7 +49,7 @@ export interface DenoTest {
* `fn` can be async if required.
*
* ```ts
* import { assertEquals } from "https://deno.land/std/testing/asserts.ts";
* import { assertEquals } from "jsr:@std/assert";
*
* Deno.test({
* name: "example test",
Expand Down Expand Up @@ -86,7 +86,7 @@ export interface DenoTest {
* `fn` can be async if required.
*
* ```ts
* import { assertEquals } from "https://deno.land/std/testing/asserts.ts";
* import { assertEquals } from "jsr:@std/assert";
*
* Deno.test("My test description", () => {
* assertEquals("hello", "hello");
Expand All @@ -109,7 +109,7 @@ export interface DenoTest {
* `fn` can be async if required. Declared function must have a name.
*
* ```ts
* import { assertEquals } from "https://deno.land/std/testing/asserts.ts";
* import { assertEquals } from "jsr:@std/assert";
*
* Deno.test(function myTestName() {
* assertEquals("hello", "hello");
Expand All @@ -132,7 +132,7 @@ export interface DenoTest {
* `fn` can be async if required.
*
* ```ts
* import {assert, fail, assertEquals} from "https://deno.land/std/testing/asserts.ts";
* import { assert, fail, assertEquals } from "jsr:@std/assert";
*
* Deno.test("My test description", { permissions: { read: true } }, (): void => {
* assertEquals("hello", "hello");
Expand All @@ -155,7 +155,7 @@ export interface DenoTest {
* `fn` can be async if required.
*
* ```ts
* import { assertEquals } from "https://deno.land/std/testing/asserts.ts";
* import { assertEquals } from "jsr:@std/assert";
*
* Deno.test(
* {
Expand Down Expand Up @@ -190,7 +190,7 @@ export interface DenoTest {
* `fn` can be async if required. Declared function must have a name.
*
* ```ts
* import { assertEquals } from "https://deno.land/std/testing/asserts.ts";
* import { assertEquals } from "jsr:@std/assert";
*
* Deno.test(
* { permissions: { read: true } },
Expand Down Expand Up @@ -519,7 +519,7 @@ export interface PermissionOptionsObject {
* Examples:
*
* ```ts
* import { assertEquals } from "https://deno.land/std/testing/asserts.ts";
* import { assertEquals } from "jsr:@std/assert";
*
* Deno.test({
* name: "inherit",
Expand All @@ -534,7 +534,7 @@ export interface PermissionOptionsObject {
* ```
*
* ```ts
* import { assertEquals } from "https://deno.land/std/testing/asserts.ts";
* import { assertEquals } from "jsr:@std/assert";
*
* Deno.test({
* name: "true",
Expand All @@ -549,7 +549,7 @@ export interface PermissionOptionsObject {
* ```
*
* ```ts
* import { assertEquals } from "https://deno.land/std/testing/asserts.ts";
* import { assertEquals } from "jsr:@std/assert";
*
* Deno.test({
* name: "false",
Expand All @@ -564,7 +564,7 @@ export interface PermissionOptionsObject {
* ```
*
* ```ts
* import { assertEquals } from "https://deno.land/std/testing/asserts.ts";
* import { assertEquals } from "jsr:@std/assert";
*
* Deno.test({
* name: "localhost:8080",
Expand Down
Loading
Loading