Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

autoprefixer

Package Overview
Dependencies
Maintainers
2
Versions
244
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

autoprefixer - npm Package Compare versions

Comparing version 1.0.20131222 to 1.0.20140103

12

ChangeLog.md

@@ -5,3 +5,3 @@ ## 1.0 “Plus ultra”

* Change CSS parser to PostCSS.
* Keep vendor hacks, which does right after unprefixed property.
* Preserve vendor-prefixed properties put right after unprefixed ones.
* Rename compile() to process() and return result object, instead of CSS string.

@@ -23,2 +23,12 @@ * Rename inspect() to info().

### 20131225:
* Fix deprecated API convertor.
* Add ::placeholder support for Firefix >= 18.
* Fix vendor prefixes order.
### 20140103:
* Add webkit prefix for sticky position.
* Update browsers popularity statistics.
## 0.8 “Unbowed, Unbent, Unbroken”

@@ -25,0 +35,0 @@ * Add more browsers to defaults ("> 1%, last 2 versions, ff 17, opera 12.1"

18

data/browsers.js

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

versions: [4.3, 4.2, 4.1, 4, 3, 2.3, 2.2, 2.1],
popularity: [0.393833, 0.393833, 1.98513, 1.05377, 0.00532207, 1.3997, 0.0904751, 0.0266103]
popularity: [0.53036, 0.53036, 2.31995, 1.15377, 0.00620307, 1.49494, 0.0992491, 0.0310153]
},

@@ -15,3 +15,3 @@ bb: {

versions: [10, 7],
popularity: [0, 0.160821]
popularity: [0, 0.177331]
},

@@ -22,3 +22,3 @@ chrome: {

versions: [31, 30, 29, 28, 27, 26, 25, 24, 23, 22, 21, 20, 19, 18, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4],
popularity: [14.7206, 15.7521, 0.631684, 0.415792, 0.335832, 0.391804, 0.263868, 0.175912, 0.191904, 0.231884, 0.47976, 0.03998, 0.03998, 0.095952, 0.031984, 0.047976, 0.071964, 0.055972, 0.055972, 0.063968, 0.111944, 0.03998, 0.023988, 0.031984, 0.023988, 0.031984, 0.023988, 0.023988]
popularity: [30.1841, 0.628038, 0.528471, 0.329337, 0.359973, 0.30636, 0.15318, 0.091908, 0.107226, 0.130203, 0.444222, 0.045954, 0.038295, 0.107226, 0.030636, 0.045954, 0.068931, 0.053613, 0.053613, 0.068931, 0.122544, 0.038295, 0.022977, 0.030636, 0.022977, 0.030636, 0.022977, 0.030636]
},

@@ -29,3 +29,3 @@ ff: {

versions: [26, 25, 24, 23, 22, 21, 20, 19, 18, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3.6, 3.5, 3, 2],
popularity: [0.415792, 9.51524, 2.47076, 0.295852, 0.1999, 0.191904, 0.143928, 0.11994, 0.095952, 0.191904, 0.23988, 0.135932, 0.087956, 0.087956, 0.191904, 0.087956, 0.103948, 0.055972, 0.063968, 0.03998, 0.047976, 0.03998, 0.063968, 0.311844, 0.03998, 0.087956, 0.015992]
popularity: [4.77922, 7.50582, 0.359973, 0.199134, 0.168498, 0.183816, 0.137862, 0.107226, 0.091908, 0.160839, 0.176157, 0.107226, 0.084249, 0.084249, 0.191475, 0.084249, 0.107226, 0.053613, 0.068931, 0.038295, 0.045954, 0.038295, 0.061272, 0.260406, 0.038295, 0.091908, 0.015318]
},

@@ -35,3 +35,3 @@ ie: {

versions: [11, 10, 9, 8, 7, 6, 5.5],
popularity: [1.28176, 9.68717, 4.62585, 7.55911, 0.435471, 0.246493, 0.009298]
popularity: [5.39701, 4.67264, 3.38308, 5.8189, 0.254726, 0.302487, 0.009298]
},

@@ -41,9 +41,9 @@ ios: {

versions: [7, 6.1, 6, 5.1, 5, 4.3, 4.2, 4.1, 4, 3.2],
popularity: [2.91427, 0.517185, 0.517185, 0.154512, 0.154512, 0.015022, 0.015022, 0.004292, 0.004292, 0.004292]
popularity: [3.50034, 0.541895, 0.541895, 0.144017, 0.144017, 0.0146458, 0.0146458, 0.004881925, 0.004881925, 0.00488193]
},
opera: {
prefix: "-o-",
future: [18],
future: [19, 18],
versions: [17, 16, 15, 12.1, 12, 11.6, 11.5, 11.1, 11, 10.6, 10.5, 10.1, 10, 9.6, 9.5],
popularity: [0.191904, 0.03998, 0.023988, 0.447776, 0.03998, 0.023988, 0.015992, 0.008219, 0.008219, 0.007996, 0.008392, 0.007996, 0.007996, 0.003998, 0.003998]
popularity: [0.038295, 0.022977, 0.022977, 0.451881, 0.038295, 0.030636, 0.015318, 0.008219, 0.008219, 0.015318, 0.008392, 0.007659, 0.007659, 0.0038295, 0.0038295]
},

@@ -53,3 +53,3 @@ safari: {

versions: [7, 6.1, 6, 5.1, 5, 4, 3.2, 3.1],
popularity: [0.751624, 0.583708, 0.943528, 1.0075, 0.295852, 0.111944, 0.008692, 0]
popularity: [0.873126, 0.773559, 0.68931, 0.934398, 0.275724, 0.114885, 0.008692, 0]
}

@@ -56,0 +56,0 @@ };

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

if (name === 'file') {
name === 'from';
name = 'from';
}

@@ -67,3 +67,3 @@ fixed[name] = value;

}
return this.process(str, options).css;
return this.process(str, fixed).css;
};

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

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

return ':-ms-input-placeholder';
} else if ('-moz- old' === prefix) {
return ':-moz-placeholder';
} else {

@@ -25,0 +27,0 @@ return "::" + prefix + "placeholder";

@@ -107,5 +107,3 @@ (function() {

});
add = utils.uniq(add).sort(function(a, b) {
return b.length - a.length;
});
add = this.sort(utils.uniq(add));
all = data.browsers.map(function(i) {

@@ -133,2 +131,15 @@ return _this.browsers.prefix(i);

Prefixes.prototype.sort = function(prefixes) {
return prefixes.sort(function(a, b) {
var aLength, bLength;
aLength = utils.removeNote(a).length;
bLength = utils.removeNote(b).length;
if (aLength === bLength) {
return b.length - a.length;
} else {
return bLength - aLength;
}
});
};
Prefixes.prototype.preprocess = function(selected) {

@@ -135,0 +146,0 @@ var add, name, old, olds, prefix, prefixed, prefixes, prop, props, remove, selector, value, values, _i, _j, _k, _l, _len, _len1, _len2, _len3, _len4, _len5, _len6, _m, _n, _o, _ref, _ref1, _ref2;

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

_this = this;
_ref = fork.split('/'), user = _ref[0], branch = _ref[1];
_ref = fork.split(':'), user = _ref[0], branch = _ref[1];
branch || (branch = 'master');

@@ -137,0 +137,0 @@ url = "" + user + "/caniuse/" + branch + "/features-json/" + file + ".json";

{
"name": "autoprefixer",
"version": "1.0.20131222",
"version": "1.0.20140103",
"description": "Parse CSS and add vendor prefixes to CSS rules using values from the Can I Use website",

@@ -18,6 +18,6 @@ "keywords": ["css", "prefix", "postprocessor", "postcss"],

"coffee-script": "1.6.3",
"browserify": "3.13.0",
"browserify": "3.18.0",
"should": "2.1.1",
"stylus": "0.41.3",
"mocha": "1.16.1",
"mocha": "1.16.2",
"glob": "3.2.7",

@@ -24,0 +24,0 @@ "nib": "1.0.1"

@@ -87,4 +87,8 @@ # Autoprefixer

### Rewrite syntax
Note, that Autoprefixer doesn’t load Can I Use data every time. This data
is already packed to release, so with same Autoprefixer version you always will
have same output result.
### Flexbox, Gradients, etc.
Flexbox or gradients have different syntaxes in different browsers

@@ -115,2 +119,6 @@ (sometimes you need to recalculate angles, sometimes you need 2 old properties

Autoprefixer has [22 special hack] to fix browser’s differences.
[22 special hack]: https://github.com/ai/autoprefixer/tree/master/lib/hacks
### Fast

@@ -126,5 +134,5 @@

Load GitHub styles
Autoprefixer: 522 ms
Compass: 4901 ms (9.4 times slower)
Stylus: 4544 ms (8.7 times slower)
Autoprefixer: 489 ms
Compass: 4156 ms (8.5 times slower)
Stylus: 4165 ms (8.5 times slower)
```

@@ -370,2 +378,3 @@

var autoprefixer = require('autoprefixer');
var css = 'a { transition: transform 1s }';
var prefixed = autoprefixer.process(css).css;

@@ -409,3 +418,9 @@ ```

### Brackets
Styles can processed automatically in Brackets using the
[brackets-autoprefixer](https://github.com/mikaeljorhult/brackets-autoprefixer)
extension.
### Others

@@ -412,0 +427,0 @@

@@ -140,2 +140,9 @@ (function() {

this.feature('css-placeholder', function(browsers) {
browsers = _this.map(browsers, function(browser, name, version) {
if (name === 'ff' && version <= 18) {
return browser + ' old';
} else {
return browser;
}
});
return prefix('::placeholder', {

@@ -174,2 +181,8 @@ selector: true,

});
this.feature('css-sticky', function(browsers) {
return prefix('sticky', {
props: ['position'],
browsers: browsers
});
});
return this.done(function() {

@@ -176,0 +189,0 @@ return _this.save('prefixes', prefixes);

Sorry, the diff of this file is too big to display

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