@cssxjs/runtime 0.2.8 → 0.2.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 CHANGED
@@ -1,3 +1,27 @@
1
+ # v0.2.10 (Wed Nov 05 2025)
2
+
3
+ #### 🐛 Bug Fix
4
+
5
+ - fix: export matcher, variables, dimensions from @cssxjs/runtime and from the main cssxjs ([@cray0000](https://github.com/cray0000))
6
+
7
+ #### Authors: 1
8
+
9
+ - Pavel Zhukov ([@cray0000](https://github.com/cray0000))
10
+
11
+ ---
12
+
13
+ # v0.2.9 (Wed Nov 05 2025)
14
+
15
+ #### 🐛 Bug Fix
16
+
17
+ - fix(runtime): don't process styles when undefined, fix mediaQuery call ([@cray0000](https://github.com/cray0000))
18
+
19
+ #### Authors: 1
20
+
21
+ - Pavel Zhukov ([@cray0000](https://github.com/cray0000))
22
+
23
+ ---
24
+
1
25
  # v0.2.5 (Wed Nov 05 2025)
2
26
 
3
27
  #### 🐛 Bug Fix
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cssxjs/runtime",
3
- "version": "0.2.8",
3
+ "version": "0.2.10",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -18,7 +18,9 @@
18
18
  "./entrypoints/web-teamplay": "./entrypoints/web-teamplay.js",
19
19
  "./entrypoints/react-native-teamplay": "./entrypoints/react-native-teamplay.js",
20
20
  "./constants": "./constants.cjs",
21
- "./dimensions": "./dimensions.js"
21
+ "./dimensions": "./dimensions.js",
22
+ "./variables": "./variables.js",
23
+ "./matcher": "./matcher.js"
22
24
  },
23
25
  "type": "module",
24
26
  "scripts": {
@@ -52,5 +54,5 @@
52
54
  "optional": true
53
55
  }
54
56
  },
55
- "gitHead": "8f7c9f9b669d1e6eaae6d0f06fbaa5d3347c052e"
57
+ "gitHead": "df668d1f0c63ad78e0668d63613f304e5cca3584"
56
58
  }
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.match(obj.__mediaQueries[key], matchObject)
39
+ const isMatch = mediaQuery(obj.__mediaQueries[key], matchObject)
40
40
  if (isMatch) {
41
41
  res = merge(res, obj[key])
42
42
  }