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

mobx-keystone

Package Overview
Dependencies
Maintainers
1
Versions
195
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.25.3

Diff

Changelog

Source

0.25.3

  • Fixed applySerializedActionAndTrackNewModelIds so it won't track $modelId changes for plain objects.
  • Added Path and PathElement types.
xaviergonz
published 0.25.2 •

Changelog

Source

0.25.2

  • Fixed an issue with back-references and onResolvedValueChange not working when references were being restored from a snapshot.
xaviergonz
published 0.25.1 •

Changelog

Source

0.25.1

  • Small optimization for applySerializedActionAndTrackNewModelIds so it doesn't traverse frozen values.
xaviergonz
published 0.25.0 •

Changelog

Source

0.25.0

  • Added applySerializedActionAndTrackNewModelIds and applySerializedActionAndSyncNewModelIds. Prefer those over deserializeActionCall plus applyAction when applying serialized (over the wire) actions in order to avoid $modelId desynchronization.
  • Added a default implementation of getRefId() which returns $modelId.
xaviergonz
published 0.25.0-alpha.1 •

xaviergonz
published 0.24.1 •

Changelog

Source

0.24.1

  • Fixed wrong patches being generated for array splices sometimes.
xaviergonz
published 0.24.0 •

Changelog

Source

0.24.0

  • [BREAKING CHANGE] Allow to pass $modelId to model creation data to override it rather than using a special symbol.
  • [BREAKING CHANGE] Removed overrideRootModelId to fromSnapshot and clone, but made $modelId in models editable instead.
xaviergonz
published 0.23.2 •

Changelog

Source

0.23.2

  • Added overrideRootModelId to fromSnapshot and clone.
xaviergonz
published 0.23.1 •

Changelog

Source

0.23.1

  • Added options parameter to clone.
xaviergonz
published 0.23.0 •

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.
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