Skip to content

Commit bd3ccb3

Browse files
committed
Release version 1.3.0
1 parent dc50f7d commit bd3ccb3

12 files changed

+57
-12
lines changed

History.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
### 1.3.0 / 2020-01-01
2+
3+
* support object values for `period` property to have ability to get random time periods
4+
* add fields `actionResult` and `onExecuteResult` to save results of calling `action` and `onExecute`
5+
* add properties `startTime`, `executeTime` and `stopTime` to save start, execution and stop time
6+
* `repeatTest` function can return any value that is supported for `period` property to control next execution scheduling
7+
* export `getRandomValue` function
8+
19
### 1.2.0 / 2019-12-26
210

311
* support of array and function values for `period` property

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,19 @@
22

33
Utility class to simplify use of timers created by `setTimeout`.
44

5+
### Features
6+
7+
* Support for one-time (like `setTimeout`) or recurrent (like `setInterval`) timers.
8+
* It is possible to repeat action indefinitely (`recurrent` property),
9+
specified number of times (`repeatQty` property) or depending on
10+
result of control function (`repeatTest` property).
11+
* Time period (timeout) can be: a fixed value, a random value, an item selected from a list
12+
depending on action's execution number, or a value returned from specified function.
13+
* Action that is called can be a function or an object having `execute` method.
14+
* Action result is saved in timer's field for further access.
15+
* Timer's start time, stop time and action execution times are saved in
16+
`startTime`, `stopTime` and `executeTime` properties correspondingly.
17+
518
```js
619
var timer = new Timer({
720
period: [100, 200, 300, 400, 500, {start: 100, end: 500}],

bower.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "chronoman",
33
"main": ["dist/chronoman.js", "dist/chronoman.min.js"],
4-
"version": "1.2.0",
4+
"version": "1.3.0",
55
"homepage": "https://github.com/gamtiq/chronoman",
66
"authors": [
77
"Denis Sikuler"
@@ -15,8 +15,12 @@
1515
"timeout",
1616
"interval",
1717
"repeat",
18+
"repeating",
19+
"recurrent",
1820
"period",
1921
"periodic",
22+
"control",
23+
"manage",
2024
"management",
2125
"utility",
2226
"chrono",

component.json

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "chronoman",
33
"repository": "gamtiq/chronoman",
44
"description": "Utility class to simplify use of timers created by setTimeout",
5-
"version": "1.2.0",
5+
"version": "1.3.0",
66
"keywords": [
77
"setTimeout",
88
"setInterval",
@@ -11,9 +11,13 @@
1111
"timeout",
1212
"interval",
1313
"repeat",
14-
"period",
14+
"repeating",
15+
"recurrent",
16+
"period",
1517
"periodic",
16-
"management",
18+
"control",
19+
"manage",
20+
"management",
1721
"utility",
1822
"chrono",
1923
"run",

doc/chronoman.js.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1098,7 +1098,7 @@ <h4 class="modal-title">Search results</h4>
10981098
<span class="jsdoc-message">
10991099
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.3</a>
11001100

1101-
on 2020-01-01T21:31:19+03:00
1101+
on 2020-01-01T23:50:19+03:00
11021102

11031103
using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
11041104
</span>

doc/classes.list.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ <h4 class="modal-title">Search results</h4>
206206
<span class="jsdoc-message">
207207
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.3</a>
208208

209-
on 2020-01-01T21:31:19+03:00
209+
on 2020-01-01T23:50:20+03:00
210210

211211
using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
212212
</span>

doc/index.html

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,18 @@
9494

9595
<section class="readme-section">
9696
<article><h1>chronoman</h1><p>Utility class to simplify use of timers created by <code>setTimeout</code>.</p>
97+
<h3>Features</h3><ul>
98+
<li>Support for one-time (like <code>setTimeout</code>) or recurrent (like <code>setInterval</code>) timers.</li>
99+
<li>It is possible to repeat action indefinitely (<code>recurrent</code> property),
100+
specified number of times (<code>repeatQty</code> property) or depending on
101+
result of control function (<code>repeatTest</code> property).</li>
102+
<li>Time period (timeout) can be: a fixed value, a random value, an item selected from a list
103+
depending on action's execution number, or a value returned from specified function.</li>
104+
<li>Action that is called can be a function or an object having <code>execute</code> method.</li>
105+
<li>Action result is saved in timer's field for further access.</li>
106+
<li>Timer's start time, stop time and action execution times are saved in
107+
<code>startTime</code>, <code>stopTime</code> and <code>executeTime</code> properties correspondingly.</li>
108+
</ul>
97109
<pre class="prettyprint source lang-js"><code>var timer = new Timer({
98110
period: [100, 200, 300, 400, 500, {start: 100, end: 500}],
99111
repeatQty: 100,
@@ -208,7 +220,7 @@ <h4 class="modal-title">Search results</h4>
208220
<span class="jsdoc-message">
209221
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.3</a>
210222

211-
on 2020-01-01T21:31:19+03:00
223+
on 2020-01-01T23:50:20+03:00
212224

213225
using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
214226
</span>

doc/module-chronoman-Timer.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6218,7 +6218,7 @@ <h4 class="modal-title">Search results</h4>
62186218
<span class="jsdoc-message">
62196219
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.3</a>
62206220

6221-
on 2020-01-01T21:31:19+03:00
6221+
on 2020-01-01T23:50:20+03:00
62226222

62236223
using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
62246224
</span>

doc/module-chronoman.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1260,7 +1260,7 @@ <h4 class="modal-title">Search results</h4>
12601260
<span class="jsdoc-message">
12611261
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.3</a>
12621262

1263-
on 2020-01-01T21:31:19+03:00
1263+
on 2020-01-01T23:50:20+03:00
12641264

12651265
using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
12661266
</span>

doc/modules.list.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ <h4 class="modal-title">Search results</h4>
206206
<span class="jsdoc-message">
207207
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.3</a>
208208

209-
on 2020-01-01T21:31:19+03:00
209+
on 2020-01-01T23:50:19+03:00
210210

211211
using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
212212
</span>

0 commit comments

Comments
 (0)