Skip to content

Releases: mobxjs/mobx-state-tree

Version 5.1.5

09 May 17:39
Compare
Choose a tag to compare

What's Changed

  • Fix: Don't override reconciliation type for unions in snapshotProcessors by @Tucker-Eric in #1887 (This fixes an infinite recursion when using a union wrapped in a snapshotProcessor.)

Version 5.1.4

09 May 17:41
Compare
Choose a tag to compare

What's Changed

  • fix: Makes MST compatible with TypeScript 3.9 non-enumerable properties by @mhevery in #1900

New Contributors

v5.1.3

09 May 17:43
Compare
Choose a tag to compare

This is just a version bump due to CI / release snafus. You can safely ignore.

Full Changelog: v5.1.2...v5.1.3

Version 5.1.2

09 May 17:44
Compare
Choose a tag to compare

What's Changed

  • fix(types): More tightly scoping PromiseLike change by @kav in #1871

Full Changelog: v5.1.1...v5.1.2

Version 5.1.1

04 Feb 20:49
Compare
Choose a tag to compare

Bugfixes

  • types: Switches from Promise to PromiseLike - #1850 by @kav

Version 5.1.0

05 Dec 00:19
Compare
Choose a tag to compare

mobx-state-tree changes

Note from the maintainer: we are releasing a "feature-level" 5.x release due to mst-middlewares and mobx-state-tree versions being synchronized. However, mobx-state-tree does not have any significant changes in this release. We plan to decouple mst-middlewares and mobx-state-tree in the future to avoid this issue. Sorry about any issues this causes!

mst-middlewares changes

Version 5.0.5

08 Nov 21:45
Compare
Choose a tag to compare

This patch-level release fixes an issue with snapshots being preprocessed twice in some instances. Thanks to @adamkovalsky for the PR (#1822)!

  • Fixes a regression introduced in #1792 where a snapshot preprocessor gets called on an already preprocessed snapshot, resulting in potential errors.

If there are any problems with this release, please file an issue or leave comments in the attached Discussion! Thanks to everyone who contributed!

Version 5.0.4

25 Oct 16:54
Compare
Choose a tag to compare

This patch-level release fixes three issues with node reconciliation. Thanks to @adamkovalsky for the PR!

  • Adds a getReconcilationType method to BaseNode, which returns the type which should be used for reconcilating the node. This is normally the node's type, but in the case of snapshotProcessor it is overridden to be the snapshotProcessor type. This is necessary so that the union type reconcile can correctly reconcile the "current" node first if it's possible. This fixes #1791.
  • Fixes the snapshotProcessor type's isValidSnapshot and is methods to return a validation error and not to throw if the specified preprocessor fails, which can happen when checking if an arbitrary snapshot is valid input (e.g. when determining a union type). We can't expect preprocessors to accept any arbitrary input, so we must assume they can throw when provided with invalid snapshots. This also fixes #1777.
  • Fixes the array's areSame utility to first check that the provided value is a valid snapshot before calling isMatchingSnapshotId, to avoid the preprocessor throwing an error if the provided snapshot is invalid.

If there are any problems with this release, please file an issue or leave comments in the attached Discussion! Thanks to everyone who contributed!

Version 5.0.3

18 Sep 23:26
Compare
Choose a tag to compare

This patch-level release has a few small updates:

  • Removed a couple MobX TypeScript properties that have already been removed in MobX in #1666 by @Strandinator
  • Fixes array reconciliation in snapshotProcessor in #1784 by @adamkovalsky, fixing #1776
  • Updates devDependencies across the project in #1786 by @jamonholmgren
  • Some documentation updates as well

If there are any problems with this release, please file an issue or leave comments in the attached Discussion! Thanks to everyone who contributed!

Version 5.0.2

18 Jun 17:20
Compare
Choose a tag to compare

This patch-level release fixes #1702, "MST should work with useProxies: ifAvailable option from mobx." It should be fully backwards-compatible with previous 5.x releases.

MobX 6.0 was released recently and ifAvailable was broken in MST. This PR fixes that.

Thanks to @BATCOH for reporting the issue and the PR fixing it!