fix: scheduled task cleanup error - upgrade to v1.2.1 (#816)

fix: scheduled task cleanup error "e.get is not a function"

- Use optional chaining in i18n.getMessagesbyContext to safely access Context methods
- Update version to v1.2.1

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Dream Hunter
2026-01-19 20:05:06 +08:00
committed by GitHub
co-authored by Claude Opus 4.5
parent 2cce3df213
commit 2318e0f7e2
9 changed files with 2485 additions and 2514 deletions
+7 -1
View File
@@ -6,7 +6,13 @@
<a href="CHANGELOG_EN.md">🇺🇸 English</a> <a href="CHANGELOG_EN.md">🇺🇸 English</a>
</p> </p>
## v1.2.0(main) ## v1.2.1(main)
### Bug Fixes
- fix: |定时任务| 修复定时任务清理报错 `e.get is not a function`,使用可选链安全访问 Context 方法
## v1.2.0
### Breaking Changes ### Breaking Changes
+7 -7
View File
@@ -1,6 +1,6 @@
{ {
"name": "cloudflare_temp_email", "name": "cloudflare_temp_email",
"version": "1.2.0", "version": "1.2.1",
"private": true, "private": true,
"type": "module", "type": "module",
"scripts": { "scripts": {
@@ -22,7 +22,7 @@
"dependencies": { "dependencies": {
"@fingerprintjs/fingerprintjs": "^5.0.1", "@fingerprintjs/fingerprintjs": "^5.0.1",
"@simplewebauthn/browser": "10.0.0", "@simplewebauthn/browser": "10.0.0",
"@unhead/vue": "^2.0.19", "@unhead/vue": "^2.1.2",
"@vueuse/core": "^14.1.0", "@vueuse/core": "^14.1.0",
"@wangeditor/editor": "^5.1.23", "@wangeditor/editor": "^5.1.23",
"@wangeditor/editor-for-vue": "^5.1.12", "@wangeditor/editor-for-vue": "^5.1.12",
@@ -30,11 +30,11 @@
"jszip": "^3.10.1", "jszip": "^3.10.1",
"mail-parser-wasm": "^0.2.1", "mail-parser-wasm": "^0.2.1",
"naive-ui": "^2.43.2", "naive-ui": "^2.43.2",
"postal-mime": "^2.6.1", "postal-mime": "^2.7.3",
"vooks": "^0.2.12", "vooks": "^0.2.12",
"vue": "^3.5.25", "vue": "^3.5.27",
"vue-clipboard3": "^2.0.0", "vue-clipboard3": "^2.0.0",
"vue-i18n": "^11.2.2", "vue-i18n": "^11.2.8",
"vue-router": "^4.6.4" "vue-router": "^4.6.4"
}, },
"devDependencies": { "devDependencies": {
@@ -43,13 +43,13 @@
"@vitejs/plugin-vue": "^6.0.3", "@vitejs/plugin-vue": "^6.0.3",
"unplugin-auto-import": "^20.3.0", "unplugin-auto-import": "^20.3.0",
"unplugin-vue-components": "^30.0.0", "unplugin-vue-components": "^30.0.0",
"vite": "^7.2.7", "vite": "^7.3.1",
"vite-plugin-pwa": "^1.2.0", "vite-plugin-pwa": "^1.2.0",
"vite-plugin-top-level-await": "^1.6.0", "vite-plugin-top-level-await": "^1.6.0",
"vite-plugin-wasm": "^3.5.0", "vite-plugin-wasm": "^3.5.0",
"workbox-build": "^7.4.0", "workbox-build": "^7.4.0",
"workbox-window": "^7.4.0", "workbox-window": "^7.4.0",
"wrangler": "^4.54.0" "wrangler": "^4.59.2"
}, },
"packageManager": "pnpm@10.10.0+sha512.d615db246fe70f25dcfea6d8d73dee782ce23e2245e3c4f6f888249fb568149318637dca73c2c5c8ef2a4ca0d5657fb9567188bfab47f566d1ee6ce987815c39" "packageManager": "pnpm@10.10.0+sha512.d615db246fe70f25dcfea6d8d73dee782ce23e2245e3c4f6f888249fb568149318637dca73c2c5c8ef2a4ca0d5657fb9567188bfab47f566d1ee6ce987815c39"
} }
+1199 -1187
View File
File diff suppressed because it is too large Load Diff
+2 -2
View File
@@ -1,6 +1,6 @@
{ {
"name": "temp-email-pages", "name": "temp-email-pages",
"version": "1.2.0", "version": "1.2.1",
"description": "", "description": "",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {
@@ -11,7 +11,7 @@
"author": "", "author": "",
"license": "ISC", "license": "ISC",
"devDependencies": { "devDependencies": {
"wrangler": "^4.54.0" "wrangler": "^4.59.2"
}, },
"packageManager": "pnpm@10.10.0+sha512.d615db246fe70f25dcfea6d8d73dee782ce23e2245e3c4f6f888249fb568149318637dca73c2c5c8ef2a4ca0d5657fb9567188bfab47f566d1ee6ce987815c39" "packageManager": "pnpm@10.10.0+sha512.d615db246fe70f25dcfea6d8d73dee782ce23e2245e3c4f6f888249fb568149318637dca73c2c5c8ef2a4ca0d5657fb9567188bfab47f566d1ee6ce987815c39"
} }
+3 -3
View File
@@ -1,12 +1,12 @@
{ {
"name": "temp-mail-docs", "name": "temp-mail-docs",
"private": true, "private": true,
"version": "1.2.0", "version": "1.2.1",
"type": "module", "type": "module",
"devDependencies": { "devDependencies": {
"@types/node": "^25.0.2", "@types/node": "^25.0.9",
"vitepress": "^1.6.4", "vitepress": "^1.6.4",
"wrangler": "^4.54.0" "wrangler": "^4.59.2"
}, },
"scripts": { "scripts": {
"dev": "vitepress dev docs", "dev": "vitepress dev docs",
+553 -554
View File
File diff suppressed because it is too large Load Diff
+8 -8
View File
@@ -1,6 +1,6 @@
{ {
"name": "cloudflare_temp_email", "name": "cloudflare_temp_email",
"version": "1.2.0", "version": "1.2.1",
"private": true, "private": true,
"type": "module", "type": "module",
"scripts": { "scripts": {
@@ -11,24 +11,24 @@
"build": "wrangler deploy --dry-run --outdir dist --minify" "build": "wrangler deploy --dry-run --outdir dist --minify"
}, },
"devDependencies": { "devDependencies": {
"@cloudflare/workers-types": "^4.20251213.0", "@cloudflare/workers-types": "^4.20260118.0",
"@eslint/js": "9.39.1", "@eslint/js": "9.39.1",
"@simplewebauthn/types": "10.0.0", "@simplewebauthn/types": "10.0.0",
"@types/node": "^25.0.2", "@types/node": "^25.0.9",
"eslint": "9.39.1", "eslint": "9.39.1",
"globals": "^16.5.0", "globals": "^16.5.0",
"typescript-eslint": "^8.49.0", "typescript-eslint": "^8.53.0",
"wrangler": "^4.54.0" "wrangler": "^4.59.2"
}, },
"dependencies": { "dependencies": {
"@aws-sdk/client-s3": "3.888.0", "@aws-sdk/client-s3": "3.888.0",
"@aws-sdk/s3-request-presigner": "3.888.0", "@aws-sdk/s3-request-presigner": "3.888.0",
"@simplewebauthn/server": "10.0.1", "@simplewebauthn/server": "10.0.1",
"hono": "^4.11.0", "hono": "^4.11.4",
"jsonpath-plus": "^10.3.0", "jsonpath-plus": "^10.3.0",
"mimetext": "^3.0.27", "mimetext": "^3.0.27",
"postal-mime": "^2.6.1", "postal-mime": "^2.7.3",
"resend": "^6.6.0", "resend": "^6.7.0",
"telegraf": "4.16.3", "telegraf": "4.16.3",
"worker-mailer": "^1.2.1" "worker-mailer": "^1.2.1"
}, },
+705 -751
View File
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -17,7 +17,7 @@ export default {
getMessagesbyContext: ( getMessagesbyContext: (
c: Context<HonoCustomType> c: Context<HonoCustomType>
): LocaleMessages => { ): LocaleMessages => {
const locale = c.get("lang") || c.env.DEFAULT_LANG; const locale = c?.get?.("lang") || c.env?.DEFAULT_LANG;
// multi-language support // multi-language support
if (locale === "en") return en; if (locale === "en") return en;
if (locale === "zh") return zh; if (locale === "zh") return zh;