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

simpl-schema

Package Overview
Dependencies
Maintainers
1
Versions
73
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

simpl-schema - npm Package Versions

1
8

1.5.3

Diff

Changelog

Source

1.5.3

Update to latest mongo-object package dependency

aldeed
published 1.5.2 •

Changelog

Source

1.5.2

Include README.md and LICENSE in the published package

aldeed
published 1.5.1 •

Changelog

Source

1.5.1

  • Fix issues with $pull modifier being incorrectly cleaned in some cases where some properties have defaultValue (thanks @vparpoil)
  • Other behind-the-scenes refactoring
aldeed
published 1.5.0 •

Changelog

Source

1.5.0

  • allowedValues may now be a Set instance (thanks @kevinkassimo)
  • Updated EmailWithTLD regular expression with one that is not susceptible to catastrophic backtracking attacks (thanks @davisjam)
aldeed
published 1.4.3 •

Changelog

Source

1.4.3

  • Forgetting to define the parent key of any key in a schema will now throw an error
  • use Array.forEach to remove empty objects fixes #244 (#246)
aldeed
published 1.4.2 •

Changelog

Source

1.4.2

The SimpleSchema constructor or .extend() will now throw an error if you define an Array field but forget to define the corresponding array item field.

aldeed
published 1.4.1 •

Changelog

Source

1.4.1

Fixed an issue where defaultValues would be incorrectly added to $setOnInsert when your modifier contained $unset for deeply nested fields.

aldeed
published 1.4.0 •

Changelog

Source

1.4.0

  • Fixed an issue where the defaultValue $setOnInsert added to a modifier containing $addToSet would target an incorrect object path.
  • When cleaning, it no longer tries to convert the type of null.
  • Any value returned from autoValue/defaultValue is now cloned to prevent accidental mutation.
  • Added this.key in the function context when executing schema definition properties that are functions. This can help you determine what the array index is for keys that are within arrays.
  • Added a clone() function on SimpleSchema instances.
aldeed
published 1.3.0 •

Changelog

Source

1.3.0

Add this.key and this.closestSubschemaFieldName to autoValue context to help with tricky situations when subschemas are used.

aldeed
published 1.2.2 •

Changelog

Source

1.2.2

Fix an issue introduced by 1.2.1, where it was possible for a SimpleSchema instance passed to extend to be mutated.

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