Skip to content

Commit

Permalink
Update to Bot API 5.6 (#148)
Browse files Browse the repository at this point in the history
  • Loading branch information
KnorpelSenf authored Dec 31, 2021
1 parent 391bc4c commit ba315c0
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
10 changes: 5 additions & 5 deletions src/platform.deno.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand All @@ -25,7 +25,7 @@ const debug = d("grammy:warn");

// === Export system-specific operations
// Turn an AsyncIterable<Uint8Array> 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) => ({});
Expand Down
2 changes: 1 addition & 1 deletion test/bot.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion test/filter.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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", () => {
Expand Down

0 comments on commit ba315c0

Please sign in to comment.