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

moltyjs

Package Overview
Dependencies
Maintainers
1
Versions
71
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

moltyjs - npm Package Versions

1
8

0.8.2

Diff

Changelog

Source

[0.8.2] - 2018-01-22

Fixed

  • Bugs in validation Schema field names (Document payload)
mario_lemes
published 0.8.1 •

Changelog

Source

[0.8.1] - 2018-01-12

Fixed

  • Bugs in normalization and validation type methods (Document payload)
mario_lemes
published 0.8.0 •

Changelog

Source

[0.8.0] - 2018-01-12

Added

  • Support for a better scheme field layout:
    •     {
            nested: {
              stuff: {
                type: String,
                required: true,
              },
            },
            array: {
              type: [],
            },
            arrayOfString: {
              type: [String],
            },
            arrayOfNumber: {
              type: [Number],
            },
            arrayOfDate: {
              type: [Date],
            },
            arrayOfBuffer: {
              type: [Buffer],
            },
            arrayOfBoolean: {
              type: [Boolean],
            },
            arrayOfMixed: {
              type: [Object],
            },
            arrayOfId: {
              type: [Schema.types().ObjectId],
              required: true,
            },
            arrayOfNested: [
              {
                stuff: {
                  type: String,
                  required: true,
                },
                test: {
                  type: String,
                  maxlength: 5,
                },
                custom: {
                  type: String,
                  validate: payload => {
                    return payload.arrayOfNested[2].custom === 'yes';
                  },
                },
              },
            ],
            arrayOfArray: {
              type: [[]],
            },
            arrayOfArrayOfNumber: {
              type: [[Number]],
            }
          }
          ```
      
mario_lemes
published 0.7.0 •

Changelog

Source

[0.7.0] - 2018-01-12

Added

  • MoltyJS now supports Elasticsearch integration! :)
  • deleteOne() method is available to perform documents deletions
  • new 'delete' hook is available

Changed

  • Schema methods now don't pass neither the 'tenant' name or the 'connection' instance
  • validate property Schema field now don't pass neither the 'tenant' name or the 'connection' instance
  • 'tenant' is not required in 'new Document()' anymore
  • 'tenant' now is required in 'insertOne()' and in 'insertMany()'

Fixed

  • Now Schemas, Models and Documents are not copied but cloned.
mario_lemes
published 0.6.2 •

Changelog

Source

[0.6.2] - 2018-01-03

Changed

  • Now is possible to have Mongo ObjectId type field in the Schema without refferencing any model.
  • Improoved way of validating payload on schemas and payloads
mario_lemes
published 0.6.1 •

Changelog

Source

[0.6.1] - 2018-01-03

Fixed

  • Order in the documentation
mario_lemes
published 0.6.0 •

Changelog

Source

[0.6.0] - 2018-01-02

Added

  • aggregate() function with support for $match, $project, and $lookup (without recursivity) stages pipeline
  • Documentation about new aggreagte() function

Fixed

  • Error that cause wrong merging og prehooks, posthooks and methods of discriminated models.
yonirt
published 0.5.1 •

Changelog

Source

[0.5.1] - 2017-12-28

Fixed

  • Validation Schema function fields for nested objects.
yonirt
published 0.5.0 •

Changelog

Source

[0.5.0] - 2017-12-27

Changed

  • Document constructor now return a Promise due the validation function on the Schema fields which can be async functions. The validation checking is done at the moment you create the Document.
  • Passed the entire data payload normalized to the validate function instead of the value of the field is validating. In case further checking are neccesary.
  • Documentaion about:
    • Create a new Document
    • Schema option fields
    • Promise functions
yonirt
published 0.4.2 •

Changelog

Source

[0.4.2] - 2017-12-27

Fixed

  • Documentation about static methods, parameters 'connection' and 'tenant' were missing.
  • Order of Schema fields validate function.
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