Skip to content

v1.6.0

Choose a tag to compare

@CodeShellDev CodeShellDev released this 02 Apr 12:25
· 28 commits to main since this release

Oh hi πŸ˜…, didn't see you there πŸ‘€,
looks like you just made it in time for v1.6.0 πŸŽ‰

πŸ’‘ What's Changed

What did you do this time…?

As always let me first give you a quick overview:

  • added Scheduled Messages on /v2/send with send_at as timestamp
  • added config settings to disable Templating and URL-To-Body Injection for various mediums (path, query, body, etc.)
  • added templating to configs with ${{ .env.XYZ }} or ${{ .vars.NUMBER }} (see Configuration)
  • added CORS (see docs)
  • added configurable response headers (see docs)
  • overhauled matching system with multiple match types (see docs for: Endpoints, Field Policies, IP Filter):
    • exact
    • equals: case-incensitive
    • prefix
    • suffix
    • contains: string contains
    • regex
    • glob: glob-style patterns
    • has: dict has key
    • includes: array includes item
  • improved and refactored config parsing systems:
    • fixed some config settings not being normalized
    • config is now validated at startup
    • errors will be thrown if config is invalid, instead of silently failing
  • overall better error handling (example: improved overview of panics)
  • as always A TON of backend changes (man I really love doing this πŸ™ƒ)

🚨 Breaking Changes

  • settings.message.template is now located under settings.message.templating.messageTemplate

  • settings.access.ipFilter, settings.access.endpoints are now separated into allowed and blocked:

    ipFilter:
      allowed:
        - 1.2.3.4
      blocked:
        - 5.6.7.8
  • settings.access.endpoints now use the new, more flexible matching system:

    endpoints:
      allowed:
       - pattern: "/v1/receive[0-9]+"
         matchType: regex
       - pattern: "/v1/about"

πŸ’¬ Chat

I am also excited πŸ₯³ to tell, you that we now have a matrix chat!
Come check it out 😁!

πŸ“– Documetation

PRs

Full Changelog: v1.5.1...v1.6.0

Thank you ❀️ and Code🐒 outπŸ‘‹