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

mobx-state-tree

Package Overview
Dependencies
Maintainers
3
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

3.12.1

Diff

Changelog

Source

3.12.1

  • Fixed a regression with getEnv sometimes not returning the proper environment.
  • Fixed an issue where map.put would not work with snapshots of types with an optional id #1131 through #1226 by @xaviergonz.
xaviergonz
published 3.12.0 •

Changelog

Source

3.12.0

  • Added TypeOfValue<typeof variable> to extract the type of a complex (non primitive) variable in Typescript.
  • Fixed some Typescript issues with optional arrays #1218 through #1229 by @xaviergonz
  • Added getNodeId to get the internal unique node id for an instance #1168 through #1225 by @xaviergonz
  • Fixed nodes being pop/shift/splice from an array not getting properly destroyed through #1205 by @xaviergonz. Not that this means that in order to access the returned dead nodes data without getting a liveliness error/warning then the returned dead nodes have to be either cloned (clone) or their snapshots (getSnapshot) have to be used first.
xaviergonz
published 3.11.0 •

Changelog

Source

3.11.0

  • Added an optional third argument to types.optional that allows to set alternative optional values other than just undefined through #1192 by @xaviergonz
  • Fixed detaching arrays/maps killing their children #1173 through #1175 by @xaviergonz
  • Added types.snapshotProcessor #947 through #1165 by @xaviergonz. This feature will eventually deprecate postProcessSnapshot and preProcessSnapshot from models in a next major version.
  • Performance improvement for event handlers so they consume less RAM through #1160 by @xaviergonz
  • Make liveliness errors give more info to trace their cause #1142 through #1147 by @xaviergonz
xaviergonz
published 3.10.2 •

Changelog

Source

3.10.2

  • Fixed a regression regarding json paths not being correctly rooted to the base #1128 through #1146 by @xaviergonz
xaviergonz
published 3.10.1 •

Changelog

Source

3.10.1

  • Fixed mobx 5.9.0 compatibility #1143 through #1144 by @xaviergonz
  • Made liveliness checking in warn mode log an error so the stack trace can be seen #1142 through #1145 by @xaviergonz
  • Fixed JSON path escaping, where '/' and '~' were incorrectly being encoded/decoded as '~0' and '~1' rather than '~1' and '~0'. Also fixed empty keys not being handled correctly by JSON patches #1128. Fixed through #1129 by @xaviergonz
xaviergonz
published 3.10.0 •

Changelog

Source

3.10.0

  • Fix for safeReference doesn't work when multiple nodes reference a single reference that gets deleted #1115 through #1121 by @xaviergonz
  • Little fix for castFlowReturn not typecasting the promise to its actual result.
  • Made isAlive(node) reactive, so it can be reacted upon through #1100 by @xaviergonz
  • Fix for unaccessed nodes not unregistering their identifiers #1112 through #1113 by @xaviergonz
  • Added clear() to UndoManager middleware through #1118 by @chemitaxis
xaviergonz
published 3.9.0 •

Changelog

Source

3.9.0

  • TypeScript 3.0 or later is now required when using TypeScript. This brings some improvements:
    • flow arguments and return types are now correctly inferred automatically. One exception is when the last return of a flow is a Promise. In these cases castFlowReturn(somePromise) needs to be used so the return type can be inferred properly.
    • create method is now smart enough to warn when no snapshot argument is provided on types that have some mandatory properties.
  • Added setLivelinessChecking and getLivelinessChecking, the old setLivelynessChecking will eventually be deprecated.
  • Added onInvalidated option for references and types.safeReference (see readme) through #1091 by @xaviergonz
  • Added tryReference and isValidReference to use references that might be no longer pointing to any nodes in a safe way through #1087 by @xaviergonz
  • Readded IComplexType for backwards compatibility.
xaviergonz
published 3.8.1 •

Changelog

Source

3.8.1

  • Fixed non-initialized nodes not being destroyed #1080 through #1082 by @k-g-a
  • Fixed a memory leak in createActionTrackingMiddleware when using flow #1083 through #1084 by @robinfehr
xaviergonz
published 3.8.0 •

Changelog

Source

3.8.0

  • Added castToSnapshot/castToReferenceSnapshot methods for TypeScript and fixed some TypeScript typings not being properly detected when using SnapshotIn types through #1074 by @xaviergonz
  • Fixed redux middleware throwing an error when a flow is called before it is connected #1065 through #1079 by @mkramb and @xaviergonz
  • Made addDisposer return the passed disposer through #1059 by @xaviergonz
xaviergonz
published 3.7.1 •

Changelog

Source

3.7.1

  • Fixed references to nodes being broken after the node was replaced #1052, plus speed up of reference resolving when using IDs through #1053 by @xaviergonz
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