File tree Expand file tree Collapse file tree 8 files changed +1
-92
lines changed Expand file tree Collapse file tree 8 files changed +1
-92
lines changed Original file line number Diff line number Diff line change 11# Changes to PostCSS Nesting
22
3- ⚠️ We will most likely not finish this release and switch over to the plugin being worked on in the experimental track.
4-
53### Unreleased (major)
64
75- Updated: Support for Node v14+ (major).
86- Fix: Do not throw when a selector is invalid, show a warning instead.
7+ - Removed: Support for Deno (breaking)
98
109### 10.2.0 (September 14, 2022)
1110
Original file line number Diff line number Diff line change @@ -62,17 +62,6 @@ postcss([
6262| [ Node] ( INSTALL.md#node ) | [ Webpack] ( INSTALL.md#webpack ) | [ Gulp] ( INSTALL.md#gulp ) | [ Grunt] ( INSTALL.md#grunt ) |
6363| --- | --- | --- | --- |
6464
65- ### Deno
66-
67- You can also use [ PostCSS Nesting] on [ Deno] :
68-
69- ``` js
70- import postcss from " https://deno.land/x/postcss/mod.js" ;
71- import postcssNesting from " https://cdn.jsdelivr.net/npm/postcss-nesting@10/mod.js" ;
72-
73- await postcss ([postcssNesting]).process (YOUR_CSS /* , processOptions */ );
74- ```
75-
7665## Options
7766
7867### noIsPseudoSelector
@@ -189,7 +178,6 @@ interfere with PostCSS' plugin nature such as with `@mixin`
189178[ CSS Nesting ] : https://drafts.csswg.org/css-nesting-1/
190179[ PostCSS ] : https://github.com/postcss/postcss
191180[ PostCSS Nesting ] : https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-nesting
192- [ Deno ] : https://deno.land/x/postcss_nesting
193181[ PostCSS Nested ] : https://github.com/postcss/postcss-nested
194182[ Sass ] : https://sass-lang.com/
195183[ CSS Nesting Module ] : https://www.w3.org/TR/css-nesting-1/
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 4444 "lint:package-json" : " node ../../.github/bin/format-package-json.mjs" ,
4545 "prepublishOnly" : " npm run clean && npm run build && npm run test" ,
4646 "test" : " node .tape.mjs && npm run test:exports" ,
47- "test:deno" : " deno run --unstable --allow-env --allow-read test/deno/test.js" ,
4847 "test:exports" : " node ./test/_import.mjs && node ./test/_require.cjs" ,
4948 "test:rewrite-expects" : " REWRITE_EXPECTS=true node .tape.mjs"
5049 },
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -144,5 +144,3 @@ export const externalsForPlugin = [
144144] ;
145145
146146export const externalsForBrowser = [ ] ;
147-
148- export const externalsForDeno = [ ] ;
Original file line number Diff line number Diff line change 11import fs from 'fs' ;
22import { browserJavascript } from './presets/browser-javascript.mjs' ;
33import { cliTypescript } from './presets/cli-typescript.mjs' ;
4- import { denoJavascript } from './presets/deno-javascript.mjs' ;
54import { packageJavascript } from './presets/package-javascript.mjs' ;
65import { packageTypescript } from './presets/package-typescript.mjs' ;
76
@@ -19,15 +18,6 @@ const isTypescript = (() => {
1918 return false ;
2019} ) ( ) ;
2120
22- const hasDenoOutput = ( ( ) => {
23- try {
24- fs . statSync ( './mod.js' ) . isFile ( ) ;
25- return true ;
26- } catch ( _ ) {
27- return false ;
28- }
29- } ) ( ) ;
30-
3121const presets = [ ] ;
3222
3323if ( isTypescript ) {
@@ -44,10 +34,6 @@ if (isTypescript) {
4434 presets . push ( ...packageJavascript ( ) ) ;
4535 }
4636
47- if ( hasDenoOutput ) {
48- presets . push ( ...denoJavascript ( ) ) ;
49- }
50-
5137 if ( packageInfo . exports && ( './browser' in packageInfo . exports ) ) {
5238 presets . push ( ...browserJavascript ( ) ) ;
5339 }
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments