@csstools/postcss-media-minmax 1.1.0 → 1.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +20 -57
- package/README.md +1 -1
- package/dist/index.d.ts +6 -2
- package/package.json +14 -32
- package/dist/to-lower-case-a-z.d.ts +0 -1
- package/dist/transform-single-pair.d.ts +0 -2
- package/dist/transform.d.ts +0 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# Changes to PostCSS Media MinMax
|
|
2
2
|
|
|
3
|
+
### 1.1.2
|
|
4
|
+
|
|
5
|
+
_December 31, 2023_
|
|
6
|
+
|
|
7
|
+
- Updated [`@csstools/css-tokenizer`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-tokenizer) to [`2.2.3`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-tokenizer/CHANGELOG.md#223) (patch)
|
|
8
|
+
- Updated [`@csstools/css-parser-algorithms`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-parser-algorithms) to [`2.5.0`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-parser-algorithms/CHANGELOG.md#250) (minor)
|
|
9
|
+
- Updated [`@csstools/css-calc`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-calc) to [`1.1.6`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-calc/CHANGELOG.md#116) (patch)
|
|
10
|
+
- Updated [`@csstools/media-query-list-parser`](https://github.com/csstools/postcss-plugins/tree/main/packages/media-query-list-parser) to [`2.1.7`](https://github.com/csstools/postcss-plugins/tree/main/packages/media-query-list-parser/CHANGELOG.md#217) (patch)
|
|
11
|
+
|
|
12
|
+
### 1.1.1
|
|
13
|
+
|
|
14
|
+
_December 15, 2023_
|
|
15
|
+
|
|
16
|
+
- Fix type definitions
|
|
17
|
+
- Updated [`@csstools/css-tokenizer`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-tokenizer) to [`2.2.2`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-tokenizer/CHANGELOG.md#222) (patch)
|
|
18
|
+
- Updated [`@csstools/css-parser-algorithms`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-parser-algorithms) to [`2.4.0`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-parser-algorithms/CHANGELOG.md#240) (minor)
|
|
19
|
+
- Updated [`@csstools/css-calc`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-calc) to [`1.1.5`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-calc/CHANGELOG.md#115) (patch)
|
|
20
|
+
- Updated [`@csstools/media-query-list-parser`](https://github.com/csstools/postcss-plugins/tree/main/packages/media-query-list-parser) to [`2.1.6`](https://github.com/csstools/postcss-plugins/tree/main/packages/media-query-list-parser/CHANGELOG.md#216) (patch)
|
|
21
|
+
|
|
3
22
|
### 1.1.0
|
|
4
23
|
|
|
5
24
|
_September 24, 2023_
|
|
@@ -10,60 +29,4 @@ _September 24, 2023_
|
|
|
10
29
|
- Updated [`@csstools/css-calc`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-calc) to [`1.1.4`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-calc/CHANGELOG.md#114) (patch)
|
|
11
30
|
- Updated [`@csstools/media-query-list-parser`](https://github.com/csstools/postcss-plugins/tree/main/packages/media-query-list-parser) to [`2.1.5`](https://github.com/csstools/postcss-plugins/tree/main/packages/media-query-list-parser/CHANGELOG.md#215) (patch)
|
|
12
31
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
_August 5, 2023_
|
|
16
|
-
|
|
17
|
-
- Updated [`@csstools/media-query-list-parser`](https://github.com/csstools/postcss-plugins/tree/main/packages/media-query-list-parser) to [`2.1.4`](https://github.com/csstools/postcss-plugins/tree/main/packages/media-query-list-parser/CHANGELOG.md#214) (patch)
|
|
18
|
-
|
|
19
|
-
### 1.0.6
|
|
20
|
-
|
|
21
|
-
_July 24, 2023_
|
|
22
|
-
|
|
23
|
-
- Updated [`@csstools/css-tokenizer`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-tokenizer) to [`2.2.0`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-tokenizer/CHANGELOG.md#220) (minor)
|
|
24
|
-
- Updated [`@csstools/css-parser-algorithms`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-parser-algorithms) to [`2.3.1`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-parser-algorithms/CHANGELOG.md#231) (patch)
|
|
25
|
-
- Updated [`@csstools/css-calc`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-calc) to [`1.1.3`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-calc/CHANGELOG.md#113) (patch)
|
|
26
|
-
- Updated [`@csstools/media-query-list-parser`](https://github.com/csstools/postcss-plugins/tree/main/packages/media-query-list-parser) to [`2.1.3`](https://github.com/csstools/postcss-plugins/tree/main/packages/media-query-list-parser/CHANGELOG.md#213) (patch)
|
|
27
|
-
|
|
28
|
-
### 1.0.5
|
|
29
|
-
|
|
30
|
-
_July 3, 2023_
|
|
31
|
-
|
|
32
|
-
- Updated [`@csstools/css-parser-algorithms`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-parser-algorithms) to [`2.3.0`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-parser-algorithms/CHANGELOG.md#230) (minor)
|
|
33
|
-
- Updated [`@csstools/css-calc`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-calc) to [`1.1.2`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-calc/CHANGELOG.md#112) (patch)
|
|
34
|
-
- Updated [`@csstools/media-query-list-parser`](https://github.com/csstools/postcss-plugins/tree/main/packages/media-query-list-parser) to [`2.1.2`](https://github.com/csstools/postcss-plugins/tree/main/packages/media-query-list-parser/CHANGELOG.md#212) (patch)
|
|
35
|
-
|
|
36
|
-
### 1.0.4
|
|
37
|
-
|
|
38
|
-
_June 21, 2023_
|
|
39
|
-
|
|
40
|
-
- Updated `@csstools/media-query-list-parser` to `2.1.1` (patch)
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
### 1.0.3
|
|
44
|
-
|
|
45
|
-
_June 1, 2023_
|
|
46
|
-
|
|
47
|
-
- Updated `@csstools/media-query-list-parser` to `2.1.0` (minor)
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
### 1.0.2
|
|
51
|
-
|
|
52
|
-
_April 10, 2023_
|
|
53
|
-
|
|
54
|
-
- Updated `@csstools/css-tokenizer` to `2.1.1` (patch)
|
|
55
|
-
- Updated `@csstools/css-parser-algorithms` to `2.1.1` (patch)
|
|
56
|
-
- Updated `@csstools/css-calc` to `1.1.1` (patch)
|
|
57
|
-
- Updated `@csstools/media-query-list-parser` to `2.0.4` (patch)
|
|
58
|
-
|
|
59
|
-
### 1.0.1
|
|
60
|
-
|
|
61
|
-
_April 10, 2023_
|
|
62
|
-
|
|
63
|
-
- Improve the detection of math function in media queries.
|
|
64
|
-
|
|
65
|
-
### 1.0.0
|
|
66
|
-
|
|
67
|
-
_March 30, 2023_
|
|
68
|
-
|
|
69
|
-
- Initial version
|
|
32
|
+
[Full CHANGELOG](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-media-minmax/CHANGELOG.md)
|
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# PostCSS Media MinMax [<img src="https://postcss.github.io/postcss/logo.svg" alt="PostCSS Logo" width="90" height="90" align="right">][PostCSS]
|
|
2
2
|
|
|
3
|
-
[<img alt="npm version" src="https://img.shields.io/npm/v/@csstools/postcss-media-minmax.svg" height="20">][npm-url] [<img alt="
|
|
3
|
+
[<img alt="npm version" src="https://img.shields.io/npm/v/@csstools/postcss-media-minmax.svg" height="20">][npm-url] [<img alt="Build Status" src="https://github.com/csstools/postcss-plugins/workflows/test/badge.svg" height="20">][cli-url] [<img alt="Discord" src="https://shields.io/badge/Discord-5865F2?logo=discord&logoColor=white">][discord]<br><br>[<img alt="Baseline Status" src="https://cssdb.org/images/badges-baseline/media-query-ranges.svg" height="20">][css-url] [<img alt="CSS Standard Status" src="https://cssdb.org/images/badges/media-query-ranges.svg" height="20">][css-url]
|
|
4
4
|
|
|
5
5
|
```bash
|
|
6
6
|
npm install @csstools/postcss-media-minmax --save-dev
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import type { PluginCreator } from 'postcss';
|
|
2
|
-
|
|
3
|
-
export type pluginOptions = never;
|
|
2
|
+
|
|
4
3
|
declare const creator: PluginCreator<pluginOptions>;
|
|
5
4
|
export default creator;
|
|
5
|
+
|
|
6
|
+
/** postcss-media-minmax plugin options */
|
|
7
|
+
export declare type pluginOptions = never;
|
|
8
|
+
|
|
9
|
+
export { }
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@csstools/postcss-media-minmax",
|
|
3
3
|
"description": "Use the range notation in CSS media queries",
|
|
4
|
-
"version": "1.1.
|
|
4
|
+
"version": "1.1.2",
|
|
5
5
|
"contributors": [
|
|
6
6
|
{
|
|
7
7
|
"name": "Antonio Laguna",
|
|
@@ -30,15 +30,18 @@
|
|
|
30
30
|
"engines": {
|
|
31
31
|
"node": "^14 || ^16 || >=18"
|
|
32
32
|
},
|
|
33
|
+
"type": "module",
|
|
33
34
|
"main": "dist/index.cjs",
|
|
34
35
|
"module": "dist/index.mjs",
|
|
35
|
-
"types": "dist/index.d.ts",
|
|
36
36
|
"exports": {
|
|
37
37
|
".": {
|
|
38
|
-
"
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
38
|
+
"import": {
|
|
39
|
+
"types": "./dist/index.d.ts",
|
|
40
|
+
"default": "./dist/index.mjs"
|
|
41
|
+
},
|
|
42
|
+
"require": {
|
|
43
|
+
"default": "./dist/index.cjs"
|
|
44
|
+
}
|
|
42
45
|
}
|
|
43
46
|
},
|
|
44
47
|
"files": [
|
|
@@ -48,26 +51,14 @@
|
|
|
48
51
|
"dist"
|
|
49
52
|
],
|
|
50
53
|
"dependencies": {
|
|
51
|
-
"@csstools/css-calc": "^1.1.
|
|
52
|
-
"@csstools/css-parser-algorithms": "^2.
|
|
53
|
-
"@csstools/css-tokenizer": "^2.2.
|
|
54
|
-
"@csstools/media-query-list-parser": "^2.1.
|
|
54
|
+
"@csstools/css-calc": "^1.1.6",
|
|
55
|
+
"@csstools/css-parser-algorithms": "^2.5.0",
|
|
56
|
+
"@csstools/css-tokenizer": "^2.2.3",
|
|
57
|
+
"@csstools/media-query-list-parser": "^2.1.7"
|
|
55
58
|
},
|
|
56
59
|
"peerDependencies": {
|
|
57
60
|
"postcss": "^8.4"
|
|
58
61
|
},
|
|
59
|
-
"devDependencies": {
|
|
60
|
-
"@csstools/postcss-tape": "*"
|
|
61
|
-
},
|
|
62
|
-
"scripts": {
|
|
63
|
-
"build": "rollup -c ../../rollup/default.mjs",
|
|
64
|
-
"docs": "node ../../.github/bin/generate-docs/install.mjs && node ../../.github/bin/generate-docs/readme.mjs",
|
|
65
|
-
"lint": "node ../../.github/bin/format-package-json.mjs",
|
|
66
|
-
"prepublishOnly": "npm run build && npm run test",
|
|
67
|
-
"test": "node .tape.mjs && node ./test/_import.mjs && node ./test/_require.cjs",
|
|
68
|
-
"test:browser": "node ./test/_browser.mjs",
|
|
69
|
-
"test:rewrite-expects": "REWRITE_EXPECTS=true node .tape.mjs"
|
|
70
|
-
},
|
|
71
62
|
"homepage": "https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-media-minmax#readme",
|
|
72
63
|
"repository": {
|
|
73
64
|
"type": "git",
|
|
@@ -79,14 +70,5 @@
|
|
|
79
70
|
"media queries",
|
|
80
71
|
"postcss-plugin",
|
|
81
72
|
"range"
|
|
82
|
-
]
|
|
83
|
-
"csstools": {
|
|
84
|
-
"cssdbId": "media-query-ranges",
|
|
85
|
-
"exportName": "postcssMediaMinMax",
|
|
86
|
-
"humanReadableName": "PostCSS Media MinMax",
|
|
87
|
-
"specUrl": "https://www.w3.org/TR/mediaqueries-4/#mq-features"
|
|
88
|
-
},
|
|
89
|
-
"volta": {
|
|
90
|
-
"extends": "../../package.json"
|
|
91
|
-
}
|
|
73
|
+
]
|
|
92
74
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function toLowerCaseAZ(x: string): string;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { MediaFeature, MediaFeatureComparison, MediaFeatureValue } from '@csstools/media-query-list-parser';
|
|
2
|
-
export declare function transformSingleNameValuePair(name: string, operator: MediaFeatureComparison, value: MediaFeatureValue, nameBeforeValue: boolean): MediaFeature | undefined;
|
package/dist/transform.d.ts
DELETED