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

Diff

Changelog

Source

0.41.0

  • When using date transforms, mutation made by methods (setTime, etc.) are reflected in the backed property (string / timestamp), so it is no longer required to treat dates as immutable objects.
  • Performance improvements for implicit property transform collections.
xaviergonz
published 0.40.0 •

Changelog

Source

0.40.0

  • [BREAKING CHANGE - types] Some type helpers have been renamed: ModelData -> ModelPropsData / ModelInstanceData, ModelCreationData -> ModelPropsCreationData / ModelInstanceCreationData.
  • New feature: "Implicit property transforms", which are sometimes preferred over the old decorator based property transforms, collection wrappers (arrayAsSet, arrayAsMap, objectAsMap) and collection models (ArraySet, ObjectMap). Check the "Maps, Sets, Dates" section in the docs for more info.
  • Added types.tuple.
  • Property transforms decorators can now also be used standalone.
xaviergonz
published 0.39.0 •

Changelog

Source

0.39.0

  • Added decoratedModel so the library can be used without decorators.
xaviergonz
published 0.38.0 •

Changelog

Source

0.38.0

  • Fixes for undoMiddleware, where it wouldn't properly record changes outside a subaction after a subaction is performed.
  • applyPatches now supports arrays of arrays of patches.
  • Improved reconciliation - now applyPatches and applySnapshot are more likely to reuse instantiated model objects whenever possible rather than recreating them anew (as long as their model types and ids match).
  • Added isSandboxedNode and getNodeSandboxManager to be able to tell when a node is sandboxed / which is its sandbox manager (if any).
xaviergonz
published 0.37.0 •

Changelog

Source

0.37.0

  • Deprecated abstractModelClass, which should not be needed anymore.
  • Added modelClass to better support base models with generics.
  • A few type optimizations.
  • Fixed undo middleware regression (not properly undoing) that happened in v0.33.0.
xaviergonz
published 0.36.1 •

Changelog

Source

0.36.1

  • Made applySnapshot not check by model instance in reconciliation for better compatibility with hot-reloading.
  • Fixed ObjectMap.forEach and ArraySet.forEach typings.
xaviergonz
published 0.36.0 •

Changelog

Source

0.36.0

  • Added new way / guide to use the factory pattern when declaration option is set to true in tsconfig.json.
xaviergonz
published 0.35.0 •

Changelog

Source

0.35.0

  • [BREAKING CHANGE] onAttachedToRootStore and its disposer will be called after all actions are finished.
  • Improvements to ensure onAttachedToRootStore and its disposers are called in a more reliable manner.
  • getRootPath, getRoot, getRootStore are now internally computed, so they should be faster when being observed.
  • Warnings about duplicate model names will now only show once per model.
xaviergonz
published 0.34.0 •

Changelog

Source

0.34.0

  • Optimized the patches generated for array operations.
  • Added support for obtaining multiple sandbox nodes at the same time.
  • Added $modelType as static property to model classes, as well as a better toString() to model classes and instances for logging purposes.
  • Static properties now will be preserved in classes that use the model decorator.
xaviergonz
published 0.33.0 •

Changelog

Source

0.33.0

  • Fixed an issue with wrong patch order being generated for actions triggered inside onAttachedToRootStore.
  • Added support to applyPatches for applying patches in reverse order.
  • Fixed applying inverse patches in reverse order.
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