mobx-state-tree

Full-featured reactive state management without the boilerplate

MIT License

Downloads
411.6K
Stars
6.9K
Committers
230

Bot releases are hidden (Show)

mobx-state-tree - v6.0.0-pre.2 Latest Release

Published by coolsoftwaretyler 7 months ago

Breaking Changes

Features

Fixes

  • Union types will now be fixed, but this also may break TypeScript for some users
  • Array operations produce condensed patches when we can, but this may break for some users who relied on the patch generation as it was

Tests

No new test-only contributions

Docs

Community/Developer changes

What's Changed

New Contributors

Full Changelog: https://github.com/mobxjs/mobx-state-tree/compare/v5.4.1...v6.0.0-pre.2

mobx-state-tree - v5.4.2-pre.1

Published by coolsoftwaretyler 8 months ago

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 [email protected], 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

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: https://github.com/mobxjs/mobx-state-tree/compare/v5.4.1...v5.4.2-pre.1

mobx-state-tree - v5.4.1

Published by coolsoftwaretyler 9 months ago

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: https://github.com/mobxjs/mobx-state-tree/compare/v5.4.0...v5.4.1

mobx-state-tree - v5.4.0

Published by coolsoftwaretyler 11 months ago

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: https://github.com/mobxjs/mobx-state-tree/compare/v5.3.0...v5.4.0

mobx-state-tree - v5.4.0-pre.1

Published by coolsoftwaretyler 11 months ago

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: https://github.com/mobxjs/mobx-state-tree/compare/v5.3.0...v5.4.0-pre.1

mobx-state-tree - v5.3.1-alpha.1

Published by coolsoftwaretyler 12 months ago

What's Changed

Full Changelog: https://github.com/mobxjs/mobx-state-tree/compare/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 https://github.com/mobxjs/mobx-state-tree/pull/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.

mobx-state-tree - v5.3.0

Published by coolsoftwaretyler 12 months ago

Breaking Changes

  • No breaking changes

Features

Fixes

Docs

Development/community

New Contributors

Full Changelog: https://github.com/mobxjs/mobx-state-tree/compare/5.2.0...v5.3.0

mobx-state-tree - v5.3.0-alpha.1

Published by coolsoftwaretyler about 1 year ago

This alpha release was built and shipped from the branch in https://github.com/mobxjs/mobx-state-tree/pull/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

Fixes

Docs

Development/community

New Contributors

Full Changelog: https://github.com/mobxjs/mobx-state-tree/compare/5.2.0...v5.3.0-alpha.1

mobx-state-tree - 5.2.0

Published by coolsoftwaretyler about 1 year ago

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: https://github.com/mobxjs/mobx-state-tree/compare/v5.1.8...5.2.0

mobx-state-tree - Version 5.2.0-alpha.2

Published by coolsoftwaretyler about 1 year ago

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: https://github.com/mobxjs/mobx-state-tree/compare/v5.1.8...v5.2.0-alpha.2

mobx-state-tree - Version 5.2.0-alpha.1

Published by coolsoftwaretyler about 1 year ago

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

Docs

Tests

Development/community only

New Contributors

Full Changelog: https://github.com/mobxjs/mobx-state-tree/compare/v5.1.8...v5.2.0-alpha.1

mobx-state-tree - Version 5.1.8

Published by jamonholmgren over 1 year ago

This is a bugfix release.

  • Fixes #1354, preProcessSnapshot running twice when you applySnapshot: #1519 by @mishk0
  • Fixes #621, when aborting a flow an error will now be thrown and the flow will finish: #1969 by @kaven276

Please report issues!

mobx-state-tree - Version 5.1.7

Published by jamonholmgren almost 2 years ago

This is a minor release removing the deprecation notice from preProcessSnapshot and postProcessSnapshot. Thanks to @jamonholmgren for https://github.com/mobxjs/mobx-state-tree/pull/1986.

Please report any issues!

mobx-state-tree - Version 5.1.6

Published by jamonholmgren about 2 years ago

This is a minor release fixing the types to allow readonly arrays. Thanks to @adamkovalsky for #1936. Fixes #1676.

Please report any issues!

mobx-state-tree - Version 5.1.2

Published by jamonholmgren over 2 years ago

What's Changed

Full Changelog: https://github.com/mobxjs/mobx-state-tree/compare/v5.1.1...v5.1.2

mobx-state-tree - v5.1.3

Published by jamonholmgren over 2 years ago

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

Full Changelog: https://github.com/mobxjs/mobx-state-tree/compare/v5.1.2...v5.1.3

mobx-state-tree - Version 5.1.4

Published by jamonholmgren over 2 years ago

What's Changed

New Contributors

mobx-state-tree - Version 5.1.5

Published by jamonholmgren over 2 years ago

What's Changed

mobx-state-tree - Version 5.1.1

Published by jamonholmgren over 2 years ago

Bugfixes

  • types: Switches from Promise to PromiseLike - #1850 by @kav
mobx-state-tree - Version 5.1.0

Published by jamonholmgren almost 3 years ago

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!

  • Docs: Include Instance import in docs (#1834 by @hgulersen and @elektronik2k5)
  • CI: Return coverage report (#1819 by @pustovalov)
  • Minor refactors (#1800, #1801, #1802 by @rluvaton)

mst-middlewares changes

  • Add includeHooks flag to UndoManager (#1796 by @andrezzoid)
  • Update mobx-state-tree peerDependency in mst-middlewares (#1824 by @Tucker-Eric, @FreeFrags, and @ruudandriessen)