Skip to content

postcss-preset-env v8 : tweaks before next alpha #695

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
postcss-preset-env v8 : tweaks before next alpha
  • Loading branch information
romainmenke committed Nov 8, 2022
commit 198d9bb956b0829b4f91e26f6a125fff63bb74d3
25 changes: 11 additions & 14 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/css-parser-algorithms/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Implemented from : https://www.w3.org/TR/2021/CRD-css-syntax-3-20211224/
Add [CSS Parser Algorithms] to your project:

```bash
npm install postcss @csstools/css-parser-algorithms --save-dev
npm install postcss @csstools/css-parser-algorithms @csstools/css-tokenizer --save-dev
```

[CSS Parser Algorithms] only accepts tokenized CSS.
Expand Down
2 changes: 1 addition & 1 deletion packages/css-parser-algorithms/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"README.md",
"dist"
],
"dependencies": {
"peerDependencies": {
"@csstools/css-tokenizer": "^1.0.0"
},
"scripts": {
Expand Down
7 changes: 4 additions & 3 deletions packages/media-query-list-parser/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,12 @@ Implemented from : https://www.w3.org/TR/mediaqueries-5/
Add [Media Query List Parser] to your project:

```bash
npm install postcss @csstools/media-query-list-parser --save-dev
npm install postcss @csstools/media-query-list-parser @csstools/css-parser-algorithms @csstools/css-tokenizer --save-dev
```

[Media Query List Parser] depends on our CSS tokenizer and parser algorithms.
It must be used together with `@csstools/css-tokenizer` and `@csstools/css-parser-algorithms`.

```ts
import { parse } from '@csstools/media-query-list-parser';

Expand Down Expand Up @@ -56,5 +59,3 @@ export function parseCustomMedia() {
[npm-url]: https://www.npmjs.com/package/@csstools/media-query-list-parser

[Media Query List Parser]: https://github.com/csstools/postcss-plugins/tree/main/packages/media-query-list-parser


2 changes: 1 addition & 1 deletion packages/media-query-list-parser/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"README.md",
"dist"
],
"dependencies": {
"peerDependencies": {
"@csstools/css-parser-algorithms": "^1.0.0",
"@csstools/css-tokenizer": "^1.0.0"
},
Expand Down
12 changes: 10 additions & 2 deletions plugin-packs/postcss-preset-env/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,17 @@

### Unreleased (8.0.0-alpha.1)

- Updated: Support for Node v14+ (major).
- Remove `postcss-env-function` (breaking).
- Updated Support for Node v14+ (major).
- Removed `postcss-env-function` (breaking).
- Removed `importFrom` and `exportTo` plugin options from multiple plugins. (breaking)
- `postcss-custom-media`
- `postcss-custom-properties`
- `postcss-custom-selectors`
- Added `@csstools/postcss-scope-pseudo-class` [Check the plugin README](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-scope-pseudo-class#readme) for usage details.
- Updated `postcss-custom-media` to `9.0.0` (major)
- Updated `postcss-custom-properties` to `13.0.0` (major)
- Updated `postcss-custom-selectors` to `7.0.0` (major)
- Updated `@csstools/postcss-cascade-layers` to `2.0.0` (minor)

### 8.0.0-alpha.0 (July 8, 2022)

Expand Down
1 change: 1 addition & 0 deletions plugins/postcss-custom-media/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
"dist"
],
"dependencies": {
"@csstools/css-parser-algorithms": "^1.0.0",
"@csstools/css-tokenizer": "^1.0.0",
"@csstools/media-query-list-parser": "^1.0.0"
},
Expand Down