From ba315c0cbf60d43b1e86e6a7e0f1997102ef9a85 Mon Sep 17 00:00:00 2001 From: KnorpelSenf Date: Fri, 31 Dec 2021 11:00:50 +0100 Subject: [PATCH] Update to Bot API 5.6 (#148) --- package.json | 2 +- src/platform.deno.ts | 10 +++++----- test/bot.test.ts | 2 +- test/filter.test.ts | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index b0b8db90..294da0a5 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,7 @@ "contribs": "all-contributors" }, "dependencies": { - "@grammyjs/types": "^2.4.5", + "@grammyjs/types": "^2.5.0", "abort-controller": "^3.0.0", "debug": "^4.3.3", "node-fetch": "^2.6.5" diff --git a/src/platform.deno.ts b/src/platform.deno.ts index 5852f195..3ff656b1 100644 --- a/src/platform.deno.ts +++ b/src/platform.deno.ts @@ -2,12 +2,12 @@ const isDeno = typeof Deno !== "undefined"; // === Needed imports -import { InputFileProxy } from "https://cdn.skypack.dev/@grammyjs/types@v2.4.5?dts"; -import { basename } from "https://deno.land/std@0.118.0/path/mod.ts"; -import { iterateReader } from "https://deno.land/std@0.118.0/streams/mod.ts"; +import { InputFileProxy } from "https://cdn.skypack.dev/@grammyjs/types@v2.5.0?dts"; +import { basename } from "https://deno.land/std@0.119.0/path/mod.ts"; +import { iterateReader } from "https://deno.land/std@0.119.0/streams/mod.ts"; // === Export all API types -export * from "https://cdn.skypack.dev/@grammyjs/types@v2.4.5?dts"; +export * from "https://cdn.skypack.dev/@grammyjs/types@v2.5.0?dts"; // === Export debug import d from "https://cdn.skypack.dev/debug@^4.3.3"; @@ -25,7 +25,7 @@ const debug = d("grammy:warn"); // === Export system-specific operations // Turn an AsyncIterable into a stream -export { readableStreamFromIterable as itrToStream } from "https://deno.land/std@0.118.0/streams/mod.ts"; +export { readableStreamFromIterable as itrToStream } from "https://deno.land/std@0.119.0/streams/mod.ts"; // === Base configuration for `fetch` calls export const baseFetchConfig = (_apiRoot: string) => ({}); diff --git a/test/bot.test.ts b/test/bot.test.ts index 6a508b16..25f6cfd4 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.118.0/testing/asserts.ts"; +} from "https://deno.land/std@0.119.0/testing/asserts.ts"; function createBot(token: string) { return new Bot(token); diff --git a/test/filter.test.ts b/test/filter.test.ts index fd244fe3..9662d4c5 100644 --- a/test/filter.test.ts +++ b/test/filter.test.ts @@ -2,7 +2,7 @@ import { FilterQuery, matchFilter } from "../src/filter.ts"; import { assert, assertThrows, -} from "https://deno.land/std@0.118.0/testing/asserts.ts"; +} from "https://deno.land/std@0.119.0/testing/asserts.ts"; import { Context } from "../src/context.ts"; Deno.test("should reject empty filters", () => {