mobx 6.12.1 → 6.12.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/dist/core/reaction.d.ts +2 -2
- package/dist/mobx.cjs.development.js.map +1 -1
- package/dist/mobx.cjs.production.min.js.map +1 -1
- package/dist/mobx.esm.development.js.map +1 -1
- package/dist/mobx.esm.js.map +1 -1
- package/dist/mobx.esm.production.min.js.map +1 -1
- package/dist/mobx.umd.development.js.map +1 -1
- package/dist/mobx.umd.production.min.js.map +1 -1
- package/dist/types/observableobject.d.ts +3 -3
- package/package.json +1 -1
- package/src/core/reaction.ts +3 -2
- package/src/types/observableobject.ts +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CreateObservableOptions, Annotation, ComputedValue, IAtom, IComputedValueOptions, IEnhancer, IInterceptable, IListenable, Lambda, ObservableValue } from "../internal";
|
|
1
|
+
import { CreateObservableOptions, $mobx, Annotation, ComputedValue, IAtom, IComputedValueOptions, IEnhancer, IInterceptable, IListenable, Lambda, ObservableValue } from "../internal";
|
|
2
2
|
export type IObjectDidChange<T = any> = {
|
|
3
3
|
observableKind: "object";
|
|
4
4
|
name: PropertyKey;
|
|
@@ -87,11 +87,11 @@ export declare class ObservableObjectAdministration implements IInterceptable<IO
|
|
|
87
87
|
observe_(callback: (changes: IObjectDidChange) => void, fireImmediately?: boolean): Lambda;
|
|
88
88
|
intercept_(handler: any): Lambda;
|
|
89
89
|
notifyPropertyAddition_(key: PropertyKey, value: any): void;
|
|
90
|
-
ownKeys_():
|
|
90
|
+
ownKeys_(): Array<string | symbol>;
|
|
91
91
|
keys_(): PropertyKey[];
|
|
92
92
|
}
|
|
93
93
|
export interface IIsObservableObject {
|
|
94
|
-
$mobx: ObservableObjectAdministration;
|
|
94
|
+
[$mobx]: ObservableObjectAdministration;
|
|
95
95
|
}
|
|
96
96
|
export declare function asObservableObject(target: any, options?: CreateObservableOptions): IIsObservableObject;
|
|
97
97
|
export declare function isObservableObject(thing: any): boolean;
|
package/package.json
CHANGED
package/src/core/reaction.ts
CHANGED
|
@@ -18,7 +18,8 @@ import {
|
|
|
18
18
|
spyReportStart,
|
|
19
19
|
startBatch,
|
|
20
20
|
trace,
|
|
21
|
-
trackDerivedFunction,
|
|
21
|
+
trackDerivedFunction,
|
|
22
|
+
GenericAbortSignal
|
|
22
23
|
} from "../internal"
|
|
23
24
|
|
|
24
25
|
/**
|
|
@@ -47,7 +48,7 @@ export interface IReactionPublic {
|
|
|
47
48
|
|
|
48
49
|
export interface IReactionDisposer {
|
|
49
50
|
(): void
|
|
50
|
-
$mobx: Reaction
|
|
51
|
+
[$mobx]: Reaction
|
|
51
52
|
}
|
|
52
53
|
|
|
53
54
|
export class Reaction implements IDerivation, IReactionPublic {
|
|
@@ -629,7 +629,7 @@ export class ObservableObjectAdministration
|
|
|
629
629
|
this.keysAtom_.reportChanged()
|
|
630
630
|
}
|
|
631
631
|
|
|
632
|
-
ownKeys_():
|
|
632
|
+
ownKeys_(): Array<string | symbol> {
|
|
633
633
|
this.keysAtom_.reportObserved()
|
|
634
634
|
return ownKeys(this.target_)
|
|
635
635
|
}
|
|
@@ -647,7 +647,7 @@ export class ObservableObjectAdministration
|
|
|
647
647
|
}
|
|
648
648
|
|
|
649
649
|
export interface IIsObservableObject {
|
|
650
|
-
$mobx: ObservableObjectAdministration
|
|
650
|
+
[$mobx]: ObservableObjectAdministration
|
|
651
651
|
}
|
|
652
652
|
|
|
653
653
|
export function asObservableObject(
|