diff --git a/.changeset/chilled-dingos-sniff.md b/.changeset/chilled-dingos-sniff.md deleted file mode 100644 index b09da0aa..00000000 --- a/.changeset/chilled-dingos-sniff.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@conform-to/dom": patch ---- - -fix: FormValue should never be null diff --git a/.changeset/empty-guests-hear.md b/.changeset/empty-guests-hear.md deleted file mode 100644 index d92b2dea..00000000 --- a/.changeset/empty-guests-hear.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -'@conform-to/zod': patch ---- - -fix(conform-zod): empty string default value support - -Previously, we suggested using `.default()` to set a fallback value. However, `.default()` does not work as expected with `z.string().default('')`. This issue has now been resolved, but keep in mind that the default value is still subject to validation errors. For more predictable results, we recommend using `.transform(value => value ?? defaultValue)` instead. - -Fix #676 diff --git a/.changeset/gentle-humans-eat.md b/.changeset/gentle-humans-eat.md deleted file mode 100644 index 743c497d..00000000 --- a/.changeset/gentle-humans-eat.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@conform-to/dom': patch ---- - -Replace submission payload unknown types diff --git a/.changeset/hip-actors-wink.md b/.changeset/hip-actors-wink.md deleted file mode 100644 index 3c93f050..00000000 --- a/.changeset/hip-actors-wink.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@conform-to/zod': minor ---- - -feat(conform-zod): bigint coercion support diff --git a/.changeset/tender-kiwis-flash.md b/.changeset/tender-kiwis-flash.md deleted file mode 100644 index b9399ed3..00000000 --- a/.changeset/tender-kiwis-flash.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'@conform-to/zod': patch ---- - -fix(conform-zod): enable zod object coercion - -Conform should support nested fields with only checkboxes now. Fix #391. diff --git a/examples/chakra-ui/package.json b/examples/chakra-ui/package.json index e9c3ffb1..cd2efbba 100644 --- a/examples/chakra-ui/package.json +++ b/examples/chakra-ui/package.json @@ -3,7 +3,7 @@ "private": true, "dependencies": { "@chakra-ui/react": "^2.4.2", - "@conform-to/react": "1.1.5", + "@conform-to/react": "1.2.0", "@emotion/react": "^11.10.5", "@emotion/styled": "^11.10.5", "framer-motion": "^7.6.19", diff --git a/examples/headless-ui/package.json b/examples/headless-ui/package.json index 10fde937..43898159 100644 --- a/examples/headless-ui/package.json +++ b/examples/headless-ui/package.json @@ -2,7 +2,7 @@ "name": "@conform-example/headless-ui", "private": true, "dependencies": { - "@conform-to/react": "1.1.5", + "@conform-to/react": "1.2.0", "@headlessui/react": "^1.7.13", "@heroicons/react": "^2.0.18", "react": "^18.2.0", diff --git a/examples/material-ui/package.json b/examples/material-ui/package.json index c804d4c3..811864b0 100644 --- a/examples/material-ui/package.json +++ b/examples/material-ui/package.json @@ -2,7 +2,7 @@ "name": "@conform-example/material-ui", "private": true, "dependencies": { - "@conform-to/react": "1.1.5", + "@conform-to/react": "1.2.0", "@emotion/react": "^11.10.0", "@emotion/styled": "^11.10.0", "@mui/material": "^5.10.2", diff --git a/examples/nextjs/package.json b/examples/nextjs/package.json index 684ce40f..4e1d1502 100644 --- a/examples/nextjs/package.json +++ b/examples/nextjs/package.json @@ -9,8 +9,8 @@ "lint": "next lint" }, "dependencies": { - "@conform-to/react": "1.1.5", - "@conform-to/zod": "1.1.5", + "@conform-to/react": "1.2.0", + "@conform-to/zod": "1.2.0", "next": "14.0.4", "react": "^18.2.0", "react-dom": "^18.2.0", diff --git a/examples/radix-ui/package.json b/examples/radix-ui/package.json index 96e98c70..0c625c11 100644 --- a/examples/radix-ui/package.json +++ b/examples/radix-ui/package.json @@ -10,8 +10,8 @@ "preview": "vite preview" }, "dependencies": { - "@conform-to/react": "1.1.5", - "@conform-to/zod": "1.1.5", + "@conform-to/react": "1.2.0", + "@conform-to/zod": "1.2.0", "@radix-ui/react-checkbox": "^1.0.4", "@radix-ui/react-icons": "^1.3.0", "@radix-ui/react-radio-group": "^1.1.3", diff --git a/examples/react-router/package.json b/examples/react-router/package.json index 6527e0fd..33bfadcd 100644 --- a/examples/react-router/package.json +++ b/examples/react-router/package.json @@ -7,8 +7,8 @@ "serve": "vite preview" }, "dependencies": { - "@conform-to/react": "1.1.5", - "@conform-to/zod": "1.1.5", + "@conform-to/react": "1.2.0", + "@conform-to/zod": "1.2.0", "react": "^18.2.0", "react-dom": "^18.2.0", "react-router-dom": "^6.15.0", diff --git a/examples/remix/package.json b/examples/remix/package.json index a155b98f..2bd31b14 100644 --- a/examples/remix/package.json +++ b/examples/remix/package.json @@ -9,8 +9,8 @@ "start": "remix-serve build" }, "dependencies": { - "@conform-to/react": "1.1.5", - "@conform-to/zod": "1.1.5", + "@conform-to/react": "1.2.0", + "@conform-to/zod": "1.2.0", "@remix-run/node": "^1.19.3", "@remix-run/react": "^1.19.3", "@remix-run/serve": "^1.19.3", diff --git a/examples/shadcn-ui/package.json b/examples/shadcn-ui/package.json index fd31834d..f62a07ec 100644 --- a/examples/shadcn-ui/package.json +++ b/examples/shadcn-ui/package.json @@ -10,8 +10,8 @@ "preview": "vite preview" }, "dependencies": { - "@conform-to/react": "1.1.5", - "@conform-to/zod": "1.1.5", + "@conform-to/react": "1.2.0", + "@conform-to/zod": "1.2.0", "@radix-ui/react-checkbox": "^1.0.4", "@radix-ui/react-dialog": "^1.0.5", "@radix-ui/react-label": "^2.0.2", diff --git a/packages/conform-dom/package.json b/packages/conform-dom/package.json index 34aa152b..5fce351a 100644 --- a/packages/conform-dom/package.json +++ b/packages/conform-dom/package.json @@ -3,7 +3,7 @@ "description": "A set of opinionated helpers built on top of the Constraint Validation API", "homepage": "https://conform.guide", "license": "MIT", - "version": "1.1.5", + "version": "1.2.0", "main": "index.js", "module": "index.mjs", "types": "index.d.ts", diff --git a/packages/conform-react/package.json b/packages/conform-react/package.json index 19ddabfe..246ffb29 100644 --- a/packages/conform-react/package.json +++ b/packages/conform-react/package.json @@ -3,7 +3,7 @@ "description": "Conform view adapter for react", "homepage": "https://conform.guide", "license": "MIT", - "version": "1.1.5", + "version": "1.2.0", "main": "index.js", "module": "index.mjs", "types": "index.d.ts", diff --git a/packages/conform-yup/package.json b/packages/conform-yup/package.json index 8bb86aae..e034af37 100644 --- a/packages/conform-yup/package.json +++ b/packages/conform-yup/package.json @@ -3,7 +3,7 @@ "description": "Conform helpers for integrating with yup", "homepage": "https://conform.guide", "license": "MIT", - "version": "1.1.5", + "version": "1.2.0", "main": "index.js", "module": "index.mjs", "types": "index.d.ts", diff --git a/packages/conform-zod/package.json b/packages/conform-zod/package.json index 517a6384..27fe7707 100644 --- a/packages/conform-zod/package.json +++ b/packages/conform-zod/package.json @@ -3,7 +3,7 @@ "description": "Conform helpers for integrating with Zod", "homepage": "https://conform.guide", "license": "MIT", - "version": "1.1.5", + "version": "1.2.0", "main": "index.js", "module": "index.mjs", "types": "index.d.ts", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index aabc1ad9..30a116b4 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -87,7 +87,7 @@ importers: specifier: ^2.4.2 version: 2.8.2(@emotion/react@11.11.1(@types/react@18.3.1)(react@18.2.0))(@emotion/styled@11.11.0(@emotion/react@11.11.1(@types/react@18.3.1)(react@18.2.0))(@types/react@18.3.1)(react@18.2.0))(@types/react@18.3.1)(framer-motion@7.10.3(react-dom@18.2.0(react@18.2.0))(react@18.2.0))(react-dom@18.2.0(react@18.2.0))(react@18.2.0) '@conform-to/react': - specifier: 1.1.5 + specifier: 1.2.0 version: link:../../packages/conform-react '@emotion/react': specifier: ^11.10.5 @@ -124,7 +124,7 @@ importers: examples/headless-ui: dependencies: '@conform-to/react': - specifier: 1.1.5 + specifier: 1.2.0 version: link:../../packages/conform-react '@headlessui/react': specifier: ^1.7.13 @@ -173,7 +173,7 @@ importers: examples/material-ui: dependencies: '@conform-to/react': - specifier: 1.1.5 + specifier: 1.2.0 version: link:../../packages/conform-react '@emotion/react': specifier: ^11.10.0 @@ -210,10 +210,10 @@ importers: examples/nextjs: dependencies: '@conform-to/react': - specifier: 1.1.5 + specifier: 1.2.0 version: link:../../packages/conform-react '@conform-to/zod': - specifier: 1.1.5 + specifier: 1.2.0 version: link:../../packages/conform-zod next: specifier: 14.0.4 @@ -250,10 +250,10 @@ importers: examples/radix-ui: dependencies: '@conform-to/react': - specifier: 1.1.5 + specifier: 1.2.0 version: link:../../packages/conform-react '@conform-to/zod': - specifier: 1.1.5 + specifier: 1.2.0 version: link:../../packages/conform-zod '@radix-ui/react-checkbox': specifier: ^1.0.4 @@ -329,10 +329,10 @@ importers: examples/react-router: dependencies: '@conform-to/react': - specifier: 1.1.5 + specifier: 1.2.0 version: link:../../packages/conform-react '@conform-to/zod': - specifier: 1.1.5 + specifier: 1.2.0 version: link:../../packages/conform-zod react: specifier: ^18.2.0 @@ -372,10 +372,10 @@ importers: examples/remix: dependencies: '@conform-to/react': - specifier: 1.1.5 + specifier: 1.2.0 version: link:../../packages/conform-react '@conform-to/zod': - specifier: 1.1.5 + specifier: 1.2.0 version: link:../../packages/conform-zod '@remix-run/node': specifier: ^1.19.3 @@ -427,10 +427,10 @@ importers: examples/shadcn-ui: dependencies: '@conform-to/react': - specifier: 1.1.5 + specifier: 1.2.0 version: link:../../packages/conform-react '@conform-to/zod': - specifier: 1.1.5 + specifier: 1.2.0 version: link:../../packages/conform-zod '@radix-ui/react-checkbox': specifier: ^1.0.4 @@ -2923,6 +2923,7 @@ packages: '@humanwhocodes/config-array@0.11.14': resolution: {integrity: sha512-3T8LkOmg45BV5FICb15QQMsyUSWrQ8AygVfC7ZG32zOalnqrilm018ZVCw0eapXux8FtA33q8PSRSstjee3jSg==} engines: {node: '>=10.10.0'} + deprecated: Use @eslint/config-array instead '@humanwhocodes/module-importer@1.0.1': resolution: {integrity: sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==} @@ -2930,6 +2931,7 @@ packages: '@humanwhocodes/object-schema@2.0.2': resolution: {integrity: sha512-6EwiSjwWYP7pTckG6I5eyFANjPhmPjUX9JRLUSfNPC7FX7zK9gyZAfUEaECL6ALTpGX5AjnBq3C9XmVWPitNpw==} + deprecated: Use @eslint/object-schema instead '@isaacs/cliui@8.0.2': resolution: {integrity: sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==} @@ -6890,12 +6892,15 @@ packages: glob@7.1.6: resolution: {integrity: sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==} + deprecated: Glob versions prior to v9 are no longer supported glob@7.1.7: resolution: {integrity: sha512-OvD9ENzPLbegENnYP5UUfJIirTg4+XwMWGaQfQTY0JenxNvvIKP3U3/tAQSPIu/lHxXYSZmpXlUHeqAIdKzBLQ==} + deprecated: Glob versions prior to v9 are no longer supported glob@7.2.3: resolution: {integrity: sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==} + deprecated: Glob versions prior to v9 are no longer supported global-modules@2.0.0: resolution: {integrity: sha512-NGbfmJBp9x8IxyJSd1P+otYK8vonoJactOogrVfFRIAEY1ukil8RSKDz2Yo7wh1oihl51l/r6W4epkeKJHqL8A==} @@ -7198,6 +7203,7 @@ packages: inflight@1.0.6: resolution: {integrity: sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==} + deprecated: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful. inherits@2.0.3: resolution: {integrity: sha512-x00IRNXNy63jwGkJmzPigoySHbaqpNuzKbBOmzK+g2OdZpQ9w+sxCN+VSB3ja7IAge2OP2qpfxTjeNcyjmW1uw==} @@ -9380,6 +9386,10 @@ packages: q@1.5.1: resolution: {integrity: sha512-kV/CThkXo6xyFEZUugw/+pIOywXcDbFYgSct5cT3gqlbkBE1SJdwy6UQoZvodiWF/ckQLZyDE/Bu1M6gVu5lVw==} engines: {node: '>=0.6.0', teleport: '>=0.2.0'} + deprecated: |- + You or someone you depend on is using Q, the JavaScript Promise library that gave JavaScript developers strong feelings about promises. They can almost certainly migrate to the native JavaScript promise now. Thank you literally everyone for joining me in this bet against the odds. Be excellent to each other. + + (For a CapTP with native promises, see @endo/eventual-send and @endo/captp) qs@6.11.0: resolution: {integrity: sha512-MvjoMCJwEarSbUYk5O+nmoSzSutSsTwF85zcHPQ9OrlFoZOYIjaqBAJIqIXjptyD5vThxGq52Xu/MaJzRkIk4Q==}