Skip to content

Commit 8d4f1d2

Browse files
committed
Update dependencies
1 parent b993ca6 commit 8d4f1d2

File tree

21 files changed

+2242
-2035
lines changed

21 files changed

+2242
-2035
lines changed

package-lock.json

Lines changed: 2170 additions & 1966 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -27,28 +27,27 @@
2727
"@grammyjs/auto-chat-action": "0.1.1",
2828
"@grammyjs/hydrate": "1.4.1",
2929
"@grammyjs/i18n": "1.1.2",
30-
"@grammyjs/parse-mode": "1.10.0",
30+
"@grammyjs/parse-mode": "1.11.1",
3131
"@grammyjs/runner": "2.0.3",
32-
"@grammyjs/types": "3.11.1",
33-
"@hono/node-server": "1.13.5",
32+
"@grammyjs/types": "3.19.0",
33+
"@hono/node-server": "1.13.8",
3434
"callback-data": "1.1.1",
35-
"grammy": "1.27.0",
36-
"grammy-guard": "0.5.0",
37-
"hono": "4.6.5",
38-
"iso-639-1": "3.1.3",
39-
"pino": "9.4.0",
40-
"pino-pretty": "11.2.2",
41-
"tsx": "4.19.1",
35+
"grammy": "1.35.0",
36+
"hono": "4.7.2",
37+
"iso-639-1": "3.1.5",
38+
"pino": "9.6.0",
39+
"pino-pretty": "13.0.0",
40+
"tsx": "4.19.3",
4241
"valibot": "0.42.1"
4342
},
4443
"devDependencies": {
45-
"@antfu/eslint-config": "2.26.0",
46-
"@types/node": "^20.14.12",
47-
"eslint": "^9.10.0",
48-
"husky": "^9.1.6",
49-
"lint-staged": "^15.2.10",
50-
"tsc-watch": "^6.2.0",
51-
"typescript": "^5.6.3"
44+
"@antfu/eslint-config": "4.3.0",
45+
"@types/node": "^22.13.4",
46+
"eslint": "^9.20.1",
47+
"husky": "^9.1.7",
48+
"lint-staged": "^15.4.3",
49+
"tsc-watch": "^6.2.1",
50+
"typescript": "^5.7.3"
5251
},
5352
"lint-staged": {
5453
"*.ts": "eslint"

src/bot/context.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1-
import type { Update, UserFromGetMe } from '@grammyjs/types'
2-
import { type Api, Context as DefaultContext, type SessionFlavor } from 'grammy'
1+
import type { Config } from '#root/config.js'
2+
import type { Logger } from '#root/logger.js'
33
import type { AutoChatActionFlavor } from '@grammyjs/auto-chat-action'
44
import type { HydrateFlavor } from '@grammyjs/hydrate'
55
import type { I18nFlavor } from '@grammyjs/i18n'
66
import type { ParseModeFlavor } from '@grammyjs/parse-mode'
7-
import type { Logger } from '#root/logger.js'
8-
import type { Config } from '#root/config.js'
7+
import type { Update, UserFromGetMe } from '@grammyjs/types'
8+
import type { Api, SessionFlavor } from 'grammy'
9+
import { Context as DefaultContext } from 'grammy'
910

1011
export interface SessionData {
1112
// field?: string;

src/bot/features/admin.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import { chatAction } from '@grammyjs/auto-chat-action'
2-
import { Composer } from 'grammy'
31
import type { Context } from '#root/bot/context.js'
42
import { isAdmin } from '#root/bot/filters/is-admin.js'
53
import { setCommandsHandler } from '#root/bot/handlers/commands/setcommands.js'
64
import { logHandle } from '#root/bot/helpers/logging.js'
5+
import { chatAction } from '@grammyjs/auto-chat-action'
6+
import { Composer } from 'grammy'
77

88
const composer = new Composer<Context>()
99

src/bot/features/language.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import { Composer } from 'grammy'
2-
import { changeLanguageData } from '#root/bot/callback-data/change-language.js'
31
import type { Context } from '#root/bot/context.js'
2+
import { changeLanguageData } from '#root/bot/callback-data/change-language.js'
43
import { logHandle } from '#root/bot/helpers/logging.js'
54
import { i18n } from '#root/bot/i18n.js'
65
import { createChangeLanguageKeyboard } from '#root/bot/keyboards/change-language.js'
6+
import { Composer } from 'grammy'
77

88
const composer = new Composer<Context>()
99

src/bot/features/unhandled.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { Composer } from 'grammy'
21
import type { Context } from '#root/bot/context.js'
32
import { logHandle } from '#root/bot/helpers/logging.js'
3+
import { Composer } from 'grammy'
44

55
const composer = new Composer<Context>()
66

src/bot/features/welcome.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { Composer } from 'grammy'
21
import type { Context } from '#root/bot/context.js'
32
import { logHandle } from '#root/bot/helpers/logging.js'
3+
import { Composer } from 'grammy'
44

55
const composer = new Composer<Context>()
66

src/bot/handlers/commands/setcommands.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1+
import type { Context } from '#root/bot/context.js'
12
import type { BotCommand, LanguageCode } from '@grammyjs/types'
23
import type { CommandContext } from 'grammy'
34
import { i18n, isMultipleLocales } from '#root/bot/i18n.js'
4-
import type { Context } from '#root/bot/context.js'
55

66
function getLanguageCommand(localeCode: string): BotCommand {
77
return {

src/bot/handlers/error.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import type { ErrorHandler } from 'grammy'
21
import type { Context } from '#root/bot/context.js'
2+
import type { ErrorHandler } from 'grammy'
33
import { getUpdateInfo } from '#root/bot/helpers/logging.js'
44

55
export const errorHandler: ErrorHandler<Context> = (error) => {

src/bot/helpers/logging.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import type { Middleware } from 'grammy'
2-
import type { Update } from '@grammyjs/types'
31
import type { Context } from '#root/bot/context.js'
2+
import type { Update } from '@grammyjs/types'
3+
import type { Middleware } from 'grammy'
44

55
export function getUpdateInfo(ctx: Context): Omit<Update, 'update_id'> {
66
const { update_id, ...update } = ctx.update

0 commit comments

Comments
 (0)