Skip to content

Commit 88de686

Browse files
authored
remove deno support from postcss-nesting (#795)
1 parent 8ff609f commit 88de686

File tree

8 files changed

+1
-92
lines changed

8 files changed

+1
-92
lines changed

plugins/postcss-nesting/CHANGELOG.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
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

plugins/postcss-nesting/README.md

-12
Original file line numberDiff line numberDiff 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/

plugins/postcss-nesting/mod.js

-3
This file was deleted.

plugins/postcss-nesting/package.json

-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@
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
},

plugins/postcss-nesting/test/deno/test.js

-22
This file was deleted.

rollup/configs/externals.mjs

-2
Original file line numberDiff line numberDiff line change
@@ -144,5 +144,3 @@ export const externalsForPlugin = [
144144
];
145145

146146
export const externalsForBrowser = [];
147-
148-
export const externalsForDeno = [];

rollup/default.mjs

-14
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import fs from 'fs';
22
import { browserJavascript } from './presets/browser-javascript.mjs';
33
import { cliTypescript } from './presets/cli-typescript.mjs';
4-
import { denoJavascript } from './presets/deno-javascript.mjs';
54
import { packageJavascript } from './presets/package-javascript.mjs';
65
import { 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-
3121
const presets = [];
3222

3323
if (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
}

rollup/presets/deno-javascript.mjs

-36
This file was deleted.

0 commit comments

Comments
 (0)