Skip to content
This repository was archived by the owner on Jun 6, 2022. It is now read-only.

Commit c1bfe9f

Browse files
committed
5.0.1
1 parent 5f524ed commit c1bfe9f

File tree

6 files changed

+27
-46
lines changed

6 files changed

+27
-46
lines changed

.eslintrc

-39
This file was deleted.

.travis.yml

+7
Original file line numberDiff line numberDiff line change
@@ -1 +1,8 @@
11
language: node_js
2+
3+
node_js:
4+
- 4
5+
- 5
6+
7+
matrix:
8+
fast_finish: true

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# 5.0.1 - 2016-02-03
2+
3+
- Fixed: circular dependencies are properly detected
4+
([#17](https://github.com/postcss/postcss-custom-media/pull/17))
5+
16
# 5.0.0 - 2015-08-25
27

38
- Removed: compatibility with postcss v4.x

index.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ function customMedia(options) {
8484
})
8585

8686
Object.keys(map).forEach(function(name) {
87-
map[name].value = resolveValue(map[name], [name], map, result)
87+
map[name].value = resolveValue(map[name], [ name ], map, result)
8888
map[name].resolved = true
8989
})
9090

@@ -100,7 +100,7 @@ function customMedia(options) {
100100
result.warn(
101101
"Circular @custom-media definition for '" + name +
102102
"'. The entire rule has been removed from the output.",
103-
{node: rule}
103+
{ node: rule }
104104
)
105105
toRemove.push(rule)
106106
}
@@ -110,7 +110,7 @@ function customMedia(options) {
110110
result.warn(
111111
"Missing @custom-media definition for '" + name +
112112
"'. The entire rule has been removed from the output.",
113-
{node: rule}
113+
{ node: rule }
114114
)
115115
toRemove.push(rule)
116116
})

package.json

+11-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "postcss-custom-media",
3-
"version": "5.0.0",
3+
"version": "5.0.1",
44
"description": "PostCSS plugin to transform W3C CSS Custom Media Queries to more compatible CSS",
55
"keywords": [
66
"css",
@@ -22,10 +22,18 @@
2222
"postcss": "^5.0.0"
2323
},
2424
"devDependencies": {
25-
"eslint": "^1.0.0",
25+
"eslint": "^1.10.3",
26+
"eslint-config-i-am-meticulous": "^2.0.0",
27+
"npmpub": "^3.0.1",
2628
"tape": "^4.0.0"
2729
},
2830
"scripts": {
29-
"test": "eslint . && tape test"
31+
"lint": "eslint --fix .",
32+
"tests": "tape test",
33+
"test": "npm run lint && npm run tests",
34+
"release": "npmpub"
35+
},
36+
"eslintConfig": {
37+
"extends": "eslint-config-i-am-meticulous/es5"
3038
}
3139
}

test/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ test("@custom-media", function(t) {
9797
t,
9898
"preserve",
9999
"should preserve custom media",
100-
{preserve: true}
100+
{ preserve: true }
101101
)
102102

103103
compareFixtures(

0 commit comments

Comments
 (0)