postcss-calc 7.0.0 → 7.0.1

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,3 +1,9 @@
1
+ # 7.0.1
2
+
3
+ - Updated: `postcss` to 7.0.2 (patch)
4
+ - Updated: `postcss-selector-parser` to 5.0.0-rc.4 (patch)
5
+ - Updated: `postcss-value-parser` to 3.3.1 (patch)
6
+
1
7
  # 7.0.0
2
8
 
3
9
  - Changed: Updated postcss-selector-parser to version 5.0.0-rc.3
package/LICENSE CHANGED
File without changes
package/README.md CHANGED
@@ -1,16 +1,19 @@
1
- # postcss-calc [![Build Status](https://travis-ci.org/postcss/postcss-calc.png)](https://travis-ci.org/postcss/postcss-calc)
1
+ # PostCSS Calc [<img src="https://postcss.github.io/postcss/logo.svg" alt="PostCSS" width="90" height="90" align="right">][PostCSS]
2
2
 
3
- > [PostCSS](https://github.com/postcss/postcss) plugin to reduce `calc()`.
3
+ [![NPM Version][npm-img]][npm-url]
4
+ [![Build Status][cli-img]][cli-url]
5
+ [![Support Chat][git-img]][git-url]
4
6
 
5
- This plugin reduce `calc()` references whenever it's possible.
6
- This can be particularly useful with the [postcss-custom-properties](https://github.com/postcss/postcss-custom-properties) plugin.
7
+ [PostCSS Calc] lets you reduce `calc()` references whenever it's possible. This
8
+ can be particularly useful with the [PostCSS Custom Properties] plugin.
7
9
 
8
- **Note:** When multiple units are mixed together in the same expression, the `calc()` statement is left as is, to fallback to the [w3c calc() feature](http://www.w3.org/TR/css3-values/#calc).
10
+ When multiple units are mixed together in the same expression, the `calc()`
11
+ statement is left as is, to fallback to the [W3C calc() implementation].
9
12
 
10
13
  ## Installation
11
14
 
12
- ```console
13
- $ npm install postcss-calc
15
+ ```bash
16
+ npm install postcss-calc
14
17
  ```
15
18
 
16
19
  ## Usage
@@ -31,7 +34,7 @@ var output = postcss()
31
34
  .css
32
35
  ```
33
36
 
34
- **Example** (with [postcss-custom-properties](https://github.com/postcss/postcss-custom-properties) enabled as well):
37
+ **Example** (with [PostCSS Custom Properties] enabled as well):
35
38
 
36
39
  ```js
37
40
  // dependencies
@@ -86,7 +89,7 @@ h1 {
86
89
  }
87
90
  ```
88
91
 
89
- Checkout [tests](src/__tests__/index.js) for more examples.
92
+ Checkout [tests] for more examples.
90
93
 
91
94
  ### Options
92
95
 
@@ -103,7 +106,8 @@ var out = postcss()
103
106
 
104
107
  #### `preserve` (default: `false`)
105
108
 
106
- Allow you to preserve calc() usage in output so browsers will handle decimal precision themselves.
109
+ Allow you to preserve calc() usage in output so browsers will handle decimal
110
+ precision themselves.
107
111
 
108
112
  ```js
109
113
  var out = postcss()
@@ -157,15 +161,29 @@ div[data-size="calc(3*3)"] {
157
161
 
158
162
  ## Contributing
159
163
 
160
- Work on a branch, install dev-dependencies, respect coding style & run tests before submitting a bug fix or a feature.
164
+ Work on a branch, install dev-dependencies, respect coding style & run tests
165
+ before submitting a bug fix or a feature.
161
166
 
162
- ```console
163
- $ git clone https://github.com/postcss/postcss-calc.git
164
- $ git checkout -b patch-1
165
- $ npm install
166
- $ npm test
167
+ ```bash
168
+ git clone git@github.com:postcss/postcss-calc.git
169
+ git checkout -b patch-1
170
+ npm install
171
+ npm test
167
172
  ```
168
173
 
169
174
  ## [Changelog](CHANGELOG.md)
170
175
 
171
176
  ## [License](LICENSE)
177
+
178
+ [cli-img]: https://img.shields.io/travis/postcss/postcss-calc/master.svg
179
+ [cli-url]: https://travis-ci.org/postcss/postcss-calc
180
+ [git-img]: https://img.shields.io/badge/support-chat-blue.svg
181
+ [git-url]: https://gitter.im/postcss/postcss
182
+ [npm-img]: https://img.shields.io/npm/v/postcss-calc.svg
183
+ [npm-url]: https://www.npmjs.com/package/postcss-calc
184
+
185
+ [PostCSS]: https://github.com/postcss
186
+ [PostCSS Calc]: https://github.com/postcss/postcss-calc
187
+ [PostCSS Custom Properties]: https://github.com/postcss/postcss-custom-properties
188
+ [tests]: src/__tests__/index.js
189
+ [W3C calc() implementation]: https://www.w3.org/TR/css3-values/#calc-notation
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "postcss-calc",
3
- "version": "7.0.0",
3
+ "version": "7.0.1",
4
4
  "description": "PostCSS plugin to reduce calc()",
5
5
  "keywords": [
6
6
  "css",
@@ -28,27 +28,27 @@
28
28
  "extends": "eslint-config-i-am-meticulous"
29
29
  },
30
30
  "devDependencies": {
31
- "@babel/cli": "^7.0.0",
32
- "@babel/core": "^7.0.0",
31
+ "@babel/cli": "^7.1.2",
32
+ "@babel/core": "^7.1.2",
33
33
  "@babel/polyfill": "^7.0.0",
34
- "@babel/preset-env": "^7.0.0",
34
+ "@babel/preset-env": "^7.1.0",
35
35
  "@babel/register": "^7.0.0",
36
36
  "ava": "^1.0.0-beta.8",
37
37
  "babel-eslint": "^10.0.1",
38
38
  "babel-plugin-add-module-exports": "^1.0.0",
39
39
  "cross-env": "^5.2.0",
40
40
  "del-cli": "^1.1.0",
41
- "eslint": "^5.6.1",
41
+ "eslint": "^5.7.0",
42
42
  "eslint-config-i-am-meticulous": "^11.0.0",
43
43
  "eslint-plugin-babel": "^5.2.1",
44
- "eslint-plugin-import": "^2.2.0",
44
+ "eslint-plugin-import": "^2.14.0",
45
45
  "jison-gho": "^0.6.1-215"
46
46
  },
47
47
  "dependencies": {
48
48
  "css-unit-converter": "^1.1.1",
49
- "postcss": "^7.0.2",
50
- "postcss-selector-parser": "^5.0.0-rc.3",
51
- "postcss-value-parser": "^3.3.0"
49
+ "postcss": "^7.0.5",
50
+ "postcss-selector-parser": "^5.0.0-rc.4",
51
+ "postcss-value-parser": "^3.3.1"
52
52
  },
53
53
  "ava": {
54
54
  "require": [