Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Snyk] Upgrade mobx-state-tree from 1.0.1 to 5.1.0 #25

Open
wants to merge 1 commit into
base: canary
Choose a base branch
from

Conversation

snyk-bot
Copy link

@snyk-bot snyk-bot commented Jan 1, 2022

Snyk has created this PR to upgrade mobx-state-tree from 1.0.1 to 5.1.0.

ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.


Warning: This is a major version upgrade, and may be a breaking change.

  • The recommended version is 63 versions ahead of your current version.
  • The recommended version was released a month ago, on 2021-12-05.
Release notes
Package name: mobx-state-tree
  • 5.1.0 - 2021-12-05

    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

  • 5.0.5 - 2021-11-08

    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!

  • 5.0.4 - 2021-10-25

    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!

  • 5.0.3 - 2021-09-18

    This patch-level release has a few small updates:

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

  • 5.0.2 - 2021-06-18

    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!

  • 5.0.1 - 2021-01-31

    This release fixes #1653 (PR #1656). MobX 6.1.0 introduced a new issue and this addresses that. Thanks to @ urugator!

    There should be no breaking changes.

    This new approach, replacing makeObservable with manually created actions and computed views, also seems to have improved instance instantiation speed (MyModel.create()) by about 20% in @ jamonholmgren's benchmarks.

    Please report any new bugs and we will address as soon as possible. We wanted to get this fix into the hands of users ASAP as previously doing yarn add mobx mobx-state-tree means you would end up with brokenness.

  • 5.0.0 - 2021-01-08

    What's New

    Version 5.0.0 includes bugfixes that may in rare cases cause breaking changes if relying on undocumented behavior. Most apps should be able to upgrade without problems. Please file an issue if you upgrade and it causes any new bugs.

    Bugfixes

    isPlainObject() supports objects from another window (#1584 by @ ConneXNL)
    • Models from snapshot processors can now be added to maps (#1581 by @ kidroca)
    applyPatch can now replace root of store if path is empty (#1522 by @ epodgaetskiy)

  • 4.0.3 - 2021-01-08

    Bug Fixes

    • Add missing type definitions for onInvalidated in safeReference -- #1610 by @ getkey

  • 4.0.2 - 2020-11-17

    Version 4

    (This version is tagged 4.0.2, but is the first release in the v4 major version.)

    BREAKING CHANGE

    MobX 6 is now supported! This version of MobX replaces MobX 4 and MobX 5, and works in environments that support Proxy as well as those that don't. In the past, MobX 4 was for environments without Proxy, and MobX 5 was for those which supported Proxy. MobX 6 works in both.

    Note that MobX-State-Tree v4 will only work with MobX 6, so if you need to stay on MobX 4 or 5, you'll need to also stay on MST 3.

    New Maintainer

    @ jamonholmgren is now taking over as lead maintainer. Stay tuned for more announcements and an updated roadmap.

  • 4.0.1-rc.1 - 2020-10-17
  • 4.0.1-rc.0 - 2020-10-17
  • 4.0.0-rc.0 - 2020-10-17
  • 3.17.3 - 2020-11-17
    No content.
  • 3.17.2 - 2020-07-11
  • 3.17.1 - 2020-07-11
  • 3.16.0 - 2020-04-15
  • 3.15.0 - 2019-10-29
  • 3.14.1 - 2019-07-19
  • 3.14.0 - 2019-04-09
  • 3.13.0 - 2019-04-02
  • 3.12.2 - 2019-03-22
  • 3.12.1 - 2019-03-21
  • 3.12.0 - 2019-03-19
  • 3.11.0 - 2019-03-07
  • 3.10.2 - 2019-01-25
  • 3.10.1 - 2019-01-22
  • 3.10.0 - 2018-12-29
  • 3.9.0 - 2018-12-05
  • 3.8.1 - 2018-11-20
  • 3.8.0 - 2018-11-19
  • 3.7.1 - 2018-10-23
  • 3.7.0 - 2018-10-18
  • 3.6.0 - 2018-10-18
  • 3.5.0 - 2018-09-29
  • 3.4.0 - 2018-09-21
  • 3.3.0 - 2018-09-06
  • 3.2.4 - 2018-08-27
  • 3.2.3 - 2018-08-21
  • 3.2.2 - 2018-08-20
  • 3.2.1 - 2018-08-15
  • 3.2.0 - 2018-08-14
  • 3.1.1 - 2018-08-10
  • 3.1.0 - 2018-08-10
  • 3.0.3 - 2018-08-10
  • 3.0.2 - 2018-07-26
  • 3.0.0 - 2018-07-16
  • 3.0.0-beta.2 - 2018-07-12
  • 2.2.0 - 2018-06-18
  • 2.1.0 - 2018-06-11
  • 2.0.5 - 2018-05-09
  • 2.0.4 - 2018-04-17
  • 2.0.4-types.1 - 2018-04-27
  • 2.0.3 - 2018-04-05
  • 2.0.2 - 2018-03-23
  • 2.0.1 - 2018-03-15
  • 2.0.0 - 2018-03-15
  • 1.4.0 - 2018-03-14
  • 1.3.1 - 2017-12-19
  • 1.3.0 - 2017-12-18
  • 1.2.1 - 2017-11-28
  • 1.2.0 - 2017-11-28
  • 1.1.1 - 2017-11-27
  • 1.1.0 - 2017-10-27
  • 1.0.1 - 2017-10-04
from mobx-state-tree GitHub release notes
Commit messages
Package name: mobx-state-tree

Compare


Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.

For more information:

🧐 View latest project report

🛠 Adjust upgrade PR settings

🔕 Ignore this dependency or unsubscribe from future upgrade PRs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Set proper Cache-Control max-age for static assets How to run passport-local with next.js
1 participant