Skip to content

Commit d84326e

Browse files
author
Andrew E. Rhyne
committed
release 2.0.0
1 parent 85569dd commit d84326e

File tree

7 files changed

+142
-100
lines changed

7 files changed

+142
-100
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
node_modules
33
*.sock
44
npm-debug.log
5+
yarn.lock

.npmignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ support
22
test
33
examples
44
*.sock
5+
yarn.lock

CHANGELOG.md

Lines changed: 115 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,115 @@
1+
2+
2.0.0 / 2017-04-04
3+
==================
4+
5+
* Fix: check before using stream.clearLine to prevent crash in Docker
6+
* Fix: fixed output multiline on windows cmd
7+
* Fix: Bug with array length when window is too small
8+
* Fix: Don't clear whole line every time; instead, clear everything after end of line
9+
* Fix: Use `this.stream` instead of `console.log` when terminating a progress bar to ensure that, if a writable stream is provided, it uses that rather than process.stdout
10+
* Fix: Bug causing potentially stale tokens on render
11+
* Feature: configurable cursor
12+
* Feature: feature to interrupt the bar and display a message
13+
* Feature: Add rate reporting to progress bar
14+
* Improvement: Add head option to specify head character
15+
* Improvement: Rename tickTokens to tokens
16+
* Improvement: Change default throttle time to 16ms
17+
* Improvement: Rename renderDelay to renderThrottle
18+
* Improvement: Add delay between render updates
19+
* Docs: Add example and documentation for custom token usage
20+
* Docs: Add head option to readme
21+
* Docs: Updated README example for public use
22+
* Docs: Add renderThrottle option to code documentation
23+
24+
1.1.7 / 2014-06-30
25+
==================
26+
27+
* fixed a bug that occurs when a progress bar attempts to draw itself
28+
on a console with very few columns
29+
30+
1.1.6 / 2014-06-16
31+
==================
32+
33+
* now prevents progress bar from exceeding TTY width by limiting its width to
34+
the with of the TTY
35+
36+
1.1.5 / 2014-03-25
37+
==================
38+
39+
* updated documentation and various other repo maintenance
40+
* updated makefile to run examples with `make`
41+
* removed dependency on readline module
42+
43+
1.1.4 / 2014-03-14
44+
==================
45+
46+
* now supports streams, for example output progress bar to stderr, while piping
47+
stdout
48+
* increases performance and flicker by remembering the last drawn progress bar
49+
50+
1.1.3 / 2013-12-31
51+
==================
52+
53+
* fixes a bug where bar would bug when initializing
54+
* allows to pass updated tokens when ticking or updating the bar
55+
* fixes a bug where the bar would throw if skipping to far
56+
57+
1.1.2 / 2013-10-17
58+
==================
59+
60+
* lets you pass an `fmt` and a `total` instead of an options object
61+
62+
1.1.0 / 2013-09-18
63+
==================
64+
65+
* eta and elapsed tokens default to 0.0 instead of ?.?
66+
* better JSDocs
67+
* added back and forth example
68+
* added method to update the progress bar to a specific percentage
69+
* added an option to hide the bar on completion
70+
71+
1.0.1 / 2013-08-07
72+
==================
73+
74+
* on os x readline now works, reverting the terminal hack
75+
76+
1.0.0 / 2013-06-18
77+
==================
78+
79+
* remove .version
80+
* merge pull request #15 from davglass/readline-osx
81+
* on OSX revert back to terminal hack to avoid a readline bug
82+
83+
0.1.0 / 2012-09-19
84+
==================
85+
86+
* fixed logic bug that caused bar to jump one extra space at the end [davglass]
87+
* working with readline impl, even on Windows [davglass]
88+
* using readline instead of the \r hack [davglass]
89+
90+
0.0.5 / 2012-08-07
91+
==================
92+
93+
* add ability to tick by zero chunks - tick(0)
94+
* fix ETA. Closes #4 [lwille]
95+
96+
0.0.4 / 2011-11-14
97+
==================
98+
99+
* allow more recent versions of node
100+
101+
0.0.3 / 2011-04-20
102+
==================
103+
104+
* changed; erase the line when complete
105+
106+
0.0.2 / 2011-04-20
107+
==================
108+
109+
* added custom tokens support
110+
* fixed; clear line before writing
111+
112+
0.0.1 / 2010-01-03
113+
==================
114+
115+
* initial release

History.md

Lines changed: 0 additions & 77 deletions
This file was deleted.

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
(The MIT License)
22

3-
Copyright (c) 2014 TJ Holowaychuk <[email protected]>
3+
Copyright (c) 2017 TJ Holowaychuk <[email protected]>
44

55
Permission is hereby granted, free of charge, to any person obtaining
66
a copy of this software and associated documentation files (the

examples/interrupt.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* progress intact
55
*/
66

7-
var ProgressBar = require('progress');
7+
var ProgressBar = require('../');
88

99
var bar = new ProgressBar(':bar :current/:total', { total: 10 });
1010
var timer = setInterval(function () {
@@ -15,4 +15,3 @@ var timer = setInterval(function () {
1515
bar.interrupt('interrupt: current progress is ' + bar.curr + '/' + bar.total);
1616
}
1717
}, 1000);
18-

package.json

Lines changed: 23 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,25 @@
11
{
2-
"name": "progress"
3-
, "version": "1.1.8"
4-
, "description": "Flexible ascii progress bar"
5-
, "keywords": ["cli", "progress"]
6-
, "author": "TJ Holowaychuk <[email protected]>"
7-
, "contributors": [
8-
{
9-
"name": "Christoffer Hallas"
10-
, "email": "[email protected]"
11-
}
12-
, {
13-
"name": "Jordan Scales"
14-
, "email": "[email protected]"
15-
}
16-
]
17-
, "dependencies": {}
18-
, "main": "index"
19-
, "engines": { "node": ">=0.4.0" }
20-
, "repository": "git://github.com/visionmedia/node-progress"
21-
, "license": "MIT"
2+
"name": "progress",
3+
"version": "2.0.0",
4+
"description": "Flexible ascii progress bar",
5+
"repository": {
6+
"type": "git",
7+
"url": "git://github.com/visionmedia/node-progress"
8+
},
9+
"keywords": [
10+
"cli",
11+
"progress"
12+
],
13+
"author": "TJ Holowaychuk <[email protected]>",
14+
"contributors": [
15+
"Christoffer Hallas <[email protected]>",
16+
"Jordan Scales <[email protected]>",
17+
"Andrew Rhyne <[email protected]>"
18+
],
19+
"dependencies": {},
20+
"main": "./index.js",
21+
"engines": {
22+
"node": ">=0.4.0"
23+
},
24+
"license": "MIT"
2225
}

0 commit comments

Comments
 (0)