Socket
Socket
Sign inDemoInstall

simple-runtypes

Package Overview
Dependencies
0
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install
23Next

7.1.3

Diff

Changelog

Source

7.1.3

  • fix: invalid key message was displaying the object instead of the keys, see #91
hoeck
published 7.1.2 •

Changelog

Source

7.1.2

  • fix: json now keeps the type information from the passed runtype
hoeck
published 7.1.1 •

Changelog

Source

7.1.1

  • fix: make sloppyRecord impure (closes #60)
hoeck
published 7.1.0 •

Changelog

Source

7.1.0

  • add json runtype
  • add minLength option to string runtype
hoeck
published 7.0.0 •

Changelog

Source

7.0.0

  • rename nullable to nullOr to be consistent with undefinedOr (because undefinable is not a good name)
  • add undefinedOr that works like the old optional type
  • real optional keys in records: Change optional to be only usable in record. Using it will result in the key to be infered as optional: record({key: optional(number())}) results in {key?: number} as the type (old behavior would infer {key: undefined | number}, you can get the old behaviour by using undefinedOr instead of optional)
  • add dictionary and remove numberIndex and stringIndex Use dictionary(stringAsInteger(), otherType) to replace numberIndex and dictionary(string(), otherType) to replace stringIndex.
hoeck
published 6.3.0 •

Changelog

Source

6.3.0

  • add partial combinator runtype
hoeck
published 6.2.0 •

Changelog

Source

6.2.0

  • add match option to string to test the string against a regular expression
hoeck
published 6.1.1 •

Changelog

Source

6.1.1

  • fix and improve error value and path formatting (shout outs to @pabra for the patch)
hoeck
published 6.1.0 •

Changelog

Source

6.1.0

  • support intersection of unions and records
hoeck
published 6.0.1 •

Changelog

Source

6.0.1

  • fix: rename useRuntype to use
23Next
SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc