remix-forms
Advanced tools
Comparing version 0.17.4-test.0 to 0.18.2
@@ -5,3 +5,3 @@ import * as React from 'react'; | ||
import { UseFormRegisterReturn, ValidationMode, UseFormReturn } from 'react-hook-form'; | ||
import { DomainFunction } from 'remix-domains'; | ||
import { DomainFunction } from 'domain-functions'; | ||
import { Transition } from '@remix-run/react/dist/transition'; | ||
@@ -8,0 +8,0 @@ |
@@ -662,8 +662,8 @@ "use strict"; | ||
var import_server_runtime = require("@remix-run/server-runtime"); | ||
var import_remix_domains2 = require("remix-domains"); | ||
var import_domain_functions2 = require("domain-functions"); | ||
// src/getFormValues.ts | ||
var import_remix_domains = require("remix-domains"); | ||
var import_domain_functions = require("domain-functions"); | ||
async function getFormValues(request, schema) { | ||
const input = await (0, import_remix_domains.inputFromForm)(request); | ||
const input = await (0, import_domain_functions.inputFromForm)(request); | ||
let values = {}; | ||
@@ -693,3 +693,3 @@ for (const key in schema.shape) { | ||
errors: { | ||
...(0, import_remix_domains2.errorMessagesForSchema)(result.inputErrors, schema), | ||
...(0, import_domain_functions2.errorMessagesForSchema)(result.inputErrors, schema), | ||
_global: result.errors.length || result.environmentErrors.length ? [...result.errors, ...result.environmentErrors].map((error) => error.message) : void 0 | ||
@@ -696,0 +696,0 @@ }, |
{ | ||
"name": "remix-forms", | ||
"version": "0.17.4-test.0", | ||
"version": "0.18.2", | ||
"description": "Magically create forms + actions in Remix!", | ||
@@ -8,3 +8,24 @@ "main": "./dist/index.js", | ||
"types": "./dist/index.d.ts", | ||
"files": [ | ||
"*", | ||
"./dist/*" | ||
], | ||
"license": "MIT", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/SeasonedSoftware/remix-forms.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/SeasonedSoftware/remix-forms/issues" | ||
}, | ||
"homepage": "https://remix-forms.seasoned.cc", | ||
"keywords": [ | ||
"remix", | ||
"forms", | ||
"actions", | ||
"zod", | ||
"typescript", | ||
"react-hook-form" | ||
], | ||
"author": "Daniel Weinmann", | ||
"scripts": { | ||
@@ -21,3 +42,3 @@ "build": "tsup ./src/index.ts --format esm,cjs --dts --external react", | ||
"react-hook-form": ">=7.27", | ||
"remix-domains": ">=0.2.0", | ||
"domain-functions": ">=1.0.0", | ||
"zod": ">=3.12" | ||
@@ -24,0 +45,0 @@ }, |
import { json, redirect } from '@remix-run/server-runtime' | ||
import type { DomainFunction } from 'remix-domains' | ||
import { errorMessagesForSchema } from 'remix-domains' | ||
import type { DomainFunction } from 'domain-functions' | ||
import { errorMessagesForSchema } from 'domain-functions' | ||
import type { SomeZodObject, z } from 'zod' | ||
@@ -5,0 +5,0 @@ import { getFormValues } from './getFormValues' |
@@ -1,2 +0,2 @@ | ||
import { inputFromForm } from 'remix-domains' | ||
import { inputFromForm } from 'domain-functions' | ||
import type { SomeZodObject, z } from 'zod' | ||
@@ -3,0 +3,0 @@ import { coerceValue } from './coercions' |
Sorry, the diff of this file is not supported yet
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
No contributors or author data
MaintenancePackage does not specify a list of contributors or an author in package.json.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
0
0
1
0
6
0
92873
25