postcss-nesting
Advanced tools
Comparing version 11.3.0 to 12.0.0
207
CHANGELOG.md
# Changes to PostCSS Nesting | ||
### 11.3.0 (June 14, 2023) | ||
### 12.0.0 | ||
_July 3, 2023_ | ||
- Change license to `MIT-0` ([read more about this change in the blog post](https://preset-env.cssdb.org/blog/license-change/)) | ||
- Updated [`@csstools/selector-specificity`](/packages/selector-specificity) to [`3.0.0`](/packages/selector-specificity/CHANGELOG.md#300) (major) | ||
### 11.3.0 | ||
_June 14, 2023_ | ||
- Add support for nested selectors that that begin with a letter | ||
@@ -10,18 +19,26 @@ - Add warning when using the deprecated `@nest` rule | ||
### 11.2.2 (March 25, 2023) | ||
### 11.2.2 | ||
_March 25, 2023_ | ||
- Improved: support for mixins | ||
### 11.2.1 (February 16, 2023) | ||
### 11.2.1 | ||
_February 16, 2023_ | ||
- Skip nested rules that have a selector that begins with a letter | ||
- Better warning when nested rules have a selector that begins with a letter | ||
### 11.2.0 (February 13, 2023) | ||
### 11.2.0 | ||
_February 13, 2023_ | ||
- Added: support for `&` at the root | ||
- Improved: support for mixins | ||
### 11.1.0 (January 31, 2023) | ||
### 11.1.0 | ||
_January 31, 2023_ | ||
- Implement latest specification | ||
@@ -35,8 +52,12 @@ - relative selector syntax | ||
### 11.0.1 (January 28, 2023) | ||
### 11.0.1 | ||
_January 28, 2023_ | ||
- Improve `types` declaration in `package.json` | ||
### 11.0.0 (January 24, 2023) | ||
### 11.0.0 | ||
_January 24, 2023_ | ||
- Updated: Support for Node v14+ (major). | ||
@@ -46,8 +67,12 @@ - Fix: Do not throw when a selector is invalid, show a warning instead. | ||
### 10.2.0 (September 14, 2022) | ||
### 10.2.0 | ||
_September 14, 2022_ | ||
- Added: TypeScript typings | ||
### 10.1.10 (June 30, 2022) | ||
### 10.1.10 | ||
_June 30, 2022_ | ||
- Partially revert the changes to pseudo element selectors from 10.1.9. | ||
@@ -73,30 +98,44 @@ | ||
### 10.1.9 (June 23, 2022) | ||
### 10.1.9 | ||
_June 23, 2022_ | ||
- Fix selector order with any pseudo element. | ||
- Fix semicolons being removed [#497](https://github.com/csstools/postcss-plugins/issues/497). | ||
### 10.1.8 (June 4, 2022) | ||
### 10.1.8 | ||
_June 4, 2022_ | ||
- Update `@csstools/selector-specificity` (major) | ||
### 10.1.7 (May 20, 2022) | ||
### 10.1.7 | ||
_May 20, 2022_ | ||
- Add tentative support for `@layer`. The actual behavior is poorly defined and may change in the future. Use with caution. | ||
### 10.1.6 (May 17, 2022) | ||
### 10.1.6 | ||
_May 17, 2022_ | ||
- Fix selector order with `:before` and other pseudo elements. | ||
### 10.1.5 (May 11, 2022) | ||
### 10.1.5 | ||
_May 11, 2022_ | ||
- Use `@csstools/selector-specificity` for specificity calculations. | ||
### 10.1.4 (April 4, 2022) | ||
### 10.1.4 | ||
_April 4, 2022_ | ||
- Improved : compound selector order with pseudo elements | ||
- Improved : selector specificity calculation. | ||
### 10.1.3 (March 4, 2022) | ||
### 10.1.3 | ||
_March 4, 2022_ | ||
- Avoid creating duplicate selectors containing only comments. | ||
@@ -123,13 +162,19 @@ | ||
### 10.1.2 (January 12, 2022) | ||
### 10.1.2 | ||
_January 12, 2022_ | ||
- Improved : selector specificity calculation | ||
### 10.1.1 (January 2, 2022) | ||
### 10.1.1 | ||
_January 2, 2022_ | ||
- Removed Sourcemaps from package tarball. | ||
- Moved CLI to CLI Package. See [announcement](https://github.com/csstools/postcss-plugins/discussions/121). | ||
### 10.1.0 (December 22, 2021) | ||
### 10.1.0 | ||
_December 22, 2021_ | ||
- Added: `noIsPseudoSelector` plugin option. | ||
@@ -147,12 +192,18 @@ - Changed: `:is()` pseudo is now avoided as much as possible by default. | ||
### 10.0.3 (December 13, 2021) | ||
### 10.0.3 | ||
_December 13, 2021_ | ||
- Updated: documentation | ||
### 10.0.2 (November 18, 2021) | ||
### 10.0.2 | ||
_November 18, 2021_ | ||
- Fixed: Support for Deno. Ensuring we pack `mod.js` so it can be accessible by CDNs. | ||
### 10.0.1 (November 17, 2021) | ||
### 10.0.1 | ||
_November 17, 2021_ | ||
- Removed: Support for `allowDeclarationsAfterNestedRules`. | ||
@@ -165,4 +216,6 @@ | ||
### 10.0.0 (November 16, 2021) | ||
### 10.0.0 | ||
_November 16, 2021_ | ||
- Added: Support for `allowDeclarationsAfterNestedRules` to deviate from spec. | ||
@@ -176,13 +229,19 @@ - Added: `.npmrc` file. | ||
### 9.0.0 (October 27, 2021) | ||
### 9.0.0 | ||
_October 27, 2021_ | ||
- Added: Support for Deno | ||
- Fixed: Issue with PostCSS 8 compatibility using the RuleExit listener | ||
### 8.0.1 (May 1, 2021) | ||
### 8.0.1 | ||
_May 1, 2021_ | ||
- Fixed: Compatibility issue with CommonJS. | ||
### 8.0.0 (April 26, 2021) | ||
### 8.0.0 | ||
_April 26, 2021_ | ||
- Updated: Support for PostCSS 8+. | ||
@@ -192,8 +251,12 @@ - Updated: Support for Node v12+. | ||
### 7.0.1 (July 29, 2018) | ||
### 7.0.1 | ||
_July 29, 2018_ | ||
- Fixed: Non-breaking issue with rules being unnecessarily split | ||
### 7.0.0 (September 17, 2018) | ||
### 7.0.0 | ||
_September 17, 2018_ | ||
- Updated: Support for PostCSS v7+ | ||
@@ -206,21 +269,31 @@ - Updated: Support for Node v6+ | ||
### 6.0.0 (June 9, 2018) | ||
### 6.0.0 | ||
_June 9, 2018_ | ||
- Deprecated: Nested at-rules like `@media` will no longer work in 7.0.0 | ||
- Refactored code to improve efficiency | ||
### 5.0.0 (March 24, 2018) | ||
### 5.0.0 | ||
_March 24, 2018_ | ||
- Refactored code to use Imports babel-transformed for Node v4 compatibility | ||
### 4.2.1 (September 19, 2017) | ||
### 4.2.1 | ||
_September 19, 2017_ | ||
- Updated: Exposing the transform function as its own for postcss-extend | ||
### 4.2.0 (September 18, 2017) | ||
### 4.2.0 | ||
_September 18, 2017_ | ||
- Added: Reduced splitting of rules | ||
### 4.1.0 (August 19, 2017) | ||
### 4.1.0 | ||
_August 19, 2017_ | ||
- Added: Mutation-safe walk method | ||
@@ -230,13 +303,19 @@ - Improved: Complex selector validity testing | ||
### 4.0.1 (May 22, 2017) | ||
### 4.0.1 | ||
_May 22, 2017_ | ||
- Improved: Selector validity testing | ||
### 4.0.0 (May 20, 2017) | ||
### 4.0.0 | ||
_May 20, 2017_ | ||
- Changed: Transform only compliant nesting | ||
- Added: Preserve more raws formatting | ||
### 3.0.0 (May 8, 2017) | ||
### 3.0.0 | ||
_May 8, 2017_ | ||
- Added: Node 4.x support | ||
@@ -247,4 +326,6 @@ - Added: PostCSS 6 support | ||
### 2.3.1 (March 16, 2016) | ||
### 2.3.1 | ||
_March 16, 2016_ | ||
- Updated: Allow any direct nesting that follows the syntactic constraints | ||
@@ -256,4 +337,6 @@ - Updated: PostCSS 5.0.6 | ||
### 2.3.0 (February 20, 2016) | ||
### 2.3.0 | ||
_February 20, 2016_ | ||
- Updated: JavaScript formatting, linting, tests, and documentation | ||
@@ -263,4 +346,6 @@ - Updated: Properly concatenate at-rules with or expressions | ||
### 2.2.0 (January 30, 2016) | ||
### 2.2.0 | ||
_January 30, 2016_ | ||
- Added: Nesting of all at-rules | ||
@@ -270,16 +355,24 @@ - Updated: Direct nesting order maintains order | ||
### 2.1.1 (January 3, 2016) | ||
### 2.1.1 | ||
_January 3, 2016_ | ||
- Updated: Project conventions | ||
### 2.1.0 (January 3, 2016) | ||
### 2.1.0 | ||
_January 3, 2016_ | ||
- Added: Support for valid direct nesting | ||
### 2.0.6 (October 15, 2015) | ||
### 2.0.6 | ||
_October 15, 2015_ | ||
- Fixed: Issue with new PostCSS rules | ||
### 2.0.5 (October 12, 2015) | ||
### 2.0.5 | ||
_October 12, 2015_ | ||
- Updated: Nested rules source map to the parent rule | ||
@@ -290,8 +383,12 @@ - Updated: PostCSS 5.0.9 | ||
### 2.0.4 (September 23, 2015) | ||
### 2.0.4 | ||
_September 23, 2015_ | ||
- Updated: Map source raws | ||
### 2.0.3 (September 22, 2015) | ||
### 2.0.3 | ||
_September 22, 2015_ | ||
- Updated: Refactored plugin | ||
@@ -301,13 +398,19 @@ - Updated: Tests | ||
### 2.0.2 (September 16, 2015) | ||
### 2.0.2 | ||
_September 16, 2015_ | ||
- Fixed: Issue where the new rule’s children were not mapped to the parent internally | ||
### 2.0.1 (September 16, 2015) | ||
### 2.0.1 | ||
_September 16, 2015_ | ||
- Fixed: Issue where a `@nest` rule followed by another bubbling at-rule would not bubble | ||
- Added: CONTRIBUTING.md | ||
### 2.0.0 (September 16, 2015) | ||
### 2.0.0 | ||
_September 16, 2015_ | ||
- Added: Requirement of `&` per the specification | ||
@@ -318,4 +421,6 @@ - Added: New prefix option | ||
### 1.0.0 (September 15, 2015) | ||
### 1.0.0 | ||
_September 15, 2015_ | ||
- Added: New `@nest` at-rule syntax | ||
@@ -325,4 +430,6 @@ - Updated: PostCSS 5 | ||
### 0.1.0 (June 17, 2015) | ||
### 0.1.0 | ||
_June 17, 2015_ | ||
- Added: Initial release |
120
LICENSE.md
@@ -1,108 +0,18 @@ | ||
# CC0 1.0 Universal | ||
MIT No Attribution (MIT-0) | ||
## Statement of Purpose | ||
Copyright © CSSTools Contributors | ||
The laws of most jurisdictions throughout the world automatically confer | ||
exclusive Copyright and Related Rights (defined below) upon the creator and | ||
subsequent owner(s) (each and all, an “owner”) of an original work of | ||
authorship and/or a database (each, a “Work”). | ||
Permission is hereby granted, free of charge, to any person obtaining a copy of | ||
this software and associated documentation files (the “Software”), to deal in | ||
the Software without restriction, including without limitation the rights to | ||
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies | ||
of the Software, and to permit persons to whom the Software is furnished to do | ||
so. | ||
Certain owners wish to permanently relinquish those rights to a Work for the | ||
purpose of contributing to a commons of creative, cultural and scientific works | ||
(“Commons”) that the public can reliably and without fear of later claims of | ||
infringement build upon, modify, incorporate in other works, reuse and | ||
redistribute as freely as possible in any form whatsoever and for any purposes, | ||
including without limitation commercial purposes. These owners may contribute | ||
to the Commons to promote the ideal of a free culture and the further | ||
production of creative, cultural and scientific works, or to gain reputation or | ||
greater distribution for their Work in part through the use and efforts of | ||
others. | ||
For these and/or other purposes and motivations, and without any expectation of | ||
additional consideration or compensation, the person associating CC0 with a | ||
Work (the “Affirmer”), to the extent that he or she is an owner of Copyright | ||
and Related Rights in the Work, voluntarily elects to apply CC0 to the Work and | ||
publicly distribute the Work under its terms, with knowledge of his or her | ||
Copyright and Related Rights in the Work and the meaning and intended legal | ||
effect of CC0 on those rights. | ||
1. Copyright and Related Rights. A Work made available under CC0 may be | ||
protected by copyright and related or neighboring rights (“Copyright and | ||
Related Rights”). Copyright and Related Rights include, but are not limited | ||
to, the following: | ||
1. the right to reproduce, adapt, distribute, perform, display, communicate, | ||
and translate a Work; | ||
2. moral rights retained by the original author(s) and/or performer(s); | ||
3. publicity and privacy rights pertaining to a person’s image or likeness | ||
depicted in a Work; | ||
4. rights protecting against unfair competition in regards to a Work, | ||
subject to the limitations in paragraph 4(i), below; | ||
5. rights protecting the extraction, dissemination, use and reuse of data in | ||
a Work; | ||
6. database rights (such as those arising under Directive 96/9/EC of the | ||
European Parliament and of the Council of 11 March 1996 on the legal | ||
protection of databases, and under any national implementation thereof, | ||
including any amended or successor version of such directive); and | ||
7. other similar, equivalent or corresponding rights throughout the world | ||
based on applicable law or treaty, and any national implementations | ||
thereof. | ||
2. Waiver. To the greatest extent permitted by, but not in contravention of, | ||
applicable law, Affirmer hereby overtly, fully, permanently, irrevocably and | ||
unconditionally waives, abandons, and surrenders all of Affirmer’s Copyright | ||
and Related Rights and associated claims and causes of action, whether now | ||
known or unknown (including existing as well as future claims and causes of | ||
action), in the Work (i) in all territories worldwide, (ii) for the maximum | ||
duration provided by applicable law or treaty (including future time | ||
extensions), (iii) in any current or future medium and for any number of | ||
copies, and (iv) for any purpose whatsoever, including without limitation | ||
commercial, advertising or promotional purposes (the “Waiver”). Affirmer | ||
makes the Waiver for the benefit of each member of the public at large and | ||
to the detriment of Affirmer’s heirs and successors, fully intending that | ||
such Waiver shall not be subject to revocation, rescission, cancellation, | ||
termination, or any other legal or equitable action to disrupt the quiet | ||
enjoyment of the Work by the public as contemplated by Affirmer’s express | ||
Statement of Purpose. | ||
3. Public License Fallback. Should any part of the Waiver for any reason be | ||
judged legally invalid or ineffective under applicable law, then the Waiver | ||
shall be preserved to the maximum extent permitted taking into account | ||
Affirmer’s express Statement of Purpose. In addition, to the extent the | ||
Waiver is so judged Affirmer hereby grants to each affected person a | ||
royalty-free, non transferable, non sublicensable, non exclusive, | ||
irrevocable and unconditional license to exercise Affirmer’s Copyright and | ||
Related Rights in the Work (i) in all territories worldwide, (ii) for the | ||
maximum duration provided by applicable law or treaty (including future time | ||
extensions), (iii) in any current or future medium and for any number of | ||
copies, and (iv) for any purpose whatsoever, including without limitation | ||
commercial, advertising or promotional purposes (the “License”). The License | ||
shall be deemed effective as of the date CC0 was applied by Affirmer to the | ||
Work. Should any part of the License for any reason be judged legally | ||
invalid or ineffective under applicable law, such partial invalidity or | ||
ineffectiveness shall not invalidate the remainder of the License, and in | ||
such case Affirmer hereby affirms that he or she will not (i) exercise any | ||
of his or her remaining Copyright and Related Rights in the Work or (ii) | ||
assert any associated claims and causes of action with respect to the Work, | ||
in either case contrary to Affirmer’s express Statement of Purpose. | ||
4. Limitations and Disclaimers. | ||
1. No trademark or patent rights held by Affirmer are waived, abandoned, | ||
surrendered, licensed or otherwise affected by this document. | ||
2. Affirmer offers the Work as-is and makes no representations or warranties | ||
of any kind concerning the Work, express, implied, statutory or | ||
otherwise, including without limitation warranties of title, | ||
merchantability, fitness for a particular purpose, non infringement, or | ||
the absence of latent or other defects, accuracy, or the present or | ||
absence of errors, whether or not discoverable, all to the greatest | ||
extent permissible under applicable law. | ||
3. Affirmer disclaims responsibility for clearing rights of other persons | ||
that may apply to the Work or any use thereof, including without | ||
limitation any person’s Copyright and Related Rights in the Work. | ||
Further, Affirmer disclaims responsibility for obtaining any necessary | ||
consents, permissions or other rights required for any use of the Work. | ||
4. Affirmer understands and acknowledges that Creative Commons is not a | ||
party to this document and has no duty or obligation with respect to this | ||
CC0 or use of the Work. | ||
For more information, please see | ||
http://creativecommons.org/publicdomain/zero/1.0/. | ||
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
{ | ||
"name": "postcss-nesting", | ||
"description": "Nest rules inside each other in CSS", | ||
"version": "11.3.0", | ||
"version": "12.0.0", | ||
"contributors": [ | ||
@@ -20,3 +20,3 @@ { | ||
], | ||
"license": "CC0-1.0", | ||
"license": "MIT-0", | ||
"funding": [ | ||
@@ -55,4 +55,4 @@ { | ||
"dependencies": { | ||
"@csstools/selector-specificity": "^2.0.0", | ||
"postcss-selector-parser": "^6.0.10" | ||
"@csstools/selector-specificity": "^3.0.0", | ||
"postcss-selector-parser": "^6.0.13" | ||
}, | ||
@@ -64,3 +64,3 @@ "peerDependencies": { | ||
"@csstools/postcss-tape": "*", | ||
"puppeteer": "^20.1.1" | ||
"puppeteer": "^20.7.4" | ||
}, | ||
@@ -67,0 +67,0 @@ "scripts": { |
SPDX disjunction
LicenseSPDX disjunction for an artifact's license information
Found 1 instance in 1 package
SPDX disjunction
LicenseSPDX disjunction for an artifact's license information
Found 1 instance in 1 package
38669
+ Added@csstools/selector-specificity@3.1.1(transitive)
- Removed@csstools/selector-specificity@2.2.0(transitive)