@cssxjs/runtime 0.2.7 → 0.2.9
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
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
# v0.2.9 (Wed Nov 05 2025)
|
|
2
|
+
|
|
3
|
+
#### 🐛 Bug Fix
|
|
4
|
+
|
|
5
|
+
- fix(runtime): don't process styles when undefined, fix mediaQuery call ([@cray0000](https://github.com/cray0000))
|
|
6
|
+
|
|
7
|
+
#### Authors: 1
|
|
8
|
+
|
|
9
|
+
- Pavel Zhukov ([@cray0000](https://github.com/cray0000))
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
1
13
|
# v0.2.5 (Wed Nov 05 2025)
|
|
2
14
|
|
|
3
15
|
#### 🐛 Bug Fix
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cssxjs/runtime",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.9",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -52,5 +52,5 @@
|
|
|
52
52
|
"optional": true
|
|
53
53
|
}
|
|
54
54
|
},
|
|
55
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "af8db22bc0f2aaff393010ad7c50b1233bc23214"
|
|
56
56
|
}
|
package/process.js
CHANGED
|
@@ -31,6 +31,7 @@ export function process (
|
|
|
31
31
|
res[propName] = res[propName].flat(10)
|
|
32
32
|
res[propName] = Object.assign({}, ...res[propName])
|
|
33
33
|
}
|
|
34
|
+
if (typeof res[propName] !== 'object') continue
|
|
34
35
|
// force transform to 'px' some units in pure React environment
|
|
35
36
|
if (isPureReact()) {
|
|
36
37
|
// atm it's only 'lineHeight' property
|
|
@@ -36,7 +36,7 @@ export function process (obj, matchObject) {
|
|
|
36
36
|
matchObject.type = 'screen'
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
-
const isMatch = mediaQuery
|
|
39
|
+
const isMatch = mediaQuery(obj.__mediaQueries[key], matchObject)
|
|
40
40
|
if (isMatch) {
|
|
41
41
|
res = merge(res, obj[key])
|
|
42
42
|
}
|