Skip to content

Release v0.1.4#36

Closed
0ngk wants to merge 10 commits into
mainfrom
release/v0.1.4
Closed

Release v0.1.4#36
0ngk wants to merge 10 commits into
mainfrom
release/v0.1.4

Conversation

@0ngk
Copy link
Copy Markdown
Owner

@0ngk 0ngk commented May 18, 2026

This pull request introduces improved validation for Discord webhook payloads, specifically targeting duplicate component IDs in typed Components V2 payloads. It also updates dependencies to the latest versions and clarifies documentation regarding the library's unofficial status and new validation features.

Validation improvements:

  • Added detection and reporting of duplicate non-zero component IDs in typed Components V2 payloads, including detailed error messages with duplicate paths. This is implemented via a new duplicate validation utility and integrated into the component validation logic. (src/kitazith/internal/validation/component.gleam [1] [2] src/kitazith/internal/validation/duplicate.gleam [3] src/kitazith/validation.gleam [4] [5] test/kitazith/validation_test.gleam [6]
  • Refactored duplicate attachment filename detection to use the new generic duplicate finder, simplifying the code and improving maintainability. (src/kitazith/internal/validation/attachment.gleam [1] [2]

Documentation updates:

  • Added a disclaimer clarifying that kitazith is an unofficial library not endorsed by Discord. (README.md README.mdR12-R16)
  • Updated documentation to describe the new duplicate component ID validation and clarified the behavior of raw component payloads. (README.md [1] [2] [3]

Dependency and version updates:

  • Updated the default Gleam version and dependencies to latest stable releases, including gleam_stdlib 1.0.0 and gleeunit 1.10.0. (gleam.toml [1] [2] examples/kitazith_example/gleam.toml [3] .github/workflows/gleam-bootstrap.yml [4] examples/kitazith_example/.github/workflows/test.yml [5] examples/kitazith_example/manifest.toml [6]
  • Bumped the kitazith version to 0.1.4. (gleam.toml [1] examples/kitazith_example/manifest.toml [2]

These changes strengthen payload validation, improve error reporting, and keep the project dependencies current.

Copy link
Copy Markdown
Owner Author

@0ngk 0ngk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@0ngk 0ngk closed this May 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant