@formisch/vue 0.5.1 → 0.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.
package/README.md CHANGED
@@ -59,17 +59,17 @@ What makes Formisch unique is its framework-agnostic core, which is fully native
59
59
 
60
60
  Thanks to our partners who support the development! [Join them](https://github.com/sponsors/fabian-hiller) and contribute to the sustainability of open source software!
61
61
 
62
- ![Partners of Formisch](https://github.com/fabian-hiller/formisch/blob/main/partners.webp?raw=true)
62
+ ![Partners of Formisch](https://github.com/open-circle/formisch/blob/main/partners.webp?raw=true)
63
63
 
64
64
  ## Feedback
65
65
 
66
- Find a bug or have an idea how to improve the library? Please fill out an [issue](https://github.com/fabian-hiller/formisch/issues/new). Together we can make forms even better!
66
+ Find a bug or have an idea how to improve the library? Please fill out an [issue](https://github.com/open-circle/formisch/issues/new). Together we can make forms even better!
67
67
 
68
68
  ## License
69
69
 
70
- This project is available free of charge and licensed under the [MIT license](https://github.com/fabian-hiller/formisch/blob/main/LICENSE.md).
70
+ This project is available free of charge and licensed under the [MIT license](https://github.com/open-circle/formisch/blob/main/LICENSE.md).
71
71
 
72
- [formisch-preact]: https://github.com/fabian-hiller/formisch/tree/main/frameworks/preact
73
- [formisch-qwik]: https://github.com/fabian-hiller/formisch/tree/main/frameworks/qwik
74
- [formisch-solid]: https://github.com/fabian-hiller/formisch/tree/main/frameworks/solid
75
- [formisch-svelte]: https://github.com/fabian-hiller/formisch/tree/main/frameworks/svelte
72
+ [formisch-preact]: https://github.com/open-circle/formisch/tree/main/frameworks/preact
73
+ [formisch-qwik]: https://github.com/open-circle/formisch/tree/main/frameworks/qwik
74
+ [formisch-solid]: https://github.com/open-circle/formisch/tree/main/frameworks/solid
75
+ [formisch-svelte]: https://github.com/open-circle/formisch/tree/main/frameworks/svelte
package/dist/index.js CHANGED
@@ -369,7 +369,7 @@ function setNestedInput(internalFieldStore, input) {
369
369
  } else {
370
370
  internalFieldStore.input.value = input;
371
371
  const startInput = internalFieldStore.startInput.value;
372
- internalFieldStore.isDirty.value = startInput !== input && (startInput !== void 0 || input !== "" && !Number.isNaN(input));
372
+ internalFieldStore.isDirty.value = startInput !== input && (startInput != null || input !== "" && !Number.isNaN(input));
373
373
  }
374
374
  }
375
375
  /**
@@ -576,7 +576,7 @@ function handleSubmit(form, handler) {
576
576
  const result = await validateFormInput(internalFormStore, { shouldFocus: true });
577
577
  if (result.success) await handler(result.output, event);
578
578
  } catch (error) {
579
- internalFormStore.errors.value = [error instanceof Error ? error.message : "An unknown error has occurred."];
579
+ internalFormStore.errors.value = [error && typeof error === "object" && "message" in error && typeof error.message === "string" ? error.message : "An unknown error has occurred."];
580
580
  } finally {
581
581
  internalFormStore.isSubmitting.value = false;
582
582
  }
@@ -703,7 +703,7 @@ function reset(form, config) {
703
703
  else {
704
704
  const startInput = internalFieldStore$1.startInput.value;
705
705
  const input = internalFieldStore$1.input.value;
706
- internalFieldStore$1.isDirty.value = startInput !== input && (startInput !== void 0 || input !== "" && !Number.isNaN(input));
706
+ internalFieldStore$1.isDirty.value = startInput !== input && (startInput != null || input !== "" && !Number.isNaN(input));
707
707
  for (const element of internalFieldStore$1.elements) if (element.type === "file") element.value = "";
708
708
  }
709
709
  });
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@formisch/vue",
3
3
  "description": "The modular and type-safe form library for Vue",
4
- "version": "0.5.1",
4
+ "version": "0.6.0",
5
5
  "license": "MIT",
6
6
  "author": "Fabian Hiller",
7
7
  "homepage": "https://formisch.dev",
8
8
  "repository": {
9
9
  "type": "git",
10
- "url": "https://github.com/fabian-hiller/formisch"
10
+ "url": "https://github.com/open-circle/formisch"
11
11
  },
12
12
  "keywords": [
13
13
  "vue",
@@ -43,8 +43,8 @@
43
43
  "valibot": "^1.1.0",
44
44
  "vue": "^3.5.18",
45
45
  "vue-tsc": "^3.0.4",
46
- "@formisch/core": "0.4.1",
47
- "@formisch/methods": "0.4.1"
46
+ "@formisch/core": "0.4.2",
47
+ "@formisch/methods": "0.5.0"
48
48
  },
49
49
  "peerDependencies": {
50
50
  "typescript": ">=5",
File without changes