Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@conform-to/yup

Package Overview
Dependencies
Maintainers
1
Versions
63
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@conform-to/yup - npm Package Compare versions

Comparing version 0.3.0 to 0.3.1

4

package.json

@@ -5,3 +5,3 @@ {

"license": "MIT",
"version": "0.3.0",
"version": "0.3.1",
"main": "index.js",

@@ -18,3 +18,3 @@ "module": "module/index.js",

"peerDependencies": {
"@conform-to/dom": "0.3.0",
"@conform-to/dom": "0.3.1",
"yup": ">=0.32.0"

@@ -21,0 +21,0 @@ },

@@ -5,2 +5,4 @@ # @conform-to/yup

<!-- aside -->
## API Reference

@@ -10,2 +12,4 @@

<!-- /aside -->
### resolve

@@ -20,3 +24,3 @@

// Define the schema with zod
// Define the schema with yup
const schema = resolve(

@@ -38,3 +42,3 @@ yup.object({

// Parse the data against the zod schema
// Parse the data against the yup schema
const submission = schema.parse(payload);

@@ -56,3 +60,3 @@

const [setupFieldset, { email, password }] = useFieldset({
// Inferring the constraint with the schema
// Optional: setup native constraint inferred from the schema
constraint: schema.constraint

@@ -59,0 +63,0 @@ });

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc