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:
^5.0.0
->^9.0.0
Release Notes
mobxjs/mobx (mobx-react)
v9.1.0
Compare Source
Minor Changes
c9260974
#3790 Thanks @mweststrate! - Added support for modern 2022.3 Decorators. #3790v9.0.2
Compare Source
Patch Changes
5063c38e
#3776 Thanks @wbercx! - Fixed premature disposal of class component observers.v9.0.1
Compare Source
v9.0.0
Major Changes
473cb3f5
#3718 Thanks @mweststrate! - - Fixedobserver
inStrictMode
#3671props
/state
/context
are no longer observable. Attempt to use these in any derivation other than component'srender
throws and error. For details see https://github.com/mobxjs/mobx/blob/main/packages/mobx-react/README.md#note-on-using-props-and-state-in-derivationsobserver
classes is now explicitly forbiddenPatch Changes
58bb052c
,473cb3f5
]:v7.6.0
Compare Source
Minor Changes
7aab223e
#3565 Thanks @kubk! - Make mobx-react compatible with TS 4.8+v7.5.3
Compare Source
Patch Changes
78d1aa23
#3458 Thanks @egilll! - A slight revamp of the README, wording, and clearer linksv7.5.2
Compare Source
Patch Changes
a23aaf3f
#3452 Thanks @urugator! - fix #3448 regression: static rendering + class componentv7.5.1
Compare Source
Patch Changes
bbcb12dc
#3434 Thanks @urugator! - Support re-mounting of class components. Fixes #3395: observer not working with React@18 <StrictMode>.v7.5.0
Compare Source
Minor Changes
1470b8e4
#3404 Thanks @pixelkritzel! -this.context
is observable if static contextType is setv7.4.0
Compare Source
Minor Changes
4c5e75cd
#3382 Thanks @iChenLei! - replace the deprecated react type definition with recommended type definitionbd4b70d8
#3387 Thanks @mweststrate! - Added experimental / poor man's support for React 18. Fixes #3363, #2526. Supersedes #3005useMutableSource
will trigger warnings in React 18, which is correct and those shouldn't be used anymore.act
is used in unit tests around every programmatic mutation. Without it, changes won't propagate!useSyncExternalStore
and capturing the current values together with the dependency tree of every component instance. However that isn't included in this pull request 1) it would be a breaking change, whereas the current change is still compatible with React 16 and 17. 2) I want to collect use cases where the tearing leads to problems first to build a better problem understanding. If you run into the problem, please submit an issue describing your scenario, and a PR with a unit tests demonstrating the problem in simplified form. For further discussion see #2526, #3005Patch Changes
4c5e75cd
,bd4b70d8
]:v7.3.0
Compare Source
Minor Changes
59b42c28
#3282 Thanks @urugator! -observer(forwardRef(fn))
no longer generates extra<Observer>
element and appliesmemo
correctlyPatch Changes
59b42c28
]:v7.2.1
Compare Source
Patch Changes
8a1ff856
#3103 Thanks @urugator! - Missingrender
on component prototype throws.v7.2.0
Compare Source
Minor Changes
87b3e1de
#2930 Thanks @vkrol! - inject shouldn't change original displayName of component that uses forwardRefv7.1.0
Compare Source
Patch Changes
28f8a11d
]:v7.0.6
Compare Source
Patch Changes
592e6e99
#2743 Thanks @vkrol! - RemovesideEffects
section inmobx-react-lite
package.json
Updated dependencies [
6b304232
,83b84fd3
,65c7b73b
,989390d4
,dea1cf18
,592e6e99
]:v7.0.5
Compare Source
Patch Changes
2f3dcb27
Thanks @FredyC! - Fix names of UMD exports #2517Updated dependencies [
2f3dcb27
,79a09f49
]:v7.0.4
Compare Source
Patch Changes
8bbbc7c0
Thanks @FredyC! - Fix names of dist files (for real now). Third time is the charm 😅Updated dependencies [
8bbbc7c0
]:v7.0.3
Compare Source
Patch Changes
b7aa9d35
Thanks @FredyC! - Fixed wrong package name for dist filesUpdated dependencies [
b7aa9d35
]:v7.0.2
Compare Source
Patch Changes
5239db80
Thanks @FredyC! - Fixed release with missing dist filesUpdated dependencies [
5239db80
]:v7.0.1
Compare Source
Patch Changes
81a2f865
Thanks @FredyC! - ESM bundles without NODE_ENV present are available in dist folder. This useful for consumption in browser environment that supports ESM Choose eitheresm.production.min.js
oresm.development.js
fromdist
folder.Updated dependencies [
81a2f865
]:v7.0.0
Compare Source
v6.3.1
Compare Source
Patch Changes
d678ebd7
#2944 Thanks @urugator! - Fix #2941 - flow.bound replaces method on proto with bound functionv6.3.0
Compare Source
Minor Changes
035bf409
#2906 Thanks @urugator! - Provideflow.bound
annotation/decoratorPatch Changes
3dedb4d4
#2904 Thanks @ahoisl! - Make toJS work with computed value propsv6.2.3
Compare Source
v6.2.2
Compare Source
v6.2.1
Compare Source
v6.2.0
Compare Source
Release job failed. See https://github.com/mobxjs/mobx/pull/2842 for release notes
v6.1.8
Compare Source
v6.1.7
Compare Source
Patch Changes
5640aa77
#2799 Thanks @urugator! - - fix: user provided debug names are not preserved on productionobservable(primitive, options)
ignoresoptions
getDebugName(action)
throws[MobX] Cannot obtain atom from undefined
unsafe: true
v6.1.6
Compare Source
Patch Changes
9b195b17
#2780 Thanks @iChenLei! - The overall memory usage of MobX has been reduced in production builds by skipping the generation of debug identifiers. The internalmapid_
field of Reaction has been removed as part of the change.v6.1.5
Compare Source
Patch Changes
3979bee3
#2773 Thanks @urugator! - Decorators optimization7820e5ea
#2769 Thanks @iChenLei! - add warn for extending builtinsa7c15171
#2775 Thanks @pkit! - use globalThis in global detection5d41b646
#2774 Thanks @urugator! - Fix:makeAutoObservable
now working properly with symbolic keysFix:
isComputedProp
andgetAtom
second arg type is incompatible with Symbolsv6.1.4
Compare Source
v6.1.3
Compare Source
v6.1.2
Compare Source
Patch Changes
ca09f2f5
#2761 Thanks @urugator! -configure({ safeDescriptors: false })
now forces all props of observable objects to be writable and configurablev6.1.1
Compare Source
Patch Changes
39eca50d
#2757 Thanks @urugator! - Fix error stringification on minified buildFix
isObservableProp
not supportingSymbols
Fix
makeAutoObservable
not ignoringinferredAnnotationsSymbol
v6.1.0
Compare Source
This release fixes a plethora of bugs related to sub-classing and reflecting / iterating on observable objects.
The behavior of MobX is in many edge cases much more explicitly defined now.
A new annotation was introduced:
@override
/override
to support re-defining actions and computed values(!) on sub classses.For idiomatic MobX usage this release should have little impact, but if you are using a lot of sub-classing, reflection APIs or direct object manipulations like
defineProperty
,this release might introduce previously unseen errors for cases that silently failed before, or even worked successfully even though the correct behavior wasn't specified earlier.
If you are migrating from MobX 4/5 we strongly recommend to go to 6.1 in one go, and skip 6.0.*, as some buggy behavior compared to the previous majors has been corrected.
As always, our libraries come as-is and are maintained by volunteers. Upgrades are at own risk and voluntary. Bug reports require a minimal reproductions and a correctly filled out issue template.
Support the ongoing maintenance at: https://opencollective.com/mobx
Minor Changes
28f8a11d
#2641 Thanks @urugator!action
,computed
,flow
defined on prototype can be overriden by subclass viaoverride
annotation/decorator. Previously broken.this
) is not supported and should throw. Previously partially possible or broken.Object.defineProperty
. Previously unsupported/broken.extendObservable/makeObservable/defineProperty
notifies observers/listeners/interceptors about added props. Previously inconsistent.keys/values/entries
works likeObject.keys/values/entries
. Previously included only observables.has
works likein
. Previously reportedtrue
only for existing own observable props.set
no longer transforms existing non-observable prop to observable prop, but simply sets the value.remove/delete
works with non-observable and computed props. Previously unsupported/broken.options
toobservable/extendObservable/makeObservable
throws if the object is already observable . Previously passed options were mostly ignored.autoBind
option is now sticky - same asdeep
andname
option.observable/extendObservable
now also picks non-enumerable keys (same asmake[Auto]Observable
).action.bound("name")
Reflect
API. Previously throwing instead of returning booleans.v6.0.4
Compare Source
v6.0.3
Compare Source
Patch Changes
d0e6778d
- Create ESM bundles with NODE_ENV correctly replaced so it can be used in browser (#2564)v6.0.2
Compare Source
Patch Changes
b5d64d19
#2548 Thanks @urugator! - Fixed 2542, makeAutoObservable not respecting deep option @urugatorf4c22925
#2582 Thanks @tomenden! - Support running in a web-workerv6.0.1
Compare Source
v6.0.0
Compare Source
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 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 has been generated by Mend Renovate. View repository job log here.