mst-async-store
Advanced tools
Comparing version 1.0.0 to 1.1.0
@@ -1,6 +0,6 @@ | ||
# 1.0.0 (2019-01-08) | ||
# [1.1.0](https://github.com/mekwall/mst-async-store/compare/v1.0.0...v1.1.0) (2019-01-08) | ||
### Bug Fixes | ||
### Features | ||
* **semantic-release:** erroneous branch config ([1403211](https://github.com/mekwall/mst-async-store/commit/1403211)) | ||
* use next-tick instead of asap ([073c8b4](https://github.com/mekwall/mst-async-store/commit/073c8b4)) |
@@ -6,3 +6,3 @@ "use strict"; | ||
var mobx_utils_1 = require("mobx-utils"); | ||
var asap_1 = tslib_1.__importDefault(require("asap")); | ||
var next_tick_1 = tslib_1.__importDefault(require("next-tick")); | ||
function createAsyncContainer(ItemModel, options) { | ||
@@ -88,3 +88,3 @@ if (options === void 0) { options = {}; } | ||
// Hack to allow side-effects in a view | ||
asap_1.default(function () { | ||
next_tick_1.default(function () { | ||
// Need to check shouldFetch again to avoid race-conditions | ||
@@ -91,0 +91,0 @@ // This is cheap since it's memoized |
@@ -6,3 +6,3 @@ "use strict"; | ||
var mobx_state_tree_1 = require("mobx-state-tree"); | ||
var asap_1 = tslib_1.__importDefault(require("asap")); | ||
var next_tick_1 = tslib_1.__importDefault(require("next-tick")); | ||
var createAsyncContainer_1 = require("./createAsyncContainer"); | ||
@@ -212,3 +212,3 @@ function createAsyncStore(name, ItemModel, fetchActions, options) { | ||
// Hack to fool mobx into allowing side-effects in a view | ||
asap_1.default(function () { | ||
next_tick_1.default(function () { | ||
self.fetchOne(id, ct); | ||
@@ -226,3 +226,3 @@ }); | ||
// Hack to fool mobx into allowing side-effects in a view | ||
asap_1.default(function () { | ||
next_tick_1.default(function () { | ||
self.fetchMany(ids, ctsToFetch); | ||
@@ -236,3 +236,3 @@ }); | ||
// Hack to fool mobx into allowing side-effects in a view | ||
asap_1.default(function () { | ||
next_tick_1.default(function () { | ||
self.fetchAll(); | ||
@@ -239,0 +239,0 @@ }); |
{ | ||
"name": "mst-async-store", | ||
"description": "Asynchronous store and container implementation for mobx-state-tree", | ||
"version": "1.0.0", | ||
"keywords": [ | ||
"mobx", | ||
"mobx-state-tree", | ||
"async", | ||
"asynchronous", | ||
"store", | ||
"container" | ||
], | ||
"version": "1.1.0", | ||
"author": "Marcus Ekwall <marcus.ekwall@gmail.com>", | ||
@@ -27,6 +35,7 @@ "license": "ISC", | ||
"@semantic-release/commit-analyzer": "^6.1.0", | ||
"@semantic-release/git": "^7.0.7", | ||
"@semantic-release/npm": "^5.1.3", | ||
"@semantic-release/release-notes-generator": "^7.1.4", | ||
"@types/asap": "^2.0.0", | ||
"@types/jest": "^23.3.12", | ||
"@types/next-tick": "^1.0.0", | ||
"@types/webpack-env": "^1.13.6", | ||
@@ -53,4 +62,4 @@ "codecov": "^3.1.0", | ||
"dependencies": { | ||
"asap": "^2.0.6" | ||
"next-tick": "^1.0.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
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
330290
22
+ Addednext-tick@^1.0.0
+ Addednext-tick@1.1.0(transitive)
- Removedasap@^2.0.6
- Removedasap@2.0.6(transitive)