@tbela99/css-parser 1.4.8 → 1.4.10
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 +32 -3
- package/README.md +1 -1
- package/dist/index-umd-web.js +12950 -13310
- package/dist/index.cjs +16447 -16809
- package/dist/index.d.ts +2481 -1754
- package/dist/lib/ast/features/calc.js +3 -1
- package/dist/lib/ast/features/if.js +2 -96
- package/dist/lib/ast/features/prefix.js +7 -2
- package/dist/lib/ast/features/shorthand.js +1 -1
- package/dist/lib/ast/features/transform.js +1 -1
- package/dist/lib/ast/find.js +6 -6
- package/dist/lib/ast/math/expression.js +30 -12
- package/dist/lib/ast/math/math.js +2 -1
- package/dist/lib/ast/minify.js +34 -5
- package/dist/lib/ast/transform/compute.js +2 -1
- package/dist/lib/ast/transform/perspective.js +1 -1
- package/dist/lib/ast/transform/utils.js +29 -21
- package/dist/lib/ast/types.js +9 -66
- package/dist/lib/fs/resolve.js +1 -16
- package/dist/lib/parser/declaration/list.js +6 -1
- package/dist/lib/parser/{linemap.js → linesmap.js} +25 -9
- package/dist/lib/parser/parse.js +1264 -151
- package/dist/lib/parser/source.js +48 -17
- package/dist/lib/parser/tokenize.js +112 -133
- package/dist/lib/parser/utils/at-rule-container.js +12 -44
- package/dist/lib/parser/utils/at-rule-generic.js +12 -24
- package/dist/lib/parser/utils/at-rule-import.js +4 -172
- package/dist/lib/parser/utils/at-rule-media.js +14 -251
- package/dist/lib/parser/utils/at-rule-support.js +8 -258
- package/dist/lib/parser/utils/at-rule-when-else.js +4 -214
- package/dist/lib/parser/utils/declaration.js +5 -95
- package/dist/lib/parser/utils/hash.js +54 -1
- package/dist/lib/parser/utils/selector.js +1 -1
- package/dist/lib/parser/utils/token.js +1 -0
- package/dist/lib/renderer/render.js +79 -87
- package/dist/lib/renderer/sourcemap/sourcemap.js +47 -43
- package/dist/lib/syntax/color/cmyk.js +3 -3
- package/dist/lib/syntax/color/color-mix.js +7 -7
- package/dist/lib/syntax/color/color.js +9 -27
- package/dist/lib/syntax/color/hsl.js +6 -6
- package/dist/lib/syntax/color/hwb.js +6 -6
- package/dist/lib/syntax/color/lab.js +5 -5
- package/dist/lib/syntax/color/lch.js +6 -6
- package/dist/lib/syntax/color/oklab.js +5 -5
- package/dist/lib/syntax/color/oklch.js +5 -5
- package/dist/lib/syntax/color/relative-color.js +8 -1
- package/dist/lib/syntax/color/utils/distance.js +2 -1
- package/dist/lib/syntax/constants.js +2 -1
- package/dist/lib/syntax/syntax.js +96 -9
- package/dist/lib/validation/config.json.js +27 -6
- package/dist/lib/validation/match.js +42 -845
- package/dist/node.js +134 -9
- package/dist/web.js +133 -6
- package/llms.txt +73 -0
- package/package.json +13 -16
- package/dist/lib/parser/arena.js +0 -206
package/CHANGELOG.md
CHANGED
|
@@ -1,10 +1,39 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
# v1.4.10
|
|
4
|
+
|
|
5
|
+
- failure to convert colors to display-linear due to missing import
|
|
6
|
+
|
|
7
|
+
# v1.4.9
|
|
8
|
+
|
|
9
|
+
## Improvements
|
|
10
|
+
|
|
11
|
+
### Provide sync Api
|
|
12
|
+
- [x] Added parseSync() and transformSync() with the limitations below:
|
|
13
|
+
|
|
14
|
+
Unsupported parse features
|
|
15
|
+
- [x] flattened at-rule import files
|
|
16
|
+
- [x] using file loader as options.load() is forbidden
|
|
17
|
+
- [x] parse from stream
|
|
18
|
+
- [x] parse file as input parameter
|
|
19
|
+
|
|
20
|
+
Unsupported CSS modules features
|
|
21
|
+
- [x] pattern cannot use sha1, sha256 or sha512 algorithms
|
|
22
|
+
- [x] composes classes from file will throw an error
|
|
23
|
+
- [x] import css at-rule value from file will throw an error
|
|
24
|
+
|
|
25
|
+
### Sourcemap
|
|
26
|
+
- [x] Embed CSS content into the sourcemap when the src file is not provided
|
|
27
|
+
|
|
28
|
+
### Performance
|
|
29
|
+
- [x] Implement lazy token offsets calculation
|
|
30
|
+
- [x] Remove unnecessary values rounding
|
|
31
|
+
|
|
3
32
|
## v1.4.8
|
|
4
33
|
|
|
5
34
|
### Improvements
|
|
6
35
|
|
|
7
|
-
- [x]
|
|
36
|
+
- [x] Support display-p3-linear color space.
|
|
8
37
|
|
|
9
38
|
## v1.4.7
|
|
10
39
|
|
|
@@ -25,11 +54,11 @@
|
|
|
25
54
|
|
|
26
55
|
## v1.4.6
|
|
27
56
|
|
|
28
|
-
- [x] Fix if syntax expansion regression bug #134
|
|
57
|
+
- [x] Fix if() syntax expansion regression bug #134
|
|
29
58
|
|
|
30
59
|
## v1.4.5
|
|
31
60
|
|
|
32
|
-
- [x] Temporarily disable if syntax expansion #131
|
|
61
|
+
- [x] Temporarily disable if() syntax expansion #131
|
|
33
62
|
|
|
34
63
|
## v1.4.4
|
|
35
64
|
|
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[](https://tbela99.github.io/css-parser/playground/) [](https://www.npmjs.com/package/@tbela99/css-parser) [](https://jsr.io/@tbela99/css-parser) [](https://jsr.io/@tbela99/css-parser) [](https://github.com/tbela99/css-parser/actions) [](https://tbela99.github.io/css-parser/docs) [](https://www.npmjs.com/package/@tbela99/css-parser) [](https://www.npmjs.com/package/@tbela99/css-parser)
|
|
4
4
|
|
|
5
5
|
# css-parser
|
|
6
6
|
|