Socket
Socket
Sign inDemoInstall

yup

Package Overview
Dependencies
Maintainers
1
Versions
127
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

yup - npm Package Versions

1
13

0.32.5

Diff

Changelog

Source

0.32.5 (2020-12-07)

Bug Fixes

  • types: change base.default() to any (01c6930)
monastic.panic
published 0.32.4 •

Changelog

Source

0.32.4 (2020-12-07)

Bug Fixes

  • types: rm base pick/omit types as they conflict with more specific ones (14e2c8c)

Features

monastic.panic
published 0.32.3 •

Changelog

Source

0.32.3 (2020-12-07)

Bug Fixes

  • types: AnyObjectSchema anys (1c54665)
monastic.panic
published 0.32.2 •

Changelog

Source

0.32.2 (2020-12-07)

Bug Fixes

monastic.panic
published 0.32.1 •

Changelog

Source

0.32.1 (2020-12-04)

Bug Fixes

monastic.panic
published 0.32.0 •

Changelog

Source

0.32.0 (2020-12-03)

Features

BREAKING CHANGES

  • concat doesn't check for "unset" nullable or presence when merging meaning the nullability and presence will always be the same as the schema passed to concat(). They can be overridden if needed after concatenation
  • schema factory functions are no longer constructors. The classes are now also exported for extension or whatever else. e.g. import { StringSchema, string } from 'yup'
monastic.panic
published 0.31.1 •

Changelog

Source

0.31.1 (2020-12-01)

Bug Fixes

  • swallowed errors on nested schema with no tests (5316ab9), closes #1127

Features

  • add isTrue and isFalse checks on boolean (#910) (630a641)
monastic.panic
published 0.31.0 •

Changelog

Source

0.31.0 (2020-11-23)

Bug Fixes

Features

  • add array.length() and treat empty arrays as valid for required() (fbc158d)
  • add object.pick and object.omit (425705a)
  • deprecate the getter overload of default() (#1119) (5dae837)
  • more strictly coerce strings, exclude arrays and plain objects (963d2e8)

BREAKING CHANGES

  • array().required() will no longer consider an empty array missing and required checks will pass.

To maintain the old behavior change to:

array().required().min(1)
  • plain objects and arrays are no long cast to strings automatically

to recreate the old behavior:

string().transform((_, input) => input != null && input.toString ? input.toString() : value);
monastic.panic
published 0.30.0 •

Changelog

Source

0.30.0 (2020-11-19)

Bug Fixes

Features

  • exposes context on mixed.test function and add originalValue to context (#1021) (6096064)

Performance Improvements

  • reduce function calls for shallower stacks (#1022) (01da7e1)

BREAKING CHANGES

  • defined() now doesn't automatically allow null, this was a bug. to mimic the old behavior add nullable() to schema with defined()
monastic.panic
published 0.29.3 •

Changelog

Source

0.29.3 (2020-08-04)

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