mobservable
Advanced tools
Comparing version 1.1.8 to 1.2.0
@@ -0,1 +1,5 @@ | ||
# 1.2.0 | ||
* Implemented #67: Reactive graph transformations. See: http://mweststrate.github.io/mobservable/refguide/create-transformer.html | ||
# 1.1.8 | ||
@@ -2,0 +6,0 @@ |
@@ -35,2 +35,3 @@ export declare function checkIfStateIsBeingModifiedDuringView(context: IContextInfoStruct): void; | ||
private dependencyStaleCount; | ||
private onSleepEmitter; | ||
setRefCount(delta: number): void; | ||
@@ -46,2 +47,3 @@ removeObserver(node: ViewNode): void; | ||
private findCycle(node); | ||
onceSleep(onSleep: (lastValue: any) => void): void; | ||
dispose(): void; | ||
@@ -48,0 +50,0 @@ } |
@@ -144,2 +144,3 @@ /** | ||
this.dependencyStaleCount = 0; | ||
this.onSleepEmitter = null; | ||
} | ||
@@ -163,2 +164,4 @@ ViewNode.prototype.setRefCount = function (delta) { | ||
this.isSleeping = true; | ||
if (this.onSleepEmitter !== null) | ||
this.onSleepEmitter.emit(this._value); | ||
} | ||
@@ -248,2 +251,7 @@ }; | ||
}; | ||
ViewNode.prototype.onceSleep = function (onSleep) { | ||
if (this.onSleepEmitter === null) | ||
this.onSleepEmitter = new simpleeventemitter_1.default(); | ||
this.onSleepEmitter.once(onSleep); | ||
}; | ||
ViewNode.prototype.dispose = function () { | ||
@@ -270,2 +278,3 @@ if (this.observing) | ||
var utils_1 = require('./utils'); | ||
var simpleeventemitter_1 = require('./simpleeventemitter'); | ||
//# sourceMappingURL=dnode.js.map |
@@ -5,2 +5,3 @@ import { IDependencyTree, IObserverTree, ITransitionEvent, Lambda } from './interfaces'; | ||
export { isObservable, isObservableObject, isObservableArray, isObservableMap, observable, extendObservable, asReference, asFlat, asStructure, observe, autorun, autorunUntil, autorunAsync, expr, toJSON, isObservable as isReactive, map, fastArray, observable as makeReactive, extendObservable as extendReactive, autorunUntil as observeUntil, autorunAsync as observeAsync } from './core'; | ||
export { createTransformer } from './transform'; | ||
export { untracked, transaction } from './dnode'; | ||
@@ -7,0 +8,0 @@ export { ObservableMap } from './observablemap'; |
@@ -33,2 +33,4 @@ function __export(m) { | ||
exports.observeAsync = core_1.autorunAsync; | ||
var transform_1 = require('./transform'); | ||
exports.createTransformer = transform_1.createTransformer; | ||
var dnode_2 = require('./dnode'); | ||
@@ -35,0 +37,0 @@ exports.untracked = dnode_2.untracked; |
@@ -9,3 +9,3 @@ import { ObservableValue } from './observablevalue'; | ||
export declare class ObservableMap<V> { | ||
$mobservable: boolean; | ||
$mobservable: {}; | ||
private _data; | ||
@@ -12,0 +12,0 @@ private _hasMap; |
@@ -10,3 +10,3 @@ var observablevalue_1 = require('./observablevalue'); | ||
var _this = this; | ||
this.$mobservable = true; | ||
this.$mobservable = {}; | ||
this._data = {}; | ||
@@ -13,0 +13,0 @@ this._hasMap = {}; |
{ | ||
"name": "mobservable", | ||
"version": "1.1.8", | ||
"version": "1.2.0", | ||
"description": "Observable data. Reactive functions. Simple code.", | ||
@@ -37,2 +37,3 @@ "main": "lib/index.js", | ||
"istanbul": "^0.3.21", | ||
"lodash.intersection": "^3.2.0", | ||
"tape": "^4.2.2", | ||
@@ -39,0 +40,0 @@ "tape-run": "^2.1.0", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
183235
44
2211
10