Socket
Socket
Sign inDemoInstall

@snapdm/preconditions

Package Overview
Dependencies
0
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install
23Next

0.11.0

Diff

jadengis
published 0.10.3 •

Changelog

Source

0.10.3

Fixes

  • Fixes clone in the case where an empty array is being merged with a non-empty array. Before the arrays were merged. Now the empty array replacing the existing array.
jadengis
published 0.10.2 •

Changelog

Source

0.10.2

Fixes

  • change index.cjs.js to index.cjs to fix the module issue.
jadengis
published 0.10.1 •

Changelog

Source

0.10.1

Fixes

  • Some more ergonomic types around ModelParent.
jadengis
published 0.10.0 •

Changelog

Source

0.10.0

BREAKING CHANGES

  • Package format has changed to include both an ESM bundle and a CJS bundle.
  • Packages are now set to "type": "module".
jadengis
published 0.9.0 •

Changelog

Source

0.9.0

BREAKING CHANGES

  • Initializer functions for extension models now behave differently. They do not recieve the extended models initialization data as an argument.
  • __copy renamed to clone

Features

  • toRef now allows the inclusion of a list of additional properties to make nesting objects easier.

Fixes

  • Fixes the typing of __copy and snapshot by rewriting how the inheritance hierarchy works for extension models
jadengis
published 0.8.0 •

Changelog

Source

0.8.0

BREAKING CHANGES

  • Changes the Model extension API to accept an ExtendedModelOptions object instead of 2 parameters.

Fixes

  • Fix a type issue with Model extension.
jadengis
published 0.7.2 •

jadengis
published 0.7.1 •

Changelog

Source

0.7.1

  • ModelClass supports abstract types.
jadengis
published 0.7.0 •

Changelog

Source

0.7.0

BREAKING CHANGES

  • The second argument of an InitializeFunctionWithBase is a lazy function so that sub models that don't need the base's initialization logic don't need to pay the cost for it.
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