Socket
Socket
Sign inDemoInstall

autoprefixer-core

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

autoprefixer-core - npm Package Compare versions

Comparing version 3.0.1 to 3.1.0

lib/hacks/filter-value.js

7

ChangeLog.md

@@ -0,1 +1,8 @@

## 3.1 “Satyameva Jayate”
* Do not remove comments from prefixed values (by Eitan Rousso).
* Allow Safari 6.1 to use final Flexbox spec (by John Kreitlow).
* Fix `filter` value in `transition` in Webkits.
* Show greetings if your browsers don’t require any prefixes.
* Add `<=` and `<` browsers requirement.
## 3.0.1

@@ -2,0 +9,0 @@ * Fix `autoprefixer.postcss` in callbacks.

2

data/prefixes.js

@@ -159,3 +159,3 @@ (function() {

browsers = map(browsers, function(browser, name, version) {
if ((name === 'safari' || name === 'ios_saf') && version < 7) {
if (name === 'safari' && version < 6.1 || name === 'ios_saf' && version < 7) {
return browser + ' 2009';

@@ -162,0 +162,0 @@ } else if (name === 'chrome' && version < 21) {

@@ -120,3 +120,3 @@ (function() {

},
newerThen: {
newerThan: {
regexp: /^(\w+) (>=?)\s*([\d\.]+)/,

@@ -141,2 +141,22 @@ select: function(browser, sign, version) {

},
olderThan: {
regexp: /^(\w+) (<=?)\s*([\d\.]+)/,
select: function(browser, sign, version) {
var data, filter;
data = this.byName(browser);
version = parseFloat(version);
if (sign === '<') {
filter = function(v) {
return v < version;
};
} else if (sign === '<=') {
filter = function(v) {
return v <= version;
};
}
return data.versions.filter(filter).map(function(v) {
return "" + data.name + " " + v;
});
}
},
esr: {

@@ -143,0 +163,0 @@ regexp: /^(firefox|ff|fx) esr$/i,

@@ -115,2 +115,5 @@ (function() {

}
if (atrules === '' && selectors === '' && props === '' && values === '') {
out += '\nAwesome! Your browsers don\'t require any vendor prefixes.' + '\nNow you can remove Autoprefixer from build steps.';
}
return out;

@@ -117,0 +120,0 @@ };

@@ -68,2 +68,4 @@ (function() {

Value.hack(require('./hacks/filter-value'));
Value.hack(require('./hacks/fill-available'));

@@ -70,0 +72,0 @@

@@ -80,5 +80,5 @@ (function() {

Value.prototype.add = function(decl, prefix) {
var value;
var value, _ref;
decl._autoprefixerValues || (decl._autoprefixerValues = {});
value = decl._autoprefixerValues[prefix] || decl.value;
value = decl._autoprefixerValues[prefix] || ((_ref = decl._value) != null ? _ref.raw : void 0) || decl.value;
value = this.replace(value, prefix);

@@ -85,0 +85,0 @@ if (value) {

{
"name": "autoprefixer-core",
"version": "3.0.1",
"version": "3.1.0",
"description": "CLI-less core of Autoprefixer to use in plugins",

@@ -13,4 +13,4 @@ "keywords": ["autoprefixer", "css", "prefix", "postprocessor", "postcss"],

"dependencies": {
"caniuse-db": "^1.0.20140826",
"postcss": "~2.2.3"
"caniuse-db": "^1.0.20140911",
"postcss": "~2.2.4"
},

@@ -23,9 +23,9 @@ "devDependencies": {

"gulp-jshint": "1.8.4",
"gulp-coffee": "2.1.2",
"gulp-mocha": "1.0.0",
"browserify": "5.10.1",
"fs-extra": "0.11.0",
"gulp-coffee": "2.2.0",
"gulp-mocha": "1.1.0",
"browserify": "5.11.2",
"fs-extra": "0.11.1",
"should": "4.0.4",
"mocha": "1.21.4",
"gulp": "3.8.7",
"gulp": "3.8.8",
"coffee-script": "1.8.0"

@@ -32,0 +32,0 @@ },

@@ -27,3 +27,3 @@ # Autoprefixer Core [![Build Status](https://travis-ci.org/postcss/autoprefixer-core.png)](https://travis-ci.org/postcss/autoprefixer-core)

:fullscreen a {
transition: transform 1s
transition: transform 1s;
}

@@ -30,0 +30,0 @@ ```

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc