diff --git a/package.json b/package.json index 5aab4b9c..3f2b26a3 100644 --- a/package.json +++ b/package.json @@ -18,14 +18,14 @@ "contribs": "all-contributors" }, "dependencies": { - "@grammyjs/types": "^2.8.1", + "@grammyjs/types": "^2.8.2", "abort-controller": "^3.0.0", "debug": "^4.3.4", "node-fetch": "^2.6.7" }, "devDependencies": { "@types/debug": "^4.1.7", - "@types/node": "^12.20.50", + "@types/node": "^12.20.55", "@types/node-fetch": "^2.6.2", "all-contributors-cli": "^6.20.0", "deno2node": "^1.4.0" diff --git a/src/platform.deno.ts b/src/platform.deno.ts index 92560b92..ff47bc03 100644 --- a/src/platform.deno.ts +++ b/src/platform.deno.ts @@ -2,7 +2,7 @@ export const isDeno = typeof Deno !== "undefined"; // === Export all API types -export * from "https://esm.sh/@grammyjs/types@2.8.1"; +export * from "https://esm.sh/@grammyjs/types@2.8.2"; // === Export debug import d from "https://cdn.skypack.dev/debug@4.3.4"; @@ -20,7 +20,7 @@ if (isDeno) { // === Export system-specific operations // Turn an AsyncIterable into a stream -export { readableStreamFromIterable as itrToStream } from "https://deno.land/std@0.148.0/streams/mod.ts"; +export { readableStreamFromIterable as itrToStream } from "https://deno.land/std@0.150.0/streams/mod.ts"; // === Base configuration for `fetch` calls export const baseFetchConfig = (_apiRoot: string) => ({}); diff --git a/src/types.deno.ts b/src/types.deno.ts index e02e12aa..fd59bef8 100644 --- a/src/types.deno.ts +++ b/src/types.deno.ts @@ -1,5 +1,5 @@ // === Needed imports -import { type InputFileProxy } from "https://esm.sh/@grammyjs/types@2.8.1"; +import { type InputFileProxy } from "https://esm.sh/@grammyjs/types@2.8.2"; import { debug as d, isDeno, toRaw } from "./platform.deno.ts"; import { basename } from "https://deno.land/std@0.148.0/path/mod.ts"; import { iterateReader } from "https://deno.land/std@0.148.0/streams/mod.ts"; @@ -7,7 +7,7 @@ import { iterateReader } from "https://deno.land/std@0.148.0/streams/mod.ts"; const debug = d("grammy:warn"); // === Export all API types -export * from "https://esm.sh/@grammyjs/types@2.8.1"; +export * from "https://esm.sh/@grammyjs/types@2.8.2"; /** Something that looks like a URL. */ interface URLLike { diff --git a/test/bot.test.ts b/test/bot.test.ts index 87b41f04..f99961b3 100644 --- a/test/bot.test.ts +++ b/test/bot.test.ts @@ -2,7 +2,7 @@ import { Bot } from "../src/bot.ts"; import { assertEquals, assertThrows, -} from "https://deno.land/std@0.148.0/testing/asserts.ts"; +} from "https://deno.land/std@0.150.0/testing/asserts.ts"; function createBot(token: string) { return new Bot(token); diff --git a/test/composer.test.ts b/test/composer.test.ts index 8f2dd1b8..7ac66a19 100644 --- a/test/composer.test.ts +++ b/test/composer.test.ts @@ -3,13 +3,13 @@ import { type Context } from "../src/mod.ts"; import { assertEquals, assertRejects, -} from "https://deno.land/std@0.148.0/testing/asserts.ts"; -import { type Spy, spy } from "https://deno.land/std@0.148.0/testing/mock.ts"; +} from "https://deno.land/std@0.150.0/testing/asserts.ts"; +import { type Spy, spy } from "https://deno.land/std@0.150.0/testing/mock.ts"; import { beforeEach, describe, it, -} from "https://deno.land/std@0.148.0/testing/bdd.ts"; +} from "https://deno.land/std@0.150.0/testing/bdd.ts"; describe("Composer", () => { let composer: Composer; diff --git a/test/context.test.ts b/test/context.test.ts index 8f018b9b..5ae8aea6 100644 --- a/test/context.test.ts +++ b/test/context.test.ts @@ -12,8 +12,8 @@ import { assertEquals, assertFalse, assertThrows, -} from "https://deno.land/std@0.147.0/testing/asserts.ts"; -import { describe, it } from "https://deno.land/std@0.147.0/testing/bdd.ts"; +} from "https://deno.land/std@0.150.0/testing/asserts.ts"; +import { describe, it } from "https://deno.land/std@0.150.0/testing/bdd.ts"; describe("Context", () => { const u = { id: 42, first_name: "bot", is_bot: true } as User; diff --git a/test/convenience/keyboard.test.ts b/test/convenience/keyboard.test.ts index dd774f4a..3de16eed 100644 --- a/test/convenience/keyboard.test.ts +++ b/test/convenience/keyboard.test.ts @@ -1,7 +1,7 @@ import { InlineKeyboard, Keyboard } from "../../src/convenience/keyboard.ts"; import { type LoginUrl } from "../../src/platform.deno.ts"; -import { assertEquals } from "https://deno.land/std@0.147.0/testing/asserts.ts"; -import { describe, it } from "https://deno.land/std@0.147.0/testing/bdd.ts"; +import { assertEquals } from "https://deno.land/std@0.150.0/testing/asserts.ts"; +import { describe, it } from "https://deno.land/std@0.150.0/testing/bdd.ts"; describe("Keyboard", () => { it("should take initial buttons", () => { diff --git a/test/convenience/session.test.ts b/test/convenience/session.test.ts index 04e06377..6758a85e 100644 --- a/test/convenience/session.test.ts +++ b/test/convenience/session.test.ts @@ -13,9 +13,9 @@ import { assertEquals, assertRejects, assertThrows, -} from "https://deno.land/std@0.147.0/testing/asserts.ts"; -import { spy } from "https://deno.land/std@0.147.0/testing/mock.ts"; -import { describe, it } from "https://deno.land/std@0.147.0/testing/bdd.ts"; +} from "https://deno.land/std@0.150.0/testing/asserts.ts"; +import { spy } from "https://deno.land/std@0.150.0/testing/mock.ts"; +import { describe, it } from "https://deno.land/std@0.150.0/testing/bdd.ts"; const TICK_MS = 50; const tick = (n = 1) => new Promise((r) => setTimeout(r, n * TICK_MS)); diff --git a/test/core/client.test.ts b/test/core/client.test.ts index 8e9bbfa7..61f107e6 100644 --- a/test/core/client.test.ts +++ b/test/core/client.test.ts @@ -4,14 +4,14 @@ import { type ApiResponse } from "../../src/types.ts"; import { assertEquals, assertRejects, -} from "https://deno.land/std@0.148.0/testing/asserts.ts"; -import { spy, Stub, stub } from "https://deno.land/std@0.148.0/testing/mock.ts"; +} from "https://deno.land/std@0.150.0/testing/asserts.ts"; +import { spy, Stub, stub } from "https://deno.land/std@0.150.0/testing/mock.ts"; import { afterEach, beforeEach, describe, it, -} from "https://deno.land/std@0.148.0/testing/bdd.ts"; +} from "https://deno.land/std@0.150.0/testing/bdd.ts"; const token = "secret-token"; diff --git a/test/core/error.test.ts b/test/core/error.test.ts index e2be231d..45e63623 100644 --- a/test/core/error.test.ts +++ b/test/core/error.test.ts @@ -1,6 +1,6 @@ import { HttpError, toHttpError } from "../../src/core/error.ts"; -import { assertThrows } from "https://deno.land/std@0.148.0/testing/asserts.ts"; -import { describe, it } from "https://deno.land/std@0.148.0/testing/bdd.ts"; +import { assertThrows } from "https://deno.land/std@0.150.0/testing/asserts.ts"; +import { describe, it } from "https://deno.land/std@0.150.0/testing/bdd.ts"; describe("toHttpError", () => { it("should throw errors", () => { diff --git a/test/core/payload.test.ts b/test/core/payload.test.ts index 0f439fc7..2efb7d32 100644 --- a/test/core/payload.test.ts +++ b/test/core/payload.test.ts @@ -7,12 +7,12 @@ import { assert, assertEquals, assertFalse, -} from "https://deno.land/std@0.148.0/testing/asserts.ts"; -import { describe, it } from "https://deno.land/std@0.148.0/testing/bdd.ts"; +} from "https://deno.land/std@0.150.0/testing/asserts.ts"; +import { describe, it } from "https://deno.land/std@0.150.0/testing/bdd.ts"; import { readAll, readerFromIterable, -} from "https://deno.land/std@0.148.0/streams/conversion.ts"; +} from "https://deno.land/std@0.150.0/streams/conversion.ts"; describe("requiresFormDataUpload", () => { it("should ignore primitives", () => { diff --git a/test/filter.test.ts b/test/filter.test.ts index b83d6616..b7d5feb9 100644 --- a/test/filter.test.ts +++ b/test/filter.test.ts @@ -3,8 +3,8 @@ import { type Context } from "../src/mod.ts"; import { assert, assertThrows, -} from "https://deno.land/std@0.148.0/testing/asserts.ts"; -import { describe, it } from "https://deno.land/std@0.148.0/testing/bdd.ts"; +} from "https://deno.land/std@0.150.0/testing/asserts.ts"; +import { describe, it } from "https://deno.land/std@0.150.0/testing/bdd.ts"; describe("matchFilter", () => { it("should reject empty filters", () => {