@regle/schemas 1.5.3 → 1.6.0

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.
@@ -1096,7 +1096,7 @@ interface RegleBehaviourOptions {
1096
1096
  clearExternalErrorsOnChange?: boolean | undefined;
1097
1097
  }
1098
1098
  interface LocalRegleBehaviourOptions<TState extends Record<string, any>, TRules extends ReglePartialRuleTree<TState, CustomRulesDeclarationTree>, TValidationGroups extends Record<string, RegleValidationGroupEntry[]> = {}> {
1099
- externalErrors?: Ref<RegleExternalErrorTree<Unwrap<TState>>>;
1099
+ externalErrors?: Ref<RegleExternalErrorTree<Unwrap<TState>> | Record<string, string[]>>;
1100
1100
  validationGroups?: (fields: RegleStatus<TState, TRules>['$fields']) => TValidationGroups;
1101
1101
  }
1102
1102
  type RegleValidationGroupEntry = RegleFieldStatus<any, any>;
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@regle/schemas",
3
- "version": "1.5.3",
3
+ "version": "1.6.0",
4
4
  "description": "Schemas adapter for Regle",
5
5
  "dependencies": {
6
6
  "@standard-schema/spec": "1.0.0",
7
- "@regle/core": "1.5.3",
8
- "@regle/rules": "1.5.3"
7
+ "@regle/core": "1.6.0",
8
+ "@regle/rules": "1.6.0"
9
9
  },
10
10
  "peerDependencies": {
11
11
  "valibot": "^1.0.0",