[PR #816] [MERGED] fix: scheduled task cleanup error - upgrade to v1.2.1 #781

Closed
opened 2026-02-26 21:32:56 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/dreamhunter2333/cloudflare_temp_email/pull/816
Author: @dreamhunter2333
Created: 1/19/2026
Status: Merged
Merged: 1/19/2026
Merged by: @dreamhunter2333

Base: mainHead: feature/email


📝 Commits (1)

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

📊 Changes

9 files changed (+2486 additions, -2515 deletions)

View changed files

📝 CHANGELOG.md (+7 -1)
📝 frontend/package.json (+7 -7)
📝 frontend/pnpm-lock.yaml (+1199 -1187)
📝 pages/package.json (+2 -2)
📝 vitepress-docs/package.json (+3 -3)
📝 vitepress-docs/pnpm-lock.yaml (+554 -555)
📝 worker/package.json (+8 -8)
📝 worker/pnpm-lock.yaml (+705 -751)
📝 worker/src/i18n/index.ts (+1 -1)

📄 Description

User description

Summary

  • Fix scheduled task cleanup error e.get is not a function by using optional chaining in i18n.getMessagesbyContext
  • Update version to v1.2.1 across all packages

Changes

  • worker/src/i18n/index.ts: Use c?.get?.("lang") instead of c.get("lang") for safe access when Context is a partial object
  • Update version in frontend/package.json, worker/package.json, pages/package.json, vitepress-docs/package.json
  • Add v1.2.1 changelog entry in CHANGELOG.md

Test plan

  • Deploy worker and verify scheduled cleanup task runs without errors
  • Verify normal API calls still work with full Context object

🤖 Generated with Claude Code


PR Type

Bug fix, Enhancement


Description

  • Fixed a scheduled task cleanup error using optional chaining in i18n.getMessagesbyContext.

  • Updated dependencies across multiple package.json files to newer versions.

  • Incremented version to v1.2.1 in all relevant files.

  • Added a changelog entry for v1.2.1 with bug fix details.


Diagram Walkthrough

flowchart LR
  A["Scheduled Task Cleanup"] -- "Error Fix" --> B["Optional Chaining in i18n"]
  B -- "Version Update" --> C["v1.2.1 in package.json"]
  C -- "Changelog Update" --> D["v1.2.1 Entry"]
  C -- "Dependency Updates" --> E["Updated Dependencies"]

File Walkthrough

Relevant files
Bug fix
1 files
index.ts
Fix optional chaining for safe context access                       
+1/-1     
Dependencies
4 files
package.json
Update version and dependencies for frontend                         
+7/-7     
package.json
Update version and dependencies for worker                             
+8/-8     
package.json
Update version and dependencies for pages                               
+2/-2     
package.json
Update version and dependencies for documentation               
+3/-3     
Documentation
1 files
CHANGELOG.md
Add changelog entry for v1.2.1                                                     
+7/-1     
Additional files
3 files
pnpm-lock.yaml +1199/-1187
pnpm-lock.yaml +554/-555
pnpm-lock.yaml +705/-751


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/dreamhunter2333/cloudflare_temp_email/pull/816 **Author:** [@dreamhunter2333](https://github.com/dreamhunter2333) **Created:** 1/19/2026 **Status:** ✅ Merged **Merged:** 1/19/2026 **Merged by:** [@dreamhunter2333](https://github.com/dreamhunter2333) **Base:** `main` ← **Head:** `feature/email` --- ### 📝 Commits (1) - [`e6a3fdd`](https://github.com/dreamhunter2333/cloudflare_temp_email/commit/e6a3fdd5ecaa006c31e1befec7258914f0175eb6) fix: scheduled task cleanup error "e.get is not a function" ### 📊 Changes **9 files changed** (+2486 additions, -2515 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+7 -1) 📝 `frontend/package.json` (+7 -7) 📝 `frontend/pnpm-lock.yaml` (+1199 -1187) 📝 `pages/package.json` (+2 -2) 📝 `vitepress-docs/package.json` (+3 -3) 📝 `vitepress-docs/pnpm-lock.yaml` (+554 -555) 📝 `worker/package.json` (+8 -8) 📝 `worker/pnpm-lock.yaml` (+705 -751) 📝 `worker/src/i18n/index.ts` (+1 -1) </details> ### 📄 Description ### **User description** ## Summary - Fix scheduled task cleanup error `e.get is not a function` by using optional chaining in `i18n.getMessagesbyContext` - Update version to v1.2.1 across all packages ## Changes - `worker/src/i18n/index.ts`: Use `c?.get?.("lang")` instead of `c.get("lang")` for safe access when Context is a partial object - Update version in `frontend/package.json`, `worker/package.json`, `pages/package.json`, `vitepress-docs/package.json` - Add v1.2.1 changelog entry in `CHANGELOG.md` ## Test plan - [ ] Deploy worker and verify scheduled cleanup task runs without errors - [ ] Verify normal API calls still work with full Context object 🤖 Generated with [Claude Code](https://claude.com/claude-code) ___ ### **PR Type** Bug fix, Enhancement ___ ### **Description** - Fixed a scheduled task cleanup error using optional chaining in `i18n.getMessagesbyContext`. - Updated dependencies across multiple `package.json` files to newer versions. - Incremented version to v1.2.1 in all relevant files. - Added a changelog entry for v1.2.1 with bug fix details. ___ ### Diagram Walkthrough ```mermaid flowchart LR A["Scheduled Task Cleanup"] -- "Error Fix" --> B["Optional Chaining in i18n"] B -- "Version Update" --> C["v1.2.1 in package.json"] C -- "Changelog Update" --> D["v1.2.1 Entry"] C -- "Dependency Updates" --> E["Updated Dependencies"] ``` <details> <summary><h3> File Walkthrough</h3></summary> <table><thead><tr><th></th><th align="left">Relevant files</th></tr></thead><tbody><tr><td><strong>Bug fix</strong></td><td><details><summary>1 files</summary><table> <tr> <td><strong>index.ts</strong><dd><code>Fix optional chaining for safe context access</code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </dd></td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/816/files#diff-b57af9f265405661c012637412faf96817ca297e2316168d3b16dcd9c3276bc9">+1/-1</a>&nbsp; &nbsp; &nbsp; </td> </tr> </table></details></td></tr><tr><td><strong>Dependencies</strong></td><td><details><summary>4 files</summary><table> <tr> <td><strong>package.json</strong><dd><code>Update version and dependencies for frontend</code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </dd></td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/816/files#diff-da6498268e99511d9ba0df3c13e439d10556a812881c9d03955b2ef7c6c1c655">+7/-7</a>&nbsp; &nbsp; &nbsp; </td> </tr> <tr> <td><strong>package.json</strong><dd><code>Update version and dependencies for worker</code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </dd></td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/816/files#diff-89dc6f41a53ce13f2da5a00dd34868762e6cd0df46eddc9f5c3c4510b1493870">+8/-8</a>&nbsp; &nbsp; &nbsp; </td> </tr> <tr> <td><strong>package.json</strong><dd><code>Update version and dependencies for pages</code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </dd></td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/816/files#diff-74314f72f6616d400be4cb0d161867d8148f23c22d4c12c7188aedb129c00c59">+2/-2</a>&nbsp; &nbsp; &nbsp; </td> </tr> <tr> <td><strong>package.json</strong><dd><code>Update version and dependencies for documentation</code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </dd></td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/816/files#diff-3adbfbfaa65ecc60f48c8d009a52c697d4c80d61ee887799df22407fcb73f380">+3/-3</a>&nbsp; &nbsp; &nbsp; </td> </tr> </table></details></td></tr><tr><td><strong>Documentation</strong></td><td><details><summary>1 files</summary><table> <tr> <td><strong>CHANGELOG.md</strong><dd><code>Add changelog entry for v1.2.1</code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </dd></td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/816/files#diff-06572a96a58dc510037d5efa622f9bec8519bc1beab13c9f251e97e657a9d4ed">+7/-1</a>&nbsp; &nbsp; &nbsp; </td> </tr> </table></details></td></tr><tr><td><strong>Additional files</strong></td><td><details><summary>3 files</summary><table> <tr> <td><strong>pnpm-lock.yaml</strong></td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/816/files#diff-41b1ff3a74ba81fa74c8dd225d66d81573be3f2990e1d98b9b09798b147d40a8">+1199/-1187</a></td> </tr> <tr> <td><strong>pnpm-lock.yaml</strong></td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/816/files#diff-655c1410f6eacceaa9003212a9f840a660ace35e32e60d792be3640ec774af6f">+554/-555</a></td> </tr> <tr> <td><strong>pnpm-lock.yaml</strong></td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/816/files#diff-b40cf923090a5fb5f6cc0d6ce716c560645419d762871abb50383fdb423288c6">+705/-751</a></td> </tr> </table></details></td></tr></tr></tbody></table> </details> ___ --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-26 21:32:56 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/cloudflare_temp_email#781
No description provided.