@formisch/react 0.4.2 → 0.4.3

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.
Files changed (2) hide show
  1. package/dist/index.js +2 -2
  2. package/package.json +4 -4
package/dist/index.js CHANGED
@@ -116,10 +116,10 @@ function untrack(fn) {
116
116
  */
117
117
  function initializeFieldStore(internalFieldStore, schema, initialInput, path, nullish = false) {
118
118
  if (framework === "qwik" && schema.type === "lazy" || schema.type === "object_with_rest" || schema.type === "record" || schema.type === "tuple_with_rest" || schema.type === "promise") throw new Error(`"${schema.type}" schema is not supported`);
119
- else if (schema.type === "lazy") initializeFieldStore(internalFieldStore, schema.getter(void 0), initialInput, path);
119
+ else if (schema.type === "lazy") initializeFieldStore(internalFieldStore, schema.getter(void 0), initialInput, path, nullish);
120
120
  else if (schema.type === "exact_optional" || schema.type === "nullable" || schema.type === "nullish" || schema.type === "optional" || schema.type === "undefinedable") initializeFieldStore(internalFieldStore, schema.wrapped, initialInput === void 0 ? v.getDefault(schema) : initialInput, path, true);
121
121
  else if (schema.type === "non_nullable" || schema.type === "non_nullish" || schema.type === "non_optional") initializeFieldStore(internalFieldStore, schema.wrapped, initialInput, path);
122
- else if (schema.type === "intersect" || schema.type === "union" || schema.type === "variant") for (const schemaOption of schema.options) initializeFieldStore(internalFieldStore, schemaOption, initialInput, path);
122
+ else if (schema.type === "intersect" || schema.type === "union" || schema.type === "variant") for (const schemaOption of schema.options) initializeFieldStore(internalFieldStore, schemaOption, initialInput, path, nullish);
123
123
  else {
124
124
  internalFieldStore.schema = schema;
125
125
  internalFieldStore.name = JSON.stringify(path);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@formisch/react",
3
3
  "description": "The modular and type-safe form library for React",
4
- "version": "0.4.2",
4
+ "version": "0.4.3",
5
5
  "license": "MIT",
6
6
  "author": "Fabian Hiller",
7
7
  "homepage": "https://formisch.dev",
@@ -46,9 +46,9 @@
46
46
  "tsdown": "^0.16.8",
47
47
  "typescript": "~5.9.3",
48
48
  "vite": "^7.2.4",
49
- "@formisch/core": "0.6.2",
50
- "@formisch/methods": "0.7.0",
51
- "@formisch/eslint-config": "0.1.0"
49
+ "@formisch/core": "0.6.3",
50
+ "@formisch/eslint-config": "0.1.0",
51
+ "@formisch/methods": "0.7.0"
52
52
  },
53
53
  "peerDependencies": {
54
54
  "react": "^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",