Skip to content

Commit 96d2382

Browse files
committed
2.0.0
1 parent bfc468b commit 96d2382

3 files changed

Lines changed: 14 additions & 5 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changes to PostCSS Extend Rule
22

3+
### 2.0.0 (September 19, 2017)
4+
5+
- Added: `name` option to override the name of the extending at-rule.
6+
- Updated: `postcss-nesting` to v5.0.0 (major)
7+
- Updated: How the project is developed
8+
39
### 1.1.0 (September 19, 2017)
410

511
- Improve: Un-nesting of extended elements

README.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
[![NPM Version][npm-img]][npm-url]
44
[![Build Status][cli-img]][cli-url]
5-
[![Windows Build Status][win-img]][win-url]
65
[![Support Chat][git-img]][git-url]
76

87
[PostCSS Extend Rule] lets you use the `@extend` at-rule and
@@ -193,6 +192,12 @@ postcssExtend({ name: 'postcss-extend' })
193192
If the `name` option were changed to, say, `postcss-extend`, then only
194193
`@postcss-extend` at-rules would be parsed.
195194

195+
```pcss
196+
main {
197+
@postcss-extend .some-rule;
198+
}
199+
```
200+
196201
### onFunctionalSelector
197202

198203
The `onFunctionalSelector` option determines how functional selectors should be
@@ -227,7 +232,7 @@ postcssExtend({ onRecursiveExtend: 'remove' /* default */ })
227232

228233
```pcss
229234
.this-will-not-extend-itself {
230-
@extend .this-will-not-extend-itself;
235+
@extend .this-will-not-extend-itself;
231236
}
232237
```
233238

@@ -257,8 +262,6 @@ main {
257262
[git-url]: https://gitter.im/postcss/postcss
258263
[npm-img]: https://img.shields.io/npm/v/postcss-extend-rule.svg
259264
[npm-url]: https://www.npmjs.com/package/postcss-extend-rule
260-
[win-img]: https://img.shields.io/appveyor/ci/jonathantneal/postcss-extend-rule.svg
261-
[win-url]: https://ci.appveyor.com/project/jonathantneal/postcss-extend-rule
262265

263266
[CSS Extend Rules Specification]: https://jonathantneal.github.io/specs/css-extend-rule/
264267
[Functional Selectors]: https://jonathantneal.github.io/specs/css-extend-rule/#functional-selector

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "postcss-extend-rule",
3-
"version": "1.1.0",
3+
"version": "2.0.0",
44
"description": "Use the @extend at-rule and functional selectors in CSS",
55
"author": "Jonathan Neal <[email protected]>",
66
"license": "CC0-1.0",

0 commit comments

Comments
 (0)