koishijs / koishi-plugin-booru

Image service for Koishi | 最好的涩图插件!
https://booru.koishi.chat
MIT License
12 stars 8 forks source link

Bug: 将 `using` 改为 `inject` 以消除 Koishi 4.15.2+ 中的警告 #104

Closed Lipraty closed 12 months ago

Lipraty commented 12 months ago

Describe the bug

Koishi 4.15.2 及以上版本中会严格扫描依赖导入,且由于 TS 新关键字限制,会对使用 using 的插件抛出警告以敦促作者修改为新的 API:inject

Steps to reproduce

-

Expected behavior

使用 inject 导入依赖以消除警告

Screenshots

No response

Relevant log output

No response

Launcher

Koishi CLI (koishi start)

Sources

Danbooru, Gelbooru, Konachan.com (NSFW), Konachan.net (SFW), Lolibooru, Lolicon, Pixiv, Safebooru, SankakuComplex, Yande.re

Versions

-

Additional context

在 peerDeps 中约束 Koishi 版本为 ^4.15.2

Lipraty commented 12 months ago

booru-local 在本地有比较多的修改暂未 push,我会修改后 push。我顺便把其他的也改了?是提升 major 还是 minor 版本? @MaikoTan

MaikoTan commented 12 months ago

I think you can just bump up the minor version in this case.

我想在这种情况下你可以把次要版本放大。

Lipraty commented 12 months ago

okay

MaikoTan commented 12 months ago

Lonay the Guru, the Goat, the Expert! :tada: