@regle/schemas 1.24.1-beta.2 → 1.24.2

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.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @regle/schemas v1.24.1-beta.2
2
+ * @regle/schemas v1.24.2
3
3
  * (c) 2026 Victor Garcia
4
4
  * @license MIT
5
5
  */
@@ -96,7 +96,7 @@ type RegleSchemaFieldStatus<TState = any, TShortcuts extends RegleShortcutDefini
96
96
  readonly $externalErrors: string[]; /** Represents the inactive status. Is true when this state have empty rules */
97
97
  readonly $inactive: boolean; /** This is reactive tree containing all the declared rules of your field. To know more about the rule properties check the rules properties section */
98
98
  readonly $rules: {
99
- [`~validator`]: RegleRuleStatus<TState, []>;
99
+ [`~validator`]: RegleRuleStatus<IsUnion<TState> extends true ? any : TState, []>;
100
100
  }; /** Sets the external errors for the field. */
101
101
  $setExternalErrors(errors: string[]): void; /** Will return a copy of your state with only the fields that are dirty. By default it will filter out nullish values or objects, but you can override it with the first parameter $extractDirtyFields(false). */
102
102
  $extractDirtyFields: (filterNullishValues?: boolean) => DeepPartial<TState>;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @regle/schemas v1.24.1-beta.2
2
+ * @regle/schemas v1.24.2
3
3
  * (c) 2026 Victor Garcia
4
4
  * @license MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @regle/schemas v1.24.1-beta.2
2
+ * @regle/schemas v1.24.2
3
3
  * (c) 2026 Victor Garcia
4
4
  * @license MIT
5
5
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@regle/schemas",
3
- "version": "1.24.1-beta.2",
3
+ "version": "1.24.2",
4
4
  "description": "Schemas adapter for Regle",
5
5
  "homepage": "https://reglejs.dev/",
6
6
  "license": "MIT",
@@ -37,8 +37,8 @@
37
37
  "dependencies": {
38
38
  "@standard-schema/spec": "1.1.0",
39
39
  "type-fest": "5.6.0",
40
- "@regle/core": "1.24.1-beta.2",
41
- "@regle/rules": "1.24.1-beta.2"
40
+ "@regle/core": "1.24.2",
41
+ "@regle/rules": "1.24.2"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@total-typescript/ts-reset": "0.6.1",