notform 4.0.0-beta.0 → 4.0.1-alpha.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
@@ -1,12 +1,8 @@
1
- <h1 align="center">
2
- <img alt="NotForm Logo" loading="lazy" width="50" height="50" decoding="async" data-nimg="1" style="color:transparent" src="https://notformdocs.vercel.app/favicon.svg">
3
- </br>
4
- NotForm
5
- </h1>
6
-
7
- <p align="center">
8
- Vue Forms Without the Friction.
9
- </p>
1
+ <div align="center">
2
+ <img alt="NotForm logo" src="https://notform.favorodera.dev/favicon.svg" width="50" height="50">
3
+ <h1>NotForm</h1>
4
+ <p>Vue forms without the friction</p>
5
+ </div>
10
6
 
11
7
  NotForm keeps your form's values, errors and field state in one place and leaves the markup to you. Describe the data with the schema library you already use, bind inputs, and read form states wherever you need them.
12
8
 
@@ -16,7 +12,7 @@ NotForm keeps your form's values, errors and field state in one place and leaves
16
12
  - **Safe async validation.** Auto disposal of inflight validation results making sure stale results cannot overwrite newer form state.
17
13
  - **No UI imposed.** The components render a native `<form>` and, for errors, a `<span>` you can change. Everything else is yours.
18
14
 
19
- See the [Documentation](https://notformdocs.vercel.app/) for validation, submission, and array-field guides.
15
+ See the [Documentation](https://notform.favorodera.dev/) for validation, submission, and array-field guides.
20
16
 
21
17
  ## License
22
18
 
package/dist/index.d.ts CHANGED
@@ -1,3 +1,10 @@
1
+ /**
2
+ * @packageDocumentation
3
+ * Headless, schema-driven form handling for Vue.
4
+ *
5
+ * Bring any Standard Schema compatible schema (Zod, Valibot, ArkType, ...),
6
+ * create a form with `useForm`, and render it with `<Form>`, `<Field>` and `<ArrayField>`.
7
+ */
1
8
  import { Component, MaybeRefOrGetter } from "vue";
2
9
  import { StandardSchemaV1 } from "@standard-schema/spec";
3
10
  import { Get, PartialDeep, Paths } from "type-fest";
package/dist/index.js CHANGED
@@ -599,7 +599,7 @@ function createArrayField(host, options) {
599
599
  /**
600
600
  * Reads the array, creating an empty one if the value is missing.
601
601
  * @returns The reactive array.
602
- * @throws {TypeError} If an array cannot be created at the path.
602
+ * @throws If an array cannot be created at the path.
603
603
  */
604
604
  function ensureArray() {
605
605
  const existing = readArray();
@@ -641,9 +641,7 @@ function createArrayField(host, options) {
641
641
  if (list.length > length) releaseItems(list.splice(length), true);
642
642
  return list;
643
643
  }
644
- /**
645
- * Announces a finished mutation: refreshes `items` and validates per the field's config.
646
- */
644
+ /** Announces a finished mutation: refreshes `items` and validates per the field's config. */
647
645
  function commit() {
648
646
  triggerRef(ids);
649
647
  base.parts.events.onChange();
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "notform",
3
3
  "type": "module",
4
- "version": "4.0.0-beta.0",
4
+ "version": "4.0.1-alpha.0",
5
5
  "private": false,
6
- "description": "Vue Forms Without the Friction",
6
+ "description": "Vue forms without the friction",
7
7
  "author": "Favour Emeka <favorodera@gmail.com>",
8
8
  "license": "MIT",
9
9
  "funding": "https://github.com/sponsors/favorodera",
10
- "homepage": "https://notformdocs.vercel.app/",
10
+ "homepage": "https://notform.favorodera.dev/",
11
11
  "repository": {
12
12
  "type": "git",
13
13
  "url": "git+https://github.com/favorodera/notform.git"
@@ -52,10 +52,10 @@
52
52
  "@vitest/ui": "^5.1.0",
53
53
  "@vue/test-utils": "^2.5.1",
54
54
  "happy-dom": "^21.0.4",
55
- "tsdown": "^0.23.2",
56
- "vite": "^8.3.5",
55
+ "tsdown": "^0.23.7",
56
+ "vite": "^8.3.6",
57
57
  "vitest": "^5.1.0",
58
- "vue": "^3.5.44",
58
+ "vue": "^3.5.45",
59
59
  "vue-tsc": "^3.3.13"
60
60
  },
61
61
  "scripts": {