autoprefixer 7.2.5 → 7.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,6 +1,9 @@
1
1
  # Change Log
2
2
  This project adheres to [Semantic Versioning](http://semver.org/).
3
3
 
4
+ ## 7.2.6
5
+ * Fix `-ms-` prefix for grid cells with same `grid-area` (by Evgeny Petukhov).
6
+
4
7
  ## 7.2.5
5
8
  * Fix multiple prefixes in declaration value.
6
9
 
package/README.md CHANGED
@@ -125,10 +125,10 @@ Autoprefixer uses [Browserslist], so you can specify the browsers
125
125
  you want to target in your project by queries like `last 2 versions`
126
126
  or `> 5%`.
127
127
 
128
- The best way to provide browsers is `browserslist` config
128
+ The best way to provide browsers is `.browserslistrc` config
129
129
  or `package.json` with `browserslist` key. Put it in your project root.
130
130
 
131
- We recommend to avoid Autoprefixer option and use `browserslist` config
131
+ We recommend to avoid Autoprefixer option and use `.browserslistrc` config
132
132
  or `package.json`. In this case browsers will be shared with other tools
133
133
  like [babel-preset-env] or [Stylelint].
134
134
 
@@ -589,11 +589,11 @@ to increase performance.
589
589
 
590
590
  ## Debug
591
591
 
592
- Run `npx autoprefixer-info` in your project directory to check
592
+ Run `npx autoprefixer-info --package autoprefixer` in your project directory to check
593
593
  which browsers are selected and which properties will be prefixed:
594
594
 
595
595
  ```
596
- $ npx autoprefixer-info
596
+ $ npx autoprefixer-info --package autoprefixer
597
597
  Browsers:
598
598
  Edge: 16
599
599
 
@@ -9,7 +9,7 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen
9
9
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }
10
10
 
11
11
  var Value = require('../value');
12
- var list = require('postcss/lib/list');
12
+ var list = require('postcss').list;
13
13
 
14
14
  var CrossFade = function (_Value) {
15
15
  _inherits(CrossFade, _Value);
package/lib/hacks/flex.js CHANGED
@@ -11,7 +11,7 @@ function _inherits(subClass, superClass) { if (typeof superClass !== "function"
11
11
  var flexSpec = require('./flex-spec');
12
12
  var Declaration = require('../declaration');
13
13
 
14
- var list = require('postcss/lib/list');
14
+ var list = require('postcss').list;
15
15
 
16
16
  var Flex = function (_Declaration) {
17
17
  _inherits(Flex, _Declaration);
@@ -78,18 +78,21 @@ var GridTemplateAreas = function (_Declaration) {
78
78
  if (prefix !== '-ms-') return _Declaration.prototype.insert.call(this, decl, prefix, prefixes);
79
79
 
80
80
  var areas = parseGridAreas(decl.value);
81
+ var missed = Object.keys(areas);
82
+
81
83
  this.getRoot(decl.parent).walkDecls('grid-area', function (gridArea) {
82
84
  var value = gridArea.value;
83
85
  var area = areas[value];
84
- delete areas[value];
85
86
 
86
- if (gridArea.parent.some(function (i) {
87
- return i.prop === '-ms-grid-row';
88
- })) {
89
- return undefined;
90
- }
87
+ missed = missed.filter(function (e) {
88
+ return e !== value;
89
+ });
91
90
 
92
91
  if (area) {
92
+ gridArea.parent.walkDecls(/-ms-grid-(row|column)/, function (d) {
93
+ d.remove();
94
+ });
95
+
93
96
  gridArea.cloneBefore({
94
97
  prop: '-ms-grid-row',
95
98
  value: String(area.row.start)
@@ -114,7 +117,6 @@ var GridTemplateAreas = function (_Declaration) {
114
117
  return undefined;
115
118
  });
116
119
 
117
- var missed = Object.keys(areas);
118
120
  if (missed.length > 0) {
119
121
  decl.warn(result, 'Can not find grid areas: ' + missed.join(', '));
120
122
  }
package/lib/prefixer.js CHANGED
@@ -7,7 +7,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
7
7
  var Browsers = require('./browsers');
8
8
  var utils = require('./utils');
9
9
 
10
- var vendor = require('postcss/lib/vendor');
10
+ var vendor = require('postcss').vendor;
11
11
 
12
12
  /**
13
13
  * Recursivly clone objects
package/lib/prefixes.js CHANGED
@@ -13,7 +13,7 @@ var AtRule = require('./at-rule');
13
13
  var Value = require('./value');
14
14
  var utils = require('./utils');
15
15
 
16
- var vendor = require('postcss/lib/vendor');
16
+ var vendor = require('postcss').vendor;
17
17
 
18
18
  Selector.hack(require('./hacks/fullscreen'));
19
19
  Selector.hack(require('./hacks/placeholder'));
package/lib/transition.js CHANGED
@@ -3,8 +3,8 @@
3
3
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
4
4
 
5
5
  var parser = require('postcss-value-parser');
6
- var vendor = require('postcss/lib/vendor');
7
- var list = require('postcss/lib/list');
6
+ var vendor = require('postcss').vendor;
7
+ var list = require('postcss').list;
8
8
 
9
9
  var Transition = function () {
10
10
  function Transition(prefixes) {
package/lib/utils.js CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var list = require('postcss/lib/list');
3
+ var list = require('postcss').list;
4
4
 
5
5
  module.exports = {
6
6
 
package/lib/value.js CHANGED
@@ -12,7 +12,7 @@ var Prefixer = require('./prefixer');
12
12
  var OldValue = require('./old-value');
13
13
  var utils = require('./utils');
14
14
 
15
- var vendor = require('postcss/lib/vendor');
15
+ var vendor = require('postcss').vendor;
16
16
 
17
17
  var Value = function (_Prefixer) {
18
18
  _inherits(Value, _Prefixer);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "autoprefixer",
3
- "version": "7.2.5",
3
+ "version": "7.2.6",
4
4
  "description": "Parse CSS and add vendor prefixes to CSS rules using values from the Can I Use website",
5
5
  "keywords": [
6
6
  "autoprefixer",
@@ -13,11 +13,11 @@
13
13
  "license": "MIT",
14
14
  "repository": "postcss/autoprefixer",
15
15
  "dependencies": {
16
- "browserslist": "^2.11.1",
17
- "caniuse-lite": "^1.0.30000791",
16
+ "browserslist": "^2.11.3",
17
+ "caniuse-lite": "^1.0.30000805",
18
18
  "normalize-range": "^0.1.2",
19
19
  "num2fraction": "^1.2.2",
20
- "postcss": "^6.0.16",
20
+ "postcss": "^6.0.17",
21
21
  "postcss-value-parser": "^3.2.3"
22
22
  },
23
23
  "bin": {