mobx-utils
Advanced tools
Comparing version 5.6.1 to 5.6.2
@@ -0,1 +1,5 @@ | ||
# 5.6.2 | ||
* [#289](https://github.com/mobxjs/mobx-utils/pull/289) ObservableGroupMap.ts: remove console.log | ||
# 5.6.1 | ||
@@ -2,0 +6,0 @@ |
@@ -47,2 +47,3 @@ import { _isComputingDerivation } from "mobx"; | ||
return fromResource(function (sink) { | ||
sink(Date.now()); | ||
subscriptionHandle = setInterval(function () { return sink(Date.now()); }, interval); | ||
@@ -54,4 +55,4 @@ }, function () { | ||
function createAnimationFrameTicker() { | ||
var subscriptionHandle; | ||
var frameBasedTicker = fromResource(function (sink) { | ||
sink(Date.now()); | ||
function scheduleTick() { | ||
@@ -58,0 +59,0 @@ window.requestAnimationFrame(function () { |
@@ -15,2 +15,5 @@ import { IObservableArray, ObservableMap } from "mobx"; | ||
* | ||
* NB: ObservableGroupMap relies on `Symbol`s. If you are targeting a platform which doesn't | ||
* support these natively, you will need to provide a polyfill. | ||
* | ||
* @param {array} base The array to sort into groups. | ||
@@ -17,0 +20,0 @@ * @param {function} groupBy The function used for grouping. |
@@ -28,2 +28,5 @@ var __extends = (this && this.__extends) || (function () { | ||
* | ||
* NB: ObservableGroupMap relies on `Symbol`s. If you are targeting a platform which doesn't | ||
* support these natively, you will need to provide a polyfill. | ||
* | ||
* @param {array} base The array to sort into groups. | ||
@@ -53,5 +56,3 @@ * @param {function} groupBy The function used for grouping. | ||
_this._groupBy = groupBy; | ||
_this._ogmInfoKey = ("function" == typeof Symbol | ||
? Symbol("ogmInfo" + name) | ||
: "__ogmInfo" + name); | ||
_this._ogmInfoKey = Symbol("ogmInfo" + name); | ||
_this._base = base; | ||
@@ -111,3 +112,3 @@ for (var i = 0; i < base.length; i++) { | ||
if (undefined === result) { | ||
result = observable([], { name: "GroupArray[" + this._keyToName(key) + "]" }); | ||
result = observable([], { name: "GroupArray[" + this._keyToName(key) + "]", deep: false }); | ||
_super.prototype.set.call(this, key, result); | ||
@@ -140,3 +141,2 @@ } | ||
reaction: reaction(function () { return _this._groupBy(item); }, function (newGroupByValue, _r) { | ||
console.log("new group by value ", newGroupByValue); | ||
var grouperItemInfo = item[_this._ogmInfoKey]; | ||
@@ -143,0 +143,0 @@ _this._removeFromGroupArr(grouperItemInfo.groupByValue, grouperItemInfo.groupArrIndex); |
{ | ||
"name": "mobx-utils", | ||
"version": "5.6.1", | ||
"version": "5.6.2", | ||
"description": "Utility functions and common patterns for MobX", | ||
@@ -96,2 +96,2 @@ "main": "mobx-utils.umd.js", | ||
} | ||
} | ||
} |
@@ -735,2 +735,5 @@ # MobX-utils | ||
NB: ObservableGroupMap relies on `Symbol`s. If you are targeting a platform which doesn't | ||
support these natively, you will need to provide a polyfill. | ||
### Parameters | ||
@@ -737,0 +740,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
334652
6637
881
3