mq4-hover-shim
Advanced tools
Comparing version 0.2.0 to 0.3.0
{ | ||
"name": "mq4-hover-shim", | ||
"version": "0.2.0", | ||
"version": "0.3.0", | ||
"description": "A shim for the Media Queries Level 4 `hover` @media feature", | ||
@@ -35,4 +35,4 @@ "scripts": { | ||
"dependencies": { | ||
"css-mq-parser": "^0.0.2", | ||
"postcss": "^4.0.0" | ||
"css-mq-parser": "^0.0.3", | ||
"postcss": "^5.0.8" | ||
}, | ||
@@ -42,6 +42,6 @@ "devDependencies": { | ||
"grunt-babel": "^5.0.0", | ||
"grunt-browserify": "^3.2.1", | ||
"grunt-browserify": "^4.0.0", | ||
"grunt-contrib-jshint": "^0.11.0", | ||
"grunt-contrib-nodeunit": "^0.4.1", | ||
"grunt-eslint": "^10.0.0", | ||
"grunt-eslint": "^17.2.0", | ||
"grunt-jscs": "^1.5.0", | ||
@@ -48,0 +48,0 @@ "jscs-jsdoc": "^0.4.0", |
# mq4-hover-shim | ||
[![NPM version](https://badge.fury.io/js/mq4-hover-shim.svg)](http://badge.fury.io/js/mq4-hover-shim) | ||
[![Build Status](https://img.shields.io/travis/twbs/mq4-hover-shim/master.svg)](https://travis-ci.org/twbs/mq4-hover-shim) | ||
![Development Status :: 4 - Beta](https://img.shields.io/badge/maturity-beta-yellow.svg "Development Status :: 4 - Beta") | ||
[![MIT License](https://img.shields.io/npm/l/mq4-hover-shim.svg)](https://github.com/twbs/mq4-hover-shim/blob/master/LICENSE.txt) | ||
[![Dependency Status](https://david-dm.org/twbs/mq4-hover-shim.svg)](https://david-dm.org/twbs/mq4-hover-shim) | ||
@@ -5,0 +7,0 @@ [![devDependency Status](https://david-dm.org/twbs/mq4-hover-shim/dev-status.svg)](https://david-dm.org/twbs/mq4-hover-shim#info=devDependencies) |
@@ -1,2 +0,2 @@ | ||
/*eslint-env node */ | ||
/* eslint-env node */ | ||
'use strict'; | ||
@@ -3,0 +3,0 @@ |
@@ -1,2 +0,3 @@ | ||
/*eslint-env node */ | ||
/* eslint-env node */ | ||
/* eslint require-jsdoc:0 */ | ||
/*! | ||
@@ -42,3 +43,3 @@ * Postprocessor for shimming @media (hover: hover) from Media Queries Level 4 | ||
}); | ||
atRule.removeSelf(); | ||
atRule.remove(); | ||
} | ||
@@ -79,3 +80,3 @@ | ||
css.eachAtRule('media', function (atRule) { | ||
css.walkAtRules('media', function (atRule) { | ||
var mediaType = mediaTypeIfSimpleHoverHover(atRule); | ||
@@ -86,3 +87,3 @@ switch (mediaType) { | ||
case 'screen': { | ||
atRule.eachRule(function (rule) { | ||
atRule.walkRules(function (rule) { | ||
prefixSelectorsWith(rule, hoverSelectorPrefix); | ||
@@ -105,3 +106,3 @@ }); | ||
// Delete always-false media query | ||
atRule.removeSelf(); | ||
atRule.remove(); | ||
return; | ||
@@ -108,0 +109,0 @@ } |
33912
472
164
+ Addedansi-regex@2.1.1(transitive)
+ Addedansi-styles@2.2.1(transitive)
+ Addedchalk@1.1.3(transitive)
+ Addedcss-mq-parser@0.0.3(transitive)
+ Addedescape-string-regexp@1.0.5(transitive)
+ Addedhas-ansi@2.0.0(transitive)
+ Addedhas-flag@1.0.0(transitive)
+ Addedjs-base64@2.6.4(transitive)
+ Addedpostcss@5.2.18(transitive)
+ Addedsource-map@0.5.7(transitive)
+ Addedstrip-ansi@3.0.1(transitive)
+ Addedsupports-color@2.0.03.2.3(transitive)
- Removedamdefine@1.0.1(transitive)
- Removedcss-mq-parser@0.0.2(transitive)
- Removedes6-promise@2.3.0(transitive)
- Removedjs-base64@2.1.9(transitive)
- Removedpostcss@4.1.16(transitive)
- Removedsource-map@0.4.4(transitive)
Updatedcss-mq-parser@^0.0.3
Updatedpostcss@^5.0.8