Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for ULID validation #58

Merged
merged 2 commits into from
Jun 27, 2024
Merged

Conversation

simoneNEMO
Copy link
Contributor

❓ 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

ULID is a widely used format for identifiers with some advantages over the canonically recognised UUID formats (1-5). ULIDs are natively supported in multiple frameworks, e.g. Laravel.

This pull request introduces support for ULID validation in VineJS by means of simple regex matching.

ULID specs: https://github.com/ulid/spec

πŸ“ Checklist

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

Haven't been able to open a simple issue, only the "bug template" seems to work. If you consider to include this change I can update the docs accordingly.

@thetutlage
Copy link
Contributor

Hey, can we please have some tests for the isUlid helper?

@simoneNEMO
Copy link
Contributor Author

Hey, can we please have some tests for the isUlid helper?

Added some integration tests, tests for the isUlid helper and rebased

@RomainLanz RomainLanz merged commit 02d3a28 into vinejs:develop Jun 27, 2024
6 checks passed
@RomainLanz
Copy link
Member

Looks great! Thanks for the PR!

Do you mind creating another PR in the documentation repository?

@simoneNEMO
Copy link
Contributor Author

Do you mind creating another PR in the documentation repository?

Thanks for merging, will do during the day!

@simoneNEMO
Copy link
Contributor Author

@RomainLanz Added PR to docs here: vinejs/vinejs.dev#22

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.

3 participants