fix(deps): update dependency mobx to v7 - #184
Open
renovate[bot] wants to merge 1 commit into
Open
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #184 +/- ##
=======================================
Coverage 85.29% 85.29%
=======================================
Files 140 140
Lines 3168 3168
Branches 593 593
=======================================
Hits 2702 2702
Misses 335 335
Partials 131 131 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
renovate
Bot
force-pushed
the
renovate/mobx-7.x
branch
3 times, most recently
from
August 14, 2026 21:01
91c395b to
29fb1a3
Compare
renovate
Bot
force-pushed
the
renovate/mobx-7.x
branch
from
August 19, 2026 19:32
29fb1a3 to
c42c6d2
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^6.16.1→^7.0.0Release Notes
mobxjs/mobx (mobx)
v7.0.3Compare Source
Patch Changes
6f002b8e543ca39d3ee23681e28848d7f1724fae#4696 Thanks @gesposito! - perf: add anodeexport condition that routes Node and Bun to the existingdist/index.jsentry, which picks the prebaked development or production CJS build once at require time.importing mobx in Node no longer executes the env-agnosticdist/mobx.mjswith per-callNODE_ENVchecks, and mixingimportandrequirein one Node app now yields a single mobx instance.v7.0.2Compare Source
Patch Changes
ec1b708026c1578e1c1f6c7bd90be18b26f7ce85#4695 Thanks @gesposito! - perf: evaluateNODE_ENVonce at module scope in the env-agnostic esm bundles (dist/<pkg>.esm.jsanddist/<pkg>.mjs) instead of at every__DEV__call site.process.envis an exotic object in Node, so each check performed a real environment lookup on hot paths; consumers that execute these files as-is (Node ESM, vitest, SSR) see roughly 10x faster observable writes in dev mode. All env-set artifacts and bundler output are unchanged.6d8b5fa6c7596d7e5b16e55e3121d81c0c5bb21a#4672 Thanks @chatman-media! - FixObservableSet.replaceemitting spuriousdelete/addevents (and triggering reactions) for values that are unchanged. It now only firesdeletefor removed values andaddfor newly added ones, mirroringObservableMap.replace.Note: because
replaceno longer clears and re-adds every value, the iteration order afterreplacechanges in a (subtle but observable) way. Surviving values now keep their original relative position and newly added values are appended, instead of the whole set being reordered to match the argument. For example,set(["a", "b", "c"]).replace(["d", "b", "a"])previously iterated asd, b, a, and now iterates asa, b, d. This is arguably the more correct behavior (unchanged values are genuinely unchanged), but if you relied onreplacereordering the set to match its argument, you may need to adjust.v7.0.1Compare Source
Patch Changes
9444c624b957b489875e1c6b45deb290034ce4e9#4694 Thanks @mrpmohiburrahman! - fix:onBecomeObservedis now called for the dependencies of a computed that becomes observed while serving a cached value. Previously, observation only cascaded when the newly observed computed also happened to recompute, so an observable with a live observer chain up to a running reaction could still report itself as unobserved and never fire its hook.53bb83fdf455a4e606bb721ea10040ded7c57796#4683 Thanks @gesposito! - perf: fast-path primitives indeepEnhancer. Writing a primitive into a deep observable no longer runs the observable/array/plain-object/Map/Set/function type checks; primitives can never be made observable, so they are returned immediately. Creating an observable array of primitives is ~4x faster, and observable Set/Map writes are ~20-25% faster in the perf suite.030498d6b2bfe4cc27340fed8c706177cb3b28e1#4684 Thanks @a-y-ibrahim! - Fix a stack overflow ("Maximum call stack size exceeded") that could occur when anonBecomeUnobservedhandler disposes aReaction. Disposing aReactionre-entersendBatch(), which used to recurse into the samependingUnobservationsdrain loop instead of letting the already-running outer loop pick up the newly queued items, causing unbounded stack depth for long enough chains.a9086076b9ead1a9c933215bffaa9b57d44f6829#4681 Thanks @spokodev! - Fix ObservableSet union, intersection and symmetricDifference to return results in receiver order, matching native Set, when the argument is a plain Set.c65a4e14cf48b42cb792dc4c64edbcf56234b32d#4682 Thanks @gesposito! - perf: lazily allocate the internalobservers_Set. Atoms and computed values no longer allocate an emptySetupfront; it is created on first observer instead. Most atoms in large stores are never observed, so this saves roughly 160 bytes per unobserved atom (e.g. ~35% lower heap usage when hydrating 50k instances with 10 observable fields each).v7.0.0Compare Source
Major Changes
1926c69f53168619d688f348aa587e8f3ae579ae#4671 Thanks @kubk! - Release MobX 7, mobx-react-lite 5, and mobx-react 10.Bundle sizes are down: ESM prod 17.02 KiB gzip -> 13.96 KiB gzip; a minimal tree-shaken example is 10.32 KiB gzip now.
It removes long-deprecated compatibility paths and keeps the React bindings split between
mobx-react-litefor function components andmobx-reactfor class-component support.MobX 7
mobx-react-lite 5 and mobx-react 10
Patch Changes
979d267d569734dc3cb969ed1880ed68bb79f1b5#4677 Thanks @kubk! - Shorten minified error URL to reduce production bundle size.Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.