Skip to content

Releases: mobxjs/mobx-state-tree

v5.4.2-pre.1

01 Mar 15:38
d08be68
Compare
Choose a tag to compare
v5.4.2-pre.1 Pre-release
Pre-release

Version 5.4.2-pre.1 is an important build for everyone to test out, because it includes some TypeScript changes that could be seen as either bug fixes or breaking changes.

RFC - should we consider these changes bug fixes (bump to 5.4.2) or breaking changes (bump to 6.0.0)

import { t } from "mobx-state-tree";

/**
 * In MobX-State-Tree 5.4.1, this is typed as:
 * ISimpleType<"Red" | "Orange" | "Green">
 */
const namedEnum = t.enumeration("Color", ["Red", "Orange", "Green"]);

/**
 * In MobX-State-Tree 5.4.1, this is typed as:
 * ISimpleType<string>
 */
const anonymousEnum = t.enumeration(["Red", "Orange", "Green"]);

/**
 * If you use mobx-state-tree@5.4.2-pre.1, both of these will be typed as:
 * ISimpleType<"Red" | "Orange" | "Green">
 */

CodeSandbox for version 5.4.1

CodeSandbox for version 5.4.2-pre.1

It's reasonable to call this change a "bug fix", but for projects that relied on the prior behavior, a patch version might "break" their TypeScript types, if they've typed around our existing bug.

The change comes from #2151, which also "fixes" #1525 and #1664 again, by changing types.

We have also removed NonEmptyObject. If a project had relied on that for any kind of type casting, I think that could also be seen as a breaking change.

And of course, we've moved to TypeScript 5.3.3, which shouldn't have a direct impact downstream, but we have previously only called out TS 3.0 or later. This is not strictly a breaking change, and it's technically in line with "TypeScript 3.0 or later", but it could be seen as disruptive to move so far ahead in TypeScript without ample warning in our version.

Breaking Changes

  • Improved typing for union types by @thegedge in #2151 (maybe, see introduction)
  • Eliminate NonEmptyObject by @thegedge in #2152 (maybe, see introduction)
  • Bump typescript from 3.9.10 to 5.3.3 by @thegedge in #2146

Features

  • No new features

Fixes

  • Some might consider #2146, #2151, and #2152 to be bug fixes, rather than breaking changes.

Tests

  • No test-only additions.

Docs

Community/Developer changes

New Contributors

Full Changelog: v5.4.1...v5.4.2-pre.1

v5.4.1

06 Feb 01:47
4dba8ec
Compare
Choose a tag to compare

Version 5.4.1 fixes a small import bug, and updates tests and documentation. Thanks to everyone who contributed!

Breaking Changes

No breaking changes

Features

No new features

Fixes

Tests

Docs

New Contributors

Full Changelog: v5.4.0...v5.4.1

v5.4.0

27 Nov 22:01
Compare
Choose a tag to compare

Version 5.4.0 brings performance improvements and improved developer experience around importing types as t, and passing nodes to postProcess snapshot operations.

Breaking Changes

  • No breaking changes

Features

Fixes

Tests

Docs

New Contributors

Full Changelog: v5.3.0...v5.4.0

v5.4.0-pre.1

17 Nov 02:00
417dcc0
Compare
Choose a tag to compare
v5.4.0-pre.1 Pre-release
Pre-release

This is a pre-release version that introduces some new quality-of-life improvements to existing APIs, and possible performance improvements. Please give it a try and let us know what you think!

Breaking Changes

  • No breaking changes

Features

Fixes

Docs

New Contributors

Full Changelog: v5.3.0...v5.4.0-pre.1

v5.3.1-alpha.1

07 Nov 01:32
a411fc1
Compare
Choose a tag to compare
v5.3.1-alpha.1 Pre-release
Pre-release

What's Changed

Full Changelog: v5.3.0...v5.3.1-alpha.1

We cut this release with a small change set because we wanted to get real-world testing on the changes in #2113. If you want to help MST get faster out of the box, please try v5.3.1-alpha.1 and report any improvements in speed, regression in speed, or regressions in functionality you experience.

v5.3.0

24 Oct 01:01
bef5159
Compare
Choose a tag to compare

Breaking Changes

  • No breaking changes

Features

  • Add number types to map model methods by @a-hassanzadeh-h in #2079

Fixes

Docs

Development/community

New Contributors

Full Changelog: 5.2.0...v5.3.0

v5.3.0-alpha.1

10 Oct 03:40
Compare
Choose a tag to compare
v5.3.0-alpha.1 Pre-release
Pre-release

This alpha release was built and shipped from the branch in #2099. We did that to make sure none of the configuration changes broke our deployment processes, but also shipped some changes.

Once we get a few weeks of usage data and verify things are good, we can ship a full 5.3.0. I'm feeling optimistic about doing that shortly.

Breaking Changes

  • No breaking changes

Features

  • Add number types to map model methods by @a-hassanzadeh-h in #2079

Fixes

Docs

Development/community

New Contributors

Full Changelog: 5.2.0...v5.3.0-alpha.1

5.2.0

19 Sep 16:07
6ef7757
Compare
Choose a tag to compare

Stable release for 5.2.0. We ran two alpha release candidates before shipping this:

https://github.com/mobxjs/mobx-state-tree/releases/tag/v5.2.0-alpha.1

https://github.com/mobxjs/mobx-state-tree/releases/tag/v5.2.0-alpha.2

Breaking changes

  • No breaking changes

Features

Fixes

Docs

Tests

Development/community

New Contributors

Full Changelog: v5.1.8...5.2.0

Version 5.2.0-alpha.2

28 Aug 02:12
9f30ab8
Compare
Choose a tag to compare
Version 5.2.0-alpha.2 Pre-release
Pre-release

A follow up to https://github.com/mobxjs/mobx-state-tree/releases/tag/v5.2.0-alpha.1 and second release candidate for 5.2.0.

Breaking changes

  • No breaking changes

Features

Fixes

Docs

Tests

Development/community

New Contributors

Full Changelog: v5.1.8...v5.2.0-alpha.2

Version 5.2.0-alpha.1

10 Aug 04:21
Compare
Choose a tag to compare
Version 5.2.0-alpha.1 Pre-release
Pre-release

Hey folks!

This is my first ever release as a MobX-State-Tree maintainer, so I'm planning on releasing alpha first, just to make sure things are looking good. Here's what changed!

Breaking changes

  • No breaking changes

Features

Fixes

  • fix: throw error when creating a model with faulty name and valid pro… by @nithinssabu in #2048
  • fix splitCache, extra nodes were being removed by @scytacki in #2054
  • call lifecycle hooks after children are created by @scytacki in #1952. Note: this should be only a fix, but it does technically alter some order-of-operations. We don't believe this to be a semantically breaking change, but we would love early feedback on the alpha build if folks have any problems with it.
  • Add lazy type for lazy importing of models by @clgeoio in #1722
  • Add two new primitives for MST by @chakrihacker in #2052

Docs

Tests

Development/community only

New Contributors

Full Changelog: v5.1.8...v5.2.0-alpha.1