Skip to content

Conversation

diego-sepulveda-lavin
Copy link
Contributor

@diego-sepulveda-lavin diego-sepulveda-lavin commented Sep 2, 2025

πŸ”— Linked issue

Update related documentation

❓ Type of change

  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • πŸ‘Œ Enhancement (improving an existing functionality like performance)
  • ✨ New feature (a non-breaking change that adds functionality)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

πŸ“š Description

Since PostgreSQL v18 adds native support to work with UUID v7 and considering that Validator already supports RFC9562 UUIDs, this pull request expands the versions type including the 6, 7, and 8 in the uuidRule. Also adds corresponding unit tests to ensure proper validation of these new UUID versions.

Validation rule updates:

  • Updated the uuidRule in src/schema/string/rules.ts to accept UUID versions 6, 7, and 8, in addition to the previously supported versions.

Testing improvements:

  • Added new unit tests in tests/unit/rules/string.spec.ts to verify validation for UUID versions 6, 7, and 8, as well as combinations of supported versions.

πŸ“ Checklist

  • I have linked an issue or discussion.
  • I have updated the documentation accordingly.

@diego-sepulveda-lavin diego-sepulveda-lavin changed the title add support UUID 6 7 8 add support UUID v6 v7 v8 Sep 2, 2025
@thetutlage thetutlage merged commit fbb2be7 into vinejs:4.x Sep 3, 2025
6 checks passed
@thetutlage
Copy link
Contributor

Looks good!

@diego-sepulveda-lavin diego-sepulveda-lavin deleted the feature/uuid-versions-6-7-8 branch September 11, 2025 00:04
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