[PR #432] [MERGED] fix: bugs && release v0.7.4 #575

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

📋 Pull Request Information

Original PR: https://github.com/dreamhunter2333/cloudflare_temp_email/pull/432
Author: @dreamhunter2333
Created: 8/24/2024
Status: Merged
Merged: 8/24/2024
Merged by: @dreamhunter2333

Base: mainHead: feature/dev


📝 Commits (1)

  • 701f970 fix: bugs && release v0.7.4

📊 Changes

3 files changed (+28 additions, -6 deletions)

View changed files

📝 CHANGELOG.md (+3 -1)
📝 worker/src/common.ts (+21 -3)
📝 worker/src/utils.ts (+4 -2)

📄 Description

User description

#430
#431


PR Type

Bug fix, Enhancement


Description

  • Enhanced name validation by adding a block list check in the newAddress function.
  • Fixed handling of DEFAULT_DOMAINS configuration to ensure proper fallback when it is undefined or null.
  • Updated the changelog to reflect the latest changes and fixes in version 0.7.4.

Changes walkthrough 📝

Relevant files
Enhancement
common.ts
Enhance name validation and add block list check                 

worker/src/common.ts

  • Added checkNameBlockList function to validate names against a block
    list.
  • Modified newAddress function to include checkNameBlockList and
    improved name validation.
  • Imported getJsonSetting from utils.
  • +21/-3   
    Bug fix
    utils.ts
    Fix default domains configuration handling                             

    worker/src/utils.ts

  • Updated getDefaultDomains to handle undefined or null DEFAULT_DOMAINS.
  • Ensured fallback to getDomains if DEFAULT_DOMAINS is not set.
  • +4/-2     
    Documentation
    CHANGELOG.md
    Update changelog for version 0.7.4                                             

    CHANGELOG.md

  • Updated changelog for version 0.7.4.
  • Documented fixes for name validation and default domains
    configuration.
  • +3/-1     

    💡 PR-Agent usage:
    Comment /help on the PR to get a list of all available PR-Agent tools and their descriptions


    🔄 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/432 **Author:** [@dreamhunter2333](https://github.com/dreamhunter2333) **Created:** 8/24/2024 **Status:** ✅ Merged **Merged:** 8/24/2024 **Merged by:** [@dreamhunter2333](https://github.com/dreamhunter2333) **Base:** `main` ← **Head:** `feature/dev` --- ### 📝 Commits (1) - [`701f970`](https://github.com/dreamhunter2333/cloudflare_temp_email/commit/701f970b63e0f2ad193c46ffd8007ec050a40a5f) fix: bugs && release v0.7.4 ### 📊 Changes **3 files changed** (+28 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+3 -1) 📝 `worker/src/common.ts` (+21 -3) 📝 `worker/src/utils.ts` (+4 -2) </details> ### 📄 Description ### **User description** #430 #431 ___ ### **PR Type** Bug fix, Enhancement ___ ### **Description** - Enhanced name validation by adding a block list check in the `newAddress` function. - Fixed handling of `DEFAULT_DOMAINS` configuration to ensure proper fallback when it is undefined or null. - Updated the changelog to reflect the latest changes and fixes in version 0.7.4. ___ ### **Changes walkthrough** 📝 <table><thead><tr><th></th><th align="left">Relevant files</th></tr></thead><tbody><tr><td><strong>Enhancement</strong></td><td><table> <tr> <td> <details> <summary><strong>common.ts</strong><dd><code>Enhance name validation and add block list check</code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </dd></summary> <hr> worker/src/common.ts <li>Added <code>checkNameBlockList</code> function to validate names against a block <br>list.<br> <li> Modified <code>newAddress</code> function to include <code>checkNameBlockList</code> and <br>improved name validation.<br> <li> Imported <code>getJsonSetting</code> from <code>utils</code>.<br> </details> </td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/432/files#diff-fcc08fd5aa3c190d0d45c7e3dd208e5ee831d360b272fdd5869607cf472c5eb1">+21/-3</a>&nbsp; &nbsp; </td> </tr> </table></td></tr><tr><td><strong>Bug fix</strong></td><td><table> <tr> <td> <details> <summary><strong>utils.ts</strong><dd><code>Fix default domains configuration handling</code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </dd></summary> <hr> worker/src/utils.ts <li>Updated <code>getDefaultDomains</code> to handle undefined or null <code>DEFAULT_DOMAINS</code>.<br> <li> Ensured fallback to <code>getDomains</code> if <code>DEFAULT_DOMAINS</code> is not set.<br> </details> </td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/432/files#diff-87b77c56897ffc7830773b3d665c51ecf2210b44921bef7098a1dd6d64e56db6">+4/-2</a>&nbsp; &nbsp; &nbsp; </td> </tr> </table></td></tr><tr><td><strong>Documentation</strong></td><td><table> <tr> <td> <details> <summary><strong>CHANGELOG.md</strong><dd><code>Update changelog for version 0.7.4</code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </dd></summary> <hr> CHANGELOG.md <li>Updated changelog for version 0.7.4.<br> <li> Documented fixes for name validation and default domains <br>configuration.<br> </details> </td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/432/files#diff-06572a96a58dc510037d5efa622f9bec8519bc1beab13c9f251e97e657a9d4ed">+3/-1</a>&nbsp; &nbsp; &nbsp; </td> </tr> </table></td></tr></tr></tbody></table> ___ > 💡 **PR-Agent usage**: >Comment `/help` on the PR to get a list of all available PR-Agent tools and their descriptions --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
    kerem 2026-02-26 21:31:52 +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#575
    No description provided.