New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

mobx-keystone

Package Overview
Dependencies
Maintainers
0
Versions
196
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mobx-keystone - npm Package Versions

1
20

0.23.0

Diff

Changelog

Source

0.23.0

  • [BREAKING CHANGE] Added a $modelId extra property to models and their snapshots in order to be able to properly validate targets of serialized actions in scenarions with concurrent clients. Also allows the automatic optimization of the serialized version of models in action parameters by substituting them to just their paths + path of ids whenever possible.
  • [BREAKING CHANGE] Default values for properties will now also apply when the initial data is null.
  • serializeActionCall, serializeActionCallArgument, deserializeActionCall and deserializeActionCallArgument now can take a second parameter with the root node of the model where actions are going to be performed to optimize the serialization of arguments that are already in the store.
  • Added registerActionCallArgumentSerializer for serialization of custom action argument types.
  • ActionContext now includes targetPathIds.
  • Added pathObjects to getRootPath.
  • Improved a bit the typing for fromSnapshot model methods.
  • Added property transforms via propTransform.
  • Improved action argument serialization so it supports dates, maps, sets, arrays of models, etc.
  • arrayAsMap now supports arbitrary key types.
xaviergonz
published 0.22.1 •

xaviergonz
published 0.22.0 •

Changelog

Source

0.22.0

  • Added tProp syntactic sugar for optional primitives with a default value.
  • Added String, Number, Boolean, null, undefined as aliases for primitive types.
  • Added findParentPath.
xaviergonz
published 0.21.0 •

Changelog

Source

0.21.0

  • [BREAKING CHANGE] Paths to model properties will no longer report interim data objects ($). This means that properties are now direct children of model objects, which should be cleaner and more understandable.
xaviergonz
published 0.20.2 •

Changelog

Source

0.20.2

  • Fixed a possible memory leak with refs.
xaviergonz
published 0.20.1 •

Changelog

Source

0.20.1

  • Optimizations for rootRef resolution when the node cannot be resolved.
xaviergonz
published 0.20.0 •

Changelog

Source

0.20.0

  • Added isRefOfType(ref, refType) to check if a ref is of a given ref type.
  • Added getRefsResolvingTo(node, refType?) to be able to get back references that are currently pointing to a node.
xaviergonz
published 0.19.1 •

xaviergonz
published 0.19.0 •

Changelog

Source

0.19.0

  • Added setDefaultComputed and getProviderNode to contexts.
  • [BREAKING CHANGE] getChildrenObjects will now never report interim data objects ($).
  • Optimizations to getChildrenObjects and onChildAttachedTo.
  • Added rootRefs.
xaviergonz
published 0.18.0 •

Changelog

Source

0.18.0

  • Added contexts to share information between parents and children and to make isolated unit testing easier.
  • Models can now optionally offer a getRefId() method that can be automatically used by custom references to get their ids, thus making getId for custom references optional now.
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