Skip to content

Commit 6ce644f

Browse files
2.4.3
1 parent 2881ac9 commit 6ce644f

11 files changed

+39
-20
lines changed

.appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
environment:
44
matrix:
5-
- nodejs_version: 4
5+
- nodejs_version: 6
66

77
version: "{build}"
88
build: off

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
node_modules
2-
index.bundle.js
2+
index.*.js
33
package-lock.json
44
*.log*
55
*.result.css

.rollup.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@ import babel from 'rollup-plugin-babel';
22

33
export default {
44
input: 'index.js',
5-
output: { file: 'index.bundle.js', format: 'cjs' },
5+
output: [
6+
{ file: 'index.cjs.js', format: 'cjs' },
7+
{ file: 'index.es.js', format: 'es' }
8+
],
69
plugins: [
710
babel({
811
presets: [

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
language: node_js
44

55
node_js:
6-
- 4
6+
- 6
77

88
install:
99
- npm install --ignore-scripts

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changes to PostCSS color-mod() Function
22

3+
### 2.4.3 (July 21, 2018)
4+
5+
- Fixed issue with color-mod not being converted within function
6+
37
### 2.4.2 (February 27, 2018)
48

59
- Fixed issue with converting colorspaces

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,8 +199,8 @@ knowledge of the living DOM tree.
199199
200200
[cli-img]: https://img.shields.io/travis/jonathantneal/postcss-color-mod-function.svg
201201
[cli-url]: https://travis-ci.org/jonathantneal/postcss-color-mod-function
202-
[css-img]: https://jonathantneal.github.io/cssdb/badge/color-mod-function.svg
203-
[css-url]: https://jonathantneal.github.io/css-db/#css-variables
202+
[css-img]: https://cssdb.org/badge/color-mod-function.svg
203+
[css-url]: https://preset-env.cssdb.org/features#color-mod-function
204204
[git-img]: https://img.shields.io/badge/support-chat-blue.svg
205205
[git-url]: https://gitter.im/postcss/postcss
206206
[npm-img]: https://img.shields.io/npm/v/postcss-color-mod-function.svg

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,4 @@ export default postcss.plugin('postcss-color-mod-function', opts => {
3434
};
3535
});
3636

37-
const colorModFunctionMatch = /(^|\s)color-mod\(/i;
37+
const colorModFunctionMatch = /(^|[^\w-])color-mod\(/i;

package.json

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
{
22
"name": "postcss-color-mod-function",
3-
"version": "2.4.2",
3+
"version": "2.4.3",
44
"description": "Modify colors using the color-mod() function in CSS",
55
"author": "Jonathan Neal <jonathantneal@hotmail.com>",
66
"license": "CC0-1.0",
77
"repository": "jonathantneal/postcss-color-mod-function",
88
"homepage": "https://github.com/jonathantneal/postcss-color-mod-function#readme",
99
"bugs": "https://github.com/jonathantneal/postcss-color-mod-function/issues",
10-
"main": "index.bundle.js",
11-
"module": "index.js",
10+
"main": "index.cjs.js",
11+
"module": "index.es.js",
1212
"files": [
13-
"index.js",
14-
"index.bundle.js",
13+
"index.cjs.js",
14+
"index.es.js",
1515
"lib"
1616
],
1717
"scripts": {
@@ -27,20 +27,20 @@
2727
},
2828
"dependencies": {
2929
"@csstools/convert-colors": "^1.4.0",
30-
"postcss": "^6.0.19",
31-
"postcss-values-parser": "^1.3.2"
30+
"postcss": "^6.0.23",
31+
"postcss-values-parser": "^1.5.0"
3232
},
3333
"devDependencies": {
34-
"babel-core": "^6.26.0",
35-
"babel-eslint": "^8.2.2",
36-
"babel-preset-env": "^1.6.1",
34+
"babel-core": "^6.26.3",
35+
"babel-eslint": "^8.2.6",
36+
"babel-preset-env": "^1.7.0",
3737
"echint": "^4.0.1",
38-
"eslint": "^4.18.1",
38+
"eslint": "^5.2.0",
3939
"eslint-config-dev": "^2.0.0",
4040
"postcss-tape": "^2.2.0",
4141
"pre-commit": "^1.2.2",
42-
"rollup": "^0.56.3",
43-
"rollup-plugin-babel": "^3.0.3"
42+
"rollup": "^0.63.4",
43+
"rollup-plugin-babel": "^3.0.7"
4444
},
4545
"eslintConfig": {
4646
"extends": "dev",

test/basic.colors.expect.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,3 +131,7 @@ test-var {
131131
test-multiple-value-items {
132132
border: 1px solid rgb(100% 0% 0%);
133133
}
134+
135+
test-linear-gradient {
136+
background-image: linear-gradient(rgb(100% 0% 0%), rgb(100% 0% 0% / 0%));
137+
}

test/basic.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,3 +131,7 @@ test-var {
131131
test-multiple-value-items {
132132
border: 1px solid color-mod(red);
133133
}
134+
135+
test-linear-gradient {
136+
background-image: linear-gradient(color-mod(red alpha(100%)), color-mod(red alpha(0%)));
137+
}

test/basic.expect.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,3 +131,7 @@ test-var {
131131
test-multiple-value-items {
132132
border: 1px solid rgb(255, 0, 0);
133133
}
134+
135+
test-linear-gradient {
136+
background-image: linear-gradient(rgb(255, 0, 0), rgba(255, 0, 0, 0));
137+
}

0 commit comments

Comments
 (0)