@regle/schemas 1.9.0-beta.1 → 1.9.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.
@@ -1319,8 +1319,17 @@ type ResetOptions<TState extends unknown> = RequireOneOrNone<{
1319
1319
  toState?: TState | (() => TState);
1320
1320
  /**
1321
1321
  * Clears the $externalErrors state back to an empty object.
1322
+ *
1323
+ * @default false
1322
1324
  */
1323
1325
  clearExternalErrors?: boolean;
1326
+ /**
1327
+ * Keep the validation state of the form ($dirty, $invalid, $pending etc..)
1328
+ * Only useful if you only want to reset the form state.
1329
+ *
1330
+ * @default false
1331
+ */
1332
+ keepValidationState?: boolean;
1324
1333
  }, 'toInitialState' | 'toState'>;
1325
1334
  //#endregion
1326
1335
  //#region src/types/core/scopedRegle.types.d.ts
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@regle/schemas",
3
- "version": "1.9.0-beta.1",
3
+ "version": "1.9.1",
4
4
  "description": "Schemas adapter for Regle",
5
5
  "dependencies": {
6
6
  "@standard-schema/spec": "1.0.0",
7
- "@regle/core": "1.9.0-beta.1",
8
- "@regle/rules": "1.9.0-beta.1"
7
+ "@regle/rules": "1.9.1",
8
+ "@regle/core": "1.9.1"
9
9
  },
10
10
  "peerDependencies": {
11
11
  "valibot": "^1.0.0",