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.15.4
->6.1.5
Release Notes
mobxjs/mobx
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
Patch Changes
0677c0e7
#2766 Thanks @urugator! - Fix: Inherited annotated fields are not assignablev6.1.3
Compare Source
Patch Changes
d2a2a52e
#2763 Thanks @vkrol! - AddsafeDescriptors
toconfigure
options typev6.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.5
Compare Source
Patch Changes
6b304232
#2644 Thanks @rokoroku! - Fix broken error reference in errors.ts83b84fd3
#2740 Thanks @iChenLei! - Infer optional / promiseaction
args type correctly65c7b73b
#2717 Thanks @ahoisl! - The TypeScript typeCreateObservableOptions
is now exported.989390d4
#2594 Thanks @urugator! - Fixed #2579 -observable
does not ignore class instancesdea1cf18
#2726 Thanks @mweststrate! - fix:onBecomeObserved
was not triggered correctly for computed dependencies of computeds. Fixes #2686, #2667592e6e99
#2743 Thanks @vkrol! - RemovesideEffects
section inmobx-react-lite
package.json
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
v5.15.7
Compare Source
v5.15.6
Compare Source
v5.15.5
Compare Source
Renovate configuration
📅 Schedule: "before 3am on the first day of the month" (UTC).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻️ Rebasing: Whenever PR is behind base branch, 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 WhiteSource Renovate. View repository job log here.