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

mobx-state-tree

Package Overview
Dependencies
Maintainers
5
Versions
129
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mobx-state-tree - npm Package Versions

1
13

2.0.4

Diff

Changelog

Source

2.0.4

  • Removed accidental dependency on mobx
mweststrate
published 2.0.3 •

Changelog

Source

2.0.3

  • Fixed issue where middleware that changed arguments wasn't properly picked up. See #732 by @robinfehr. Fixes #731
  • Fixed reassigning to a custom type from a different type in a union silently failing. See #737 by @univerio. Fixes #736
  • Fixed typings issue with TypeScript 2.8. See #740 by @bnaya.
  • Fixed undo manager apply grouped patches in the wrong order. See #755 by @robinfehr. Fixes #754
mweststrate
published 2.0.2 •

Changelog

Source

2.0.2

  • Fixed bidirectional references from nodes to nodes, see #728 by @robinfehr
  • joinJsonPath and splitJsonPath are now exposed as utilities, see #724 by @jjrv
  • Several documentation and example fixes
mweststrate
published 2.0.1 •

Changelog

Source

2.0.1

  • Fixed typings for maps of maps #704 by @xaviergonz
  • Fixed dependency issue in mst-middlewares package
mweststrate
published 2.0.0 •

Changelog

Source

2.0.0

Breaking changes

  • MobX-state-tree now requires MobX 4.0 or higher
  • Identifiers are now internally always normalized to strings. This also means that adding an object with an number identifier to an observable map, it should still be requested back as string. In general, we recommend to always use string based identifiers to avoid confusion.
  • Due to the changes in Mobx 4.0, types.map(subType).keys() will return Iterator instead of ObservableArrays. In order to address this issue, wrap the keys with Array.from().
mweststrate
published 1.4.0 •

Changelog

Source

1.4.0

Features

  • It is now possible to create custom primitive(like) types! Implements #673 through #689
  • getIdentifier is now exposed as function, to get the identifier of a model instance (if any). Fixes #674 through #678 by TimHollies
  • Writing middleware has slightly changed, to make it less error prone and more explicit whether a middleware chain should be aborted. For details, see #675 by Robin Fehr
  • It is now possible to configure whether attached middleware should be triggered for the built-in hooks / operations. #653 by Robin Fehr
  • We exposed an api to perform reflection on model instances. #649 by Robin Fehr

Fixes

  • Fixed a bug where items in maps where not properly reconciled when the put operation was used. Fixed #683 and #672 through #693
  • Fixed issue where trying to resolve a path would throw exceptions. Fixed #686 through #692
  • In non production builds actions and views on models can now be replaced, to simplify mocking. Fixes #646 through #690
  • Fixed bug where tryResolve could leave a node in a corrupt state. #668 by dnakov
  • Fixed typings for TypeScript 2.7, through #667 by Javier Gonzalez
  • Several improvements to error messages
mweststrate
published 1.3.1 •

Changelog

Source

1.3.1

  • Fixed bug where flows didn't properly batch their next ticks properly in actions, significantly slowing processes down. Fixes #563
mweststrate
published 1.3.0 •

Changelog

Source

1.3.0

  • Significantly improved the undo/redo manager. The undo manager now supports groups. See #504 by @robinfehr! See the updated docs for more details.
  • Significantly improved performance, improvements of 20% could be expected, but changes of course per case. See #553
  • Implemented actionLogger middleware, which logs most events for async actions
  • Slightly changed the order in which life cycle hooks are fired. afterAttach will no fire first on the parent, then on the children. So, unlike afterCreate, in afterAttach one can assume in `afterAttach that the parent has completely initialized.
mweststrate
published 1.2.1 •

Changelog

Source

1.2.1

  • 1.2.0 didn't seem to be released correctly...
mweststrate
published 1.2.0 •

Changelog

Source

1.2.0

  • Introduced customizable reference types. See the reference and identifiers section.
  • Introduced model.volatile to more easily declare and reuse volatile instance state. Volatile state can contain arbitrary data, is shallowly observable and, like props, cannot be modified without actions. See model.volatile for more details.
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