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

@badrap/valita

Package Overview
Dependencies
Maintainers
0
Versions
64
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@badrap/valita - npm Package Versions

23
7

0.4.2

Diff

Changelog

Source

0.4.2

Patch Changes

badrapbot
published 0.4.1 •

Changelog

Source

0.4.1

Patch Changes

badrapbot
published 0.4.0 •

Changelog

Source

0.4.0

Minor Changes

badrapbot
published 0.3.16 •

Changelog

Source

0.3.16

Patch Changes

  • 59b89be Thanks @arv for reporting this! - Revert changes since v0.3.12 as they were backwards incompatible
badrapbot
published 0.3.15 •

Changelog

Source

0.3.15

Patch Changes

badrapbot
published 0.3.14 •

Changelog

Source

0.3.14

Patch Changes

badrapbot
published 0.3.13 •

badrapbot
published 0.3.12 •

Changelog

Source

0.3.12

Patch Changes

  • 8aaad50 Thanks @jviide! - Mark .optional(() => ...) as non-experimental and recommend it over the now-deprecated .default(x)
badrapbot
published 0.3.11 •

Changelog

Source

0.3.11

Patch Changes

  • f78c082 Thanks @jviide! - Add experimental support for .optional(() => x)

    The .optional() method now supports default value functions for replacing undefined and missing values from the input and wrapped validator. The functionality is similar to .default(x), except that defaultFn has to be a function and is executed for each validation run. This allows patterns like the following:

    const Item = v.object({ id: v.string() });
    
    const Items = v.array(Item).optional(() => []);
    

    This avoids a common pitfall with using .default([]) for the same pattern. As the newly created empty arrays are not shared, mutating them is safe(r) as it doesn't affect other validation outputs.

    This feature is marked experimental for the time being.

badrapbot
published 0.3.10 •

Changelog

Source

0.3.10

Patch Changes

  • 43513b6 Thanks @jviide! - Add support for variadic tuple types

    Tuple and array types now have a new method, .concat() that can be used to create variadic tuple types.

  • 43513b6 Thanks @jviide! - Make v.array() a shorthand for v.array(v.unknown())

23
7
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