Skip to content

Release v0.2.0#38

Merged
0ngk merged 11 commits into
mainfrom
release/v0.2.0
May 19, 2026
Merged

Release v0.2.0#38
0ngk merged 11 commits into
mainfrom
release/v0.2.0

Conversation

@0ngk
Copy link
Copy Markdown
Owner

@0ngk 0ngk commented May 19, 2026

This pull request introduces support for detecting and reporting duplicate non-zero component IDs in Discord webhook component payloads, enhancing payload validation and error reporting. It also updates the project and example dependencies to the latest versions of Gleam and related libraries, and clarifies documentation regarding duplicate IDs and the unofficial status of the library.

Validation improvements:

  • Added validation to detect duplicate non-zero component IDs across the entire component tree for typed Components V2 payloads, with detailed error reporting including the paths of duplicates (src/kitazith/internal/validation/component.gleam, src/kitazith/internal/validation/duplicate.gleam, src/kitazith/validation.gleam, test/kitazith/validation_test.gleam). [1] [2] [3] [4] [5]
  • Refactored duplicate attachment filename validation to use a new generic duplicate detection utility, simplifying the logic and improving maintainability (src/kitazith/internal/validation/attachment.gleam, src/kitazith/internal/validation/duplicate.gleam). [1] [2]

Documentation updates:

  • Updated the README to clarify that the library is unofficial and not endorsed by Discord, and to document the new duplicate component ID validation and its behavior (README.md). [1] [2] [3] [4]

Dependency and version updates:

  • Bumped the minimum required gleam_stdlib version to 1.0.0 and updated other dependencies and example project versions to match, including the main package version to 0.2.0 (gleam.toml, examples/kitazith_example/gleam.toml, examples/kitazith_example/manifest.toml, .github/workflows/gleam-bootstrap.yml, examples/kitazith_example/.github/workflows/test.yml). [1] [2] [3] [4] [5] [6]

These changes collectively improve the reliability of payload validation, provide clearer error messages for developers, and keep the project up to date with the latest Gleam ecosystem releases.

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 merged commit 14674d0 into main May 19, 2026
4 checks passed
@0ngk 0ngk deleted the release/v0.2.0 branch May 20, 2026 03:36
@0ngk 0ngk restored the release/v0.2.0 branch May 20, 2026 03:36
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