File tree 8 files changed +1
-92
lines changed
8 files changed +1
-92
lines changed Original file line number Diff line number Diff line change 1
1
# Changes to PostCSS Nesting
2
2
3
- ⚠️ We will most likely not finish this release and switch over to the plugin being worked on in the experimental track.
4
-
5
3
### Unreleased (major)
6
4
7
5
- Updated: Support for Node v14+ (major).
8
6
- Fix: Do not throw when a selector is invalid, show a warning instead.
7
+ - Removed: Support for Deno (breaking)
9
8
10
9
### 10.2.0 (September 14, 2022)
11
10
Original file line number Diff line number Diff line change @@ -62,17 +62,6 @@ postcss([
62
62
| [ Node] ( INSTALL.md#node ) | [ Webpack] ( INSTALL.md#webpack ) | [ Gulp] ( INSTALL.md#gulp ) | [ Grunt] ( INSTALL.md#grunt ) |
63
63
| --- | --- | --- | --- |
64
64
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
-
76
65
## Options
77
66
78
67
### noIsPseudoSelector
@@ -189,7 +178,6 @@ interfere with PostCSS' plugin nature such as with `@mixin`
189
178
[ CSS Nesting ] : https://drafts.csswg.org/css-nesting-1/
190
179
[ PostCSS ] : https://github.com/postcss/postcss
191
180
[ PostCSS Nesting ] : https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-nesting
192
- [ Deno ] : https://deno.land/x/postcss_nesting
193
181
[ PostCSS Nested ] : https://github.com/postcss/postcss-nested
194
182
[ Sass ] : https://sass-lang.com/
195
183
[ 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 44
44
"lint:package-json" : " node ../../.github/bin/format-package-json.mjs" ,
45
45
"prepublishOnly" : " npm run clean && npm run build && npm run test" ,
46
46
"test" : " node .tape.mjs && npm run test:exports" ,
47
- "test:deno" : " deno run --unstable --allow-env --allow-read test/deno/test.js" ,
48
47
"test:exports" : " node ./test/_import.mjs && node ./test/_require.cjs" ,
49
48
"test:rewrite-expects" : " REWRITE_EXPECTS=true node .tape.mjs"
50
49
},
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -144,5 +144,3 @@ export const externalsForPlugin = [
144
144
] ;
145
145
146
146
export const externalsForBrowser = [ ] ;
147
-
148
- export const externalsForDeno = [ ] ;
Original file line number Diff line number Diff line change 1
1
import fs from 'fs' ;
2
2
import { browserJavascript } from './presets/browser-javascript.mjs' ;
3
3
import { cliTypescript } from './presets/cli-typescript.mjs' ;
4
- import { denoJavascript } from './presets/deno-javascript.mjs' ;
5
4
import { packageJavascript } from './presets/package-javascript.mjs' ;
6
5
import { packageTypescript } from './presets/package-typescript.mjs' ;
7
6
@@ -19,15 +18,6 @@ const isTypescript = (() => {
19
18
return false ;
20
19
} ) ( ) ;
21
20
22
- const hasDenoOutput = ( ( ) => {
23
- try {
24
- fs . statSync ( './mod.js' ) . isFile ( ) ;
25
- return true ;
26
- } catch ( _ ) {
27
- return false ;
28
- }
29
- } ) ( ) ;
30
-
31
21
const presets = [ ] ;
32
22
33
23
if ( isTypescript ) {
@@ -44,10 +34,6 @@ if (isTypescript) {
44
34
presets . push ( ...packageJavascript ( ) ) ;
45
35
}
46
36
47
- if ( hasDenoOutput ) {
48
- presets . push ( ...denoJavascript ( ) ) ;
49
- }
50
-
51
37
if ( packageInfo . exports && ( './browser' in packageInfo . exports ) ) {
52
38
presets . push ( ...browserJavascript ( ) ) ;
53
39
}
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments