Skip to content

Conversation

@YoshiyukiMineo
Copy link
Member

  • Implemented the Compose function to create a Sonyflake ID from its components, including validation for start time, sequence, and machine ID.
  • Added a new test, TestCompose, to verify the functionality of the Compose method, ensuring correct decomposition of generated IDs.
  • Introduced a new error for invalid sequence numbers to enhance error handling in the Sonyflake package.

* Implemented the Compose function to create a Sonyflake ID from its components, including validation for start time, sequence, and machine ID.
* Added a new test, TestCompose, to verify the functionality of the Compose method, ensuring correct decomposition of generated IDs.
* Introduced a new error for invalid sequence numbers to enhance error handling in the Sonyflake package.
@YoshiyukiMineo YoshiyukiMineo changed the title Add Compose method and corresponding tests Add Compose method to v1 Jul 5, 2025
@YoshiyukiMineo YoshiyukiMineo merged commit f167a9d into master Jul 5, 2025
4 checks passed
@YoshiyukiMineo YoshiyukiMineo deleted the add-compose-to-v1 branch July 5, 2025 08:50
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.

2 participants