@regle/schemas 1.2.2 → 1.3.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -11
- package/dist/regle-schemas.d.ts +2606 -254
- package/dist/regle-schemas.js +290 -0
- package/dist/regle-schemas.min.js +1 -0
- package/package.json +16 -16
- package/dist/regle-schemas.min.mjs +0 -1
- package/dist/regle-schemas.mjs +0 -289
package/README.md
CHANGED
|
@@ -19,16 +19,18 @@ It's heavily inspired by Vuelidate.
|
|
|
19
19
|
| ------------- | ------------- | ------------- |
|
|
20
20
|
| <a target='_blank' href="https://play.reglejs.dev"><img width="180" src="https://raw.githubusercontent.com/victorgarciaesgi/regle/refs/heads/main/.github/images/regle-playground-button.svg" /></a> | [](https://stackblitz.com/~/github.com/victorgarciaesgi/regle-examples/tree/main/examples/simple-example?file=examples/simple-example/src/App.vue&configPath=examples/simple-example) | [](https://stackblitz.com/~/github.com/victorgarciaesgi/regle-examples/tree/main/examples/advanced-example?file=examples/advanced-example/src/App.vue&configPath=examples/advanced-example) |
|
|
21
21
|
|
|
22
|
-
##
|
|
23
|
-
|
|
24
|
-
-
|
|
25
|
-
-
|
|
26
|
-
-
|
|
27
|
-
-
|
|
28
|
-
-
|
|
29
|
-
-
|
|
30
|
-
-
|
|
31
|
-
-
|
|
22
|
+
## ✨ Features
|
|
23
|
+
|
|
24
|
+
- 🔌 **Headless**: Plug any UI or markup to the validation.
|
|
25
|
+
- 🎯 **Type safe**: Full inference and autocompletion support.
|
|
26
|
+
- 🌳 **Model based**: Your validation tree structure matches the data model.
|
|
27
|
+
- 🎨 **Style Agnostic**: Works with any CSS framework or plain CSS.
|
|
28
|
+
- 📦 **Modular design**: Expand Regle properties or default validation rules.
|
|
29
|
+
- 🔄 **Async validation**: Handle asynchronous validations and pending states with ease.
|
|
30
|
+
- 🌐 **i18n Ready**: Works with any i18n library.
|
|
31
|
+
- 📕 **Vuelidate like API**: Regle's API mimics Vuelidate's API while improving it on a lot of areas.
|
|
32
|
+
- ⚡️ **SSR Ready**: Full support for Server Side Rendering environments.
|
|
33
|
+
- ✅ **Alternative validation**: [Standard Schema](https://standardschema.dev/) spec validation support.
|
|
32
34
|
- 🦸♂️ [Zod](https://zod.dev/)
|
|
33
35
|
- 🤖 [Valibot](https://valibot.dev/)
|
|
34
|
-
- 🚢 [ArkType](https://arktype.io)
|
|
36
|
+
- 🚢 [ArkType](https://arktype.io)
|