ealush / vest

Vest ✅ Declarative validations framework

Home Page:https://vestjs.dev/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Vest@5 is ready! Help test it!

ealush opened this issue · comments

Vest 5 is ready! Help test it!

I'm excited to announce that Vest@5 is now available for testing! After 9 months of development, this new version promises to be a game-changer. With all the existing capabilities and new default settings, it is more user-friendly and has a reduced overhead when writing validations.

Here are some of the main improvements you can expect in Vest@5:

  1. By default, Vest now stops after the first failure of each field, saving on performance and reducing the need to manually skip validations.
  2. Added a singular getError and getWarning method, eliminating the need to get the value from an array.
  3. All suite methods are now directly on the suite object, which means there's almost no need to call suite.get().
  4. The suite result now has an ordered list of all failures, which means we can correctly identify the first error in the suite.
  5. First-class citizen TypeScript support - I have typed everything and have strict types for field names across the suite.

And many more! We are eager to hear your feedback on these improvements and any other thoughts you may have. To provide feedback, please write it here. Your feedback is crucial in helping us improve Vest@5 and make it the best validation library out there!

Feel free to leave a note any of the following:

  1. Bugs or issues encountered while using it
  2. Clarity and effectiveness of the documentation
  3. Any missing features or behaviors you would like to see implemented
  4. Overall usability and comfort with the API.

Additionally, I have updated our documentation website to include both the version 4 and version 5 docs. You can find the new documentation at https://vestjs.dev/docs.

To get started with Vest@5, you can install it using the next tag:

npm install vest@next

For those who are currently using version 4, we have migration docs available to make the transition as smooth as possible:

https://vestjs.dev/docs/next/upgrade_guide

Thank you for your support and happy vesting! 🚀