From 2a6cd32f8aa2d7c5768a4f9490ec3033f51aa911 Mon Sep 17 00:00:00 2001 From: iMaeGoo Date: Wed, 24 Jan 2024 10:11:27 +0800 Subject: [PATCH] fix: mongo deprecated warning (#649) --- .idea/.gitignore | 5 +++++ .idea/modules.xml | 8 ++++++++ .idea/twikoo.iml | 12 ++++++++++++ .idea/vcs.xml | 6 ++++++ docs/.vitepress/theme/Twikoo.vue | 2 +- docs/backend.md | 2 +- docs/frontend.md | 10 +++++----- package.json | 2 +- src/client/version.js | 2 +- src/server/function/twikoo/package.json | 2 +- src/server/netlify/package.json | 2 +- src/server/self-hosted/mongo.js | 5 +---- src/server/self-hosted/package.json | 4 ++-- src/server/vercel/package.json | 4 ++-- 14 files changed, 47 insertions(+), 19 deletions(-) create mode 100644 .idea/.gitignore create mode 100644 .idea/modules.xml create mode 100644 .idea/twikoo.iml create mode 100644 .idea/vcs.xml diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 000000000..10b731c51 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,5 @@ +# 默认忽略的文件 +/shelf/ +/workspace.xml +# 基于编辑器的 HTTP 客户端请求 +/httpRequests/ diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 000000000..eb5885cec --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/twikoo.iml b/.idea/twikoo.iml new file mode 100644 index 000000000..24643cc37 --- /dev/null +++ b/.idea/twikoo.iml @@ -0,0 +1,12 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 000000000..35eb1ddfb --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/docs/.vitepress/theme/Twikoo.vue b/docs/.vitepress/theme/Twikoo.vue index 056d4d524..2c37303b9 100644 --- a/docs/.vitepress/theme/Twikoo.vue +++ b/docs/.vitepress/theme/Twikoo.vue @@ -73,6 +73,6 @@ onMounted(() => {
- + diff --git a/docs/backend.md b/docs/backend.md index 4ef83a48b..ad970cb47 100644 --- a/docs/backend.md +++ b/docs/backend.md @@ -43,7 +43,7 @@ exports.main = require('twikoo-func').main 8. 创建完成后,点击“twikoo"进入云函数详情页,进入“函数代码”标签,点击“文件 - 新建文件”,输入 `package.json`,回车 9. 复制以下代码、粘贴到代码框中,点击“保存并安装依赖” ``` json -{ "dependencies": { "twikoo-func": "1.6.30" } } +{ "dependencies": { "twikoo-func": "1.6.31" } } ``` ## 腾讯云命令行部署 diff --git a/docs/frontend.md b/docs/frontend.md index 16efff28d..101159302 100644 --- a/docs/frontend.md +++ b/docs/frontend.md @@ -85,7 +85,7 @@ twikoo: ``` html
- +