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

Commit

Permalink
5.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
MoOx committed Feb 3, 2016
1 parent 5f524ed commit c1bfe9f
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 46 deletions.
39 changes: 0 additions & 39 deletions .eslintrc

This file was deleted.

7 changes: 7 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
language: node_js

node_js:
- 4
- 5

matrix:
fast_finish: true
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# 5.0.1 - 2016-02-03

- Fixed: circular dependencies are properly detected
([#17](https://github.com/postcss/postcss-custom-media/pull/17))

# 5.0.0 - 2015-08-25

- Removed: compatibility with postcss v4.x
Expand Down
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ function customMedia(options) {
})

Object.keys(map).forEach(function(name) {
map[name].value = resolveValue(map[name], [name], map, result)
map[name].value = resolveValue(map[name], [ name ], map, result)
map[name].resolved = true
})

Expand All @@ -100,7 +100,7 @@ function customMedia(options) {
result.warn(
"Circular @custom-media definition for '" + name +
"'. The entire rule has been removed from the output.",
{node: rule}
{ node: rule }
)
toRemove.push(rule)
}
Expand All @@ -110,7 +110,7 @@ function customMedia(options) {
result.warn(
"Missing @custom-media definition for '" + name +
"'. The entire rule has been removed from the output.",
{node: rule}
{ node: rule }
)
toRemove.push(rule)
})
Expand Down
14 changes: 11 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "postcss-custom-media",
"version": "5.0.0",
"version": "5.0.1",
"description": "PostCSS plugin to transform W3C CSS Custom Media Queries to more compatible CSS",
"keywords": [
"css",
Expand All @@ -22,10 +22,18 @@
"postcss": "^5.0.0"
},
"devDependencies": {
"eslint": "^1.0.0",
"eslint": "^1.10.3",
"eslint-config-i-am-meticulous": "^2.0.0",
"npmpub": "^3.0.1",
"tape": "^4.0.0"
},
"scripts": {
"test": "eslint . && tape test"
"lint": "eslint --fix .",
"tests": "tape test",
"test": "npm run lint && npm run tests",
"release": "npmpub"
},
"eslintConfig": {
"extends": "eslint-config-i-am-meticulous/es5"
}
}
2 changes: 1 addition & 1 deletion test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ test("@custom-media", function(t) {
t,
"preserve",
"should preserve custom media",
{preserve: true}
{ preserve: true }
)

compareFixtures(
Expand Down

0 comments on commit c1bfe9f

Please sign in to comment.