fabian-hiller / valibot

The modular and type safe schema library for validating structural data 🤖
https://valibot.dev
MIT License
6.32k stars 204 forks source link

Implement code points validator #888

Open tats-u opened 1 month ago

tats-u commented 1 month ago

Fixes #875

Implemented based on graphemes validation.

fabian-hiller commented 1 month ago

Thank you for creating this PR! I will try to review and merge it in the next weeks. 🙏

tats-u commented 1 month ago

I might export the implementation of _getCodePointCoun to other validators (e.g. Zod) in the future.

fabian-hiller commented 3 weeks ago

I just want to let you know that I am focusing on our v1 release first before reviewing this PR.

tats-u commented 3 weeks ago

That's not good news. I'll wait for v1.1.0. And I want to get permission to publish _getCodePointCount as my independent package from you. If that function is improved by others, I'll try to get permission from them or keep mine as is.

fabian-hiller commented 3 weeks ago

Yes, feel free to create your own package. No permission required.