aurelia-task-queue
Advanced tools
Comparing version 1.0.0-beta.1.0.1 to 1.0.0-beta.1.1.0
{ | ||
"name": "aurelia-task-queue", | ||
"version": "1.0.0-beta.1.0.1", | ||
"version": "1.0.0-beta.1.1.0", | ||
"description": "A simple task queue for the browser that enables the queuing of both standard tasks and micro tasks.", | ||
@@ -21,4 +21,4 @@ "keywords": [ | ||
"dependencies": { | ||
"aurelia-pal": "^1.0.0-beta.1" | ||
"aurelia-pal": "^1.0.0-beta.1.1.1" | ||
} | ||
} |
@@ -16,7 +16,7 @@ System.config({ | ||
map: { | ||
"aurelia-pal": "npm:aurelia-pal@1.0.0-beta.1", | ||
"aurelia-pal-browser": "npm:aurelia-pal-browser@1.0.0-beta.1", | ||
"aurelia-pal": "npm:aurelia-pal@1.0.0-beta.1.1.1", | ||
"aurelia-pal-browser": "npm:aurelia-pal-browser@1.0.0-beta.1.1.2", | ||
"babel": "npm:babel-core@5.8.25", | ||
"babel-runtime": "npm:babel-runtime@5.8.25", | ||
"core-js": "npm:core-js@1.2.6", | ||
"core-js": "npm:core-js@2.0.3", | ||
"github:jspm/nodelibs-assert@0.1.0": { | ||
@@ -40,4 +40,5 @@ "assert": "npm:assert@1.3.0" | ||
}, | ||
"npm:aurelia-pal-browser@1.0.0-beta.1": { | ||
"aurelia-pal": "npm:aurelia-pal@1.0.0-beta.1" | ||
"npm:aurelia-pal-browser@1.0.0-beta.1.1.2": { | ||
"aurelia-pal": "npm:aurelia-pal@1.0.0-beta.1.1.1", | ||
"core-js": "npm:core-js@2.0.3" | ||
}, | ||
@@ -47,3 +48,3 @@ "npm:babel-runtime@5.8.25": { | ||
}, | ||
"npm:core-js@1.2.6": { | ||
"npm:core-js@2.0.3": { | ||
"fs": "github:jspm/nodelibs-fs@0.1.2", | ||
@@ -50,0 +51,0 @@ "path": "github:jspm/nodelibs-path@0.1.0", |
declare module 'aurelia-task-queue' { | ||
import { DOM } from 'aurelia-pal'; | ||
import { DOM, FEATURE } from 'aurelia-pal'; | ||
@@ -4,0 +4,0 @@ /** |
@@ -58,5 +58,12 @@ define(['exports', 'aurelia-pal'], function (exports, _aureliaPal) { | ||
this.requestFlushMicroTaskQueue = makeRequestFlushFromMutationObserver(function () { | ||
return _this.flushMicroTaskQueue(); | ||
}); | ||
if (_aureliaPal.FEATURE.mutationObserver) { | ||
this.requestFlushMicroTaskQueue = makeRequestFlushFromMutationObserver(function () { | ||
return _this.flushMicroTaskQueue(); | ||
}); | ||
} else { | ||
this.requestFlushMicroTaskQueue = makeRequestFlushFromTimer(function () { | ||
return _this.flushMicroTaskQueue(); | ||
}); | ||
} | ||
this.requestFlushTaskQueue = makeRequestFlushFromTimer(function () { | ||
@@ -63,0 +70,0 @@ return _this.flushTaskQueue(); |
declare module 'aurelia-task-queue' { | ||
import { DOM } from 'aurelia-pal'; | ||
import { DOM, FEATURE } from 'aurelia-pal'; | ||
@@ -4,0 +4,0 @@ /** |
@@ -1,2 +0,2 @@ | ||
import {DOM} from 'aurelia-pal'; | ||
import {DOM, FEATURE} from 'aurelia-pal'; | ||
@@ -69,3 +69,8 @@ let hasSetImmediate = typeof setImmediate === 'function'; | ||
this.requestFlushMicroTaskQueue = makeRequestFlushFromMutationObserver(() => this.flushMicroTaskQueue()); | ||
if (FEATURE.mutationObserver) { | ||
this.requestFlushMicroTaskQueue = makeRequestFlushFromMutationObserver(() => this.flushMicroTaskQueue()); | ||
} else { | ||
this.requestFlushMicroTaskQueue = makeRequestFlushFromTimer(() => this.flushMicroTaskQueue()); | ||
} | ||
this.requestFlushTaskQueue = makeRequestFlushFromTimer(() => this.flushTaskQueue()); | ||
@@ -72,0 +77,0 @@ } |
declare module 'aurelia-task-queue' { | ||
import { DOM } from 'aurelia-pal'; | ||
import { DOM, FEATURE } from 'aurelia-pal'; | ||
@@ -4,0 +4,0 @@ /** |
@@ -59,5 +59,12 @@ 'use strict'; | ||
this.requestFlushMicroTaskQueue = makeRequestFlushFromMutationObserver(function () { | ||
return _this.flushMicroTaskQueue(); | ||
}); | ||
if (_aureliaPal.FEATURE.mutationObserver) { | ||
this.requestFlushMicroTaskQueue = makeRequestFlushFromMutationObserver(function () { | ||
return _this.flushMicroTaskQueue(); | ||
}); | ||
} else { | ||
this.requestFlushMicroTaskQueue = makeRequestFlushFromTimer(function () { | ||
return _this.flushMicroTaskQueue(); | ||
}); | ||
} | ||
this.requestFlushTaskQueue = makeRequestFlushFromTimer(function () { | ||
@@ -64,0 +71,0 @@ return _this.flushTaskQueue(); |
declare module 'aurelia-task-queue' { | ||
import { DOM } from 'aurelia-pal'; | ||
import { DOM, FEATURE } from 'aurelia-pal'; | ||
@@ -4,0 +4,0 @@ /** |
@@ -1,2 +0,2 @@ | ||
import {DOM} from 'aurelia-pal'; | ||
import {DOM, FEATURE} from 'aurelia-pal'; | ||
@@ -69,3 +69,8 @@ let hasSetImmediate = typeof setImmediate === 'function'; | ||
this.requestFlushMicroTaskQueue = makeRequestFlushFromMutationObserver(() => this.flushMicroTaskQueue()); | ||
if (FEATURE.mutationObserver) { | ||
this.requestFlushMicroTaskQueue = makeRequestFlushFromMutationObserver(() => this.flushMicroTaskQueue()); | ||
} else { | ||
this.requestFlushMicroTaskQueue = makeRequestFlushFromTimer(() => this.flushMicroTaskQueue()); | ||
} | ||
this.requestFlushTaskQueue = makeRequestFlushFromTimer(() => this.flushTaskQueue()); | ||
@@ -72,0 +77,0 @@ } |
declare module 'aurelia-task-queue' { | ||
import { DOM } from 'aurelia-pal'; | ||
import { DOM, FEATURE } from 'aurelia-pal'; | ||
@@ -4,0 +4,0 @@ /** |
System.register(['aurelia-pal'], function (_export) { | ||
'use strict'; | ||
var DOM, hasSetImmediate, TaskQueue; | ||
var DOM, FEATURE, hasSetImmediate, TaskQueue; | ||
@@ -49,2 +49,3 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } } | ||
DOM = _aureliaPal.DOM; | ||
FEATURE = _aureliaPal.FEATURE; | ||
}], | ||
@@ -64,5 +65,12 @@ execute: function () { | ||
this.requestFlushMicroTaskQueue = makeRequestFlushFromMutationObserver(function () { | ||
return _this.flushMicroTaskQueue(); | ||
}); | ||
if (FEATURE.mutationObserver) { | ||
this.requestFlushMicroTaskQueue = makeRequestFlushFromMutationObserver(function () { | ||
return _this.flushMicroTaskQueue(); | ||
}); | ||
} else { | ||
this.requestFlushMicroTaskQueue = makeRequestFlushFromTimer(function () { | ||
return _this.flushMicroTaskQueue(); | ||
}); | ||
} | ||
this.requestFlushTaskQueue = makeRequestFlushFromTimer(function () { | ||
@@ -69,0 +77,0 @@ return _this.flushTaskQueue(); |
@@ -0,1 +1,15 @@ | ||
### 1.0.0-beta.1.1.0 (2016-01-29) | ||
#### Bug Fixes | ||
* **index:** enable running without mutation observers ([7d0c1336](http://github.com/aurelia/task-queue/commit/7d0c133647f06f0ce81b833342f514f567c9f8b1), closes [#10](http://github.com/aurelia/task-queue/issues/10)) | ||
* **package:** correct missed dependency update ([896972b3](http://github.com/aurelia/task-queue/commit/896972b36c814e0140c7f4106586ab0866099517)) | ||
#### Features | ||
* **all:** update jspm meta; core-js; aurelia deps ([38b78a66](http://github.com/aurelia/task-queue/commit/38b78a66c643d0056efdcd0abf5a0ac0a83a3b84)) | ||
### 1.0.0-beta.1 (2015-11-16) | ||
@@ -2,0 +16,0 @@ |
{ | ||
"name": "aurelia-task-queue", | ||
"version": "1.0.0-beta.1.0.1", | ||
"version": "1.0.0-beta.1.1.0", | ||
"description": "A simple task queue for the browser that enables the queuing of both standard tasks and micro tasks.", | ||
@@ -22,19 +22,23 @@ "keywords": [ | ||
}, | ||
"jspmNodeConversion": false, | ||
"jspm": { | ||
"registry": "npm", | ||
"jspmPackage": true, | ||
"main": "aurelia-task-queue", | ||
"format": "amd", | ||
"directories": { | ||
"lib": "dist/amd" | ||
"dist": "dist/amd" | ||
}, | ||
"dependencies": { | ||
"aurelia-pal": "npm:aurelia-pal@^1.0.0-beta.1" | ||
"peerDependencies": { | ||
"aurelia-pal": "^1.0.0-beta.1.1.1" | ||
}, | ||
"devDependencies": { | ||
"aurelia-pal-browser": "npm:aurelia-pal-browser@^1.0.0-beta.1", | ||
"babel": "npm:babel-core@^5.1.13", | ||
"babel-runtime": "npm:babel-runtime@^5.1.13", | ||
"core-js": "npm:core-js@^1.2.6" | ||
"aurelia-pal-browser": "^1.0.0-beta.1.1.2", | ||
"babel": "babel-core@^5.1.13", | ||
"babel-runtime": "^5.1.13", | ||
"core-js": "^2.0.3" | ||
} | ||
}, | ||
"peerDependencies": { | ||
"aurelia-pal": "^1.0.0-beta.1.1.1" | ||
}, | ||
"devDependencies": { | ||
@@ -41,0 +45,0 @@ "aurelia-tools": "^0.1.12", |
@@ -1,2 +0,2 @@ | ||
import {DOM} from 'aurelia-pal'; | ||
import {DOM, FEATURE} from 'aurelia-pal'; | ||
@@ -69,3 +69,8 @@ let hasSetImmediate = typeof setImmediate === 'function'; | ||
this.requestFlushMicroTaskQueue = makeRequestFlushFromMutationObserver(() => this.flushMicroTaskQueue()); | ||
if (FEATURE.mutationObserver) { | ||
this.requestFlushMicroTaskQueue = makeRequestFlushFromMutationObserver(() => this.flushMicroTaskQueue()); | ||
} else { | ||
this.requestFlushMicroTaskQueue = makeRequestFlushFromTimer(() => this.flushMicroTaskQueue()); | ||
} | ||
this.requestFlushTaskQueue = makeRequestFlushFromTimer(() => this.flushTaskQueue()); | ||
@@ -72,0 +77,0 @@ } |
123318
2040
1