Skip to content

Commit 5bcf23c

Browse files
committed
changelog and docs
1 parent 02564be commit 5bcf23c

File tree

6 files changed

+23
-4
lines changed

6 files changed

+23
-4
lines changed

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
## Changelog
22

3+
### 2.0.2
4+
* use a more mangle-safe check for Color class constructor to fix issues with UglifyJS and Tenser
5+
36
### 2.0.1
47
* added `chroma.valid()` for checking if a color can be parsed by chroma.js
58

docs/index.html

+4
Original file line numberDiff line numberDiff line change
@@ -543,6 +543,10 @@ <h3 id="cubehelix-scale">cubehelix.scale</h3>
543543
.colors(5);
544544
</code></pre>
545545
<h2 id="changelog">Changelog</h2>
546+
<h3 id="2-0-2">2.0.2</h3>
547+
<ul>
548+
<li>use a more mangle-safe check for Color class constructor to fix issues with UglifyJS and Tenser</li>
549+
</ul>
546550
<h3 id="2-0-1">2.0.1</h3>
547551
<ul>
548552
<li>added <code>chroma.valid()</code> for checking if a color can be parsed by chroma.js</li>

docs/libs/chroma.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@
149149
var me = this;
150150
if (type$1(args[0]) === 'object' &&
151151
args[0].constructor &&
152-
args[0].constructor.name === 'Color') {
152+
args[0].constructor === this.constructor) {
153153
// the argument is already a Color instance
154154
return args[0];
155155
}
@@ -199,7 +199,7 @@
199199
};
200200

201201
chroma.Color = Color_1;
202-
chroma.version = '@@version';
202+
chroma.version = '2.0.2';
203203

204204
var chroma_1 = chroma;
205205

docs/libs/chroma.min.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

+11
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
"rollup-plugin-commonjs": "^9.2.0",
3737
"rollup-plugin-license": "^0.7.0",
3838
"rollup-plugin-node-resolve": "^3.4.0",
39+
"rollup-plugin-replace": "^2.1.0",
3940
"rollup-plugin-uglify": "^6.0.0",
4041
"vows": "^0.8.2"
4142
},

0 commit comments

Comments
 (0)