mobx 4.15.3 → 4.15.7
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 +28 -0
- package/README.md +19 -10
- package/lib/api/action.d.ts +13 -13
- package/lib/api/actiondecorator.d.ts +27 -27
- package/lib/api/autorun.d.ts +24 -24
- package/lib/api/become-observed.d.ts +5 -5
- package/lib/api/computed.d.ts +14 -14
- package/lib/api/configure.d.ts +19 -19
- package/lib/api/decorate.d.ts +6 -6
- package/lib/api/extendobservable.d.ts +7 -7
- package/lib/api/extras.d.ts +10 -10
- package/lib/api/flow.d.ts +9 -9
- package/lib/api/intercept-read.d.ts +8 -8
- package/lib/api/intercept.d.ts +8 -8
- package/lib/api/iscomputed.d.ts +3 -3
- package/lib/api/isobservable.d.ts +2 -2
- package/lib/api/object-api.d.ts +34 -34
- package/lib/api/observable.d.ts +54 -54
- package/lib/api/observabledecorator.d.ts +6 -6
- package/lib/api/observe.d.ts +8 -8
- package/lib/api/tojs.d.ts +11 -11
- package/lib/api/trace.d.ts +3 -3
- package/lib/api/transaction.d.ts +8 -8
- package/lib/api/when.d.ts +15 -15
- package/lib/core/action.d.ts +22 -22
- package/lib/core/atom.d.ts +40 -40
- package/lib/core/computedvalue.d.ts +93 -93
- package/lib/core/derivation.d.ts +74 -74
- package/lib/core/globalstate.d.ts +106 -106
- package/lib/core/observable.d.ts +44 -44
- package/lib/core/reaction.d.ts +63 -63
- package/lib/core/spy.d.ts +6 -6
- package/lib/index.js +7 -0
- package/lib/internal.d.ts +44 -44
- package/lib/mobx.d.ts +19 -19
- package/lib/mobx.es6.js +4436 -4293
- package/lib/mobx.js +4520 -4387
- package/lib/mobx.min.js +15 -1
- package/lib/mobx.module.js +4535 -4388
- package/lib/mobx.umd.js +4536 -4389
- package/lib/mobx.umd.min.js +15 -1
- package/lib/types/intercept-utils.d.ts +9 -9
- package/lib/types/listen-utils.d.ts +8 -8
- package/lib/types/modifiers.d.ts +7 -7
- package/lib/types/observablearray.d.ts +78 -78
- package/lib/types/observablemap.d.ts +83 -83
- package/lib/types/observableobject.d.ts +65 -65
- package/lib/types/observableset.d.ts +49 -49
- package/lib/types/observablevalue.d.ts +37 -37
- package/lib/types/type-utils.d.ts +4 -4
- package/lib/utils/comparer.d.ts +14 -14
- package/lib/utils/decorators2.d.ts +7 -7
- package/lib/utils/eq.d.ts +1 -1
- package/lib/utils/iterable.d.ts +5 -5
- package/lib/utils/utils.d.ts +42 -43
- package/package.json +3 -13
package/lib/internal.d.ts
CHANGED
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
export * from "./utils/utils";
|
|
2
|
-
export * from "./utils/iterable";
|
|
3
|
-
export * from "./core/atom";
|
|
4
|
-
export * from "./utils/comparer";
|
|
5
|
-
export * from "./utils/decorators2";
|
|
6
|
-
export * from "./types/modifiers";
|
|
7
|
-
export * from "./api/observabledecorator";
|
|
8
|
-
export * from "./api/observable";
|
|
9
|
-
export * from "./api/computed";
|
|
10
|
-
export * from "./core/action";
|
|
11
|
-
export * from "./types/observablevalue";
|
|
12
|
-
export * from "./core/computedvalue";
|
|
13
|
-
export * from "./core/derivation";
|
|
14
|
-
export * from "./core/globalstate";
|
|
15
|
-
export * from "./core/observable";
|
|
16
|
-
export * from "./core/reaction";
|
|
17
|
-
export * from "./core/spy";
|
|
18
|
-
export * from "./api/actiondecorator";
|
|
19
|
-
export * from "./api/action";
|
|
20
|
-
export * from "./api/autorun";
|
|
21
|
-
export * from "./api/become-observed";
|
|
22
|
-
export * from "./api/configure";
|
|
23
|
-
export * from "./api/decorate";
|
|
24
|
-
export * from "./api/extendobservable";
|
|
25
|
-
export * from "./api/extras";
|
|
26
|
-
export * from "./api/flow";
|
|
27
|
-
export * from "./api/intercept-read";
|
|
28
|
-
export * from "./api/intercept";
|
|
29
|
-
export * from "./api/iscomputed";
|
|
30
|
-
export * from "./api/isobservable";
|
|
31
|
-
export * from "./api/object-api";
|
|
32
|
-
export * from "./api/observe";
|
|
33
|
-
export * from "./api/tojs";
|
|
34
|
-
export * from "./api/trace";
|
|
35
|
-
export * from "./api/transaction";
|
|
36
|
-
export * from "./api/when";
|
|
37
|
-
export * from "./types/intercept-utils";
|
|
38
|
-
export * from "./types/listen-utils";
|
|
39
|
-
export * from "./types/observablearray";
|
|
40
|
-
export * from "./types/observablemap";
|
|
41
|
-
export * from "./types/observableset";
|
|
42
|
-
export * from "./types/observableobject";
|
|
43
|
-
export * from "./types/type-utils";
|
|
44
|
-
export * from "./utils/eq";
|
|
1
|
+
export * from "./utils/utils";
|
|
2
|
+
export * from "./utils/iterable";
|
|
3
|
+
export * from "./core/atom";
|
|
4
|
+
export * from "./utils/comparer";
|
|
5
|
+
export * from "./utils/decorators2";
|
|
6
|
+
export * from "./types/modifiers";
|
|
7
|
+
export * from "./api/observabledecorator";
|
|
8
|
+
export * from "./api/observable";
|
|
9
|
+
export * from "./api/computed";
|
|
10
|
+
export * from "./core/action";
|
|
11
|
+
export * from "./types/observablevalue";
|
|
12
|
+
export * from "./core/computedvalue";
|
|
13
|
+
export * from "./core/derivation";
|
|
14
|
+
export * from "./core/globalstate";
|
|
15
|
+
export * from "./core/observable";
|
|
16
|
+
export * from "./core/reaction";
|
|
17
|
+
export * from "./core/spy";
|
|
18
|
+
export * from "./api/actiondecorator";
|
|
19
|
+
export * from "./api/action";
|
|
20
|
+
export * from "./api/autorun";
|
|
21
|
+
export * from "./api/become-observed";
|
|
22
|
+
export * from "./api/configure";
|
|
23
|
+
export * from "./api/decorate";
|
|
24
|
+
export * from "./api/extendobservable";
|
|
25
|
+
export * from "./api/extras";
|
|
26
|
+
export * from "./api/flow";
|
|
27
|
+
export * from "./api/intercept-read";
|
|
28
|
+
export * from "./api/intercept";
|
|
29
|
+
export * from "./api/iscomputed";
|
|
30
|
+
export * from "./api/isobservable";
|
|
31
|
+
export * from "./api/object-api";
|
|
32
|
+
export * from "./api/observe";
|
|
33
|
+
export * from "./api/tojs";
|
|
34
|
+
export * from "./api/trace";
|
|
35
|
+
export * from "./api/transaction";
|
|
36
|
+
export * from "./api/when";
|
|
37
|
+
export * from "./types/intercept-utils";
|
|
38
|
+
export * from "./types/listen-utils";
|
|
39
|
+
export * from "./types/observablearray";
|
|
40
|
+
export * from "./types/observablemap";
|
|
41
|
+
export * from "./types/observableset";
|
|
42
|
+
export * from "./types/observableobject";
|
|
43
|
+
export * from "./types/type-utils";
|
|
44
|
+
export * from "./utils/eq";
|
package/lib/mobx.d.ts
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* (c) Michel Weststrate 2015 - 2019
|
|
3
|
-
* MIT Licensed
|
|
4
|
-
*
|
|
5
|
-
* Welcome to the mobx sources! To get an global overview of how MobX internally works,
|
|
6
|
-
* this is a good place to start:
|
|
7
|
-
* https://medium.com/@mweststrate/becoming-fully-reactive-an-in-depth-explanation-of-mobservable-55995262a254#.xvbh6qd74
|
|
8
|
-
*
|
|
9
|
-
* Source folders:
|
|
10
|
-
* ===============
|
|
11
|
-
*
|
|
12
|
-
* - api/ Most of the public static methods exposed by the module can be found here.
|
|
13
|
-
* - core/ Implementation of the MobX algorithm; atoms, derivations, reactions, dependency trees, optimizations. Cool stuff can be found here.
|
|
14
|
-
* - types/ All the magic that is need to have observable objects, arrays and values is in this folder. Including the modifiers like `asFlat`.
|
|
15
|
-
* - utils/ Utility stuff.
|
|
16
|
-
*
|
|
17
|
-
*/
|
|
18
|
-
export { IObservable, IDepTreeNode, Reaction, IReactionPublic, IReactionDisposer, IDerivation, untracked, IDerivationState, IAtom, createAtom, IAction, spy, IComputedValue, IEqualsComparer, comparer, IEnhancer, IInterceptable, IInterceptor, IListenable, IObjectWillChange, IObjectDidChange, IObservableObject, isObservableObject, IValueDidChange, IValueWillChange, IObservableValue, isObservableValue as isBoxedObservable, IObservableArray, IArrayWillChange, IArrayWillSplice, IArrayChange, IArraySplice, isObservableArray, IKeyValueMap, ObservableMap, IMapEntries, IMapEntry, IMapWillChange, IMapDidChange, isObservableMap, IObservableMapInitialValues, ObservableSet, isObservableSet, ISetDidChange, ISetWillChange, IObservableSetInitialValues, transaction, observable, IObservableFactory, IObservableFactories, computed, IComputed, isObservable, isObservableProp, isComputed, isComputedProp, extendObservable, extendShallowObservable, observe, intercept, autorun, IAutorunOptions, reaction, IReactionOptions, when, IWhenOptions, action, isAction, runInAction, IActionFactory, keys, values, entries, set, remove, has, get, decorate, configure, onBecomeObserved, onBecomeUnobserved, flow, FlowCancellationError, isFlowCancellationError, toJS, trace, IObserverTree, IDependencyTree, getDependencyTree, getObserverTree, resetGlobalState as _resetGlobalState, getGlobalState as _getGlobalState, getDebugName, getAtom, getAdministration as _getAdministration, allowStateChanges as _allowStateChanges, allowStateChangesInsideComputed as _allowStateChangesInsideComputed, Lambda, isArrayLike, isComputingDerivation as _isComputingDerivation, onReactionError, interceptReads as _interceptReads, IComputedValueOptions, IActionRunInfo, _startAction, _endAction, allowStateReadsStart as _allowStateReadsStart, allowStateReadsEnd as _allowStateReadsEnd } from "./internal";
|
|
19
|
-
export declare const $mobx = "$mobx";
|
|
1
|
+
/**
|
|
2
|
+
* (c) Michel Weststrate 2015 - 2019
|
|
3
|
+
* MIT Licensed
|
|
4
|
+
*
|
|
5
|
+
* Welcome to the mobx sources! To get an global overview of how MobX internally works,
|
|
6
|
+
* this is a good place to start:
|
|
7
|
+
* https://medium.com/@mweststrate/becoming-fully-reactive-an-in-depth-explanation-of-mobservable-55995262a254#.xvbh6qd74
|
|
8
|
+
*
|
|
9
|
+
* Source folders:
|
|
10
|
+
* ===============
|
|
11
|
+
*
|
|
12
|
+
* - api/ Most of the public static methods exposed by the module can be found here.
|
|
13
|
+
* - core/ Implementation of the MobX algorithm; atoms, derivations, reactions, dependency trees, optimizations. Cool stuff can be found here.
|
|
14
|
+
* - types/ All the magic that is need to have observable objects, arrays and values is in this folder. Including the modifiers like `asFlat`.
|
|
15
|
+
* - utils/ Utility stuff.
|
|
16
|
+
*
|
|
17
|
+
*/
|
|
18
|
+
export { IObservable, IDepTreeNode, Reaction, IReactionPublic, IReactionDisposer, IDerivation, untracked, IDerivationState, IAtom, createAtom, IAction, spy, IComputedValue, IEqualsComparer, comparer, IEnhancer, IInterceptable, IInterceptor, IListenable, IObjectWillChange, IObjectDidChange, IObservableObject, isObservableObject, IValueDidChange, IValueWillChange, IObservableValue, isObservableValue as isBoxedObservable, IObservableArray, IArrayWillChange, IArrayWillSplice, IArrayChange, IArraySplice, isObservableArray, IKeyValueMap, ObservableMap, IMapEntries, IMapEntry, IMapWillChange, IMapDidChange, isObservableMap, IObservableMapInitialValues, ObservableSet, isObservableSet, ISetDidChange, ISetWillChange, IObservableSetInitialValues, transaction, observable, IObservableFactory, IObservableFactories, computed, IComputed, isObservable, isObservableProp, isComputed, isComputedProp, extendObservable, extendShallowObservable, observe, intercept, autorun, IAutorunOptions, reaction, IReactionOptions, when, IWhenOptions, action, isAction, runInAction, IActionFactory, keys, values, entries, set, remove, has, get, decorate, configure, onBecomeObserved, onBecomeUnobserved, flow, FlowCancellationError, isFlowCancellationError, toJS, trace, IObserverTree, IDependencyTree, getDependencyTree, getObserverTree, resetGlobalState as _resetGlobalState, getGlobalState as _getGlobalState, getDebugName, getAtom, getAdministration as _getAdministration, allowStateChanges as _allowStateChanges, allowStateChangesInsideComputed as _allowStateChangesInsideComputed, Lambda, isArrayLike, isComputingDerivation as _isComputingDerivation, onReactionError, interceptReads as _interceptReads, IComputedValueOptions, IActionRunInfo, _startAction, _endAction, allowStateReadsStart as _allowStateReadsStart, allowStateReadsEnd as _allowStateReadsEnd } from "./internal";
|
|
19
|
+
export declare const $mobx = "$mobx";
|