feat: |Worker| NO_LIMIT_SEND_ROLE support multi role splited by ',' #588
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PR Type
enhancement, documentation
Description
Support for multiple roles in
NO_LIMIT_SEND_ROLE
using comma separation.Added
getSplitStringListValue
utility function for splitting strings.Updated relevant files to use
getSplitStringListValue
forNO_LIMIT_SEND_ROLE
.Documentation updates for the new
NO_LIMIT_SEND_ROLE
format.Changes walkthrough 📝
worker_config.ts
Update NO_LIMIT_SEND_ROLE to support multiple roles
worker/src/admin_api/worker_config.ts
getSplitStringListValue
from utils.getSplitStringListValue
forNO_LIMIT_SEND_ROLE
.index.ts
Enhance NO_LIMIT_SEND_ROLE handling in mails API
worker/src/mails_api/index.ts
getSplitStringListValue
from utils.getSplitStringListValue
forNO_LIMIT_SEND_ROLE
.send_mail_api.ts
Support multiple roles in send mail API
worker/src/mails_api/send_mail_api.ts
getSplitStringListValue
from utils.getSplitStringListValue
forNO_LIMIT_SEND_ROLE
.utils.ts
Add utility function for splitting strings
worker/src/utils.ts
getSplitStringListValue
function to split strings by delimiter.CHANGELOG.md
Update changelog for NO_LIMIT_SEND_ROLE enhancement
CHANGELOG.md
NO_LIMIT_SEND_ROLE
multi-role support.cli.md
Update CLI documentation for NO_LIMIT_SEND_ROLE
vitepress-docs/docs/en/cli.md
NO_LIMIT_SEND_ROLE
.worker-vars.md
Update worker vars documentation for NO_LIMIT_SEND_ROLE
vitepress-docs/docs/zh/guide/worker-vars.md
NO_LIMIT_SEND_ROLE
.wrangler.toml.template
Update wrangler template for NO_LIMIT_SEND_ROLE
worker/wrangler.toml.template
NO_LIMIT_SEND_ROLE
.