chore(deps): update dependency mobx to v6 #384
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.0.0
Release Notes
mobxjs/mobx
v6.7.0
Compare Source
Minor Changes
8cf4784f
#3559 Thanks @urugator! - Proxied observable arrays can now safely read/write out of bound indices. See https://togithub.com/mobxjs/mobx/discussions/3537223e3688
#3551 Thanks @deadbeef84! - Added new optionsignal
towhen()
, to support abortion using an AbortSignal / AbortController.Patch Changes
fe25cfed
#3566 Thanks @upsuper! - Make return value of reportObserved match invoke of onBecomeObservedv6.6.2
Compare Source
Patch Changes
b375535c
#3344 Thanks @Nokel81! - Allow readonly tuples as part of IObservableMapInitialValues7260cd41
#3516 Thanks @urugator! - fix regression #3514: LegacyObservableArray compat with Safari 9.*78d1aa23
#3458 Thanks @egilll! - A slight revamp of the README, wording, and clearer linksv6.6.1
Compare Source
Patch Changes
63698d06
#3427 Thanks @RyanCavanaugh! - Apply 'object' constraint where requiredv6.6.0
Compare Source
Minor Changes
8e204c7b
#3409 Thanks @Nokel81! - Remove observable.box type inconsistancyv6.5.0
Compare Source
Minor Changes
767baff0
#3338 Thanks @kubk! - Replace any with a generic in Set methodsv6.4.2
Compare Source
Patch Changes
2caf7e1a
#3316 Thanks @urugator! -requiresObservable
always takes precedence over globalreactionRequiresObservable
v6.4.1
Compare Source
Patch Changes
d6fa9a19
#3306 Thanks @urugator! - fix missing type inferrence ofobserve
andintercept
for arraysv6.4.0
Compare Source
Minor Changes
6b926833
#3287 Thanks @kubk! - Remove any from 'merge' and 'replace' methods of ObservableMapPatch Changes
dee35be4
#3300 Thanks @kubk! - Make the error message about Object.freeze more informativev6.3.13
Compare Source
Patch Changes
23803202
#3273 Thanks @urugator! - fixflow.bound
#3271v6.3.12
Compare Source
Patch Changes
654a2013
#3257 Thanks @urugator! - fix: observable map initialization violatesenforceActions: "always"
v6.3.11
Compare Source
Patch Changes
bf5da6ba
#3239 Thanks @bernardobelchior! - ImprovedtoJS
jsdocv6.3.10
Compare Source
Patch Changes
2d70798e
#3233 Thanks @anderlaw! -eq.ts
fix comparer logicv6.3.9
Compare Source
Patch Changes
87e5a037
#3214 Thanks @urugator! -requiresReaction
always takes precedence over globalcomputedRequiresReaction
9b90e25c
#3198 Thanks @urugator! - fixisPlainObject
impl (fixes #3197)v6.3.8
Compare Source
Patch Changes
9d5e65cb
#3193 Thanks @ChocolateLoverRaj! - MakeIAtom['reportObserved']
returnboolean
55508af6
#3189 Thanks @RvanderLaan! - Fix for RangeError in ObservableArray.replace for large arraysv6.3.7
Compare Source
Patch Changes
3a7dee6f
#3180 Thanks @kubk! - Fix type inference of observe functionv6.3.6
Compare Source
Patch Changes
49468204
#3162 Thanks @upsuper! - Have cancelled when reject with an error rather than a string4afb1ec2
#3154 Thanks @urugator! -makeObservable
throws when mixing @decorator syntax with annotationsv6.3.5
Compare Source
Patch Changes
4ac6b454
#3146 Thanks @urugator! - fix #3109: spy: computed shouldn't report update unless the value changedv6.3.4
Compare Source
Patch Changes
0dbf3eb6
#3141 Thanks @urugator! - spy: bound actions report correct objectv6.3.3
Compare Source
Patch Changes
d78a1592
#2902 Thanks @z3rog! - chore: observable use internal constantsdb21d85f
#2998 Thanks @urugator! -trace()
: log when computed becomes suspendedrequiresReaction
warns instead of throwingb9fa119c
#3056 Thanks @upsuper! - Create WHEN_TIMEOUT error earlier to capture useful stack99491ec2
#2972 Thanks @kk-gjyang! - PolyfillObject.is
for old/unsupported browsers0d28db8a
#2927 Thanks @upsuper! - Give proper typing to opts.equals of reactionc6dc925c
#2985 Thanks @fecqs! - Remove duplicate global property checkv6.3.2
Compare Source
Patch Changes
4011b378
#2949 Thanks @urugator! - fix #2948: flow ignoresautoBind
optionv6.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.0
Compare Source
Release job failed. See https://github.com/mobxjs/mobx/pull/2842 for release notes
v6.1.8
Compare Source
Patch Changes
ca4914f9
#2836 Thanks @urugator! - Fix #2832 - annotation cache ignores overridesv6.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
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
Patch Changes
79a09f49
#2615 Thanks @urugator! - Fix #2614 -makeObservable
does not respectoptions.name
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 - "before 3am on Monday" (UTC), 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.